Reference documentation and code samples for the Google Cloud Backup Dr V1beta Client class CreateAutoProtectionPolicyBindingRequest.
Request message for creating an AutoProtectionPolicyBinding.
Generated from protobuf message google.cloud.backupdr.v1beta.CreateAutoProtectionPolicyBindingRequest
Namespace
Google \ Cloud \ BackupDR \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent resource where this binding will be created. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} |
↳ auto_protection_policy_binding_id |
string
Required. The ID to use for the binding. This will become the final component of the binding's resource name. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. |
↳ auto_protection_policy_binding |
AutoProtectionPolicyBinding
Required. The AutoProtectionPolicyBinding resource to create. |
↳ 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). |
getParent
Required. The parent resource where this binding will be created.
Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The parent resource where this binding will be created.
Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAutoProtectionPolicyBindingId
Required. The ID to use for the binding.
This will become the final component of the binding's resource name. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAutoProtectionPolicyBindingId
Required. The ID to use for the binding.
This will become the final component of the binding's resource name. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAutoProtectionPolicyBinding
Required. The AutoProtectionPolicyBinding resource to create.
| Returns | |
|---|---|
| Type | Description |
AutoProtectionPolicyBinding|null |
|
hasAutoProtectionPolicyBinding
clearAutoProtectionPolicyBinding
setAutoProtectionPolicyBinding
Required. The AutoProtectionPolicyBinding resource to create.
| Parameter | |
|---|---|
| Name | Description |
var |
AutoProtectionPolicyBinding
|
| 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
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The parent resource where this binding will be created. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy} Please see BackupDRClient::autoProtectionPolicyName() for help formatting this field. |
autoProtectionPolicyBinding |
AutoProtectionPolicyBinding
Required. The AutoProtectionPolicyBinding resource to create. |
autoProtectionPolicyBindingId |
string
Required. The ID to use for the binding. This will become the final component of the binding's resource name. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. |
| Returns | |
|---|---|
| Type | Description |
CreateAutoProtectionPolicyBindingRequest |
|