Class: Google::Apis::IdentitytoolkitV3::SetAccountInfoRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/identitytoolkit_v3/classes.rb,
generated/google/apis/identitytoolkit_v3/representations.rb,
generated/google/apis/identitytoolkit_v3/representations.rb

Overview

Request to set the account information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SetAccountInfoRequest

Returns a new instance of SetAccountInfoRequest



896
897
898
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 896

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

Instance Attribute Details

#captcha_challengeString

The captcha challenge. Corresponds to the JSON property captchaChallenge

Returns:

  • (String)


779
780
781
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 779

def captcha_challenge
  @captcha_challenge
end

#captcha_responseString

Response to the captcha. Corresponds to the JSON property captchaResponse

Returns:

  • (String)


784
785
786
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 784

def captcha_response
  @captcha_response
end

#created_atFixnum

The timestamp when the account is created. Corresponds to the JSON property createdAt

Returns:

  • (Fixnum)


789
790
791
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 789

def created_at
  @created_at
end

#custom_attributesString

The custom attributes to be set in the user's id token. Corresponds to the JSON property customAttributes

Returns:

  • (String)


794
795
796
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 794

def custom_attributes
  @custom_attributes
end

#delegated_project_numberFixnum

GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration. Corresponds to the JSON property delegatedProjectNumber

Returns:

  • (Fixnum)


800
801
802
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 800

def delegated_project_number
  @delegated_project_number
end

#delete_attributeArray<String>

The attributes users request to delete. Corresponds to the JSON property deleteAttribute

Returns:

  • (Array<String>)


805
806
807
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 805

def delete_attribute
  @delete_attribute
end

#delete_providerArray<String>

The IDPs the user request to delete. Corresponds to the JSON property deleteProvider

Returns:

  • (Array<String>)


810
811
812
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 810

def delete_provider
  @delete_provider
end

#disable_userBoolean Also known as: disable_user?

Whether to disable the user. Corresponds to the JSON property disableUser

Returns:

  • (Boolean)


815
816
817
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 815

def disable_user
  @disable_user
end

#display_nameString

The name of the user. Corresponds to the JSON property displayName

Returns:

  • (String)


821
822
823
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 821

def display_name
  @display_name
end

#emailString

The email of the user. Corresponds to the JSON property email

Returns:

  • (String)


826
827
828
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 826

def email
  @email
end

#email_verifiedBoolean Also known as: email_verified?

Mark the email as verified or not. Corresponds to the JSON property emailVerified

Returns:

  • (Boolean)


831
832
833
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 831

def email_verified
  @email_verified
end

#id_tokenString

The GITKit token of the authenticated user. Corresponds to the JSON property idToken

Returns:

  • (String)


837
838
839
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 837

def id_token
  @id_token
end

#instance_idString

Instance id token of the app. Corresponds to the JSON property instanceId

Returns:

  • (String)


842
843
844
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 842

def instance_id
  @instance_id
end

#last_login_atFixnum

Last login timestamp. Corresponds to the JSON property lastLoginAt

Returns:

  • (Fixnum)


847
848
849
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 847

def 
  @last_login_at
end

#local_idString

The local ID of the user. Corresponds to the JSON property localId

Returns:

  • (String)


852
853
854
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 852

def local_id
  @local_id
end

#oob_codeString

The out-of-band code of the change email request. Corresponds to the JSON property oobCode

Returns:

  • (String)


857
858
859
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 857

def oob_code
  @oob_code
end

#passwordString

The new password of the user. Corresponds to the JSON property password

Returns:

  • (String)


862
863
864
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 862

def password
  @password
end

#phone_numberString

Privileged caller can update user with specified phone number. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


867
868
869
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 867

def phone_number
  @phone_number
end

#photo_urlString

The photo url of the user. Corresponds to the JSON property photoUrl

Returns:

  • (String)


872
873
874
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 872

def photo_url
  @photo_url
end

#providerArray<String>

The associated IDPs of the user. Corresponds to the JSON property provider

Returns:

  • (Array<String>)


877
878
879
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 877

def provider
  @provider
end

#return_secure_tokenBoolean Also known as: return_secure_token?

Whether return sts id token and refresh token instead of gitkit token. Corresponds to the JSON property returnSecureToken

Returns:

  • (Boolean)


882
883
884
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 882

def return_secure_token
  @return_secure_token
end

#upgrade_to_federated_loginBoolean Also known as: upgrade_to_federated_login?

Mark the user to upgrade to federated login. Corresponds to the JSON property upgradeToFederatedLogin

Returns:

  • (Boolean)


888
889
890
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 888

def 
  @upgrade_to_federated_login
end

#valid_sinceFixnum

Timestamp in seconds for valid login token. Corresponds to the JSON property validSince

Returns:

  • (Fixnum)


894
895
896
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 894

def valid_since
  @valid_since
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 901

def update!(**args)
  @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
  @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
  @created_at = args[:created_at] if args.key?(:created_at)
  @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
  @delete_attribute = args[:delete_attribute] if args.key?(:delete_attribute)
  @delete_provider = args[:delete_provider] if args.key?(:delete_provider)
  @disable_user = args[:disable_user] if args.key?(:disable_user)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
  @email_verified = args[:email_verified] if args.key?(:email_verified)
  @id_token = args[:id_token] if args.key?(:id_token)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @last_login_at = args[:last_login_at] if args.key?(:last_login_at)
  @local_id = args[:local_id] if args.key?(:local_id)
  @oob_code = args[:oob_code] if args.key?(:oob_code)
  @password = args[:password] if args.key?(:password)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @photo_url = args[:photo_url] if args.key?(:photo_url)
  @provider = args[:provider] if args.key?(:provider)
  @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
  @upgrade_to_federated_login = args[:upgrade_to_federated_login] if args.key?(:upgrade_to_federated_login)
  @valid_since = args[:valid_since] if args.key?(:valid_since)
end