Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignUpRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignUpRequest

Returns a new instance of GoogleCloudIdentitytoolkitV1SignUpRequest.



3263
3264
3265
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3263

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

Instance Attribute Details

#captcha_challengeString

Corresponds to the JSON property captchaChallenge

Returns:

  • (String)


3165
3166
3167
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3165

def captcha_challenge
  @captcha_challenge
end

#captcha_responseString

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

Returns:

  • (String)


3172
3173
3174
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3172

def captcha_response
  @captcha_response
end

#disabledBoolean Also known as: disabled?

Whether the user will be disabled upon creation. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


3180
3181
3182
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3180

def disabled
  @disabled
end

#display_nameString

The display name of the user to be created. Corresponds to the JSON property displayName

Returns:

  • (String)


3186
3187
3188
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3186

def display_name
  @display_name
end

#emailString

The email to assign to the created user. The length of the 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. An anonymous user will be created if not provided. Corresponds to the JSON property email

Returns:

  • (String)


3194
3195
3196
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3194

def email
  @email
end

#email_verifiedBoolean Also known as: email_verified?

Whether the user's email is verified. Specifying this field requires a Google OAuth 2.0 credential with the proper permissions. Corresponds to the JSON property emailVerified

Returns:

  • (Boolean)


3201
3202
3203
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3201

def email_verified
  @email_verified
end

#id_tokenString

A valid ID token for an Identity Platform user. If set, this request will link the authentication credential to the user represented by this ID token. For a non-admin request, both the email and password fields must be set. For an admin request, local_id must not be set. Corresponds to the JSON property idToken

Returns:

  • (String)


3210
3211
3212
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3210

def id_token
  @id_token
end

#instance_idString

Corresponds to the JSON property instanceId

Returns:

  • (String)


3215
3216
3217
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3215

def instance_id
  @instance_id
end

#local_idString

The ID of the user to create. The ID must be unique within the project that the user is being created under. Specifying this field requires a Google OAuth 2.0 credential with the proper permissions. Corresponds to the JSON property localId

Returns:

  • (String)


3223
3224
3225
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3223

def local_id
  @local_id
end

#mfa_infoArray<Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1MfaFactor>

The multi-factor authentication providers for the user to create. Corresponds to the JSON property mfaInfo



3228
3229
3230
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3228

def mfa_info
  @mfa_info
end

#passwordString

The password to assign to the created user. The password must be be at least 6 characters long. If set, the email field must also be set. Corresponds to the JSON property password

Returns:

  • (String)


3234
3235
3236
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3234

def password
  @password
end

#phone_numberString

The phone number of the user to create. Specifying this field requires a Google OAuth 2.0 credential with the proper permissions. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


3241
3242
3243
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3241

def phone_number
  @phone_number
end

#photo_urlString

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

Returns:

  • (String)


3246
3247
3248
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3246

def photo_url
  @photo_url
end

#target_project_idString

The project ID of the project which the user should belong to. Specifying this field requires a Google OAuth 2.0 credential with the proper permissions. If this is not set, the target project is inferred from the scope associated to the Bearer access token. Corresponds to the JSON property targetProjectId

Returns:

  • (String)


3255
3256
3257
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3255

def target_project_id
  @target_project_id
end

#tenant_idString

The ID of the Identity Platform tenant to create a user under. If not set, the user will be created under the default Identity Platform project. Corresponds to the JSON property tenantId

Returns:

  • (String)


3261
3262
3263
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3261

def tenant_id
  @tenant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3268

def update!(**args)
  @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
  @captcha_response = args[:captcha_response] if args.key?(:captcha_response)
  @disabled = args[:disabled] if args.key?(:disabled)
  @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)
  @local_id = args[:local_id] if args.key?(:local_id)
  @mfa_info = args[:mfa_info] if args.key?(:mfa_info)
  @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)
  @target_project_id = args[:target_project_id] if args.key?(:target_project_id)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
end