Class: Google::Apis::NotebooksV2::CheckAuthorizationResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

Output only. Timestamp when this Authorization request was created. Corresponds to the JSON property createTime

Returns:

  • (String)


260
261
262
# File 'lib/google/apis/notebooks_v2/classes.rb', line 260

def create_time
  @create_time
end

#oauth_uriString

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

Returns:

  • (String)


266
267
268
# File 'lib/google/apis/notebooks_v2/classes.rb', line 266

def oauth_uri
  @oauth_uri
end

#successBoolean Also known as: success?

Success indicates that the user completed OAuth consent and access tokens can be generated. Corresponds to the JSON property success

Returns:

  • (Boolean)


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