Class: Google::Apis::AdminDirectoryV1::GroupAlias
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::GroupAlias
- 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 of the group.
-
#kind ⇒ String
The type of the API resource.
-
#primary_email ⇒ String
The primary email address of the group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GroupAlias
constructor
A new instance of GroupAlias.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GroupAlias
Returns a new instance of GroupAlias.
2465 2466 2467 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2465 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alias ⇒ String
The alias email address.
Corresponds to the JSON property alias
2442 2443 2444 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2442 def alias @alias end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
2447 2448 2449 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2447 def etag @etag end |
#id ⇒ String
The unique ID of the group.
Corresponds to the JSON property id
2452 2453 2454 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2452 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
2458 2459 2460 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2458 def kind @kind end |
#primary_email ⇒ String
The primary email address of the group.
Corresponds to the JSON property primaryEmail
2463 2464 2465 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2463 def primary_email @primary_email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2470 2471 2472 2473 2474 2475 2476 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2470 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 |