Class: Google::Apis::RunV1beta1::CustomResourceDefinitionNames
- Inherits:
-
Object
- Object
- Google::Apis::RunV1beta1::CustomResourceDefinitionNames
- 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
CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
Instance Attribute Summary collapse
-
#categories ⇒ Array<String>
Categories is a list of grouped resources custom resources belong to (e.g. ' all') +optional Corresponds to the JSON property
categories
. -
#kind ⇒ String
Kind is the serialized kind of the resource.
-
#list_kind ⇒ String
ListKind is the serialized kind of the list for this resource.
-
#plural ⇒ String
Plural is the plural name of the resource to serve.
-
#short_names ⇒ Array<String>
ShortNames are short names for the resource.
-
#singular ⇒ String
Singular is the singular name of the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomResourceDefinitionNames
constructor
A new instance of CustomResourceDefinitionNames.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomResourceDefinitionNames
Returns a new instance of CustomResourceDefinitionNames.
163 164 165 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 163 def initialize(**args) update!(**args) end |
Instance Attribute Details
#categories ⇒ Array<String>
Categories is a list of grouped resources custom resources belong to (e.g. '
all') +optional
Corresponds to the JSON property categories
130 131 132 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 130 def categories @categories end |
#kind ⇒ String
Kind is the serialized kind of the resource. It is normally CamelCase and
singular.
Corresponds to the JSON property kind
136 137 138 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 136 def kind @kind end |
#list_kind ⇒ String
ListKind is the serialized kind of the list for this resource. Defaults to
List. +optional
Corresponds to the JSON property listKind
142 143 144 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 142 def list_kind @list_kind end |
#plural ⇒ String
Plural is the plural name of the resource to serve. It must match the name of
the CustomResourceDefinition-registration too: plural.group and it must be all
lowercase.
Corresponds to the JSON property plural
149 150 151 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 149 def plural @plural end |
#short_names ⇒ Array<String>
ShortNames are short names for the resource. It must be all lowercase. +
optional
Corresponds to the JSON property shortNames
155 156 157 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 155 def short_names @short_names end |
#singular ⇒ String
Singular is the singular name of the resource. It must be all lowercase
Defaults to lowercased +optional
Corresponds to the JSON property singular
161 162 163 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 161 def singular @singular end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
168 169 170 171 172 173 174 175 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 168 def update!(**args) @categories = args[:categories] if args.key?(:categories) @kind = args[:kind] if args.key?(:kind) @list_kind = args[:list_kind] if args.key?(:list_kind) @plural = args[:plural] if args.key?(:plural) @short_names = args[:short_names] if args.key?(:short_names) @singular = args[:singular] if args.key?(:singular) end |