Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class CreateRestoreTemplateRequest.
Request message for creating a RestoreTemplate instance.
Generated from protobuf message google.cloud.backupdr.v1.CreateRestoreTemplateRequest
Namespace
Google \ Cloud \ BackupDR \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'. |
↳ restore_template_id |
string
Required. The ID of the restore template to create. The ID must be unique for the specified project and location. |
↳ restore_template |
RestoreTemplate
Required. A RestoreTemplate resource. |
↳ 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 request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
getParent
Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The restore template project and location in the format 'projects/{project_id}/locations/{location}'.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRestoreTemplateId
Required. The ID of the restore template to create. The ID must be unique for the specified project and location.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRestoreTemplateId
Required. The ID of the restore template to create. The ID must be unique for the specified project and location.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRestoreTemplate
Required. A RestoreTemplate resource.
| Returns | |
|---|---|
| Type | Description |
RestoreTemplate|null |
|
hasRestoreTemplate
clearRestoreTemplate
setRestoreTemplate
Required. A RestoreTemplate resource.
| Parameter | |
|---|---|
| Name | Description |
var |
RestoreTemplate
|
| 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 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 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 restore template project and location in the format 'projects/{project_id}/locations/{location}'. Please see BackupDRClient::locationName() for help formatting this field. |
restoreTemplate |
RestoreTemplate
Required. A RestoreTemplate resource. |
restoreTemplateId |
string
Required. The ID of the restore template to create. The ID must be unique for the specified project and location. |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreTemplateRequest |
|