Class: Google::Apis::RunV1beta1::CustomResourceDefinitionSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1beta1::CustomResourceDefinitionSpec
- 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
CustomResourceDefinitionSpec describes how a user wants their resource to appear
Instance Attribute Summary collapse
-
#additional_printer_columns ⇒ Array<Google::Apis::RunV1beta1::CustomResourceColumnDefinition>
AdditionalPrinterColumns are additional columns shown e.g.
-
#group ⇒ String
Group is the group this resource belongs in Corresponds to the JSON property
group
. -
#names ⇒ Google::Apis::RunV1beta1::CustomResourceDefinitionNames
CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition Corresponds to the JSON property
names
. -
#scope ⇒ String
Scope indicates whether this resource is cluster or namespace scoped.
-
#subresources ⇒ Google::Apis::RunV1beta1::CustomResourceSubresources
CustomResourceSubresources defines the status and scale subresources for CustomResources.
-
#validation ⇒ Google::Apis::RunV1beta1::CustomResourceValidation
CustomResourceValidation is a list of validation methods for CustomResources.
-
#version ⇒ String
Version is the version this resource belongs in Should be always first item in Versions field if provided.
-
#versions ⇒ Array<Google::Apis::RunV1beta1::CustomResourceDefinitionVersion>
Versions is the list of all supported versions for this resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomResourceDefinitionSpec
constructor
A new instance of CustomResourceDefinitionSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomResourceDefinitionSpec
Returns a new instance of CustomResourceDefinitionSpec.
250 251 252 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 250 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_printer_columns ⇒ Array<Google::Apis::RunV1beta1::CustomResourceColumnDefinition>
AdditionalPrinterColumns are additional columns shown e.g. in kubectl next
to the name. Defaults to a created-at column. +optional
Corresponds to the JSON property additionalPrinterColumns
194 195 196 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 194 def additional_printer_columns @additional_printer_columns end |
#group ⇒ String
Group is the group this resource belongs in
Corresponds to the JSON property group
199 200 201 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 199 def group @group end |
#names ⇒ Google::Apis::RunV1beta1::CustomResourceDefinitionNames
CustomResourceDefinitionNames indicates the names to serve this
CustomResourceDefinition
Corresponds to the JSON property names
205 206 207 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 205 def names @names end |
#scope ⇒ String
Scope indicates whether this resource is cluster or namespace scoped.
Default is namespaced
Corresponds to the JSON property scope
211 212 213 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 211 def scope @scope end |
#subresources ⇒ Google::Apis::RunV1beta1::CustomResourceSubresources
CustomResourceSubresources defines the status and scale subresources for
CustomResources.
Corresponds to the JSON property subresources
217 218 219 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 217 def subresources @subresources end |
#validation ⇒ Google::Apis::RunV1beta1::CustomResourceValidation
CustomResourceValidation is a list of validation methods for CustomResources.
Corresponds to the JSON property validation
222 223 224 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 222 def validation @validation end |
#version ⇒ String
Version is the version this resource belongs in
Should be always first item in Versions field if provided.
Optional, but at least one of Version or Versions must be set.
Deprecated: Please use Versions
.
+optional
Corresponds to the JSON property version
231 232 233 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 231 def version @version end |
#versions ⇒ Array<Google::Apis::RunV1beta1::CustomResourceDefinitionVersion>
Versions is the list of all supported versions for this resource.
If Version field is provided, this field is optional.
Validation: All versions must use the same validation schema for now. i.e.,
top level Validation field is applied to all of these versions. Order: The
version name will be used to compute the order. If the version string is
"kube-like", it will sort above non "kube-like" version strings, which are
ordered lexicographically. "Kube-like" versions start with a "v", then are
followed by a number (the major version), then optionally the string
"alpha" or "beta" and another number (the minor version). These are sorted
first by GA > beta > alpha (where GA is a version with no suffix such as
beta or alpha), and then by comparing major version, then minor version. An
example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1,
v12alpha1, v11alpha2, foo1, foo10. +optional
Corresponds to the JSON property versions
248 249 250 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 248 def versions @versions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
255 256 257 258 259 260 261 262 263 264 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 255 def update!(**args) @additional_printer_columns = args[:additional_printer_columns] if args.key?(:additional_printer_columns) @group = args[:group] if args.key?(:group) @names = args[:names] if args.key?(:names) @scope = args[:scope] if args.key?(:scope) @subresources = args[:subresources] if args.key?(:subresources) @validation = args[:validation] if args.key?(:validation) @version = args[:version] if args.key?(:version) @versions = args[:versions] if args.key?(:versions) end |