Class: Google::Apis::ContainerV1beta1::SecondaryBootDisk

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecondaryBootDisk

Returns a new instance of SecondaryBootDisk.



6565
6566
6567
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6565

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disk_imageString

Fully-qualified resource ID for an existing disk image. Corresponds to the JSON property diskImage

Returns:

  • (String)


6558
6559
6560
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6558

def disk_image
  @disk_image
end

#modeString

Disk mode (container image cache, etc.) Corresponds to the JSON property mode

Returns:

  • (String)


6563
6564
6565
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6563

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6570
6571
6572
6573
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6570

def update!(**args)
  @disk_image = args[:disk_image] if args.key?(:disk_image)
  @mode = args[:mode] if args.key?(:mode)
end