Class: Google::Apis::DatastreamV1::Oauth2ClientCredentials

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idString

Required. Client ID for Salesforce OAuth2 Client Credentials. Corresponds to the JSON property clientId

Returns:

  • (String)


2225
2226
2227
# File 'lib/google/apis/datastream_v1/classes.rb', line 2225

def client_id
  @client_id
end

#client_secretString

Optional. Client secret for Salesforce OAuth2 Client Credentials. Mutually exclusive with the secret_manager_stored_client_secret field. Corresponds to the JSON property clientSecret

Returns:

  • (String)


2231
2232
2233
# File 'lib/google/apis/datastream_v1/classes.rb', line 2231

def client_secret
  @client_secret
end

#secret_manager_stored_client_secretString

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

Returns:

  • (String)


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