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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserName

Returns a new instance of UserName.



4993
4994
4995
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4993

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

Instance Attribute Details

#display_nameString

The user's display name. Limit: 256 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


4976
4977
4978
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4976

def display_name
  @display_name
end

#family_nameString

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

Returns:

  • (String)


4981
4982
4983
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4981

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)


4986
4987
4988
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4986

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)


4991
4992
4993
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4991

def given_name
  @given_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4998
4999
5000
5001
5002
5003
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4998

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @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