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 the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
read / write
diskSizeGb ↔ String
Specifies the size of the disk in base-2 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
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
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
sourceImage ↔ String
The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage 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 disks.source is required except for local SSD. [...]
read / write
sourceSnapshotEncryptionKey CustomerEncryptionKey
The customer-supplied encryption key of the source snapshot.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited