class Google::Apis::RunV1beta1::CustomResourceSubresourceScale
CustomResourceSubresourceScale
defines how to serve the scale subresource for CustomResources.
Attributes
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` @return [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` @return [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` @return [String]
Public Class Methods
# File lib/google/apis/run_v1beta1/classes.rb, line 325 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/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