class Google::Apis::RunV1beta1::CustomResourceSubresourceScale

CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.

Attributes

label_selector_path[RW]

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]

spec_replicas_path[RW]

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]

status_replicas_path[RW]

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

new(**args) click to toggle source
# File lib/google/apis/run_v1beta1/classes.rb, line 325
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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