AttachedDiskInitializeParams class

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 instance.

This property is mutually exclusive with the source property; you can only define one or the other, but not both.

Constructors

AttachedDiskInitializeParams()
AttachedDiskInitializeParams.fromJson(Map _json)

Properties

description String
An optional description. Provide this property when creating the disk.
read / write
diskName String
Specifies the disk name. If not specified, the default is to use the name of the instance. If a disk with the same name already exists in the given region, the existing disk is attached to the new instance and the new disk is not created.
read / write
diskSizeGb String
Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB.
read / write
diskType String
Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
labels Map<String, String>
Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
read / write
onUpdateAction String
Specifies which action to take on instance update with this disk. Default is to use the existing disk. Possible string values are: [...]
read / write
resourcePolicies List<String>
Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sourceImage String
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. [...]
read / write
sourceImageEncryptionKey CustomerEncryptionKey
The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. [...]
read / write
sourceSnapshot String
The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. [...]
read / write
sourceSnapshotEncryptionKey CustomerEncryptionKey
The customer-supplied encryption key of the source snapshot.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited