Class: Google::Apis::RunV1beta1::CustomResourceSubresourceScale

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_pathString

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

Returns:

  • (String)

305
306
307
# File 'generated/google/apis/run_v1beta1/classes.rb', line 305

def label_selector_path
  @label_selector_path
end

#spec_replicas_pathString

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

Returns:

  • (String)

314
315
316
# File 'generated/google/apis/run_v1beta1/classes.rb', line 314

def spec_replicas_path
  @spec_replicas_path
end

#status_replicas_pathString

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

Returns:

  • (String)

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