Compute V1 Client - Class MachineImageParams (2.19.0)

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

Machine Image parameters

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ excluded_disks string[]

Input only. Specifies the list of disk device names that must be excluded from the new machine image.

↳ included_disks string[]

Input only. Specifies the list of disk device names that must be included with the new machine image.

↳ resource_manager_tags array|Google\Protobuf\Internal\MapField

Input only. Resource manager tags to be bound to the machine image. Tag keys and values have the same definition as resource manager tags. Keys and values can be either in numeric format, such as tagKeys/{tag_key_id} and tagValues/{tag_value_id} or in namespaced format such as {org_id|project_id}/{tag_key_short_name} and {tag_value_short_name}. The field is ignored (both PUT & PATCH) when empty.

getExcludedDisks

Input only. Specifies the list of disk device names that must be excluded from the new machine image.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setExcludedDisks

Input only. Specifies the list of disk device names that must be excluded from the new machine image.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getIncludedDisks

Input only. Specifies the list of disk device names that must be included with the new machine image.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setIncludedDisks

Input only. Specifies the list of disk device names that must be included with the new machine image.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getResourceManagerTags

Input only. Resource manager tags to be bound to the machine image. Tag keys and values have the same definition as resource manager tags. Keys and values can be either in numeric format, such as tagKeys/{tag_key_id} and tagValues/{tag_value_id} or in namespaced format such as {org_id|project_id}/{tag_key_short_name} and {tag_value_short_name}. The field is ignored (both PUT & PATCH) when empty.

Returns
Type Description
Google\Protobuf\Internal\MapField

setResourceManagerTags

Input only. Resource manager tags to be bound to the machine image. Tag keys and values have the same definition as resource manager tags. Keys and values can be either in numeric format, such as tagKeys/{tag_key_id} and tagValues/{tag_value_id} or in namespaced format such as {org_id|project_id}/{tag_key_short_name} and {tag_value_short_name}. The field is ignored (both PUT & PATCH) when empty.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this