Class: Google::Apis::RunV1beta1::CustomResourceSubresourceScale
- Inherits:
-
Object
- Object
- Google::Apis::RunV1beta1::CustomResourceSubresourceScale
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1beta1/classes.rb,
generated/google/apis/run_v1beta1/representations.rb,
generated/google/apis/run_v1beta1/representations.rb
Overview
CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
Instance Attribute Summary collapse
-
#label_selector_path ⇒ String
LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector.
-
#spec_replicas_path ⇒ String
SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas.
-
#status_replicas_path ⇒ String
StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomResourceSubresourceScale
constructor
A new instance of CustomResourceSubresourceScale.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomResourceSubresourceScale
Returns a new instance of CustomResourceSubresourceScale.
335 336 337 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_selector_path ⇒ String
LabelSelectorPath defines the JSON path inside of a CustomResource that
corresponds to Scale.Status.Selector. Only JSON paths without the array
notation are allowed. Must be a JSON Path under .status. Must be set to
work with HPA. If there is no value under the given path in the
CustomResource, the status label selector value in the /scale subresource
will default to the empty string. +optional
Corresponds to the JSON property labelSelectorPath
315 316 317 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 315 def label_selector_path @label_selector_path end |
#spec_replicas_path ⇒ String
SpecReplicasPath defines the JSON path inside of a CustomResource that
corresponds to Scale.Spec.Replicas. Only JSON paths without the array
notation are allowed. Must be a JSON Path under .spec. If there is no value
under the given path in the CustomResource, the /scale subresource will
return an error on GET.
Corresponds to the JSON property specReplicasPath
324 325 326 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 324 def spec_replicas_path @spec_replicas_path end |
#status_replicas_path ⇒ String
StatusReplicasPath defines the JSON path inside of a CustomResource that
corresponds to Scale.Status.Replicas. Only JSON paths without the array
notation are allowed. Must be a JSON Path under .status. If there is no
value under the given path in the CustomResource, the status replica value
in the /scale subresource will default to 0.
Corresponds to the JSON property statusReplicasPath
333 334 335 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 333 def status_replicas_path @status_replicas_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
340 341 342 343 344 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 340 def update!(**args) @label_selector_path = args[:label_selector_path] if args.key?(:label_selector_path) @spec_replicas_path = args[:spec_replicas_path] if args.key?(:spec_replicas_path) @status_replicas_path = args[:status_replicas_path] if args.key?(:status_replicas_path) end |