Class: Google::Apis::AdminDirectoryV1::UserName
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::UserName
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Instance Attribute Summary collapse
-
#family_name ⇒ String
The user's last name.
-
#full_name ⇒ String
The user's full name formed by concatenating the first and last name values.
-
#given_name ⇒ String
The user's first name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserName
constructor
A new instance of UserName.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserName
Returns a new instance of UserName.
4407 4408 4409 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4407 def initialize(**args) update!(**args) end |
Instance Attribute Details
#family_name ⇒ String
The user's last name. Required when creating a user account.
Corresponds to the JSON property familyName
4395 4396 4397 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4395 def family_name @family_name end |
#full_name ⇒ String
The user's full name formed by concatenating the first and last name values.
Corresponds to the JSON property fullName
4400 4401 4402 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4400 def full_name @full_name end |
#given_name ⇒ String
The user's first name. Required when creating a user account.
Corresponds to the JSON property givenName
4405 4406 4407 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4405 def given_name @given_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4412 4413 4414 4415 4416 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4412 def update!(**args) @family_name = args[:family_name] if args.key?(:family_name) @full_name = args[:full_name] if args.key?(:full_name) @given_name = args[:given_name] if args.key?(:given_name) end |