Reference documentation and code samples for the AI Platform Notebooks V1 API class Google::Cloud::Notebooks::V1::LocalDiskInitializeParams.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#description
def description() -> ::String
- (::String) — Optional. Provide this property when creating the disk.
#description=
def description=(value) -> ::String
- value (::String) — Optional. Provide this property when creating the disk.
- (::String) — Optional. Provide this property when creating the disk.
#disk_name
def disk_name() -> ::String
- (::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.
#disk_name=
def disk_name=(value) -> ::String
- value (::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.
- (::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.
#disk_size_gb
def disk_size_gb() -> ::Integer
- (::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.
#disk_size_gb=
def disk_size_gb=(value) -> ::Integer
- value (::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.
- (::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.
#disk_type
def disk_type() -> ::Google::Cloud::Notebooks::V1::LocalDiskInitializeParams::DiskType
-
(::Google::Cloud::Notebooks::V1::LocalDiskInitializeParams::DiskType) — Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
#disk_type=
def disk_type=(value) -> ::Google::Cloud::Notebooks::V1::LocalDiskInitializeParams::DiskType
-
value (::Google::Cloud::Notebooks::V1::LocalDiskInitializeParams::DiskType) — Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
-
(::Google::Cloud::Notebooks::V1::LocalDiskInitializeParams::DiskType) — Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::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.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::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.
- (::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.