Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericProtectionPolicy

Inherits:
ProtectionPolicy
  • Object
show all
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

Attributes inherited from ProtectionPolicy

#protected_items_count

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGenericProtectionPolicy

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

#backupManagementTypeObject

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_nameString

Returns Name of this policy’s fabric.

Returns:

  • (String)

    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_policyArray<SubProtectionPolicy>

which includes schedule and retention

Returns:



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_zoneString

TimeZone = “Pacific Standard Time”.

Returns:

  • (String)

    TimeZone optional input as string. For example:



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

.mapperObject

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