Class: Google::Apis::MemcacheV1beta2::ListInstancesResponse

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

Overview

Response for ListInstances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListInstancesResponse

Returns a new instance of ListInstancesResponse.



1029
1030
1031
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1029

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

Instance Attribute Details

#next_page_tokenString

Token to retrieve the next page of results, or empty if there are no more results in the list. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1014
1015
1016
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1014

def next_page_token
  @next_page_token
end

#resourcesArray<Google::Apis::MemcacheV1beta2::Instance>

A list of Memcached instances in the project in the specified location, or across all locations. If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. Corresponds to the JSON property resources



1022
1023
1024
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1022

def resources
  @resources
end

#unreachableArray<String>

Locations that could not be reached. Corresponds to the JSON property unreachable

Returns:

  • (Array<String>)


1027
1028
1029
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1027

def unreachable
  @unreachable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1034
1035
1036
1037
1038
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1034

def update!(**args)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @resources = args[:resources] if args.key?(:resources)
  @unreachable = args[:unreachable] if args.key?(:unreachable)
end