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.



8056
8057
8058
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8056

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



8022
8023
8024
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8022

def access_token
  @access_token
end

#client_idString

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

Returns:

  • (String)


8027
8028
8029
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8027

def client_id
  @client_id
end

#client_secretString

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

Returns:

  • (String)


8032
8033
8034
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8032

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)


8037
8038
8039
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8037

def request_type
  @request_type
end

#scopeString

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

Returns:

  • (String)


8042
8043
8044
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8042

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)


8048
8049
8050
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8048

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



8054
8055
8056
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8054

def token_params
  @token_params
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8061
8062
8063
8064
8065
8066
8067
8068
8069
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8061

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