Class: Google::Apis::ContainerV1beta1::SecondaryBootDisk
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::SecondaryBootDisk
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
SecondaryBootDisk represents a persistent disk attached to a node with special configurations based on its mode.
Instance Attribute Summary collapse
-
#disk_image ⇒ String
Fully-qualified resource ID for an existing disk image.
-
#mode ⇒ String
Disk mode (container image cache, etc.) Corresponds to the JSON property
mode.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecondaryBootDisk
constructor
A new instance of SecondaryBootDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecondaryBootDisk
Returns a new instance of SecondaryBootDisk.
9449 9450 9451 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9449 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_image ⇒ String
Fully-qualified resource ID for an existing disk image.
Corresponds to the JSON property diskImage
9442 9443 9444 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9442 def disk_image @disk_image end |
#mode ⇒ String
Disk mode (container image cache, etc.)
Corresponds to the JSON property mode
9447 9448 9449 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9447 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9454 9455 9456 9457 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9454 def update!(**args) @disk_image = args[:disk_image] if args.key?(:disk_image) @mode = args[:mode] if args.key?(:mode) end |