ArmDataProtectionBackupModelFactory.KubernetesClusterRestoreCriteria Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of KubernetesClusterRestoreCriteria.
public static Azure.ResourceManager.DataProtectionBackup.Models.KubernetesClusterRestoreCriteria KubernetesClusterRestoreCriteria (bool isClusterScopeResourcesIncluded = false, System.Collections.Generic.IEnumerable<string> includedNamespaces = default, System.Collections.Generic.IEnumerable<string> excludedNamespaces = default, System.Collections.Generic.IEnumerable<string> includedResourceTypes = default, System.Collections.Generic.IEnumerable<string> excludedResourceTypes = default, System.Collections.Generic.IEnumerable<string> labelSelectors = default, Azure.ResourceManager.DataProtectionBackup.Models.PersistentVolumeRestoreMode? persistentVolumeRestoreMode = default, Azure.ResourceManager.DataProtectionBackup.Models.KubernetesClusterRestoreExistingResourcePolicy? conflictPolicy = default, System.Collections.Generic.IDictionary<string,string> namespaceMappings = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.NamespacedName> restoreHookReferences = default, Azure.ResourceManager.DataProtectionBackup.Models.NamespacedName resourceModifierReference = default);
static member KubernetesClusterRestoreCriteria : bool * seq<string> * seq<string> * seq<string> * seq<string> * seq<string> * Nullable<Azure.ResourceManager.DataProtectionBackup.Models.PersistentVolumeRestoreMode> * Nullable<Azure.ResourceManager.DataProtectionBackup.Models.KubernetesClusterRestoreExistingResourcePolicy> * System.Collections.Generic.IDictionary<string, string> * seq<Azure.ResourceManager.DataProtectionBackup.Models.NamespacedName> * Azure.ResourceManager.DataProtectionBackup.Models.NamespacedName -> Azure.ResourceManager.DataProtectionBackup.Models.KubernetesClusterRestoreCriteria
Public Shared Function KubernetesClusterRestoreCriteria (Optional isClusterScopeResourcesIncluded As Boolean = false, Optional includedNamespaces As IEnumerable(Of String) = Nothing, Optional excludedNamespaces As IEnumerable(Of String) = Nothing, Optional includedResourceTypes As IEnumerable(Of String) = Nothing, Optional excludedResourceTypes As IEnumerable(Of String) = Nothing, Optional labelSelectors As IEnumerable(Of String) = Nothing, Optional persistentVolumeRestoreMode As Nullable(Of PersistentVolumeRestoreMode) = Nothing, Optional conflictPolicy As Nullable(Of KubernetesClusterRestoreExistingResourcePolicy) = Nothing, Optional namespaceMappings As IDictionary(Of String, String) = Nothing, Optional restoreHookReferences As IEnumerable(Of NamespacedName) = Nothing, Optional resourceModifierReference As NamespacedName = Nothing) As KubernetesClusterRestoreCriteria
Parameters
- isClusterScopeResourcesIncluded
- Boolean
Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.
- includedNamespaces
- IEnumerable<String>
Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.
- excludedNamespaces
- IEnumerable<String>
Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.
- includedResourceTypes
- IEnumerable<String>
Gets or sets the include resource types property. This property sets the resource types to be included during restore.
- excludedResourceTypes
- IEnumerable<String>
Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.
- labelSelectors
- IEnumerable<String>
Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.
- persistentVolumeRestoreMode
- Nullable<PersistentVolumeRestoreMode>
Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored.
- conflictPolicy
- Nullable<KubernetesClusterRestoreExistingResourcePolicy>
Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore.
- namespaceMappings
- IDictionary<String,String>
Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore.
- restoreHookReferences
- IEnumerable<NamespacedName>
Gets or sets the restore hook references. This property sets the hook reference to be executed during restore.
- resourceModifierReference
- NamespacedName
Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore.
Returns
A new KubernetesClusterRestoreCriteria instance for mocking.