Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAccessToken
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAccessToken
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/representations.rb
Overview
The access token represents the authorization of a specific application to access specific parts of a user’s data.
Instance Attribute Summary collapse
-
#access_token ⇒ String
The access token encapsulating the security identity of a process or thread.
-
#access_token_expire_time ⇒ String
Required.
-
#refresh_token ⇒ String
If the access token will expire, use the refresh token to obtain another access token.
-
#refresh_token_expire_time ⇒ String
The approximate time until the refresh token retrieved is valid.
-
#token_type ⇒ String
Only support "bearer" token in v1 as bearer token is the predominant type used with OAuth 2.0.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaAccessToken
constructor
A new instance of GoogleCloudIntegrationsV1alphaAccessToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaAccessToken
Returns a new instance of GoogleCloudIntegrationsV1alphaAccessToken.
6380 6381 6382 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 6380 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ String
The access token encapsulating the security identity of a process or thread.
Corresponds to the JSON property accessToken
6356 6357 6358 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 6356 def access_token @access_token end |
#access_token_expire_time ⇒ String
Required. The approximate time until the access token retrieved is valid.
Corresponds to the JSON property accessTokenExpireTime
6361 6362 6363 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 6361 def access_token_expire_time @access_token_expire_time end |
#refresh_token ⇒ String
If the access token will expire, use the refresh token to obtain another
access token.
Corresponds to the JSON property refreshToken
6367 6368 6369 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 6367 def refresh_token @refresh_token end |
#refresh_token_expire_time ⇒ String
The approximate time until the refresh token retrieved is valid.
Corresponds to the JSON property refreshTokenExpireTime
6372 6373 6374 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 6372 def refresh_token_expire_time @refresh_token_expire_time end |
#token_type ⇒ String
Only support "bearer" token in v1 as bearer token is the predominant type used
with OAuth 2.0.
Corresponds to the JSON property tokenType
6378 6379 6380 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 6378 def token_type @token_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6385 6386 6387 6388 6389 6390 6391 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 6385 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @access_token_expire_time = args[:access_token_expire_time] if args.key?(:access_token_expire_time) @refresh_token = args[:refresh_token] if args.key?(:refresh_token) @refresh_token_expire_time = args[:refresh_token_expire_time] if args.key?(:refresh_token_expire_time) @token_type = args[:token_type] if args.key?(:token_type) end |