Class: Google::Apis::NetappV1::BackupConfig
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::BackupConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/netapp_v1/classes.rb,
lib/google/apis/netapp_v1/representations.rb,
lib/google/apis/netapp_v1/representations.rb
Overview
BackupConfig contains backup related config on a volume.
Instance Attribute Summary collapse
-
#backup_chain_bytes ⇒ Fixnum
Output only.
-
#backup_policies ⇒ Array<String>
Optional.
-
#backup_vault ⇒ String
Optional.
-
#scheduled_backup_enabled ⇒ Boolean
(also: #scheduled_backup_enabled?)
Optional.
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.
294 295 296 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 294 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_chain_bytes ⇒ Fixnum
Output only. Total size of all backups in a chain in bytes = baseline backup
size + sum(incremental backup size).
Corresponds to the JSON property backupChainBytes
273 274 275 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 273 def backup_chain_bytes @backup_chain_bytes end |
#backup_policies ⇒ Array<String>
Optional. When specified, schedule backups will be created based on the policy
configuration.
Corresponds to the JSON property backupPolicies
279 280 281 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 279 def backup_policies @backup_policies end |
#backup_vault ⇒ String
Optional. Name of backup vault. Format: projects/project_id
/locations/
location
/backupVaults/backup_vault_id
Corresponds to the JSON property backupVault
285 286 287 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 285 def backup_vault @backup_vault end |
#scheduled_backup_enabled ⇒ Boolean Also known as: scheduled_backup_enabled?
Optional. When set to true, scheduled backup is enabled on the volume. This
field should be nil when there's no backup policy attached.
Corresponds to the JSON property scheduledBackupEnabled
291 292 293 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 291 def scheduled_backup_enabled @scheduled_backup_enabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
299 300 301 302 303 304 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 299 def update!(**args) @backup_chain_bytes = args[:backup_chain_bytes] if args.key?(:backup_chain_bytes) @backup_policies = args[:backup_policies] if args.key?(:backup_policies) @backup_vault = args[:backup_vault] if args.key?(:backup_vault) @scheduled_backup_enabled = args[:scheduled_backup_enabled] if args.key?(:scheduled_backup_enabled) end |