Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest
- 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
-
#id_token ⇒ String
Required.
-
#tenant_id ⇒ String
The tenant ID of the Identity Platform tenant the account belongs to.
-
#valid_duration ⇒ Fixnum
The number of seconds until the session cookie expires.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest
constructor
A new instance of GoogleCloudIdentitytoolkitV1CreateSessionCookieRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_token ⇒ String
Required. A valid Identity Platform ID token.
Corresponds to the JSON property idToken
398 399 400 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 398 def id_token @id_token end |
#tenant_id ⇒ String
The tenant ID of the Identity Platform tenant the account belongs to.
Corresponds to the JSON property tenantId
403 404 405 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 403 def tenant_id @tenant_id end |
#valid_duration ⇒ Fixnum
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
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 |