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.
Constructor Details
#initialize(**args) ⇒ CustomResourceSubresources
Returns a new instance of CustomResourceSubresources.
376 377 378 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 376 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
364 365 366 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 364 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
374 375 376 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 374 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
381 382 383 384 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 381 def update!(**args) @scale = args[:scale] if args.key?(:scale) @status = args[:status] if args.key?(:status) end |