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 messagegoogle.cloud.migrationcenter.v1.BatchDeleteAssetsRequest
Namespace
Google \ Cloud \ MigrationCenter \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
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 totruethe request is a no-op for non-existing assets. Seehttps://google.aip.dev/135#delete-if-existingfor additional details. Default value isfalse.
getParent
Required. Parent value for batch asset delete.
Returns
Type
Description
string
setParent
Required. Parent value for batch asset delete.
Parameter
Name
Description
var
string
Returns
Type
Description
$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}.
A maximum of 1000 assets can be deleted in a batch.
Format: projects/{project}/locations/{location}/assets/{name}.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getAllowMissing
Optional. When this value is set totruethe request is a no-op for
non-existing assets. Seehttps://google.aip.dev/135#delete-if-existingfor
additional details. Default value isfalse.
Returns
Type
Description
bool
setAllowMissing
Optional. When this value is set totruethe request is a no-op for
non-existing assets. Seehttps://google.aip.dev/135#delete-if-existingfor
additional details. Default value isfalse.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. Parent value for batch asset delete. Please seeMigrationCenterClient::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 seeMigrationCenterClient::assetName()for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Migration Center V1 Client - Class BatchDeleteAssetsRequest (1.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.2 (latest)](/php/docs/reference/cloud-migrationcenter/latest/V1.BatchDeleteAssetsRequest)\n- [1.1.1](/php/docs/reference/cloud-migrationcenter/1.1.1/V1.BatchDeleteAssetsRequest)\n- [1.0.3](/php/docs/reference/cloud-migrationcenter/1.0.3/V1.BatchDeleteAssetsRequest)\n- [0.4.5](/php/docs/reference/cloud-migrationcenter/0.4.5/V1.BatchDeleteAssetsRequest)\n- [0.3.1](/php/docs/reference/cloud-migrationcenter/0.3.1/V1.BatchDeleteAssetsRequest)\n- [0.2.0](/php/docs/reference/cloud-migrationcenter/0.2.0/V1.BatchDeleteAssetsRequest)\n- [0.1.0](/php/docs/reference/cloud-migrationcenter/0.1.0/V1.BatchDeleteAssetsRequest) \nReference documentation and code samples for the Google Cloud Migration Center V1 Client class BatchDeleteAssetsRequest.\n\nA request to delete a list of asset.\n\nGenerated from protobuf message `google.cloud.migrationcenter.v1.BatchDeleteAssetsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ MigrationCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. Parent value for batch asset delete.\n\n### setParent\n\nRequired. Parent value for batch asset delete.\n\n### getNames\n\nRequired. The IDs of the assets to delete.\n\nA maximum of 1000 assets can be deleted in a batch.\nFormat: projects/{project}/locations/{location}/assets/{name}.\n\n### setNames\n\nRequired. The IDs of the assets to delete.\n\nA maximum of 1000 assets can be deleted in a batch.\nFormat: projects/{project}/locations/{location}/assets/{name}.\n\n### getAllowMissing\n\nOptional. When this value is set to `true` the request is a no-op for\nnon-existing assets. See \u003chttps://google.aip.dev/135#delete-if-existing\u003e for\nadditional details. Default value is `false`.\n\n### setAllowMissing\n\nOptional. When this value is set to `true` the request is a no-op for\nnon-existing assets. See \u003chttps://google.aip.dev/135#delete-if-existing\u003e for\nadditional details. Default value is `false`.\n\n### static::build"]]