RestorePlanRestoreConfigArgs

data class RestorePlanRestoreConfigArgs(val allNamespaces: Output<Boolean>? = null, val clusterResourceConflictPolicy: Output<String>? = null, val clusterResourceRestoreScope: Output<RestorePlanRestoreConfigClusterResourceRestoreScopeArgs>? = null, val excludedNamespaces: Output<RestorePlanRestoreConfigExcludedNamespacesArgs>? = null, val namespacedResourceRestoreMode: Output<String>? = null, val noNamespaces: Output<Boolean>? = null, val selectedApplications: Output<RestorePlanRestoreConfigSelectedApplicationsArgs>? = null, val selectedNamespaces: Output<RestorePlanRestoreConfigSelectedNamespacesArgs>? = null, val transformationRules: Output<List<RestorePlanRestoreConfigTransformationRuleArgs>>? = null, val volumeDataRestorePolicy: Output<String>? = null) : ConvertibleToJava<RestorePlanRestoreConfigArgs>

Constructors

Link copied to clipboard
constructor(allNamespaces: Output<Boolean>? = null, clusterResourceConflictPolicy: Output<String>? = null, clusterResourceRestoreScope: Output<RestorePlanRestoreConfigClusterResourceRestoreScopeArgs>? = null, excludedNamespaces: Output<RestorePlanRestoreConfigExcludedNamespacesArgs>? = null, namespacedResourceRestoreMode: Output<String>? = null, noNamespaces: Output<Boolean>? = null, selectedApplications: Output<RestorePlanRestoreConfigSelectedApplicationsArgs>? = null, selectedNamespaces: Output<RestorePlanRestoreConfigSelectedNamespacesArgs>? = null, transformationRules: Output<List<RestorePlanRestoreConfigTransformationRuleArgs>>? = null, volumeDataRestorePolicy: Output<String>? = null)

Properties

Link copied to clipboard
val allNamespaces: Output<Boolean>? = null

If True, restore all namespaced resources in the Backup. Setting this field to False will result in an error.

Link copied to clipboard

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 clusterResourceRestoreScope is anyting other than noGroupKinds. See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#clusterresourceconflictpolicy for more information on each policy option. Possible values are: USE_EXISTING_VERSION, USE_BACKUP_VERSION.

Link copied to clipboard

Identifies the cluster-scoped resources to restore from the Backup. Structure is documented below.

Link copied to clipboard

A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored. Structure is documented below.

Link copied to clipboard

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 if the namespacedResourceRestoreScope is anything other than noNamespaces. See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#namespacedresourcerestoremode for more information on each mode. Possible values are: DELETE_AND_RESTORE, FAIL_ON_CONFLICT.

Link copied to clipboard
val noNamespaces: Output<Boolean>? = null

Do not restore any namespaced resources if set to "True". Specifying this field to "False" is not allowed.

Link copied to clipboard

A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored. Structure is documented below.

Link copied to clipboard

A list of selected namespaces to restore from the Backup. The listed Namespaces and all resources contained in them will be restored. Structure is documented below.

Link copied to clipboard

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. Structure is documented below.

Link copied to clipboard
val volumeDataRestorePolicy: Output<String>? = null

Specifies the mechanism to be used to restore volume data. This should be set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED if the namespacedResourceRestoreScope is anything other than noNamespaces. If not specified, it will be treated as NO_VOLUME_DATA_RESTORATION. See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#VolumeDataRestorePolicy for more information on each policy option. Possible values are: RESTORE_VOLUME_DATA_FROM_BACKUP, REUSE_VOLUME_HANDLE_FROM_BACKUP, NO_VOLUME_DATA_RESTORATION.

Functions

Link copied to clipboard
open override fun toJava(): RestorePlanRestoreConfigArgs