Class: Google::Apis::RunV1beta1::CustomResourceSubresources
- Inherits:
-
Object
- Object
- Google::Apis::RunV1beta1::CustomResourceSubresources
- 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
CustomResourceSubresources defines the status and scale subresources for CustomResources.
Instance Attribute Summary collapse
-
#scale ⇒ Google::Apis::RunV1beta1::CustomResourceSubresourceScale
CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
-
#status ⇒ Google::Apis::RunV1beta1::CustomResourceSubresourceStatus
CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomResourceSubresources
constructor
A new instance of CustomResourceSubresources.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomResourceSubresources
Returns a new instance of CustomResourceSubresources.
390 391 392 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 390 def initialize(**args) update!(**args) end |
Instance Attribute Details
#scale ⇒ Google::Apis::RunV1beta1::CustomResourceSubresourceScale
CustomResourceSubresourceScale defines how to serve the scale subresource for
CustomResources.
Corresponds to the JSON property scale
376 377 378 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 376 def scale @scale end |
#status ⇒ Google::Apis::RunV1beta1::CustomResourceSubresourceStatus
CustomResourceSubresourceStatus defines how to serve the status subresource
for CustomResources. Status is represented by the .status
JSON path inside
of a CustomResource. When set,
- exposes a /status subresource for the custom resource
- PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza
- PUT/POST/PATCH requests to the custom resource ignore changes to the status
stanza
Corresponds to the JSON property
status
388 389 390 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 388 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
395 396 397 398 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 395 def update!(**args) @scale = args[:scale] if args.key?(:scale) @status = args[:status] if args.key?(:status) end |