Class: Google::Cloud::Notebooks::V1::LocalDiskInitializeParams

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/notebooks/v1/runtime.rb

Overview

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both.

Defined Under Namespace

Modules: DiskType Classes: LabelsEntry

Instance Attribute Summary collapse

Instance Attribute Details

#description::String

Returns Optional. Provide this property when creating the disk.

Returns:

  • (::String)

    Optional. Provide this property when creating the disk.



321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# File 'proto_docs/google/cloud/notebooks/v1/runtime.rb', line 321

class LocalDiskInitializeParams
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible disk types.
  module DiskType
    # Disk type not set.
    DISK_TYPE_UNSPECIFIED = 0

    # Standard persistent disk type.
    PD_STANDARD = 1

    # SSD persistent disk type.
    PD_SSD = 2

    # Balanced persistent disk type.
    PD_BALANCED = 3

    # Extreme persistent disk type.
    PD_EXTREME = 4
  end
end

#disk_name::String

Returns Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.

Returns:

  • (::String)

    Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.



321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# File 'proto_docs/google/cloud/notebooks/v1/runtime.rb', line 321

class LocalDiskInitializeParams
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible disk types.
  module DiskType
    # Disk type not set.
    DISK_TYPE_UNSPECIFIED = 0

    # Standard persistent disk type.
    PD_STANDARD = 1

    # SSD persistent disk type.
    PD_SSD = 2

    # Balanced persistent disk type.
    PD_BALANCED = 3

    # Extreme persistent disk type.
    PD_EXTREME = 4
  end
end

#disk_size_gb::Integer

Returns Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.

Returns:

  • (::Integer)

    Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.



321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# File 'proto_docs/google/cloud/notebooks/v1/runtime.rb', line 321

class LocalDiskInitializeParams
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible disk types.
  module DiskType
    # Disk type not set.
    DISK_TYPE_UNSPECIFIED = 0

    # Standard persistent disk type.
    PD_STANDARD = 1

    # SSD persistent disk type.
    PD_SSD = 2

    # Balanced persistent disk type.
    PD_BALANCED = 3

    # Extreme persistent disk type.
    PD_EXTREME = 4
  end
end

#disk_type::Google::Cloud::Notebooks::V1::LocalDiskInitializeParams::DiskType

Returns Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (PD_STANDARD).

Returns:



321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# File 'proto_docs/google/cloud/notebooks/v1/runtime.rb', line 321

class LocalDiskInitializeParams
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible disk types.
  module DiskType
    # Disk type not set.
    DISK_TYPE_UNSPECIFIED = 0

    # Standard persistent disk type.
    PD_STANDARD = 1

    # SSD persistent disk type.
    PD_SSD = 2

    # Balanced persistent disk type.
    PD_BALANCED = 3

    # Extreme persistent disk type.
    PD_EXTREME = 4
  end
end

#labels::Google::Protobuf::Map{::String => ::String}

Returns Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.



321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# File 'proto_docs/google/cloud/notebooks/v1/runtime.rb', line 321

class LocalDiskInitializeParams
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Possible disk types.
  module DiskType
    # Disk type not set.
    DISK_TYPE_UNSPECIFIED = 0

    # Standard persistent disk type.
    PD_STANDARD = 1

    # SSD persistent disk type.
    PD_SSD = 2

    # Balanced persistent disk type.
    PD_BALANCED = 3

    # Extreme persistent disk type.
    PD_EXTREME = 4
  end
end