Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
- 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 resource owner credentials grant, the client will ask the user for their authorization credentials (ususally a username and password) and send a POST request 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.
-
#password ⇒ String
The user's password.
-
#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.
-
#username ⇒ String
The user's username.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
constructor
A new instance of GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials
Returns a new instance of GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials.
8031 8032 8033 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8031 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
7987 7988 7989 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7987 def access_token @access_token end |
#client_id ⇒ String
The client's ID.
Corresponds to the JSON property clientId
7992 7993 7994 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7992 def client_id @client_id end |
#client_secret ⇒ String
The client's secret.
Corresponds to the JSON property clientSecret
7997 7998 7999 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7997 def client_secret @client_secret end |
#password ⇒ String
The user's password.
Corresponds to the JSON property password
8002 8003 8004 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8002 def password @password end |
#request_type ⇒ String
Represent how to pass parameters to fetch access token
Corresponds to the JSON property requestType
8007 8008 8009 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8007 def request_type @request_type end |
#scope ⇒ String
A space-delimited list of requested scope permissions.
Corresponds to the JSON property scope
8012 8013 8014 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8012 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
8018 8019 8020 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8018 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
8024 8025 8026 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8024 def token_params @token_params end |
#username ⇒ String
The user's username.
Corresponds to the JSON property username
8029 8030 8031 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8029 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8036 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) @password = args[:password] if args.key?(:password) @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) @username = args[:username] if args.key?(:username) end |