Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SetAccountInfoRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SetAccountInfoRequest
- 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 SetAccountInfo.
Instance Attribute Summary collapse
-
#captcha_challenge ⇒ String
Corresponds to the JSON property
captchaChallenge
. -
#captcha_response ⇒ String
The response from reCaptcha challenge.
-
#created_at ⇒ Fixnum
The timestamp in milliseconds when the account was created.
-
#custom_attributes ⇒ String
JSON formatted custom attributes to be stored in the Identity Platform ID token.
-
#delegated_project_number ⇒ Fixnum
Corresponds to the JSON property
delegatedProjectNumber
. -
#delete_attribute ⇒ Array<String>
Corresponds to the JSON property
deleteAttribute
. -
#delete_provider ⇒ Array<String>
The Identity Providers to unlink from the user's account.
-
#disable_user ⇒ Boolean
(also: #disable_user?)
If true, marks the account as disabled, meaning the user will no longer be able to sign-in.
-
#display_name ⇒ String
The user's new display name to be updated in the account's attributes.
-
#email ⇒ String
The user's new email to be updated in the account's attributes.
-
#email_verified ⇒ Boolean
(also: #email_verified?)
Whether the user's email has been verified.
-
#id_token ⇒ String
A valid Identity Platform ID token.
-
#instance_id ⇒ String
Corresponds to the JSON property
instanceId
. -
#last_login_at ⇒ Fixnum
The timestamp in milliseconds when the account last logged in.
-
#link_provider_user_info ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1ProviderUserInfo
Information about the user as provided by various Identity Providers.
-
#local_id ⇒ String
The ID of the user.
-
#mfa ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1MfaInfo
Multi-factor authentication related information.
-
#oob_code ⇒ String
The out-of-band code to be applied on the user's account.
-
#password ⇒ String
The user's new password to be updated in the account's attributes.
-
#phone_number ⇒ String
The phone number to be updated in the account's attributes.
-
#photo_url ⇒ String
The user's new photo URL for the account's profile photo to be updated in the account's attributes.
-
#provider ⇒ Array<String>
The Identity Providers that the account should be associated with.
-
#return_secure_token ⇒ Boolean
(also: #return_secure_token?)
Whether or not to return an ID and refresh token.
-
#target_project_id ⇒ String
The project ID for the project that the account belongs to.
-
#tenant_id ⇒ String
The tenant ID of the Identity Platform tenant that the account belongs to.
-
#upgrade_to_federated_login ⇒ Boolean
(also: #upgrade_to_federated_login?)
Whether the account should be restricted to only using federated login.
-
#valid_since ⇒ Fixnum
Specifies the minimum timestamp in seconds for an Identity Platform ID token to be considered valid.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SetAccountInfoRequest
constructor
A new instance of GoogleCloudIdentitytoolkitV1SetAccountInfoRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SetAccountInfoRequest
Returns a new instance of GoogleCloudIdentitytoolkitV1SetAccountInfoRequest.
2034 2035 2036 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2034 def initialize(**args) update!(**args) end |
Instance Attribute Details
#captcha_challenge ⇒ String
Corresponds to the JSON property captchaChallenge
1869 1870 1871 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1869 def captcha_challenge @captcha_challenge end |
#captcha_response ⇒ String
The response from reCaptcha challenge. This is required when the system
detects possible abuse activities.
Corresponds to the JSON property captchaResponse
1875 1876 1877 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1875 def captcha_response @captcha_response end |
#created_at ⇒ Fixnum
The timestamp in milliseconds when the account was created.
Corresponds to the JSON property createdAt
1880 1881 1882 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1880 def created_at @created_at end |
#custom_attributes ⇒ String
JSON formatted custom attributes to be stored in the Identity Platform ID
token. Specifying this field requires a Google OAuth 2.0 credential with
proper permissions.
Corresponds to the JSON property customAttributes
1888 1889 1890 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1888 def custom_attributes @custom_attributes end |
#delegated_project_number ⇒ Fixnum
Corresponds to the JSON property delegatedProjectNumber
1893 1894 1895 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1893 def delegated_project_number @delegated_project_number end |
#delete_attribute ⇒ Array<String>
Corresponds to the JSON property deleteAttribute
1898 1899 1900 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1898 def delete_attribute @delete_attribute end |
#delete_provider ⇒ Array<String>
The Identity Providers to unlink from the user's account.
Corresponds to the JSON property deleteProvider
1903 1904 1905 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1903 def delete_provider @delete_provider end |
#disable_user ⇒ Boolean Also known as: disable_user?
If true, marks the account as disabled, meaning the user will no longer be
able to sign-in.
Corresponds to the JSON property disableUser
1909 1910 1911 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1909 def disable_user @disable_user end |
#display_name ⇒ String
The user's new display name to be updated in the account's attributes. The
length of the display name must be less than or equal to 256 characters.
Corresponds to the JSON property displayName
1916 1917 1918 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1916 def display_name @display_name end |
#email ⇒ String
The user's new email to be updated in the account's attributes. The length of
email should be less than 256 characters and in the format of [email protected]
. The email should also match the RFC 822
addr-spec production. If email enumeration protection is enabled, the
email cannot be changed by the user without verifying the email first, but it
can be changed by an administrator.
Corresponds to the JSON property email
1927 1928 1929 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1927 def email @email end |
#email_verified ⇒ Boolean Also known as: email_verified?
Whether the user's email has been verified. Specifying this field requires a
Google OAuth 2.0 credential with proper permissions.
Corresponds to the JSON property emailVerified
1934 1935 1936 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1934 def email_verified @email_verified end |
#id_token ⇒ String
A valid Identity Platform ID token. Required when attempting to change user-
related information.
Corresponds to the JSON property idToken
1941 1942 1943 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1941 def id_token @id_token end |
#instance_id ⇒ String
Corresponds to the JSON property instanceId
1946 1947 1948 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1946 def instance_id @instance_id end |
#last_login_at ⇒ Fixnum
The timestamp in milliseconds when the account last logged in.
Corresponds to the JSON property lastLoginAt
1951 1952 1953 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1951 def last_login_at @last_login_at end |
#link_provider_user_info ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1ProviderUserInfo
Information about the user as provided by various Identity Providers.
Corresponds to the JSON property linkProviderUserInfo
1956 1957 1958 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1956 def link_provider_user_info @link_provider_user_info end |
#local_id ⇒ String
The ID of the user. Specifying this field requires a Google OAuth 2.0
credential with proper permissions. For requests from end-users, an ID token should
be passed instead.
Corresponds to the JSON property localId
1964 1965 1966 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1964 def local_id @local_id end |
#mfa ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1MfaInfo
Multi-factor authentication related information.
Corresponds to the JSON property mfa
1969 1970 1971 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1969 def mfa @mfa end |
#oob_code ⇒ String
The out-of-band code to be applied on the user's account. The following out-of-
band code types are supported: * VERIFY_EMAIL * RECOVER_EMAIL *
REVERT_SECOND_FACTOR_ADDITION * VERIFY_AND_CHANGE_EMAIL
Corresponds to the JSON property oobCode
1976 1977 1978 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1976 def oob_code @oob_code end |
#password ⇒ String
The user's new password to be updated in the account's attributes. The
password must be at least 6 characters long.
Corresponds to the JSON property password
1982 1983 1984 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1982 def password @password end |
#phone_number ⇒ String
The phone number to be updated in the account's attributes.
Corresponds to the JSON property phoneNumber
1987 1988 1989 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1987 def phone_number @phone_number end |
#photo_url ⇒ String
The user's new photo URL for the account's profile photo to be updated in the
account's attributes. The length of the URL must be less than or equal to 2048
characters.
Corresponds to the JSON property photoUrl
1994 1995 1996 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1994 def photo_url @photo_url end |
#provider ⇒ Array<String>
The Identity Providers that the account should be associated with.
Corresponds to the JSON property provider
1999 2000 2001 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1999 def provider @provider end |
#return_secure_token ⇒ Boolean Also known as: return_secure_token?
Whether or not to return an ID and refresh token. Should always be true.
Corresponds to the JSON property returnSecureToken
2004 2005 2006 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2004 def return_secure_token @return_secure_token end |
#target_project_id ⇒ String
The project ID for the project that the account belongs to. Specifying this
field requires Google OAuth 2.0 credential with proper permissions. Requests from end
users should pass an Identity Platform ID token instead.
Corresponds to the JSON property targetProjectId
2013 2014 2015 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2013 def target_project_id @target_project_id end |
#tenant_id ⇒ String
The tenant ID of the Identity Platform tenant that the account belongs to.
Requests from end users should pass an Identity Platform ID token rather than
setting this field.
Corresponds to the JSON property tenantId
2020 2021 2022 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2020 def tenant_id @tenant_id end |
#upgrade_to_federated_login ⇒ Boolean Also known as: upgrade_to_federated_login?
Whether the account should be restricted to only using federated login.
Corresponds to the JSON property upgradeToFederatedLogin
2025 2026 2027 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2025 def upgrade_to_federated_login @upgrade_to_federated_login end |
#valid_since ⇒ Fixnum
Specifies the minimum timestamp in seconds for an Identity Platform ID token
to be considered valid.
Corresponds to the JSON property validSince
2032 2033 2034 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2032 def valid_since @valid_since end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2039 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) @link_provider_user_info = args[:link_provider_user_info] if args.key?(:link_provider_user_info) @local_id = args[:local_id] if args.key?(:local_id) @mfa = args[:mfa] if args.key?(:mfa) @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) @target_project_id = args[:target_project_id] if args.key?(:target_project_id) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) @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 |