Class: Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::AzureVmWorkloadProtectionPolicy

Inherits:
ProtectionPolicy
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb

Overview

Azure VM (Mercury) workload-specific backup policy.

Instance Attribute Summary collapse

Attributes inherited from ProtectionPolicy

#protected_items_count

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAzureVmWorkloadProtectionPolicy

Returns a new instance of AzureVmWorkloadProtectionPolicy.



16
17
18
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 16

def initialize
  @backupManagementType = "AzureWorkload"
end

Instance Attribute Details

#backupManagementTypeObject

Returns the value of attribute backupManagementType.



20
21
22
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 20

def backupManagementType
  @backupManagementType
end

#make_policy_consistentBoolean

Returns Fix the policy inconsistency.

Returns:

  • (Boolean)

    Fix the policy inconsistency



37
38
39
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 37

def make_policy_consistent
  @make_policy_consistent
end

#settingsSettings

Returns Common settings for the backup management.

Returns:

  • (Settings)

    Common settings for the backup management



30
31
32
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 30

def settings
  @settings
end

#sub_protection_policyArray<SubProtectionPolicy>

which includes schedule and retention

Returns:



34
35
36
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 34

def sub_protection_policy
  @sub_protection_policy
end

#work_load_typeWorkloadType

Possible values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘VMwareVM’, ‘SystemState’, ‘Client’, ‘GenericDataSource’, ‘SQLDataBase’, ‘AzureFileShare’, ‘SAPHanaDatabase’, ‘SAPAseDatabase’

Returns:

  • (WorkloadType)

    Type of workload for the backup management.



27
28
29
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 27

def work_load_type
  @work_load_type
end

Class Method Details

.mapperObject

Mapper for AzureVmWorkloadProtectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.



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
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureWorkload',
    type: {
      name: 'Composite',
      class_name: 'AzureVmWorkloadProtectionPolicy',
      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'
          }
        },
        work_load_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workLoadType',
          type: {
            name: 'String'
          }
        },
        settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'settings',
          type: {
            name: 'Composite',
            class_name: 'Settings'
          }
        },
        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'
                }
            }
          }
        },
        make_policy_consistent: {
          client_side_validation: true,
          required: false,
          serialized_name: 'makePolicyConsistent',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end