Class: Google::Apis::ContainerV1::ListClustersResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb

Overview

ListClustersResponse is the result of ListClustersRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListClustersResponse

Returns a new instance of ListClustersResponse



1062
1063
1064
# File 'generated/google/apis/container_v1/classes.rb', line 1062

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

Instance Attribute Details

#clustersArray<Google::Apis::ContainerV1::Cluster>

A list of clusters in the project in the specified zone, or across all ones. Corresponds to the JSON property clusters



1054
1055
1056
# File 'generated/google/apis/container_v1/classes.rb', line 1054

def clusters
  @clusters
end

#missing_zonesArray<String>

If any zones are listed here, the list of clusters returned may be missing those zones. Corresponds to the JSON property missingZones

Returns:

  • (Array<String>)


1060
1061
1062
# File 'generated/google/apis/container_v1/classes.rb', line 1060

def missing_zones
  @missing_zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1067
1068
1069
1070
# File 'generated/google/apis/container_v1/classes.rb', line 1067

def update!(**args)
  @clusters = args[:clusters] if args.key?(:clusters)
  @missing_zones = args[:missing_zones] if args.key?(:missing_zones)
end