Class: Google::Apis::RunV1beta1::CustomResourceDefinitionVersion
- Inherits:
-
Object
- Object
- Google::Apis::RunV1beta1::CustomResourceDefinitionVersion
- 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
Instance Attribute Summary collapse
-
#name ⇒ String
Name is the version name, e.g.
-
#served ⇒ Boolean
(also: #served?)
Served is a flag enabling/disabling this version from being served via REST APIs Corresponds to the JSON property
served
. -
#storage ⇒ Boolean
(also: #storage?)
Storage flags the version as storage version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomResourceDefinitionVersion
constructor
A new instance of CustomResourceDefinitionVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomResourceDefinitionVersion
Returns a new instance of CustomResourceDefinitionVersion.
280 281 282 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 280 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name is the version name, e.g. “v1”, “v2beta1”, etc.
Corresponds to the JSON property name
264 265 266 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 264 def name @name end |
#served ⇒ Boolean Also known as: served?
Served is a flag enabling/disabling this version from being served via REST
APIs
Corresponds to the JSON property served
270 271 272 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 270 def served @served end |
#storage ⇒ Boolean Also known as: storage?
Storage flags the version as storage version. There must be exactly one
flagged as storage version.
Corresponds to the JSON property storage
277 278 279 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 277 def storage @storage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
285 286 287 288 289 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 285 def update!(**args) @name = args[:name] if args.key?(:name) @served = args[:served] if args.key?(:served) @storage = args[:storage] if args.key?(:storage) end |