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.



2185
2186
2187
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2185

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

Instance Attribute Details

#delegated_project_numberFixnum

Corresponds to the JSON property delegatedProjectNumber

Returns:

  • (Fixnum)


2158
2159
2160
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2158

def delegated_project_number
  @delegated_project_number
end

#instance_idString

Corresponds to the JSON property instanceId

Returns:

  • (String)


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

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)


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

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)


2175
2176
2177
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2175

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)


2183
2184
2185
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2183

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2190
2191
2192
2193
2194
2195
2196
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2190

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