Reference documentation and code samples for the Google Cloud Backup Dr V1beta Client class DeleteAutoProtectionPolicyRequest.
Request message for deleting an AutoProtectionPolicy.
Generated from protobuf message google.cloud.backupdr.v1beta.DeleteAutoProtectionPolicyRequest
Namespace
Google \ Cloud \ BackupDR \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The name of the policy to delete. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} |
↳ etag |
string
Optional. The current etag of the AutoProtectionPolicy. If an etag is provided and does not match the current etag of the connection, the request will be rejected with an ABORTED error. |
↳ request_id |
string
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
getName
Required. The name of the policy to delete.
Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. The name of the policy to delete.
Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEtag
Optional. The current etag of the AutoProtectionPolicy.
If an etag is provided and does not match the current etag of the connection, the request will be rejected with an ABORTED error.
| Returns | |
|---|---|
| Type | Description |
string |
|
setEtag
Optional. The current etag of the AutoProtectionPolicy.
If an etag is provided and does not match the current etag of the connection, the request will be rejected with an ABORTED error.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRequestId
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
| Returns | |
|---|---|
| Type | Description |
string |
|
setRequestId
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameter | |
|---|---|
| Name | Description |
name |
string
Required. The name of the policy to delete. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} Please see BackupDRClient::autoProtectionPolicyName() for help formatting this field. |
| Returns | |
|---|---|
| Type | Description |
DeleteAutoProtectionPolicyRequest |
|