Class: Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb

Overview

Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials

Returns a new instance of GoogleCloudConnectorsV1AuthConfigOauth2ClientCredentials.



4836
4837
4838
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4836

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_idString

The client identifier. Corresponds to the JSON property clientId

Returns:

  • (String)


4829
4830
4831
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4829

def client_id
  @client_id
end

#client_secretGoogle::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1Secret

Secret provides a reference to entries in Secret Manager. Corresponds to the JSON property clientSecret



4834
4835
4836
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4834

def client_secret
  @client_secret
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4841
4842
4843
4844
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4841

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @client_secret = args[:client_secret] if args.key?(:client_secret)
end