Class: Google::Apis::AdminDirectoryV1::GroupAlias

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) ⇒ GroupAlias

Returns a new instance of GroupAlias.



2685
2686
2687
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2685

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

Instance Attribute Details

#aliasString

The alias email address. Corresponds to the JSON property alias

Returns:

  • (String)


2662
2663
2664
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2662

def alias
  @alias
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2667
2668
2669
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2667

def etag
  @etag
end

#idString

The unique ID of the group. Corresponds to the JSON property id

Returns:

  • (String)


2672
2673
2674
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2672

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)


2678
2679
2680
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2678

def kind
  @kind
end

#primary_emailString

The primary email address of the group. Corresponds to the JSON property primaryEmail

Returns:

  • (String)


2683
2684
2685
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2683

def primary_email
  @primary_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2690
2691
2692
2693
2694
2695
2696
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2690

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