Google Cloud Migration Center V1 Client - Class BatchDeleteAssetsRequest (0.3.1)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class BatchDeleteAssetsRequest.

A request to delete a list of asset.

Generated from protobuf message google.cloud.migrationcenter.v1.BatchDeleteAssetsRequest

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Parent value for batch asset delete.

↳ names array

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

↳ allow_missing bool

Optional. When this value is set to true the request is a no-op for non-existing assets. See https://google.aip.dev/135#delete-if-existing for additional details. Default value is false.

getParent

Required. Parent value for batch asset delete.

Returns
TypeDescription
string

setParent

Required. Parent value for batch asset delete.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNames

Required. The IDs of the assets to delete.

A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNames

Required. The IDs of the assets to delete.

A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAllowMissing

Optional. When this value is set to true the request is a no-op for non-existing assets. See https://google.aip.dev/135#delete-if-existing for additional details. Default value is false.

Returns
TypeDescription
bool

setAllowMissing

Optional. When this value is set to true the request is a no-op for non-existing assets. See https://google.aip.dev/135#delete-if-existing for additional details. Default value is false.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. Parent value for batch asset delete. Please see Google\Cloud\MigrationCenter\V1\MigrationCenterClient::locationName() for help formatting this field.

names string[]

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}. Please see Google\Cloud\MigrationCenter\V1\MigrationCenterClient::assetName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\BatchDeleteAssetsRequest