class Google::Apis::RunV1beta1::CustomResourceDefinition
CustomResourceDefinition
represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.
Attributes
The API version for this call such as “k8s.apiextensions.io/v1beta1”. Corresponds to the JSON property `apiVersion` @return [String]
The kind of resource, in this case always “CustomResourceDefinition”. Corresponds to the JSON property `kind` @return [String]
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` @return [Google::Apis::RunV1beta1::ObjectMeta]
CustomResourceDefinitionSpec
describes how a user wants their resource to appear Corresponds to the JSON property `spec` @return [Google::Apis::RunV1beta1::CustomResourceDefinitionSpec]
Public Class Methods
# File lib/google/apis/run_v1beta1/classes.rb, line 108 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/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