Class: Google::Apis::DatastreamV1::Oauth2ClientCredentials
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::Oauth2ClientCredentials
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
OAuth2 Client Credentials.
Instance Attribute Summary collapse
-
#client_id ⇒ String
Required.
-
#client_secret ⇒ String
Optional.
-
#secret_manager_stored_client_secret ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Oauth2ClientCredentials
constructor
A new instance of Oauth2ClientCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Oauth2ClientCredentials
Returns a new instance of Oauth2ClientCredentials.
2239 2240 2241 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2239 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
Required. Client ID for Salesforce OAuth2 Client Credentials.
Corresponds to the JSON property clientId
2225 2226 2227 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2225 def client_id @client_id end |
#client_secret ⇒ String
Optional. Client secret for Salesforce OAuth2 Client Credentials. Mutually
exclusive with the secret_manager_stored_client_secret field.
Corresponds to the JSON property clientSecret
2231 2232 2233 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2231 def client_secret @client_secret end |
#secret_manager_stored_client_secret ⇒ String
Optional. A reference to a Secret Manager resource name storing the Salesforce
OAuth2 client_secret. Mutually exclusive with the client_secret field.
Corresponds to the JSON property secretManagerStoredClientSecret
2237 2238 2239 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2237 def secret_manager_stored_client_secret @secret_manager_stored_client_secret end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2244 2245 2246 2247 2248 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2244 def update!(**args) @client_id = args[:client_id] if args.key?(:client_id) @client_secret = args[:client_secret] if args.key?(:client_secret) @secret_manager_stored_client_secret = args[:secret_manager_stored_client_secret] if args.key?(:secret_manager_stored_client_secret) end |