Class: Google::Apis::NotebooksV1::LocalDiskInitializeParams
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::LocalDiskInitializeParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v1/classes.rb,
lib/google/apis/notebooks_v1/representations.rb,
lib/google/apis/notebooks_v1/representations.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.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#disk_name ⇒ String
Optional.
-
#disk_size_gb ⇒ Fixnum
Optional.
-
#disk_type ⇒ String
Input only.
-
#labels ⇒ Hash<String,String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocalDiskInitializeParams
constructor
A new instance of LocalDiskInitializeParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LocalDiskInitializeParams
Returns a new instance of LocalDiskInitializeParams.
1301 1302 1303 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1301 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. Provide this property when creating the disk.
Corresponds to the JSON property description
1273 1274 1275 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1273 def description @description end |
#disk_name ⇒ 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.
Corresponds to the JSON property diskName
1280 1281 1282 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1280 def disk_name @disk_name end |
#disk_size_gb ⇒ Fixnum
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.
Corresponds to the JSON property diskSizeGb
1287 1288 1289 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1287 def disk_size_gb @disk_size_gb end |
#disk_type ⇒ String
Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk (PD_STANDARD).
Corresponds to the JSON property diskType
1293 1294 1295 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1293 def disk_type @disk_type end |
#labels ⇒ Hash<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.
Corresponds to the JSON property labels
1299 1300 1301 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1299 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1306 1307 1308 1309 1310 1311 1312 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1306 def update!(**args) @description = args[:description] if args.key?(:description) @disk_name = args[:disk_name] if args.key?(:disk_name) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_type = args[:disk_type] if args.key?(:disk_type) @labels = args[:labels] if args.key?(:labels) end |