Class: Google::Apis::AdminDirectoryV1::UserAlias

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

Overview

The Directory API manages aliases, which are alternative email addresses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserAlias

Returns a new instance of UserAlias.



4894
4895
4896
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4894

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

Instance Attribute Details

#aliasString

The alias email address. Corresponds to the JSON property alias

Returns:

  • (String)


4871
4872
4873
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4871

def alias
  @alias
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


4876
4877
4878
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4876

def etag
  @etag
end

#idString

The unique ID for the user. Corresponds to the JSON property id

Returns:

  • (String)


4881
4882
4883
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4881

def id
  @id
end

#kindString

The type of the API resource. For Alias resources, the value is admin# directory#alias. Corresponds to the JSON property kind

Returns:

  • (String)


4887
4888
4889
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4887

def kind
  @kind
end

#primary_emailString

The user's primary email address. Corresponds to the JSON property primaryEmail

Returns:

  • (String)


4892
4893
4894
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4892

def primary_email
  @primary_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4899
4900
4901
4902
4903
4904
4905
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4899

def update!(**args)
  @alias = args[:alias] if args.key?(:alias)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @primary_email = args[:primary_email] if args.key?(:primary_email)
end