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,91 @@
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
+ # Additional information for the Azure IaaS VM workload-specific job.
10
+ #
11
+ class AzureIaaSVMJobExtendedInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<AzureIaaSVMJobTaskDetails>] List of tasks associated
16
+ # with this job.
17
+ attr_accessor :tasks_list
18
+
19
+ # @return [Hash{String => String}] Job properties.
20
+ attr_accessor :property_bag
21
+
22
+ # @return [Float] Indicates progress of the job. Null if it has not
23
+ # started or completed.
24
+ attr_accessor :progress_percentage
25
+
26
+ # @return [String] Non-localized error message for job execution.
27
+ attr_accessor :dynamic_error_message
28
+
29
+
30
+ #
31
+ # Mapper for AzureIaaSVMJobExtendedInfo class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ required: false,
37
+ serialized_name: 'AzureIaaSVMJobExtendedInfo',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'AzureIaaSVMJobExtendedInfo',
41
+ model_properties: {
42
+ tasks_list: {
43
+ required: false,
44
+ serialized_name: 'tasksList',
45
+ type: {
46
+ name: 'Sequence',
47
+ element: {
48
+ required: false,
49
+ serialized_name: 'AzureIaaSVMJobTaskDetailsElementType',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'AzureIaaSVMJobTaskDetails'
53
+ }
54
+ }
55
+ }
56
+ },
57
+ property_bag: {
58
+ required: false,
59
+ serialized_name: 'propertyBag',
60
+ type: {
61
+ name: 'Dictionary',
62
+ value: {
63
+ required: false,
64
+ serialized_name: 'StringElementType',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ }
69
+ }
70
+ },
71
+ progress_percentage: {
72
+ required: false,
73
+ serialized_name: 'progressPercentage',
74
+ type: {
75
+ name: 'Double'
76
+ }
77
+ },
78
+ dynamic_error_message: {
79
+ required: false,
80
+ serialized_name: 'dynamicErrorMessage',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ end
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,104 @@
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
+ # Azure IaaS VM workload-specific job task details.
10
+ #
11
+ class AzureIaaSVMJobTaskDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The task display name.
16
+ attr_accessor :task_id
17
+
18
+ # @return [DateTime] The start time.
19
+ attr_accessor :start_time
20
+
21
+ # @return [DateTime] The end time.
22
+ attr_accessor :end_time
23
+
24
+ # @return [String] The instance ID.
25
+ attr_accessor :instance_id
26
+
27
+ # @return [Duration] The time elapsed for the task.
28
+ attr_accessor :duration
29
+
30
+ # @return [String] The status.
31
+ attr_accessor :status
32
+
33
+ # @return [Float] The progress of the task, as a percentage.
34
+ attr_accessor :progress_percentage
35
+
36
+
37
+ #
38
+ # Mapper for AzureIaaSVMJobTaskDetails class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ required: false,
44
+ serialized_name: 'AzureIaaSVMJobTaskDetails',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'AzureIaaSVMJobTaskDetails',
48
+ model_properties: {
49
+ task_id: {
50
+ required: false,
51
+ serialized_name: 'taskId',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ start_time: {
57
+ required: false,
58
+ serialized_name: 'startTime',
59
+ type: {
60
+ name: 'DateTime'
61
+ }
62
+ },
63
+ end_time: {
64
+ required: false,
65
+ serialized_name: 'endTime',
66
+ type: {
67
+ name: 'DateTime'
68
+ }
69
+ },
70
+ instance_id: {
71
+ required: false,
72
+ serialized_name: 'instanceId',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ duration: {
78
+ required: false,
79
+ serialized_name: 'duration',
80
+ type: {
81
+ name: 'TimeSpan'
82
+ }
83
+ },
84
+ status: {
85
+ required: false,
86
+ serialized_name: 'status',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ progress_percentage: {
92
+ required: false,
93
+ serialized_name: 'progressPercentage',
94
+ type: {
95
+ name: 'Double'
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,165 @@
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
+ # This Azure VM workload-specific (also known as IaaS VM workload-specific)
10
+ # backup item has been backed up.
11
+ #
12
+ class AzureIaaSVMProtectedItem < ProtectedItem
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @protectedItemType = "AzureIaaSVMProtectedItem"
19
+ end
20
+
21
+ attr_accessor :protectedItemType
22
+
23
+ # @return [String] The friendly name of the VM represented by this backup
24
+ # item.
25
+ attr_accessor :friendly_name
26
+
27
+ # @return [String] The fully qualified Resource Manager ID of the virtual
28
+ # machine represented by this item.
29
+ attr_accessor :virtual_machine_id
30
+
31
+ # @return [String] The backup status of this backup item.
32
+ attr_accessor :protection_status
33
+
34
+ # @return [ProtectionState] The backup state of this backup item.
35
+ # Possible values include: 'Invalid', 'IRPending', 'Protected',
36
+ # 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused'
37
+ attr_accessor :protection_state
38
+
39
+ # @return [String] The last backup operation status. The possible values
40
+ # are: Healthy or Unhealthy.
41
+ attr_accessor :last_backup_status
42
+
43
+ # @return [DateTime] The timestamp of the last backup operation for this
44
+ # backup item.
45
+ attr_accessor :last_backup_time
46
+
47
+ # @return [AzureIaaSVMProtectedItemExtendedInfo] Additional information
48
+ # for this backup item.
49
+ attr_accessor :extended_info
50
+
51
+
52
+ #
53
+ # Mapper for AzureIaaSVMProtectedItem class as Ruby Hash.
54
+ # This will be used for serialization/deserialization.
55
+ #
56
+ def self.mapper()
57
+ {
58
+ required: false,
59
+ serialized_name: 'AzureIaaSVMProtectedItem',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'AzureIaaSVMProtectedItem',
63
+ model_properties: {
64
+ backup_management_type: {
65
+ required: false,
66
+ serialized_name: 'backupManagementType',
67
+ type: {
68
+ name: 'Enum',
69
+ module: 'BackupManagementType'
70
+ }
71
+ },
72
+ workload_type: {
73
+ required: false,
74
+ serialized_name: 'workloadType',
75
+ type: {
76
+ name: 'Enum',
77
+ module: 'DataSourceType'
78
+ }
79
+ },
80
+ source_resource_id: {
81
+ required: false,
82
+ serialized_name: 'sourceResourceId',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ policy_id: {
88
+ required: false,
89
+ serialized_name: 'policyId',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ last_recovery_point: {
95
+ required: false,
96
+ serialized_name: 'lastRecoveryPoint',
97
+ type: {
98
+ name: 'DateTime'
99
+ }
100
+ },
101
+ protectedItemType: {
102
+ required: true,
103
+ serialized_name: 'protectedItemType',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ friendly_name: {
109
+ required: false,
110
+ serialized_name: 'friendlyName',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ virtual_machine_id: {
116
+ required: false,
117
+ serialized_name: 'virtualMachineId',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ protection_status: {
123
+ required: false,
124
+ serialized_name: 'protectionStatus',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ protection_state: {
130
+ required: false,
131
+ serialized_name: 'protectionState',
132
+ type: {
133
+ name: 'Enum',
134
+ module: 'ProtectionState'
135
+ }
136
+ },
137
+ last_backup_status: {
138
+ required: false,
139
+ serialized_name: 'lastBackupStatus',
140
+ type: {
141
+ name: 'String'
142
+ }
143
+ },
144
+ last_backup_time: {
145
+ required: false,
146
+ serialized_name: 'lastBackupTime',
147
+ type: {
148
+ name: 'DateTime'
149
+ }
150
+ },
151
+ extended_info: {
152
+ required: false,
153
+ serialized_name: 'extendedInfo',
154
+ type: {
155
+ name: 'Composite',
156
+ class_name: 'AzureIaaSVMProtectedItemExtendedInfo'
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+ end
163
+ end
164
+ end
165
+ end
@@ -0,0 +1,68 @@
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
+ # Additional information for the Azure VM (also known as IaaS VM)-specific
10
+ # backup item.
11
+ #
12
+ class AzureIaaSVMProtectedItemExtendedInfo
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [DateTime] The oldest backup copy available for this backup
17
+ # item.
18
+ attr_accessor :oldest_recovery_point
19
+
20
+ # @return [Integer] The number of backup copies available for this backup
21
+ # item.
22
+ attr_accessor :recovery_point_count
23
+
24
+ # @return [Boolean] Specifies if the backup policy associated with the
25
+ # backup item is inconsistent.
26
+ attr_accessor :policy_inconsistent
27
+
28
+
29
+ #
30
+ # Mapper for AzureIaaSVMProtectedItemExtendedInfo class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'AzureIaaSVMProtectedItemExtendedInfo',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'AzureIaaSVMProtectedItemExtendedInfo',
40
+ model_properties: {
41
+ oldest_recovery_point: {
42
+ required: false,
43
+ serialized_name: 'oldestRecoveryPoint',
44
+ type: {
45
+ name: 'DateTime'
46
+ }
47
+ },
48
+ recovery_point_count: {
49
+ required: false,
50
+ serialized_name: 'recoveryPointCount',
51
+ type: {
52
+ name: 'Number'
53
+ }
54
+ },
55
+ policy_inconsistent: {
56
+ required: false,
57
+ serialized_name: 'policyInconsistent',
58
+ type: {
59
+ name: 'Boolean'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,83 @@
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
+ # Azure VM (also known as IaaS VM) workload-specific backup policy.
10
+ #
11
+ class AzureIaaSVMProtectionPolicy < ProtectionPolicy
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @backupManagementType = "AzureIaasVM"
18
+ end
19
+
20
+ attr_accessor :backupManagementType
21
+
22
+ # @return [SchedulePolicy] The backup schedule specified as part of
23
+ # backup policy.
24
+ attr_accessor :schedule_policy
25
+
26
+ # @return [RetentionPolicy] The retention policy with the details on
27
+ # backup copy retention ranges.
28
+ attr_accessor :retention_policy
29
+
30
+
31
+ #
32
+ # Mapper for AzureIaaSVMProtectionPolicy class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'AzureIaasVM',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'AzureIaaSVMProtectionPolicy',
42
+ model_properties: {
43
+ protected_items_count: {
44
+ required: false,
45
+ serialized_name: 'protectedItemsCount',
46
+ type: {
47
+ name: 'Number'
48
+ }
49
+ },
50
+ backupManagementType: {
51
+ required: true,
52
+ serialized_name: 'backupManagementType',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ schedule_policy: {
58
+ required: false,
59
+ serialized_name: 'schedulePolicy',
60
+ type: {
61
+ name: 'Composite',
62
+ polymorphic_discriminator: 'schedulePolicyType',
63
+ uber_parent: 'SchedulePolicy',
64
+ class_name: 'SchedulePolicy'
65
+ }
66
+ },
67
+ retention_policy: {
68
+ required: false,
69
+ serialized_name: 'retentionPolicy',
70
+ type: {
71
+ name: 'Composite',
72
+ polymorphic_discriminator: 'retentionPolicyType',
73
+ uber_parent: 'RetentionPolicy',
74
+ class_name: 'RetentionPolicy'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ end