Class: Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectionPolicy
- Inherits:
-
ProtectionPolicy
- Object
- ProtectionPolicy
- Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb
Overview
Azure SQL workload-specific backup policy.
Instance Attribute Summary collapse
-
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
-
#retention_policy ⇒ RetentionPolicy
Retention policy details.
Attributes inherited from ProtectionPolicy
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AzureSqlProtectionPolicy class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AzureSqlProtectionPolicy
constructor
A new instance of AzureSqlProtectionPolicy.
Constructor Details
#initialize ⇒ AzureSqlProtectionPolicy
Returns a new instance of AzureSqlProtectionPolicy.
20 21 22 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb', line 20 def initialize @backupManagementType = "AzureSql" end |
Instance Attribute Details
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
24 25 26 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb', line 24 def backupManagementType @backupManagementType end |
#retention_policy ⇒ RetentionPolicy
Returns Retention policy details.
27 28 29 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb', line 27 def retention_policy @retention_policy end |
Class Method Details
.mapper ⇒ Object
Mapper for AzureSqlProtectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
34 35 36 37 38 39 40 41 42 43 44 45 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 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AzureSql', type: { name: 'Composite', class_name: 'AzureSqlProtectionPolicy', model_properties: { protected_items_count: { client_side_validation: true, required: false, serialized_name: 'protectedItemsCount', type: { name: 'Number' } }, backupManagementType: { client_side_validation: true, required: true, serialized_name: 'backupManagementType', type: { name: 'String' } }, retention_policy: { client_side_validation: true, required: false, serialized_name: 'retentionPolicy', type: { name: 'Composite', polymorphic_discriminator: 'retentionPolicyType', uber_parent: 'RetentionPolicy', class_name: 'RetentionPolicy' } } } } } end |