public RestoreConfig.Types.ClusterResourceConflictPolicy ClusterResourceConflictPolicy { get; set; }
Optional. Defines the behavior for handling the situation where
cluster-scoped resources being restored already exist in the target
cluster. This MUST be set to a value other than
CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
[cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
is not empty.
public RestoreConfig.Types.NamespacedResourceRestoreMode NamespacedResourceRestoreMode { get; set; }
Optional. Defines the behavior for handling the situation where sets of
namespaced resources being restored already exist in the target cluster.
This MUST be set to a value other than
NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
public RepeatedField<RestoreConfig.Types.SubstitutionRule> SubstitutionRules { get; }
Optional. A list of transformation rules to be applied against Kubernetes
resources as they are selected for restoration from a Backup. Rules are
executed in order defined - this order matters, as changes made by a rule
may impact the filtering logic of subsequent rules. An empty list means no
substitution will occur.
public RepeatedField<RestoreConfig.Types.TransformationRule> TransformationRules { get; }
Optional. A list of transformation rules to be applied against Kubernetes
resources as they are selected for restoration from a Backup. Rules are
executed in order defined - this order matters, as changes made by a rule
may impact the filtering logic of subsequent rules. An empty list means no
transformation will occur.
public RestoreConfig.Types.VolumeDataRestorePolicy VolumeDataRestorePolicy { get; set; }
Optional. Specifies the mechanism to be used to restore volume data.
Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
NO_VOLUME_DATA_RESTORATION).
public RepeatedField<RestoreConfig.Types.VolumeDataRestorePolicyBinding> VolumeDataRestorePolicyBindings { get; }
Optional. A table that binds volumes by their scope to a restore policy.
Bindings must have a unique scope. Any volumes not scoped in the bindings
are subject to the policy defined in volume_data_restore_policy.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eRestoreConfig\u003c/code\u003e API is 2.6.0, with other available versions including 2.5.0, 2.4.0, 2.3.0, 2.2.0, 2.1.0, 2.0.0, and 1.0.0-beta01.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRestoreConfig\u003c/code\u003e is a class used to define the configuration for a restore operation in the Backup for GKE v1 API, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties such as \u003ccode\u003eAllNamespaces\u003c/code\u003e, \u003ccode\u003eClusterResourceConflictPolicy\u003c/code\u003e, and \u003ccode\u003eNamespacedResourceRestoreMode\u003c/code\u003e that allow for customization of the restore process, including handling of existing cluster-scoped and namespaced resources.\u003c/p\u003e\n"],["\u003cp\u003eIt supports various restore scopes, including the ability to restore all namespaces, exclude specific namespaces, or restore only selected namespaces or applications, and provides properties like \u003ccode\u003eSubstitutionRules\u003c/code\u003e and \u003ccode\u003eTransformationRules\u003c/code\u003e for resource modification during restoration.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRestoreConfig\u003c/code\u003e class also manages volume data restoration with the ability to set a global \u003ccode\u003eVolumeDataRestorePolicy\u003c/code\u003e, as well as specific \u003ccode\u003eVolumeDataRestorePolicyBindings\u003c/code\u003e for different scopes.\u003c/p\u003e\n"]]],[],null,["# Backup for GKE v1 API - Class RestoreConfig (2.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.7.0/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.6.0/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.5.0/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.4.0/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.3.0/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.2.0/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.1.0/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.0.0/Google.Cloud.GkeBackup.V1.RestoreConfig)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/1.0.0-beta01/Google.Cloud.GkeBackup.V1.RestoreConfig) \n\n public sealed class RestoreConfig : IMessage\u003cRestoreConfig\u003e, IEquatable\u003cRestoreConfig\u003e, IDeepCloneable\u003cRestoreConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup for GKE v1 API class RestoreConfig.\n\nConfiguration of a restore. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RestoreConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RestoreConfig](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestoreConfig](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RestoreConfig](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.RestoreConfig), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeBackup.V1](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeBackup.V1.dll\n\nConstructors\n------------\n\n### RestoreConfig()\n\n public RestoreConfig()\n\n### RestoreConfig(RestoreConfig)\n\n public RestoreConfig(RestoreConfig other)\n\nProperties\n----------\n\n### AllNamespaces\n\n public bool AllNamespaces { get; set; }\n\nRestore all namespaced resources in the Backup if set to \"True\".\nSpecifying this field to \"False\" is an error.\n\n### ClusterResourceConflictPolicy\n\n public RestoreConfig.Types.ClusterResourceConflictPolicy ClusterResourceConflictPolicy { get; set; }\n\nOptional. Defines the behavior for handling the situation where\ncluster-scoped resources being restored already exist in the target\ncluster. This MUST be set to a value other than\nCLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if\n\\[cluster_resource_restore_scope\\]\\[google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope\\]\nis not empty.\n\n### ClusterResourceRestoreScope\n\n public RestoreConfig.Types.ClusterResourceRestoreScope ClusterResourceRestoreScope { get; set; }\n\nOptional. Identifies the cluster-scoped resources to restore from the\nBackup. Not specifying it means NO cluster resource will be restored.\n\n### ExcludedNamespaces\n\n public Namespaces ExcludedNamespaces { get; set; }\n\nA list of selected namespaces excluded from restoration. All\nnamespaces except those in this list will be restored.\n\n### HasAllNamespaces\n\n public bool HasAllNamespaces { get; }\n\nGets whether the \"all_namespaces\" field is set\n\n### HasNoNamespaces\n\n public bool HasNoNamespaces { get; }\n\nGets whether the \"no_namespaces\" field is set\n\n### NamespacedResourceRestoreMode\n\n public RestoreConfig.Types.NamespacedResourceRestoreMode NamespacedResourceRestoreMode { get; set; }\n\nOptional. Defines the behavior for handling the situation where sets of\nnamespaced resources being restored already exist in the target cluster.\nThis MUST be set to a value other than\nNAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.\n\n### NamespacedResourceRestoreScopeCase\n\n public RestoreConfig.NamespacedResourceRestoreScopeOneofCase NamespacedResourceRestoreScopeCase { get; }\n\n### NoNamespaces\n\n public bool NoNamespaces { get; set; }\n\nDo not restore any namespaced resources if set to \"True\".\nSpecifying this field to \"False\" is not allowed.\n\n### RestoreOrder\n\n public RestoreConfig.Types.RestoreOrder RestoreOrder { get; set; }\n\nOptional. RestoreOrder contains custom ordering to use on a Restore.\n\n### SelectedApplications\n\n public NamespacedNames SelectedApplications { get; set; }\n\nA list of selected ProtectedApplications to restore. The listed\nProtectedApplications and all the resources to which they refer will be\nrestored.\n\n### SelectedNamespaces\n\n public Namespaces SelectedNamespaces { get; set; }\n\nA list of selected Namespaces to restore from the Backup. The listed\nNamespaces and all resources contained in them will be restored.\n\n### SubstitutionRules\n\n public RepeatedField\u003cRestoreConfig.Types.SubstitutionRule\u003e SubstitutionRules { get; }\n\nOptional. A list of transformation rules to be applied against Kubernetes\nresources as they are selected for restoration from a Backup. Rules are\nexecuted in order defined - this order matters, as changes made by a rule\nmay impact the filtering logic of subsequent rules. An empty list means no\nsubstitution will occur.\n\n### TransformationRules\n\n public RepeatedField\u003cRestoreConfig.Types.TransformationRule\u003e TransformationRules { get; }\n\nOptional. A list of transformation rules to be applied against Kubernetes\nresources as they are selected for restoration from a Backup. Rules are\nexecuted in order defined - this order matters, as changes made by a rule\nmay impact the filtering logic of subsequent rules. An empty list means no\ntransformation will occur.\n\n### VolumeDataRestorePolicy\n\n public RestoreConfig.Types.VolumeDataRestorePolicy VolumeDataRestorePolicy { get; set; }\n\nOptional. Specifies the mechanism to be used to restore volume data.\nDefault: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as\nNO_VOLUME_DATA_RESTORATION).\n\n### VolumeDataRestorePolicyBindings\n\n public RepeatedField\u003cRestoreConfig.Types.VolumeDataRestorePolicyBinding\u003e VolumeDataRestorePolicyBindings { get; }\n\nOptional. A table that binds volumes by their scope to a restore policy.\nBindings must have a unique scope. Any volumes not scoped in the bindings\nare subject to the policy defined in volume_data_restore_policy."]]