Class: Google::Apis::RunV1beta1::CustomResourceDefinitionSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomResourceDefinitionSpec

Returns a new instance of CustomResourceDefinitionSpec.


240
241
242
# File 'generated/google/apis/run_v1beta1/classes.rb', line 240

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additional_printer_columnsArray<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


187
188
189
# File 'generated/google/apis/run_v1beta1/classes.rb', line 187

def additional_printer_columns
  @additional_printer_columns
end

#groupString

Group is the group this resource belongs in Corresponds to the JSON property group

Returns:

  • (String)

192
193
194
# File 'generated/google/apis/run_v1beta1/classes.rb', line 192

def group
  @group
end

#namesGoogle::Apis::RunV1beta1::CustomResourceDefinitionNames

CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition Corresponds to the JSON property names


198
199
200
# File 'generated/google/apis/run_v1beta1/classes.rb', line 198

def names
  @names
end

#scopeString

Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced Corresponds to the JSON property scope

Returns:

  • (String)

204
205
206
# File 'generated/google/apis/run_v1beta1/classes.rb', line 204

def scope
  @scope
end

#subresourcesGoogle::Apis::RunV1beta1::CustomResourceSubresources

CustomResourceSubresources defines the status and scale subresources for CustomResources. Corresponds to the JSON property subresources


210
211
212
# File 'generated/google/apis/run_v1beta1/classes.rb', line 210

def subresources
  @subresources
end

#validationGoogle::Apis::RunV1beta1::CustomResourceValidation

CustomResourceValidation is a list of validation methods for CustomResources. Corresponds to the JSON property validation


215
216
217
# File 'generated/google/apis/run_v1beta1/classes.rb', line 215

def validation
  @validation
end

#versionString

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

Returns:

  • (String)

222
223
224
# File 'generated/google/apis/run_v1beta1/classes.rb', line 222

def version
  @version
end

#versionsArray<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


238
239
240
# File 'generated/google/apis/run_v1beta1/classes.rb', line 238

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


245
246
247
248
249
250
251
252
253
254
# File 'generated/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