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
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. |
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
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
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 |
|
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 |
|