Class: Google::Apis::NotebooksV2::CheckAuthorizationResponse
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::CheckAuthorizationResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
Response message for checking authorization for the instance owner.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#oauth_uri ⇒ String
If the user has not completed OAuth consent, then the oauth_url is returned.
-
#success ⇒ Boolean
(also: #success?)
Success indicates that the user completed OAuth consent and access tokens can be generated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CheckAuthorizationResponse
constructor
A new instance of CheckAuthorizationResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CheckAuthorizationResponse
Returns a new instance of CheckAuthorizationResponse.
275 276 277 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 275 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when this Authorization request was created.
Corresponds to the JSON property createTime
260 261 262 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 260 def create_time @create_time end |
#oauth_uri ⇒ String
If the user has not completed OAuth consent, then the oauth_url is returned.
Otherwise, this field is not set.
Corresponds to the JSON property oauth_uri
266 267 268 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 266 def oauth_uri @oauth_uri end |
#success ⇒ Boolean Also known as: success?
Success indicates that the user completed OAuth consent and access tokens can
be generated.
Corresponds to the JSON property success
272 273 274 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 272 def success @success end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
280 281 282 283 284 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 280 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @oauth_uri = args[:oauth_uri] if args.key?(:oauth_uri) @success = args[:success] if args.key?(:success) end |