Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericProtectionPolicy
- Inherits:
-
ProtectionPolicy
- Object
- ProtectionPolicy
- Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericProtectionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb
Overview
Azure VM (Mercury) workload-specific backup policy.
Instance Attribute Summary collapse
-
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
-
#fabric_name ⇒ String
Name of this policy’s fabric.
-
#sub_protection_policy ⇒ Array<SubProtectionPolicy>
which includes schedule and retention.
-
#time_zone ⇒ String
TimeZone = “Pacific Standard Time”.
Attributes inherited from ProtectionPolicy
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for GenericProtectionPolicy class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ GenericProtectionPolicy
constructor
A new instance of GenericProtectionPolicy.
Constructor Details
#initialize ⇒ GenericProtectionPolicy
Returns a new instance of GenericProtectionPolicy.
20 21 22 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb', line 20 def initialize @backupManagementType = "GenericProtectionPolicy" end |
Instance Attribute Details
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
24 25 26 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb', line 24 def backupManagementType @backupManagementType end |
#fabric_name ⇒ String
Returns Name of this policy’s fabric.
35 36 37 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb', line 35 def fabric_name @fabric_name end |
#sub_protection_policy ⇒ Array<SubProtectionPolicy>
which includes schedule and retention
28 29 30 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb', line 28 def sub_protection_policy @sub_protection_policy end |
#time_zone ⇒ String
TimeZone = “Pacific Standard Time”.
32 33 34 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb', line 32 def time_zone @time_zone end |
Class Method Details
.mapper ⇒ Object
Mapper for GenericProtectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'GenericProtectionPolicy', type: { name: 'Composite', class_name: 'GenericProtectionPolicy', 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' } }, sub_protection_policy: { client_side_validation: true, required: false, serialized_name: 'subProtectionPolicy', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'SubProtectionPolicyElementType', type: { name: 'Composite', class_name: 'SubProtectionPolicy' } } } }, time_zone: { client_side_validation: true, required: false, serialized_name: 'timeZone', type: { name: 'String' } }, fabric_name: { client_side_validation: true, required: false, serialized_name: 'fabricName', type: { name: 'String' } } } } } end |