Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials
- 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
-
#access_token ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAccessToken
The access token represents the authorization of a specific application to access specific parts of a user’s data.
-
#client_id ⇒ String
The client's ID.
-
#client_secret ⇒ String
The client's secret.
-
#request_type ⇒ String
Represent how to pass parameters to fetch access token Corresponds to the JSON property
requestType. -
#scope ⇒ String
A space-delimited list of requested scope permissions.
-
#token_endpoint ⇒ String
The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token.
-
#token_params ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaParameterMap
A generic multi-map that holds key value pairs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials
constructor
A new instance of GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials
Returns a new instance of GoogleCloudIntegrationsV1alphaOAuth2ClientCredentials.
8134 8135 8136 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8134 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ Google::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
8100 8101 8102 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8100 def access_token @access_token end |
#client_id ⇒ String
The client's ID.
Corresponds to the JSON property clientId
8105 8106 8107 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8105 def client_id @client_id end |
#client_secret ⇒ String
The client's secret.
Corresponds to the JSON property clientSecret
8110 8111 8112 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8110 def client_secret @client_secret end |
#request_type ⇒ String
Represent how to pass parameters to fetch access token
Corresponds to the JSON property requestType
8115 8116 8117 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8115 def request_type @request_type end |
#scope ⇒ String
A space-delimited list of requested scope permissions.
Corresponds to the JSON property scope
8120 8121 8122 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8120 def scope @scope end |
#token_endpoint ⇒ String
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
8126 8127 8128 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8126 def token_endpoint @token_endpoint end |
#token_params ⇒ Google::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
8132 8133 8134 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8132 def token_params @token_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8139 8140 8141 8142 8143 8144 8145 8146 8147 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8139 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 |