Class: Google::Apis::AdminDirectoryV1::UserName

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserName

Returns a new instance of UserName.



3999
4000
4001
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3999

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

Instance Attribute Details

#family_nameString

The user's last name. Required when creating a user account. Corresponds to the JSON property familyName

Returns:

  • (String)


3987
3988
3989
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3987

def family_name
  @family_name
end

#full_nameString

The user's full name formed by concatenating the first and last name values. Corresponds to the JSON property fullName

Returns:

  • (String)


3992
3993
3994
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3992

def full_name
  @full_name
end

#given_nameString

The user's first name. Required when creating a user account. Corresponds to the JSON property givenName

Returns:

  • (String)


3997
3998
3999
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3997

def given_name
  @given_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4004
4005
4006
4007
4008
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4004

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