Class: Google::Apis::GkehubV1beta::RolloutTarget

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RolloutTarget

Returns a new instance of RolloutTarget.



6234
6235
6236
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6234

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

Instance Attribute Details

#clusterString

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`

Returns:

  • (String)


6209
6210
6211
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6209

def cluster
  @cluster
end

#node_poolString

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`

Returns:

  • (String)


6216
6217
6218
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6216

def node_pool
  @node_pool
end

#operationString

Optional. Output only. The operation resource name performing the mutation. Corresponds to the JSON property operation

Returns:

  • (String)


6221
6222
6223
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6221

def operation
  @operation
end

#reasonString

Optional. Output only. A human-readable description of the current status. Corresponds to the JSON property reason

Returns:

  • (String)


6226
6227
6228
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6226

def reason
  @reason
end

#stateString

Output only. The high-level, machine-readable status of this Rollout for the target. Corresponds to the JSON property state

Returns:

  • (String)


6232
6233
6234
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6232

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6239
6240
6241
6242
6243
6244
6245
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6239

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