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.



2189
2190
2191
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2189

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

Instance Attribute Details

#delegated_project_numberFixnum

Corresponds to the JSON property delegatedProjectNumber

Returns:

  • (Fixnum)


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

def delegated_project_number
  @delegated_project_number
end

#instance_idString

Corresponds to the JSON property instanceId

Returns:

  • (String)


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

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)


2172
2173
2174
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2172

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)


2179
2180
2181
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2179

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)


2187
2188
2189
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2187

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2194
2195
2196
2197
2198
2199
2200
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2194

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