Class: Google::Apis::GkehubV1beta::RolloutTarget
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::RolloutTarget
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb
Overview
Metadata about the status of targets (clusters or node pools) involved in the Rollout.
Instance Attribute Summary collapse
-
#cluster ⇒ String
Optional.
-
#node_pool ⇒ String
Optional.
-
#operation ⇒ String
Optional.
-
#reason ⇒ String
Optional.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RolloutTarget
constructor
A new instance of RolloutTarget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RolloutTarget
Returns a new instance of RolloutTarget.
6306 6307 6308 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6306 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster ⇒ String
Optional. Output only. The resource link of the Cluster resource upgraded in
this Rollout. It is formatted as: //api_service/projects/project_number/
locations/location/clusters/cluster_name`. .
Corresponds to the JSON propertycluster`
6281 6282 6283 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6281 def cluster @cluster end |
#node_pool ⇒ String
Optional. Output only. The resource link of the NodePool resource upgraded in
this Rollout. It is formatted as: //api_service/projects/project_number/
locations/location/clusters/cluster_name/nodePools/node_pool_name`.
Corresponds to the JSON propertynodePool`
6288 6289 6290 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6288 def node_pool @node_pool end |
#operation ⇒ String
Optional. Output only. The operation resource name performing the mutation.
Corresponds to the JSON property operation
6293 6294 6295 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6293 def operation @operation end |
#reason ⇒ String
Optional. Output only. A human-readable description of the current status.
Corresponds to the JSON property reason
6298 6299 6300 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6298 def reason @reason end |
#state ⇒ String
Output only. The high-level, machine-readable status of this Rollout for the
target.
Corresponds to the JSON property state
6304 6305 6306 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6304 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6311 6312 6313 6314 6315 6316 6317 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6311 def update!(**args) @cluster = args[:cluster] if args.key?(:cluster) @node_pool = args[:node_pool] if args.key?(:node_pool) @operation = args[:operation] if args.key?(:operation) @reason = args[:reason] if args.key?(:reason) @state = args[:state] if args.key?(:state) end |