Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest

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

Overview

Request message for CreateSessionCookie.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest

Returns a new instance of GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest.



411
412
413
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 411

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

Instance Attribute Details

#id_tokenString

Required. A valid Identity Platform ID token. Corresponds to the JSON property idToken

Returns:

  • (String)


398
399
400
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 398

def id_token
  @id_token
end

#tenant_idString

The tenant ID of the Identity Platform tenant the account belongs to. Corresponds to the JSON property tenantId

Returns:

  • (String)


403
404
405
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 403

def tenant_id
  @tenant_id
end

#valid_durationFixnum

The number of seconds until the session cookie expires. Specify a duration in seconds, between five minutes and fourteen days, inclusively. Corresponds to the JSON property validDuration

Returns:

  • (Fixnum)


409
410
411
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 409

def valid_duration
  @valid_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



416
417
418
419
420
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 416

def update!(**args)
  @id_token = args[:id_token] if args.key?(:id_token)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
  @valid_duration = args[:valid_duration] if args.key?(:valid_duration)
end