Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig

Returns a new instance of GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig.



17011
17012
17013
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17011

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

Instance Attribute Details

#client_idString

Corresponds to the JSON property clientId

Returns:

  • (String)


16984
16985
16986
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16984

def client_id
  @client_id
end

#client_secretString

Corresponds to the JSON property clientSecret

Returns:

  • (String)


16989
16990
16991
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16989

def client_secret
  @client_secret
end

#oauth_grant_typeString

Corresponds to the JSON property oauthGrantType

Returns:

  • (String)


16994
16995
16996
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16994

def oauth_grant_type
  @oauth_grant_type
end

#scopesArray<String>

Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


16999
17000
17001
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16999

def scopes
  @scopes
end

#secret_version_for_client_secretString

Corresponds to the JSON property secretVersionForClientSecret

Returns:

  • (String)


17004
17005
17006
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17004

def secret_version_for_client_secret
  @secret_version_for_client_secret
end

#token_endpointString

Corresponds to the JSON property tokenEndpoint

Returns:

  • (String)


17009
17010
17011
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17009

def token_endpoint
  @token_endpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17016
17017
17018
17019
17020
17021
17022
17023
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17016

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