Class: Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::AzureIaaSVMProtectionPolicy

Inherits:
ProtectionPolicy
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb

Overview

IaaS VM 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

#initializeAzureIaaSVMProtectionPolicy

Returns a new instance of AzureIaaSVMProtectionPolicy.



16
17
18
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 16

def initialize
  @backupManagementType = "AzureIaasVM"
end

Instance Attribute Details

#backupManagementTypeObject

Returns the value of attribute backupManagementType.



20
21
22
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 20

def backupManagementType
  @backupManagementType
end

#instant_rp_retention_range_in_daysInteger

Returns Instant RP retention policy range in days.

Returns:

  • (Integer)

    Instant RP retention policy range in days



34
35
36
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 34

def instant_rp_retention_range_in_days
  @instant_rp_retention_range_in_days
end

#instant_rpdetailsInstantRPAdditionalDetails



23
24
25
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 23

def instant_rpdetails
  @instant_rpdetails
end

#retention_policyRetentionPolicy

copy retention ranges.

Returns:



31
32
33
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 31

def retention_policy
  @retention_policy
end

#schedule_policySchedulePolicy

policy.

Returns:



27
28
29
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 27

def schedule_policy
  @schedule_policy
end

#time_zoneString

TimeZone = “Pacific Standard Time”.

Returns:

  • (String)

    TimeZone optional input as string. For example:



38
39
40
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 38

def time_zone
  @time_zone
end

Class Method Details

.mapperObject

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



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
115
116
117
118
119
120
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 45

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureIaasVM',
    type: {
      name: 'Composite',
      class_name: 'AzureIaaSVMProtectionPolicy',
      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'
          }
        },
        instant_rpdetails: {
          client_side_validation: true,
          required: false,
          serialized_name: 'instantRPDetails',
          type: {
            name: 'Composite',
            class_name: 'InstantRPAdditionalDetails'
          }
        },
        schedule_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'schedulePolicy',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'schedulePolicyType',
            uber_parent: 'SchedulePolicy',
            class_name: 'SchedulePolicy'
          }
        },
        retention_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'retentionPolicy',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'retentionPolicyType',
            uber_parent: 'RetentionPolicy',
            class_name: 'RetentionPolicy'
          }
        },
        instant_rp_retention_range_in_days: {
          client_side_validation: true,
          required: false,
          serialized_name: 'instantRpRetentionRangeInDays',
          type: {
            name: 'Number'
          }
        },
        time_zone: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeZone',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end