Class: Azure::ServiceFabric::V6_3_0_9::Models::BackupPolicyDescription
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_3_0_9::Models::BackupPolicyDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/backup_policy_description.rb
Overview
Describes a backup policy for configuring periodic backup.
Instance Attribute Summary collapse
-
#auto_restore_on_data_loss ⇒ Boolean
using the latest available backup in case the partition experiences a data loss event.
-
#max_incremental_backups ⇒ Integer
be taken between two full backups.
-
#name ⇒ String
The unique name identifying this backup policy.
-
#schedule ⇒ BackupScheduleDescription
parameters.
-
#storage ⇒ BackupStorageDescription
storage where to store the periodic backups.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BackupPolicyDescription class as Ruby Hash.
Instance Attribute Details
#auto_restore_on_data_loss ⇒ Boolean
using the latest available backup in case the partition experiences a data loss event.
21 22 23 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/backup_policy_description.rb', line 21 def auto_restore_on_data_loss @auto_restore_on_data_loss end |
#max_incremental_backups ⇒ Integer
be taken between two full backups. This is just the upper limit. A full backup may be taken before specified number of incremental backups are completed in one of the following conditions
-
The replica has never taken a full backup since it has become
primary,
-
Some of the log records since the last backup has been truncated, or
-
Replica passed the MaxAccumulatedBackupLogSizeInMB limit.
31 32 33 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/backup_policy_description.rb', line 31 def max_incremental_backups @max_incremental_backups end |
#name ⇒ String
Returns The unique name identifying this backup policy.
16 17 18 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/backup_policy_description.rb', line 16 def name @name end |
#schedule ⇒ BackupScheduleDescription
parameters.
35 36 37 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/backup_policy_description.rb', line 35 def schedule @schedule end |
#storage ⇒ BackupStorageDescription
storage where to store the periodic backups.
39 40 41 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/backup_policy_description.rb', line 39 def storage @storage end |
Class Method Details
.mapper ⇒ Object
Mapper for BackupPolicyDescription class as Ruby Hash. This will be used for serialization/deserialization.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/backup_policy_description.rb', line 46 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'BackupPolicyDescription', type: { name: 'Composite', class_name: 'BackupPolicyDescription', model_properties: { name: { client_side_validation: true, required: true, serialized_name: 'Name', type: { name: 'String' } }, auto_restore_on_data_loss: { client_side_validation: true, required: true, serialized_name: 'AutoRestoreOnDataLoss', type: { name: 'Boolean' } }, max_incremental_backups: { client_side_validation: true, required: true, serialized_name: 'MaxIncrementalBackups', constraints: { InclusiveMaximum: 255, InclusiveMinimum: 0 }, type: { name: 'Number' } }, schedule: { client_side_validation: true, required: true, serialized_name: 'Schedule', type: { name: 'Composite', polymorphic_discriminator: 'ScheduleKind', uber_parent: 'BackupScheduleDescription', class_name: 'BackupScheduleDescription' } }, storage: { client_side_validation: true, required: true, serialized_name: 'Storage', type: { name: 'Composite', polymorphic_discriminator: 'StorageKind', uber_parent: 'BackupStorageDescription', class_name: 'BackupStorageDescription' } } } } } end |