Class: Google::Apis::AdminDirectoryV1::Domains2

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 Domains 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) ⇒ Domains2

Returns a new instance of Domains2.



1484
1485
1486
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1484

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

Instance Attribute Details

#domainsArray<Google::Apis::AdminDirectoryV1::Domains>

List of domain objects. Corresponds to the JSON property domains



1472
1473
1474
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1472

def domains
  @domains
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1477
1478
1479
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1477

def etag
  @etag
end

#kindString

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

Returns:

  • (String)


1482
1483
1484
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1482

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1489
1490
1491
1492
1493
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1489

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