class Google::Apis::RunV1beta1::CustomResourceDefinitionSpec
CustomResourceDefinitionSpec
describes how a user wants their resource to appear
Attributes
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` @return [Array<Google::Apis::RunV1beta1::CustomResourceColumnDefinition>]
Group is the group this resource belongs in Corresponds to the JSON property `group` @return [String]
CustomResourceDefinitionNames
indicates the names to serve this CustomResourceDefinition
Corresponds to the JSON property `names` @return [Google::Apis::RunV1beta1::CustomResourceDefinitionNames]
Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced Corresponds to the JSON property `scope` @return [String]
CustomResourceSubresources
defines the status and scale subresources for CustomResources. Corresponds to the JSON property `subresources` @return [Google::Apis::RunV1beta1::CustomResourceSubresources]
CustomResourceValidation
is a list of validation methods for CustomResources. Corresponds to the JSON property `validation` @return [Google::Apis::RunV1beta1::CustomResourceValidation]
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` @return [String]
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` @return [Array<Google::Apis::RunV1beta1::CustomResourceDefinitionVersion>]
Public Class Methods
# File lib/google/apis/run_v1beta1/classes.rb, line 240 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/run_v1beta1/classes.rb, line 245 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