Class: Google::Apis::DiscoveryV1::DirectoryList

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discovery_v1/classes.rb,
lib/google/apis/discovery_v1/representations.rb,
lib/google/apis/discovery_v1/representations.rb

Defined Under Namespace

Classes: Item

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DirectoryList

Returns a new instance of DirectoryList.



44
45
46
# File 'lib/google/apis/discovery_v1/classes.rb', line 44

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

Instance Attribute Details

#discovery_versionString

Indicate the version of the Discovery API used to generate this doc. Corresponds to the JSON property discoveryVersion

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/discovery_v1/classes.rb', line 32

def discovery_version
  @discovery_version
end

#itemsArray<Google::Apis::DiscoveryV1::DirectoryList::Item>

The individual directory entries. One entry per api/version pair. Corresponds to the JSON property items



37
38
39
# File 'lib/google/apis/discovery_v1/classes.rb', line 37

def items
  @items
end

#kindString

The kind for this response. Corresponds to the JSON property kind

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/discovery_v1/classes.rb', line 42

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
53
# File 'lib/google/apis/discovery_v1/classes.rb', line 49

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