Class: Google::Apis::ApihubV1::GoogleCloudApihubV1Oauth2ClientCredentialsConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/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) ⇒ GoogleCloudApihubV1Oauth2ClientCredentialsConfig

Returns a new instance of GoogleCloudApihubV1Oauth2ClientCredentialsConfig.



3540
3541
3542
# File 'lib/google/apis/apihub_v1/classes.rb', line 3540

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

Instance Attribute Details

#client_idString

Required. The client identifier. Corresponds to the JSON property clientId

Returns:

  • (String)


3533
3534
3535
# File 'lib/google/apis/apihub_v1/classes.rb', line 3533

def client_id
  @client_id
end

#client_secretGoogle::Apis::ApihubV1::GoogleCloudApihubV1Secret

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



3538
3539
3540
# File 'lib/google/apis/apihub_v1/classes.rb', line 3538

def client_secret
  @client_secret
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3545
3546
3547
3548
# File 'lib/google/apis/apihub_v1/classes.rb', line 3545

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