Class: Google::Apis::RunV1beta1::CustomResourceDefinition
- Inherits:
-
Object
- Object
- Google::Apis::RunV1beta1::CustomResourceDefinition
- 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
CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.
Instance Attribute Summary collapse
-
#api_version ⇒ String
The API version for this call such as "k8s.apiextensions.io/v1beta1".
-
#kind ⇒ String
The kind of resource, in this case always "CustomResourceDefinition".
-
#metadata ⇒ Google::Apis::RunV1beta1::ObjectMeta
k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
-
#spec ⇒ Google::Apis::RunV1beta1::CustomResourceDefinitionSpec
CustomResourceDefinitionSpec describes how a user wants their resource to appear Corresponds to the JSON property
spec
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomResourceDefinition
constructor
A new instance of CustomResourceDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomResourceDefinition
Returns a new instance of CustomResourceDefinition.
108 109 110 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 108 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
The API version for this call such as "k8s.apiextensions.io/v1beta1".
Corresponds to the JSON property apiVersion
89 90 91 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 89 def api_version @api_version end |
#kind ⇒ String
The kind of resource, in this case always "CustomResourceDefinition".
Corresponds to the JSON property kind
94 95 96 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 94 def kind @kind end |
#metadata ⇒ Google::Apis::RunV1beta1::ObjectMeta
k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
resources must have, which includes all objects users must create.
Corresponds to the JSON property metadata
100 101 102 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 100 def @metadata end |
#spec ⇒ Google::Apis::RunV1beta1::CustomResourceDefinitionSpec
CustomResourceDefinitionSpec describes how a user wants their resource to
appear
Corresponds to the JSON property spec
106 107 108 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 106 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
113 114 115 116 117 118 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 113 def update!(**args) @api_version = args[:api_version] if args.key?(:api_version) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) @spec = args[:spec] if args.key?(:spec) end |