2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0-beta02

    public sealed class RestoreTemplate : IMessage<RestoreTemplate>, IEquatable<RestoreTemplate>, IDeepCloneable<RestoreTemplate>, IBufferMessage, IMessage

Reference documentation and code samples for the Backup and DR Service v1 API class RestoreTemplate.

A `RestoreTemplate` encapsulates DR readiness configurations for validating
backups.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RestoreTemplate

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RestoreTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.RestoreTemplate.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.RestoreTemplate.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RestoreTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.RestoreTemplate.md.txt), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BackupDR.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.md.txt)

## Assembly

Google.Cloud.BackupDR.V1.dll

## Constructors

### RestoreTemplate()

    public RestoreTemplate()

### RestoreTemplate(RestoreTemplate)

    public RestoreTemplate(RestoreTemplate other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `RestoreTemplate` |

## Properties

### BackupSelectionConfig

    public BackupSelectionConfig BackupSelectionConfig { get; set; }

Required. Backup selection configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `BackupSelectionConfig` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time when the restore template was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Description

    public string Description { get; set; }

Optional. User-provided description of the restore template.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Etag

    public string Etag { get; set; }

Optional. Etag for concurrency control.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ExecutionSummary

    public ExecutionSummary ExecutionSummary { get; set; }

Output only. Summary of the last execution.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ExecutionSummary` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. User-defined labels.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### Name

    public string Name { get; set; }

Identifier. The resource name of the RestoreTemplate.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PostRestoreConfig

    public PostRestoreConfig PostRestoreConfig { get; set; }

Optional. Post-restore configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PostRestoreConfig` |   |

### PreRestoreConfig

    public PreRestoreConfig PreRestoreConfig { get; set; }

Optional. Pre-restore configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PreRestoreConfig` |   |

### ResourceType

    public string ResourceType { get; set; }

Required. Immutable. The specific type of the workload being restored.
The format is "{service_name}/{resource_kind}", for example,
"compute.googleapis.com/Instance".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RestoreProperties

    public Struct RestoreProperties { get; set; }

Required. Defines target environments where the resource will be restored.

The target resource name in `restore_properties` supports the
`{EXECUTION_ID}` token to dynamically generate unique resource names for
each execution. During restore execution, every occurrence of
`{EXECUTION_ID}` in the target resource name is replaced with the
8-character `RestoreTemplateExecution` ID (for example,
`"restored-resource-{EXECUTION_ID}"` or
`"restored-{EXECUTION_ID}-resource"` resolves to
`"restored-resource-5d437b06"` or `"restored-5d437b06-resource"`).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### RestoreTemplateName

    public RestoreTemplateName RestoreTemplateName { get; set; }

[RestoreTemplateName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.RestoreTemplateName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.RestoreTemplate.md.txt#Google_Cloud_BackupDR_V1_RestoreTemplate_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RestoreTemplateName` |   |

### State

    public RestoreTemplate.Types.State State { get; set; }

Output only. The state of the restore template.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RestoreTemplateTypesState` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time when the restore template was last updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### VerificationConfig

    public VerificationConfig VerificationConfig { get; set; }

Optional. Verification configuration.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `VerificationConfig` |   |