Class: Google::Apis::RunV1beta1::CustomResourceDefinition

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

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

Instance Method Summary collapse

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_versionString

The API version for this call such as "k8s.apiextensions.io/v1beta1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


89
90
91
# File 'generated/google/apis/run_v1beta1/classes.rb', line 89

def api_version
  @api_version
end

#kindString

The kind of resource, in this case always "CustomResourceDefinition". Corresponds to the JSON property kind

Returns:

  • (String)


94
95
96
# File 'generated/google/apis/run_v1beta1/classes.rb', line 94

def kind
  @kind
end

#metadataGoogle::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

#specGoogle::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