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.
409 410 411 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 409 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
396 397 398 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 396 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
401 402 403 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 401 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
407 408 409 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 407 def valid_duration @valid_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
414 415 416 417 418 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 414 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 |