Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials

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

For client credentials grant, the client sends a POST request with grant_type as 'client_credentials' to the authorization server. The authorization server will respond with a JSON object containing the access token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials

Returns a new instance of GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials.



7960
7961
7962
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7960

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

Instance Attribute Details

#access_tokenGoogle::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAccessToken

The access token represents the authorization of a specific application to access specific parts of a user’s data. Corresponds to the JSON property accessToken



7926
7927
7928
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7926

def access_token
  @access_token
end

#client_idString

The client's ID. Corresponds to the JSON property clientId

Returns:

  • (String)


7931
7932
7933
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7931

def client_id
  @client_id
end

#client_secretString

The client's secret. Corresponds to the JSON property clientSecret

Returns:

  • (String)


7936
7937
7938
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7936

def client_secret
  @client_secret
end

#request_typeString

Represent how to pass parameters to fetch access token Corresponds to the JSON property requestType

Returns:

  • (String)


7941
7942
7943
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7941

def request_type
  @request_type
end

#scopeString

A space-delimited list of requested scope permissions. Corresponds to the JSON property scope

Returns:

  • (String)


7946
7947
7948
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7946

def scope
  @scope
end

#token_endpointString

The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token. Corresponds to the JSON property tokenEndpoint

Returns:

  • (String)


7952
7953
7954
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7952

def token_endpoint
  @token_endpoint
end

#token_paramsGoogle::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaParameterMap

A generic multi-map that holds key value pairs. They keys and values can be of any type, unless specified. Corresponds to the JSON property tokenParams



7958
7959
7960
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7958

def token_params
  @token_params
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7965
7966
7967
7968
7969
7970
7971
7972
7973
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7965

def update!(**args)
  @access_token = args[:access_token] if args.key?(:access_token)
  @client_id = args[:client_id] if args.key?(:client_id)
  @client_secret = args[:client_secret] if args.key?(:client_secret)
  @request_type = args[:request_type] if args.key?(:request_type)
  @scope = args[:scope] if args.key?(:scope)
  @token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint)
  @token_params = args[:token_params] if args.key?(:token_params)
end