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?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #include_volume_data  ⇒ Boolean 
    
    
      (also: #include_volume_data?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #permissive_mode  ⇒ Boolean 
    
    
      (also: #permissive_mode?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #selected_applications  ⇒ Google::Apis::GkebackupV1::NamespacedNames 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of namespaced Kubernetes resources. 
- 
  
    
      #selected_namespaces  ⇒ Google::Apis::GkebackupV1::Namespaces 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of Kubernetes Namespaces. 
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.
| 361 362 363 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 361 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
| 320 321 322 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 320 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
| 327 328 329 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 327 def encryption_key @encryption_key end | 
#include_secrets ⇒ Boolean Also known as: include_secrets?
Optional. 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
| 333 334 335 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 333 def include_secrets @include_secrets end | 
#include_volume_data ⇒ Boolean Also known as: include_volume_data?
Optional. 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
| 340 341 342 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 340 def include_volume_data @include_volume_data end | 
#permissive_mode ⇒ Boolean Also known as: permissive_mode?
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
Corresponds to the JSON property permissiveMode
| 348 349 350 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 348 def permissive_mode @permissive_mode end | 
#selected_applications ⇒ Google::Apis::GkebackupV1::NamespacedNames
A list of namespaced Kubernetes resources.
Corresponds to the JSON property selectedApplications
| 354 355 356 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 354 def selected_applications @selected_applications end | 
#selected_namespaces ⇒ Google::Apis::GkebackupV1::Namespaces
A list of Kubernetes Namespaces.
Corresponds to the JSON property selectedNamespaces
| 359 360 361 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 359 def selected_namespaces @selected_namespaces end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 366 367 368 369 370 371 372 373 374 | # File 'lib/google/apis/gkebackup_v1/classes.rb', line 366 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) @permissive_mode = args[:permissive_mode] if args.key?(:permissive_mode) @selected_applications = args[:selected_applications] if args.key?(:selected_applications) @selected_namespaces = args[:selected_namespaces] if args.key?(:selected_namespaces) end |