Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaAccessToken

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

The access token represents the authorization of a specific application to access specific parts of a user’s data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaAccessToken

Returns a new instance of GoogleCloudIntegrationsV1alphaAccessToken.



5459
5460
5461
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5459

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_tokenString

The access token encapsulating the security identity of a process or thread. Corresponds to the JSON property accessToken

Returns:

  • (String)


5435
5436
5437
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5435

def access_token
  @access_token
end

#access_token_expire_timeString

Required. The approximate time until the access token retrieved is valid. Corresponds to the JSON property accessTokenExpireTime

Returns:

  • (String)


5440
5441
5442
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5440

def access_token_expire_time
  @access_token_expire_time
end

#refresh_tokenString

If the access token will expire, use the refresh token to obtain another access token. Corresponds to the JSON property refreshToken

Returns:

  • (String)


5446
5447
5448
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5446

def refresh_token
  @refresh_token
end

#refresh_token_expire_timeString

The approximate time until the refresh token retrieved is valid. Corresponds to the JSON property refreshTokenExpireTime

Returns:

  • (String)


5451
5452
5453
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5451

def refresh_token_expire_time
  @refresh_token_expire_time
end

#token_typeString

Only support "bearer" token in v1 as bearer token is the predominant type used with OAuth 2.0. Corresponds to the JSON property tokenType

Returns:

  • (String)


5457
5458
5459
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5457

def token_type
  @token_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5464
5465
5466
5467
5468
5469
5470
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5464

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