Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest

Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithPasswordRequest.



2964
2965
2966
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2964

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

Instance Attribute Details

#captcha_challengeString

Corresponds to the JSON property captchaChallenge

Returns:

  • (String)


2899
2900
2901
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2899

def captcha_challenge
  @captcha_challenge
end

#captcha_responseString

The reCAPTCHA token provided by the reCAPTCHA client-side integration. reCAPTCHA Enterprise uses it for risk assessment. Required when reCAPTCHA Enterprise is enabled. Corresponds to the JSON property captchaResponse

Returns:

  • (String)


2906
2907
2908
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2906

def captcha_response
  @captcha_response
end

#client_typeString

The client type, web, android or ios. Required when reCAPTCHA Enterprise is enabled. Corresponds to the JSON property clientType

Returns:

  • (String)


2912
2913
2914
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2912

def client_type
  @client_type
end

#delegated_project_numberFixnum

Corresponds to the JSON property delegatedProjectNumber

Returns:

  • (Fixnum)


2917
2918
2919
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2917

def delegated_project_number
  @delegated_project_number
end

#emailString

Required. The email the user is signing in with. The length of email should be less than 256 characters and in the format of name@domain.tld. The email should also match the RFC 822 addr-spec production. Corresponds to the JSON property email

Returns:

  • (String)


2925
2926
2927
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2925

def email
  @email
end

#id_tokenString

Corresponds to the JSON property idToken

Returns:

  • (String)


2930
2931
2932
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2930

def id_token
  @id_token
end

#instance_idString

Corresponds to the JSON property instanceId

Returns:

  • (String)


2935
2936
2937
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2935

def instance_id
  @instance_id
end

#passwordString

Required. The password the user provides to sign in to the account. Corresponds to the JSON property password

Returns:

  • (String)


2940
2941
2942
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2940

def password
  @password
end

#pending_id_tokenString

Corresponds to the JSON property pendingIdToken

Returns:

  • (String)


2945
2946
2947
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2945

def pending_id_token
  @pending_id_token
end

#recaptcha_versionString

The reCAPTCHA version of the reCAPTCHA token in the captcha_response. Corresponds to the JSON property recaptchaVersion

Returns:

  • (String)


2950
2951
2952
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2950

def recaptcha_version
  @recaptcha_version
end

#return_secure_tokenBoolean Also known as: return_secure_token?

Should always be true. Corresponds to the JSON property returnSecureToken

Returns:

  • (Boolean)


2955
2956
2957
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2955

def return_secure_token
  @return_secure_token
end

#tenant_idString

The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform instance in the project. Corresponds to the JSON property tenantId

Returns:

  • (String)


2962
2963
2964
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2962

def tenant_id
  @tenant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2969

def update!(**args)
  @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
  @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
  @client_type = args[:client_type] if args.key?(:client_type)
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
  @email = args[:email] if args.key?(:email)
  @id_token = args[:id_token] if args.key?(:id_token)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @password = args[:password] if args.key?(:password)
  @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
  @recaptcha_version = args[:recaptcha_version] if args.key?(:recaptcha_version)
  @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
end