Class: Google::Apis::NotebooksV2::BootDisk
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::BootDisk
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
The definition of a boot disk.
Instance Attribute Summary collapse
-
#disk_encryption ⇒ String
Optional.
-
#disk_size_gb ⇒ Fixnum
Optional.
-
#disk_type ⇒ String
Optional.
-
#kms_key ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BootDisk
constructor
A new instance of BootDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BootDisk
Returns a new instance of BootDisk.
159 160 161 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 159 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_encryption ⇒ String
Optional. Input only. Disk encryption method used on the boot and data disks,
defaults to GMEK.
Corresponds to the JSON property diskEncryption
137 138 139 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 137 def disk_encryption @disk_encryption end |
#disk_size_gb ⇒ Fixnum
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.
Corresponds to the JSON property diskSizeGb
144 145 146 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 144 def disk_size_gb @disk_size_gb end |
#disk_type ⇒ String
Optional. Indicates the type of the disk.
Corresponds to the JSON property diskType
149 150 151 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 149 def disk_type @disk_type end |
#kms_key ⇒ 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.
Corresponds to the JSON propertykmsKey`
157 158 159 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 157 def kms_key @kms_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
164 165 166 167 168 169 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 164 def update!(**args) @disk_encryption = args[:disk_encryption] if args.key?(:disk_encryption) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_type = args[:disk_type] if args.key?(:disk_type) @kms_key = args[:kms_key] if args.key?(:kms_key) end |