Class: Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/notebooks_v1/classes.rb,
lib/google/apis/notebooks_v1/representations.rb,
lib/google/apis/notebooks_v1/representations.rb

Overview

Response with a new access token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RefreshRuntimeTokenInternalResponse

Returns a new instance of RefreshRuntimeTokenInternalResponse.



1917
1918
1919
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1917

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

Instance Attribute Details

#access_tokenString

The OAuth 2.0 access token. Corresponds to the JSON property accessToken

Returns:

  • (String)


1910
1911
1912
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1910

def access_token
  @access_token
end

#expire_timeString

Output only. Token expiration time. Corresponds to the JSON property expireTime

Returns:

  • (String)


1915
1916
1917
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1915

def expire_time
  @expire_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1922
1923
1924
1925
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1922

def update!(**args)
  @access_token = args[:access_token] if args.key?(:access_token)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
end