Compute V1 Client - Class SourceInstanceParams (1.6.1)

Reference documentation and code samples for the Compute V1 Client class SourceInstanceParams.

A specification of the parameters to use when creating the instance template from a source instance.

Generated from protobuf message google.cloud.compute.v1.SourceInstanceParams

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ disk_configs array<Google\Cloud\Compute\V1\DiskInstantiationConfig>

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

getDiskConfigs

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDiskConfigs

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\DiskInstantiationConfig>
Returns
TypeDescription
$this