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

Overview

JSON template for name of a user in Directory API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserName

Returns a new instance of UserName.



3744
3745
3746
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3744

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

Instance Attribute Details

#family_nameString

Last Name Corresponds to the JSON property familyName

Returns:

  • (String)


3732
3733
3734
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3732

def family_name
  @family_name
end

#full_nameString

Full Name Corresponds to the JSON property fullName

Returns:

  • (String)


3737
3738
3739
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3737

def full_name
  @full_name
end

#given_nameString

First Name Corresponds to the JSON property givenName

Returns:

  • (String)


3742
3743
3744
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3742

def given_name
  @given_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3749
3750
3751
3752
3753
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3749

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