Compute V1 Client - Class SourceInstanceParams (1.11.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

Namespace

Google \ Cloud \ Compute \ V1

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, the source images for each disk will be used. 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, the source images for each disk will be used. 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, the source images for each disk will be used. 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