Class: Google::Apis::ContainerV1::SetLocationsRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::SetLocationsRequest
- Defined in:
- generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb
Overview
SetLocationsRequest sets the locations of the cluster.
Instance Attribute Summary collapse
-
#locations ⇒ Array<String>
The desired list of Google Compute Engine locations in which the cluster's nodes should be located.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SetLocationsRequest
constructor
A new instance of SetLocationsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SetLocationsRequest
Returns a new instance of SetLocationsRequest
1549 1550 1551 |
# File 'generated/google/apis/container_v1/classes.rb', line 1549 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locations ⇒ Array<String>
The desired list of Google Compute Engine
locations in which the cluster's nodes
should be located. Changing the locations a cluster is in will result
in nodes being either created or removed from the cluster, depending on
whether locations are being added or removed.
This list must always include the cluster's primary zone.
Corresponds to the JSON property locations
1547 1548 1549 |
# File 'generated/google/apis/container_v1/classes.rb', line 1547 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1554 1555 1556 |
# File 'generated/google/apis/container_v1/classes.rb', line 1554 def update!(**args) @locations = args[:locations] if args.key?(:locations) end |