Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest

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 SignInWithCustomToken.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest

Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithCustomTokenRequest.



2162
2163
2164
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2162

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

Instance Attribute Details

#delegated_project_numberFixnum

Corresponds to the JSON property delegatedProjectNumber

Returns:

  • (Fixnum)


2135
2136
2137
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2135

def delegated_project_number
  @delegated_project_number
end

#instance_idString

Corresponds to the JSON property instanceId

Returns:

  • (String)


2140
2141
2142
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2140

def instance_id
  @instance_id
end

#return_secure_tokenBoolean Also known as: return_secure_token?

Should always be true. Corresponds to the JSON property returnSecureToken

Returns:

  • (Boolean)


2145
2146
2147
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2145

def return_secure_token
  @return_secure_token
end

#tenant_idString

The ID of the Identity Platform tenant the user is signing in to. If present, the ID should match the tenant_id in the token. Corresponds to the JSON property tenantId

Returns:

  • (String)


2152
2153
2154
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2152

def tenant_id
  @tenant_id
end

#tokenString

Required. The custom Auth token asserted by the developer. The token should be a JSON Web Token (JWT) that includes the claims listed in the API reference under the "Custom Token Claims" section. Corresponds to the JSON property token

Returns:

  • (String)


2160
2161
2162
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2160

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2167
2168
2169
2170
2171
2172
2173
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2167

def update!(**args)
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
  @token = args[:token] if args.key?(:token)
end