Class: Google::Apis::AdminDirectoryV1::UserName
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::UserName
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb
Overview
JSON template for name of a user in Directory API.
Instance Attribute Summary collapse
-
#family_name ⇒ String
Last Name Corresponds to the JSON property
familyName
. -
#full_name ⇒ String
Full Name Corresponds to the JSON property
fullName
. -
#given_name ⇒ String
First Name Corresponds to the JSON property
givenName
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserName
constructor
A new instance of UserName.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserName
Returns a new instance of UserName.
2825 2826 2827 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2825 def initialize(**args) update!(**args) end |
Instance Attribute Details
#family_name ⇒ String
Last Name
Corresponds to the JSON property familyName
2813 2814 2815 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2813 def family_name @family_name end |
#full_name ⇒ String
Full Name
Corresponds to the JSON property fullName
2818 2819 2820 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2818 def full_name @full_name end |
#given_name ⇒ String
First Name
Corresponds to the JSON property givenName
2823 2824 2825 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2823 def given_name @given_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2830 2831 2832 2833 2834 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2830 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 |