Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode
- 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
The OAuth Type where the client sends request with the client id and requested scopes to auth endpoint. User sees a consent screen and auth code is received at specified redirect url afterwards. The auth code is then combined with the client id and secret and sent to the token endpoint in exchange for the access and refresh token. The refresh token can be used to fetch new access tokens.
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.
-
#apply_reauth_policy ⇒ Boolean
(also: #apply_reauth_policy?)
Indicates if the user has opted in Google Reauth Policy.
-
#auth_code ⇒ String
The Auth Code that is used to initially retrieve the access token.
-
#auth_endpoint ⇒ String
The auth url endpoint to send the auth code request to.
-
#auth_params ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaParameterMap
A generic multi-map that holds key value pairs.
-
#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 url endpoint to send the token request to.
-
#token_params ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaParameterMap
A generic multi-map that holds key value pairs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode
constructor
A new instance of GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode
Returns a new instance of GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCode.
7896 7897 7898 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7896 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
7839 7840 7841 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7839 def access_token @access_token end |
#apply_reauth_policy ⇒ Boolean Also known as: apply_reauth_policy?
Indicates if the user has opted in Google Reauth Policy. If opted in, the
refresh token will be valid for 20 hours, after which time users must re-
authenticate in order to obtain a new one.
Corresponds to the JSON property applyReauthPolicy
7846 7847 7848 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7846 def apply_reauth_policy @apply_reauth_policy end |
#auth_code ⇒ String
The Auth Code that is used to initially retrieve the access token.
Corresponds to the JSON property authCode
7852 7853 7854 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7852 def auth_code @auth_code end |
#auth_endpoint ⇒ String
The auth url endpoint to send the auth code request to.
Corresponds to the JSON property authEndpoint
7857 7858 7859 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7857 def auth_endpoint @auth_endpoint end |
#auth_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 authParams
7863 7864 7865 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7863 def auth_params @auth_params end |
#client_id ⇒ String
The client's id.
Corresponds to the JSON property clientId
7868 7869 7870 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7868 def client_id @client_id end |
#client_secret ⇒ String
The client's secret.
Corresponds to the JSON property clientSecret
7873 7874 7875 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7873 def client_secret @client_secret end |
#request_type ⇒ String
Represent how to pass parameters to fetch access token
Corresponds to the JSON property requestType
7878 7879 7880 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7878 def request_type @request_type end |
#scope ⇒ String
A space-delimited list of requested scope permissions.
Corresponds to the JSON property scope
7883 7884 7885 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7883 def scope @scope end |
#token_endpoint ⇒ String
The token url endpoint to send the token request to.
Corresponds to the JSON property tokenEndpoint
7888 7889 7890 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7888 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
7894 7895 7896 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7894 def token_params @token_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7901 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @apply_reauth_policy = args[:apply_reauth_policy] if args.key?(:apply_reauth_policy) @auth_code = args[:auth_code] if args.key?(:auth_code) @auth_endpoint = args[:auth_endpoint] if args.key?(:auth_endpoint) @auth_params = args[:auth_params] if args.key?(:auth_params) @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 |