Reference documentation and code samples for the Notebooks V2 API class Google::Cloud::Notebooks::V2::BootDisk.
The definition of a boot disk.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#disk_encryption
def disk_encryption() -> ::Google::Cloud::Notebooks::V2::DiskEncryption
Returns
- (::Google::Cloud::Notebooks::V2::DiskEncryption) — Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
#disk_encryption=
def disk_encryption=(value) -> ::Google::Cloud::Notebooks::V2::DiskEncryption
Parameter
- value (::Google::Cloud::Notebooks::V2::DiskEncryption) — Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
Returns
- (::Google::Cloud::Notebooks::V2::DiskEncryption) — Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
#disk_size_gb
def disk_size_gb() -> ::Integer
Returns
- (::Integer) — Optional. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to the recommended value of 150GB.
#disk_size_gb=
def disk_size_gb=(value) -> ::Integer
Parameter
- value (::Integer) — Optional. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to the recommended value of 150GB.
Returns
- (::Integer) — Optional. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to the recommended value of 150GB.
#disk_type
def disk_type() -> ::Google::Cloud::Notebooks::V2::DiskType
Returns
- (::Google::Cloud::Notebooks::V2::DiskType) — Optional. Indicates the type of the disk.
#disk_type=
def disk_type=(value) -> ::Google::Cloud::Notebooks::V2::DiskType
Parameter
- value (::Google::Cloud::Notebooks::V2::DiskType) — Optional. Indicates the type of the disk.
Returns
- (::Google::Cloud::Notebooks::V2::DiskType) — Optional. Indicates the type of the disk.
#kms_key
def kms_key() -> ::String
Returns
-
(::String) — Optional. Input only. The KMS key used to encrypt the disks, only
applicable if disk_encryption is CMEK. Format:
projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
Learn more about using your own encryption keys.
#kms_key=
def kms_key=(value) -> ::String
Parameter
-
value (::String) — Optional. Input only. The KMS key used to encrypt the disks, only
applicable if disk_encryption is CMEK. Format:
projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
Learn more about using your own encryption keys.
Returns
-
(::String) — Optional. Input only. The KMS key used to encrypt the disks, only
applicable if disk_encryption is CMEK. Format:
projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
Learn more about using your own encryption keys.