Class: Google::Apis::RunV1beta1::CustomResourceDefinitionVersion

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

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) ⇒ 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

#nameString

Name is the version name, e.g. “v1”, “v2beta1”, etc. Corresponds to the JSON property name

Returns:

  • (String)

264
265
266
# File 'generated/google/apis/run_v1beta1/classes.rb', line 264

def name
  @name
end

#servedBoolean Also known as: served?

Served is a flag enabling/disabling this version from being served via REST APIs Corresponds to the JSON property served

Returns:

  • (Boolean)

270
271
272
# File 'generated/google/apis/run_v1beta1/classes.rb', line 270

def served
  @served
end

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

Returns:

  • (Boolean)

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