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.



2495
2496
2497
# File 'lib/google/apis/datastream_v1/classes.rb', line 2495

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)


2481
2482
2483
# File 'lib/google/apis/datastream_v1/classes.rb', line 2481

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)


2487
2488
2489
# File 'lib/google/apis/datastream_v1/classes.rb', line 2487

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)


2493
2494
2495
# File 'lib/google/apis/datastream_v1/classes.rb', line 2493

def secret_manager_stored_client_secret
  @secret_manager_stored_client_secret
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2500
2501
2502
2503
2504
# File 'lib/google/apis/datastream_v1/classes.rb', line 2500

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