Class: Google::Apis::GkebackupV1::BackupConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::BackupConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb
Overview
BackupConfig defines the configuration of Backups created via this BackupPlan.
Instance Attribute Summary collapse
-
#all_namespaces ⇒ Boolean
(also: #all_namespaces?)
If True, include all namespaced resources Corresponds to the JSON property
allNamespaces. -
#encryption_key ⇒ Google::Apis::GkebackupV1::EncryptionKey
Defined a customer managed encryption key that will be used to encrypt Backup artifacts.
-
#include_secrets ⇒ Boolean
(also: #include_secrets?)
This flag specifies whether Kubernetes Secret resources should be included when they fall into the scope of Backups.
-
#include_volume_data ⇒ Boolean
(also: #include_volume_data?)
This flag specifies whether volume data should be backed up when PVCs are included in the scope of a Backup.
-
#selected_applications ⇒ Google::Apis::GkebackupV1::NamespacedNames
A list of namespaced Kubernetes resources.
-
#selected_namespaces ⇒ Google::Apis::GkebackupV1::Namespaces
A list of Kubernetes Namespaces Corresponds to the JSON property
selectedNamespaces.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupConfig
constructor
A new instance of BackupConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupConfig
Returns a new instance of BackupConfig.
350 351 352 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 350 def initialize(**args) update!(**args) end |
Instance Attribute Details
#all_namespaces ⇒ Boolean Also known as: all_namespaces?
If True, include all namespaced resources
Corresponds to the JSON property allNamespaces
317 318 319 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 317 def all_namespaces @all_namespaces end |
#encryption_key ⇒ Google::Apis::GkebackupV1::EncryptionKey
Defined a customer managed encryption key that will be used to encrypt Backup
artifacts.
Corresponds to the JSON property encryptionKey
324 325 326 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 324 def encryption_key @encryption_key end |
#include_secrets ⇒ Boolean Also known as: include_secrets?
This flag specifies whether Kubernetes Secret resources should be included
when they fall into the scope of Backups. Default: False
Corresponds to the JSON property includeSecrets
330 331 332 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 330 def include_secrets @include_secrets end |
#include_volume_data ⇒ Boolean Also known as: include_volume_data?
This flag specifies whether volume data should be backed up when PVCs are
included in the scope of a Backup. Default: False
Corresponds to the JSON property includeVolumeData
337 338 339 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 337 def include_volume_data @include_volume_data end |
#selected_applications ⇒ Google::Apis::GkebackupV1::NamespacedNames
A list of namespaced Kubernetes resources.
Corresponds to the JSON property selectedApplications
343 344 345 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 343 def selected_applications @selected_applications end |
#selected_namespaces ⇒ Google::Apis::GkebackupV1::Namespaces
A list of Kubernetes Namespaces
Corresponds to the JSON property selectedNamespaces
348 349 350 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 348 def selected_namespaces @selected_namespaces end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
355 356 357 358 359 360 361 362 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 355 def update!(**args) @all_namespaces = args[:all_namespaces] if args.key?(:all_namespaces) @encryption_key = args[:encryption_key] if args.key?(:encryption_key) @include_secrets = args[:include_secrets] if args.key?(:include_secrets) @include_volume_data = args[:include_volume_data] if args.key?(:include_volume_data) @selected_applications = args[:selected_applications] if args.key?(:selected_applications) @selected_namespaces = args[:selected_namespaces] if args.key?(:selected_namespaces) end |