Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserId
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserId
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb
Overview
An identifier associated with a user.
Instance Attribute Summary collapse
-
#email ⇒ String
Optional.
-
#phone_number ⇒ String
Optional.
-
#username ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1UserId
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1UserId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1UserId
Returns a new instance of GoogleCloudRecaptchaenterpriseV1UserId.
1999 2000 2001 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1999 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email ⇒ String
Optional. An email address.
Corresponds to the JSON property email
1985 1986 1987 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1985 def email @email end |
#phone_number ⇒ String
Optional. A phone number. Should use the E.164 format.
Corresponds to the JSON property phoneNumber
1990 1991 1992 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1990 def phone_number @phone_number end |
#username ⇒ String
Optional. A unique username, if different from all the other identifiers and
account_id that are provided. Can be a unique login handle or display name
for a user.
Corresponds to the JSON property username
1997 1998 1999 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1997 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2004 2005 2006 2007 2008 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2004 def update!(**args) @email = args[:email] if args.key?(:email) @phone_number = args[:phone_number] if args.key?(:phone_number) @username = args[:username] if args.key?(:username) end |