Class: Google::Apis::AdminDirectoryV1::Aliases

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 response template to list aliases in Directory API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Aliases

Returns a new instance of Aliases.



87
88
89
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 87

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

Instance Attribute Details

#aliasesArray<Object>

List of alias objects. Corresponds to the JSON property aliases

Returns:

  • (Array<Object>)


75
76
77
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 75

def aliases
  @aliases
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


80
81
82
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 80

def etag
  @etag
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


85
86
87
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 85

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



92
93
94
95
96
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 92

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