Class: Google::Apis::NetappV1::BackupPolicy
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::BackupPolicy
- 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
Backup Policy.
Instance Attribute Summary collapse
-
#assigned_volume_count ⇒ Fixnum
Output only.
-
#create_time ⇒ String
Output only.
-
#daily_backup_limit ⇒ Fixnum
Number of daily backups to keep.
-
#description ⇒ String
Description of the backup policy.
-
#enabled ⇒ Boolean
(also: #enabled?)
If enabled, make backups automatically according to the schedules.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
-
#monthly_backup_limit ⇒ Fixnum
Number of monthly backups to keep.
-
#name ⇒ String
Identifier.
-
#state ⇒ String
Output only.
-
#weekly_backup_limit ⇒ Fixnum
Number of weekly backups to keep.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupPolicy
constructor
A new instance of BackupPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupPolicy
Returns a new instance of BackupPolicy.
367 368 369 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 367 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assigned_volume_count ⇒ Fixnum
Output only. The total number of volumes assigned by this backup policy.
Corresponds to the JSON property assignedVolumeCount
314 315 316 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 314 def assigned_volume_count @assigned_volume_count end |
#create_time ⇒ String
Output only. The time when the backup policy was created.
Corresponds to the JSON property createTime
319 320 321 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 319 def create_time @create_time end |
#daily_backup_limit ⇒ Fixnum
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
Corresponds to the JSON property dailyBackupLimit
324 325 326 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 324 def daily_backup_limit @daily_backup_limit end |
#description ⇒ String
Description of the backup policy.
Corresponds to the JSON property description
329 330 331 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 329 def description @description end |
#enabled ⇒ Boolean Also known as: enabled?
If enabled, make backups automatically according to the schedules. This will
be applied to all volumes that have this policy attached and enforced on
volume level. If not specified, default is true.
Corresponds to the JSON property enabled
336 337 338 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 336 def enabled @enabled end |
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
Corresponds to the JSON property labels
342 343 344 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 342 def labels @labels end |
#monthly_backup_limit ⇒ Fixnum
Number of monthly backups to keep. Note that the sum of daily, weekly and
monthly backups should be greater than 1.
Corresponds to the JSON property monthlyBackupLimit
348 349 350 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 348 def monthly_backup_limit @monthly_backup_limit end |
#name ⇒ String
Identifier. The resource name of the backup policy. Format: projects/
project_id/locations/
location/backupPolicies/
backup_policy_id`.
Corresponds to the JSON property
name`
354 355 356 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 354 def name @name end |
#state ⇒ String
Output only. The backup policy state.
Corresponds to the JSON property state
359 360 361 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 359 def state @state end |
#weekly_backup_limit ⇒ Fixnum
Number of weekly backups to keep. Note that the sum of daily, weekly and
monthly backups should be greater than 1.
Corresponds to the JSON property weeklyBackupLimit
365 366 367 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 365 def weekly_backup_limit @weekly_backup_limit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 372 def update!(**args) @assigned_volume_count = args[:assigned_volume_count] if args.key?(:assigned_volume_count) @create_time = args[:create_time] if args.key?(:create_time) @daily_backup_limit = args[:daily_backup_limit] if args.key?(:daily_backup_limit) @description = args[:description] if args.key?(:description) @enabled = args[:enabled] if args.key?(:enabled) @labels = args[:labels] if args.key?(:labels) @monthly_backup_limit = args[:monthly_backup_limit] if args.key?(:monthly_backup_limit) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @weekly_backup_limit = args[:weekly_backup_limit] if args.key?(:weekly_backup_limit) end |