azure_mgmt_recovery_services_backup 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_recovery_services_backup.rb +5 -0
  4. data/lib/generated/azure_mgmt_recovery_services_backup.rb +175 -0
  5. data/lib/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +253 -0
  6. data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +128 -0
  7. data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +136 -0
  8. data/lib/generated/azure_mgmt_recovery_services_backup/backups.rb +149 -0
  9. data/lib/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +124 -0
  10. data/lib/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +276 -0
  11. data/lib/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +116 -0
  12. data/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb +124 -0
  13. data/lib/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +117 -0
  14. data/lib/generated/azure_mgmt_recovery_services_backup/jobs.rb +369 -0
  15. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb +92 -0
  16. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb +107 -0
  17. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb +77 -0
  18. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +136 -0
  19. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb +107 -0
  20. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb +77 -0
  21. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +137 -0
  22. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb +82 -0
  23. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb +169 -0
  24. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb +91 -0
  25. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb +104 -0
  26. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +165 -0
  27. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb +68 -0
  28. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb +83 -0
  29. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb +85 -0
  30. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +121 -0
  31. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb +67 -0
  32. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb +68 -0
  33. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb +112 -0
  34. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource.rb +97 -0
  35. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource_list.rb +90 -0
  36. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb +22 -0
  37. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +20 -0
  38. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request.rb +46 -0
  39. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request_resource.rb +97 -0
  40. data/lib/generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb +65 -0
  41. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb +47 -0
  42. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb +68 -0
  43. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb +67 -0
  44. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb +54 -0
  45. data/lib/generated/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb +67 -0
  46. data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb +52 -0
  47. data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb +62 -0
  48. data/lib/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb +22 -0
  49. data/lib/generated/azure_mgmt_recovery_services_backup/models/day.rb +54 -0
  50. data/lib/generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb +21 -0
  51. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb +92 -0
  52. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb +62 -0
  53. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb +198 -0
  54. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb +80 -0
  55. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb +84 -0
  56. data/lib/generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb +87 -0
  57. data/lib/generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb +70 -0
  58. data/lib/generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb +89 -0
  59. data/lib/generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb +45 -0
  60. data/lib/generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb +61 -0
  61. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb +118 -0
  62. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb +82 -0
  63. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmbackup_request.rb +60 -0
  64. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmilrregistration_request.rb +92 -0
  65. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +124 -0
  66. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +202 -0
  67. data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb +45 -0
  68. data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb +96 -0
  69. data/lib/generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb +52 -0
  70. data/lib/generated/azure_mgmt_recovery_services_backup/models/job.rb +121 -0
  71. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +20 -0
  72. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb +103 -0
  73. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource.rb +96 -0
  74. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb +90 -0
  75. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_status.rb +21 -0
  76. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb +17 -0
  77. data/lib/generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb +67 -0
  78. data/lib/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb +63 -0
  79. data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb +96 -0
  80. data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb +48 -0
  81. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container.rb +137 -0
  82. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb +95 -0
  83. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb +61 -0
  84. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +149 -0
  85. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb +66 -0
  86. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job.rb +194 -0
  87. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb +79 -0
  88. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb +84 -0
  89. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb +82 -0
  90. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb +25 -0
  91. data/lib/generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb +27 -0
  92. data/lib/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb +99 -0
  93. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb +65 -0
  94. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb +46 -0
  95. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb +76 -0
  96. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb +114 -0
  97. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_error.rb +54 -0
  98. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb +47 -0
  99. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_job_extended_info.rb +58 -0
  100. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_jobs_extended_info.rb +83 -0
  101. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_provision_ilrextended_info.rb +61 -0
  102. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_values.rb +19 -0
  103. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb +83 -0
  104. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb +107 -0
  105. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb +81 -0
  106. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb +96 -0
  107. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb +90 -0
  108. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb +20 -0
  109. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb +110 -0
  110. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb +97 -0
  111. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource_list.rb +90 -0
  112. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb +58 -0
  113. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb +47 -0
  114. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb +97 -0
  115. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb +90 -0
  116. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_state.rb +20 -0
  117. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_status.rb +18 -0
  118. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb +47 -0
  119. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb +97 -0
  120. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb +90 -0
  121. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb +18 -0
  122. data/lib/generated/azure_mgmt_recovery_services_backup/models/resource_list.rb +45 -0
  123. data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request.rb +46 -0
  124. data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb +97 -0
  125. data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb +60 -0
  126. data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb +19 -0
  127. data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb +46 -0
  128. data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb +17 -0
  129. data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +46 -0
  130. data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb +17 -0
  131. data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb +60 -0
  132. data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb +108 -0
  133. data/lib/generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb +19 -0
  134. data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb +70 -0
  135. data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb +81 -0
  136. data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb +80 -0
  137. data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb +97 -0
  138. data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb +90 -0
  139. data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb +22 -0
  140. data/lib/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb +119 -0
  141. data/lib/generated/azure_mgmt_recovery_services_backup/module_definition.rb +8 -0
  142. data/lib/generated/azure_mgmt_recovery_services_backup/protectable_items.rb +276 -0
  143. data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +142 -0
  144. data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +154 -0
  145. data/lib/generated/azure_mgmt_recovery_services_backup/protected_items.rb +609 -0
  146. data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +135 -0
  147. data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +120 -0
  148. data/lib/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +538 -0
  149. data/lib/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +566 -0
  150. data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +131 -0
  151. data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +143 -0
  152. data/lib/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +386 -0
  153. data/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +215 -0
  154. data/lib/generated/azure_mgmt_recovery_services_backup/restores.rb +150 -0
  155. data/lib/generated/azure_mgmt_recovery_services_backup/version.rb +8 -0
  156. metadata +268 -0
@@ -0,0 +1,18 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # Defines values for RecoveryType
10
+ #
11
+ module RecoveryType
12
+ Invalid = "Invalid"
13
+ OriginalLocation = "OriginalLocation"
14
+ AlternateLocation = "AlternateLocation"
15
+ RestoreDisks = "RestoreDisks"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,45 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # Base for all lists of resources.
10
+ #
11
+ class ResourceList
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The URI to GET the next page of resources. Call
16
+ # ListNext() gets the next page of resources.
17
+ attr_accessor :next_link
18
+
19
+
20
+ #
21
+ # Mapper for ResourceList class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'ResourceList',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ResourceList',
31
+ model_properties: {
32
+ next_link: {
33
+ required: false,
34
+ serialized_name: 'nextLink',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # The base class for restore requests. Workload-specific restore requests
10
+ # are derived from this class.
11
+ #
12
+ class RestoreRequest
13
+
14
+ include MsRestAzure
15
+
16
+ @@discriminatorMap = Hash.new
17
+ @@discriminatorMap["IaasVMRestoreRequest"] = "IaasVMRestoreRequest"
18
+
19
+ def initialize
20
+ @objectType = "RestoreRequest"
21
+ end
22
+
23
+ attr_accessor :objectType
24
+
25
+
26
+ #
27
+ # Mapper for RestoreRequest class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'RestoreRequest',
34
+ type: {
35
+ name: 'Composite',
36
+ polymorphic_discriminator: 'objectType',
37
+ uber_parent: 'RestoreRequest',
38
+ class_name: 'RestoreRequest',
39
+ model_properties: {
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,97 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # The base class for a restore request. Workload-specific restore requests
10
+ # are derived from this class.
11
+ #
12
+ class RestoreRequestResource < MsRestAzure::Resource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [RestoreRequest]
17
+ attr_accessor :properties
18
+
19
+
20
+ #
21
+ # Mapper for RestoreRequestResource class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'RestoreRequestResource',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'RestoreRequestResource',
31
+ model_properties: {
32
+ id: {
33
+ required: false,
34
+ serialized_name: 'id',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ },
39
+ name: {
40
+ required: false,
41
+ serialized_name: 'name',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ type: {
47
+ required: false,
48
+ serialized_name: 'type',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ location: {
54
+ required: false,
55
+ serialized_name: 'location',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ tags: {
61
+ required: false,
62
+ serialized_name: 'tags',
63
+ type: {
64
+ name: 'Dictionary',
65
+ value: {
66
+ required: false,
67
+ serialized_name: 'StringElementType',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ }
72
+ }
73
+ },
74
+ e_tag: {
75
+ required: false,
76
+ serialized_name: 'eTag',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ properties: {
82
+ required: false,
83
+ serialized_name: 'properties',
84
+ type: {
85
+ name: 'Composite',
86
+ polymorphic_discriminator: 'objectType',
87
+ uber_parent: 'RestoreRequest',
88
+ class_name: 'RestoreRequest'
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,60 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # Retention duration.
10
+ #
11
+ class RetentionDuration
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Count of the duration types. Retention duration is
16
+ # determined by the combining the Count times and durationType.
17
+ # For example, if Count = 3 and durationType = Weeks, then the retention
18
+ # duration is three weeks.
19
+ attr_accessor :count
20
+
21
+ # @return [RetentionDurationType] The retention duration type of the
22
+ # retention policy. Possible values include: 'Invalid', 'Days', 'Weeks',
23
+ # 'Months', 'Years'
24
+ attr_accessor :duration_type
25
+
26
+
27
+ #
28
+ # Mapper for RetentionDuration class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'RetentionDuration',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'RetentionDuration',
38
+ model_properties: {
39
+ count: {
40
+ required: false,
41
+ serialized_name: 'count',
42
+ type: {
43
+ name: 'Number'
44
+ }
45
+ },
46
+ duration_type: {
47
+ required: false,
48
+ serialized_name: 'durationType',
49
+ type: {
50
+ name: 'Enum',
51
+ module: 'RetentionDurationType'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,19 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # Defines values for RetentionDurationType
10
+ #
11
+ module RetentionDurationType
12
+ Invalid = "Invalid"
13
+ Days = "Days"
14
+ Weeks = "Weeks"
15
+ Months = "Months"
16
+ Years = "Years"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # The base class for retention policy.
10
+ #
11
+ class RetentionPolicy
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["SimpleRetentionPolicy"] = "SimpleRetentionPolicy"
17
+ @@discriminatorMap["LongTermRetentionPolicy"] = "LongTermRetentionPolicy"
18
+
19
+ def initialize
20
+ @retentionPolicyType = "RetentionPolicy"
21
+ end
22
+
23
+ attr_accessor :retentionPolicyType
24
+
25
+
26
+ #
27
+ # Mapper for RetentionPolicy class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'RetentionPolicy',
34
+ type: {
35
+ name: 'Composite',
36
+ polymorphic_discriminator: 'retentionPolicyType',
37
+ uber_parent: 'RetentionPolicy',
38
+ class_name: 'RetentionPolicy',
39
+ model_properties: {
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # Defines values for RetentionScheduleFormat
10
+ #
11
+ module RetentionScheduleFormat
12
+ Invalid = "Invalid"
13
+ Daily = "Daily"
14
+ Weekly = "Weekly"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # The base class for backup schedules.
10
+ #
11
+ class SchedulePolicy
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["LongTermSchedulePolicy"] = "LongTermSchedulePolicy"
17
+ @@discriminatorMap["SimpleSchedulePolicy"] = "SimpleSchedulePolicy"
18
+
19
+ def initialize
20
+ @schedulePolicyType = "SchedulePolicy"
21
+ end
22
+
23
+ attr_accessor :schedulePolicyType
24
+
25
+
26
+ #
27
+ # Mapper for SchedulePolicy class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'SchedulePolicy',
34
+ type: {
35
+ name: 'Composite',
36
+ polymorphic_discriminator: 'schedulePolicyType',
37
+ uber_parent: 'SchedulePolicy',
38
+ class_name: 'SchedulePolicy',
39
+ model_properties: {
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # Defines values for ScheduleRunType
10
+ #
11
+ module ScheduleRunType
12
+ Invalid = "Invalid"
13
+ Daily = "Daily"
14
+ Weekly = "Weekly"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,60 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::RecoveryServicesBackup
7
+ module Models
8
+ #
9
+ # Simple policy retention.
10
+ #
11
+ class SimpleRetentionPolicy < RetentionPolicy
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @retentionPolicyType = "SimpleRetentionPolicy"
18
+ end
19
+
20
+ attr_accessor :retentionPolicyType
21
+
22
+ # @return [RetentionDuration] Retention duration of the protection
23
+ # policy.
24
+ attr_accessor :retention_duration
25
+
26
+
27
+ #
28
+ # Mapper for SimpleRetentionPolicy class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'SimpleRetentionPolicy',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'SimpleRetentionPolicy',
38
+ model_properties: {
39
+ retentionPolicyType: {
40
+ required: true,
41
+ serialized_name: 'retentionPolicyType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ retention_duration: {
47
+ required: false,
48
+ serialized_name: 'retentionDuration',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'RetentionDuration'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end