Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig

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

Overview

Config for authentication with OAuth.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig

Returns a new instance of GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig.



23641
23642
23643
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23641

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

Instance Attribute Details

#client_idString

Required. The client ID from the OAuth provider. Corresponds to the JSON property clientId

Returns:

  • (String)


23610
23611
23612
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23610

def client_id
  @client_id
end

#client_secretString

Optional. The client secret from the OAuth provider. If the secret_version_for_client_secret field is set, this field will be ignored. Corresponds to the JSON property clientSecret

Returns:

  • (String)


23616
23617
23618
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23616

def client_secret
  @client_secret
end

#oauth_grant_typeString

Required. OAuth grant types. Corresponds to the JSON property oauthGrantType

Returns:

  • (String)


23621
23622
23623
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23621

def oauth_grant_type
  @oauth_grant_type
end

#scopesArray<String>

Optional. The OAuth scopes to grant. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


23626
23627
23628
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23626

def scopes
  @scopes
end

#secret_version_for_client_secretString

Optional. The name of the SecretManager secret version resource storing the client secret. If this field is set, the client_secret field will be ignored. Format: projects/project/secrets/secret/versions/version` Corresponds to the JSON propertysecretVersionForClientSecret`

Returns:

  • (String)


23633
23634
23635
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23633

def secret_version_for_client_secret
  @secret_version_for_client_secret
end

#token_endpointString

Required. The token endpoint in the OAuth provider to exchange for an access token. Corresponds to the JSON property tokenEndpoint

Returns:

  • (String)


23639
23640
23641
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23639

def token_endpoint
  @token_endpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23646
23647
23648
23649
23650
23651
23652
23653
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23646

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