Class: Google::Apis::AdminDirectoryV1::UserAlias
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::UserAlias
- 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
-
#alias ⇒ String
The alias email address.
-
#etag ⇒ String
ETag of the resource.
-
#id ⇒ String
The unique ID for the user.
-
#kind ⇒ String
The type of the API resource.
-
#primary_email ⇒ String
The user's primary email address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserAlias
constructor
A new instance of UserAlias.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserAlias
Returns a new instance of UserAlias.
4596 4597 4598 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4596 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alias ⇒ String
The alias email address.
Corresponds to the JSON property alias
4573 4574 4575 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4573 def alias @alias end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
4578 4579 4580 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4578 def etag @etag end |
#id ⇒ String
The unique ID for the user.
Corresponds to the JSON property id
4583 4584 4585 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4583 def id @id end |
#kind ⇒ String
The type of the API resource. For Alias resources, the value is admin#
directory#alias.
Corresponds to the JSON property kind
4589 4590 4591 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4589 def kind @kind end |
#primary_email ⇒ String
The user's primary email address.
Corresponds to the JSON property primaryEmail
4594 4595 4596 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4594 def primary_email @primary_email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4601 4602 4603 4604 4605 4606 4607 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4601 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 |