Class: Google::Apis::WorkstationsV1beta::OAuthToken
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1beta::OAuthToken
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workstations_v1beta/classes.rb,
lib/google/apis/workstations_v1beta/representations.rb,
lib/google/apis/workstations_v1beta/representations.rb
Overview
OAuth token.
Instance Attribute Summary collapse
-
#access_token ⇒ String
Required.
-
#email ⇒ String
Optional.
-
#expire_time ⇒ String
Optional.
-
#scopes ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OAuthToken
constructor
A new instance of OAuthToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OAuthToken
Returns a new instance of OAuthToken.
1336 1337 1338 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ String
Required. The OAuth token.
Corresponds to the JSON property accessToken
1316 1317 1318 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1316 def access_token @access_token end |
#email ⇒ String
Optional. The email address encapsulated in the OAuth token.
Corresponds to the JSON property email
1321 1322 1323 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1321 def email @email end |
#expire_time ⇒ String
Optional. The time the OAuth access token will expire. This should be the time
the access token was generated plus the expires_in offset returned from the
Access Token Response.
Corresponds to the JSON property expireTime
1328 1329 1330 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1328 def expire_time @expire_time end |
#scopes ⇒ String
Optional. The scopes encapsulated in the OAuth token. See https://developers.
google.com/identity/protocols/oauth2/scopes for more information.
Corresponds to the JSON property scopes
1334 1335 1336 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1334 def scopes @scopes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1341 1342 1343 1344 1345 1346 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1341 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @email = args[:email] if args.key?(:email) @expire_time = args[:expire_time] if args.key?(:expire_time) @scopes = args[:scopes] if args.key?(:scopes) end |