Optional. This defines a customer managed encryption key that will be used to encrypt the "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): Config backup artifacts will not be encrypted.
↳ permissive_mode
bool
Optional. If false, Backups will fail when Backup for GKE detects Kubernetes configuration that is non-standard or requires additional setup to restore. Default: False
getAllNamespaces
If True, include all namespaced resources
Returns
Type
Description
bool
hasAllNamespaces
setAllNamespaces
If True, include all namespaced resources
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getSelectedNamespaces
If set, include just the resources in the listed namespaces.
Optional. This flag specifies whether volume data should be backed up
when PVCs are included in the scope of a Backup.
Default: False
Returns
Type
Description
bool
setIncludeVolumeData
Optional. This flag specifies whether volume data should be backed up
when PVCs are included in the scope of a Backup.
Default: False
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getIncludeSecrets
Optional. This flag specifies whether Kubernetes Secret resources should
be included when they fall into the scope of Backups.
Default: False
Returns
Type
Description
bool
setIncludeSecrets
Optional. This flag specifies whether Kubernetes Secret resources should
be included when they fall into the scope of Backups.
Default: False
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getEncryptionKey
Optional. This defines a customer managed encryption key that will be
used to encrypt the "config" portion (the Kubernetes resources) of
Backups created via this plan.
Default (empty): Config backup artifacts will not be encrypted.
Optional. This defines a customer managed encryption key that will be
used to encrypt the "config" portion (the Kubernetes resources) of
Backups created via this plan.
Default (empty): Config backup artifacts will not be encrypted.
Optional. If false, Backups will fail when Backup for GKE detects
Kubernetes configuration that is non-standard or
requires additional setup to restore.
Default: False
Returns
Type
Description
bool
setPermissiveMode
Optional. If false, Backups will fail when Backup for GKE detects
Kubernetes configuration that is non-standard or
requires additional setup to restore.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Gke Backup V1 Client - Class BackupConfig (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.BackupConfig)\n- [1.2.0](/php/docs/reference/cloud-gke-backup/1.2.0/V1.BackupPlan.BackupConfig)\n- [1.0.3](/php/docs/reference/cloud-gke-backup/1.0.3/V1.BackupPlan.BackupConfig)\n- [0.8.1](/php/docs/reference/cloud-gke-backup/0.8.1/V1.BackupPlan.BackupConfig)\n- [0.7.2](/php/docs/reference/cloud-gke-backup/0.7.2/V1.BackupPlan.BackupConfig)\n- [0.6.0](/php/docs/reference/cloud-gke-backup/0.6.0/V1.BackupPlan.BackupConfig)\n- [0.5.3](/php/docs/reference/cloud-gke-backup/0.5.3/V1.BackupPlan.BackupConfig)\n- [0.4.0](/php/docs/reference/cloud-gke-backup/0.4.0/V1.BackupPlan.BackupConfig)\n- [0.3.1](/php/docs/reference/cloud-gke-backup/0.3.1/V1.BackupPlan.BackupConfig)\n- [0.2.0](/php/docs/reference/cloud-gke-backup/0.2.0/V1.BackupPlan.BackupConfig)\n- [0.1.7](/php/docs/reference/cloud-gke-backup/0.1.7/V1.BackupPlan.BackupConfig) \nReference documentation and code samples for the Google Cloud Gke Backup V1 Client class BackupConfig.\n\nBackupConfig defines the configuration of Backups created via this\nBackupPlan.\n\nGenerated from protobuf message `google.cloud.gkebackup.v1.BackupPlan.BackupConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeBackup \\\\ V1 \\\\ BackupPlan\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAllNamespaces\n\nIf True, include all namespaced resources\n\n### hasAllNamespaces\n\n### setAllNamespaces\n\nIf True, include all namespaced resources\n\n### getSelectedNamespaces\n\nIf set, include just the resources in the listed namespaces.\n\n### hasSelectedNamespaces\n\n### setSelectedNamespaces\n\nIf set, include just the resources in the listed namespaces.\n\n### getSelectedApplications\n\nIf set, include just the resources referenced by the listed\nProtectedApplications.\n\n### hasSelectedApplications\n\n### setSelectedApplications\n\nIf set, include just the resources referenced by the listed\nProtectedApplications.\n\n### getIncludeVolumeData\n\nOptional. This flag specifies whether volume data should be backed up\nwhen PVCs are included in the scope of a Backup.\n\nDefault: False\n\n### setIncludeVolumeData\n\nOptional. This flag specifies whether volume data should be backed up\nwhen PVCs are included in the scope of a Backup.\n\nDefault: False\n\n### getIncludeSecrets\n\nOptional. This flag specifies whether Kubernetes Secret resources should\nbe included when they fall into the scope of Backups.\n\nDefault: False\n\n### setIncludeSecrets\n\nOptional. This flag specifies whether Kubernetes Secret resources should\nbe included when they fall into the scope of Backups.\n\nDefault: False\n\n### getEncryptionKey\n\nOptional. This defines a customer managed encryption key that will be\nused to encrypt the \"config\" portion (the Kubernetes resources) of\nBackups created via this plan.\n\nDefault (empty): Config backup artifacts will not be encrypted.\n\n### hasEncryptionKey\n\n### clearEncryptionKey\n\n### setEncryptionKey\n\nOptional. This defines a customer managed encryption key that will be\nused to encrypt the \"config\" portion (the Kubernetes resources) of\nBackups created via this plan.\n\nDefault (empty): Config backup artifacts will not be encrypted.\n\n### getPermissiveMode\n\nOptional. If false, Backups will fail when Backup for GKE detects\nKubernetes configuration that is non-standard or\nrequires additional setup to restore.\n\nDefault: False\n\n### setPermissiveMode\n\nOptional. If false, Backups will fail when Backup for GKE detects\nKubernetes configuration that is non-standard or\nrequires additional setup to restore.\n\nDefault: False\n\n### getBackupScope"]]