Class: Google::Apis::AdminDirectoryV1::Alias

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 Alias object in Directory API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Alias

Returns a new instance of Alias.



54
55
56
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 54

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

Instance Attribute Details

#aliasString

Corresponds to the JSON property alias

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 32

def alias
  @alias
end

#etagString

Corresponds to the JSON property etag

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 37

def etag
  @etag
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 42

def id
  @id
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


47
48
49
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 47

def kind
  @kind
end

#primary_emailString

Corresponds to the JSON property primaryEmail

Returns:

  • (String)


52
53
54
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 52

def primary_email
  @primary_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



59
60
61
62
63
64
65
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 59

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