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.
Constructor Details
#initialize(**args) ⇒ CustomResourceSubresourceScale
Returns a new instance of CustomResourceSubresourceScale.
325 326 327 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 325 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
305 306 307 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 305 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
314 315 316 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 314 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
323 324 325 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 323 def status_replicas_path @status_replicas_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
330 331 332 333 334 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 330 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 |