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 \ V1Methods
__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 to |
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}.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. Parent value for batch asset delete. Please see 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 MigrationCenterClient::assetName() for help formatting this field. |
Returns | |
---|---|
Type | Description |
BatchDeleteAssetsRequest |