Class: Google::Apis::GkehubV1alpha::RolloutTarget
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::RolloutTarget
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/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.
6438 6439 6440 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6438 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: ///projects//locations//clusters/. I.e. for
GKE clusters, it is formatted as: //container.googleapis.com/projects//
locations//clusters/. For GDCE, it is formatted as: //edgecontainer.googleapis.
com/projects//locations//clusters/.
Corresponds to the JSON property cluster
6414 6415 6416 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6414 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: ///projects//locations//clusters//nodePools/.
Corresponds to the JSON property nodePool
6420 6421 6422 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6420 def node_pool @node_pool end |
#operation ⇒ String
Optional. Output only. The operation resource name performing the mutation.
Corresponds to the JSON property operation
6425 6426 6427 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6425 def operation @operation end |
#reason ⇒ String
Optional. Output only. A human-readable description of the current status.
Corresponds to the JSON property reason
6430 6431 6432 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6430 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
6436 6437 6438 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6436 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6443 6444 6445 6446 6447 6448 6449 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6443 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 |