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.



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

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

Instance Attribute Details

#client_idString

The client identifier. Corresponds to the JSON property clientId

Returns:

  • (String)


4823
4824
4825
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4823

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



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

def client_secret
  @client_secret
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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