azure_mgmt_recovery_services_backup 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_recovery_services_backup.rb +158 -111
  3. data/lib/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +163 -64
  4. data/lib/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb +240 -0
  5. data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +38 -35
  6. data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +28 -25
  7. data/lib/generated/azure_mgmt_recovery_services_backup/backup_policies.rb +244 -0
  8. data/lib/generated/azure_mgmt_recovery_services_backup/{protectable_items.rb → backup_protectable_items.rb} +48 -76
  9. data/lib/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb +248 -0
  10. data/lib/generated/azure_mgmt_recovery_services_backup/backup_protection_containers.rb +237 -0
  11. data/lib/generated/azure_mgmt_recovery_services_backup/backup_resource_storage_configs.rb +206 -0
  12. data/lib/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb +230 -0
  13. data/lib/generated/azure_mgmt_recovery_services_backup/backup_usage_summaries.rb +129 -0
  14. data/lib/generated/azure_mgmt_recovery_services_backup/backups.rb +46 -46
  15. data/lib/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +31 -22
  16. data/lib/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +108 -111
  17. data/lib/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +23 -20
  18. data/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb +25 -22
  19. data/lib/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +32 -23
  20. data/lib/generated/azure_mgmt_recovery_services_backup/jobs.rb +26 -277
  21. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_container.rb +177 -0
  22. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb +51 -4
  23. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb +9 -5
  24. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb +9 -4
  25. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +47 -8
  26. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb +9 -5
  27. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb +9 -4
  28. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +47 -9
  29. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb +10 -4
  30. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmhealth_details.rb +86 -0
  31. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb +15 -11
  32. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb +8 -3
  33. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb +9 -4
  34. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +67 -19
  35. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb +10 -6
  36. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb +22 -6
  37. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb +8 -4
  38. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +20 -11
  39. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb +11 -6
  40. data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb +8 -3
  41. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb +80 -14
  42. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource.rb +11 -3
  43. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource_list.rb +6 -1
  44. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_extended_info.rb +119 -0
  45. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb +9 -2
  46. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +5 -1
  47. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_usage.rb +102 -0
  48. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_usage_list.rb +58 -0
  49. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request.rb +8 -3
  50. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request_resource.rb +11 -3
  51. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_resource_config.rb +62 -0
  52. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_resource_config_resource.rb +102 -0
  53. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config.rb +73 -0
  54. data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config_resource.rb +103 -0
  55. data/lib/generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb +9 -5
  56. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb +12 -10
  57. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engines_query_object.rb +71 -0
  58. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_summaries_query_object.rb +51 -0
  59. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb +35 -8
  60. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb +13 -9
  61. data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb +9 -4
  62. data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_display.rb +79 -0
  63. data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_log_specification.rb +69 -0
  64. data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_properties.rb +50 -0
  65. data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_service_specification.rb +59 -0
  66. data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_response.rb +99 -0
  67. data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_value_for_single_api.rb +83 -0
  68. data/lib/generated/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb +35 -7
  69. data/lib/generated/azure_mgmt_recovery_services_backup/models/container_type.rb +29 -0
  70. data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb +6 -1
  71. data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb +8 -3
  72. data/lib/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb +9 -2
  73. data/lib/generated/azure_mgmt_recovery_services_backup/models/day.rb +8 -3
  74. data/lib/generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb +5 -1
  75. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb +51 -5
  76. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_container.rb +177 -0
  77. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb +8 -3
  78. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb +15 -11
  79. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb +7 -2
  80. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb +7 -2
  81. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpmcontainer_extended_info.rb +49 -0
  82. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item.rb +150 -0
  83. data/lib/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item_extended_info.rb +187 -0
  84. data/lib/generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb +11 -8
  85. data/lib/generated/azure_mgmt_recovery_services_backup/models/enhanced_security_state.rb +21 -0
  86. data/lib/generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb +9 -5
  87. data/lib/generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb +7 -2
  88. data/lib/generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb +7 -2
  89. data/lib/generated/azure_mgmt_recovery_services_backup/models/health_state.rb +22 -0
  90. data/lib/generated/azure_mgmt_recovery_services_backup/models/health_status.rb +22 -0
  91. data/lib/generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb +5 -1
  92. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb +12 -9
  93. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb +9 -7
  94. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmbackup_request.rb +9 -5
  95. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmilrregistration_request.rb +14 -10
  96. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +50 -7
  97. data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +39 -37
  98. data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb +7 -2
  99. data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb +11 -3
  100. data/lib/generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb +7 -2
  101. data/lib/generated/azure_mgmt_recovery_services_backup/models/job.rb +12 -8
  102. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +7 -1
  103. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb +16 -14
  104. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource.rb +11 -3
  105. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb +7 -2
  106. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_status.rb +5 -1
  107. data/lib/generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb +5 -1
  108. data/lib/generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb +10 -8
  109. data/lib/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb +14 -11
  110. data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb +12 -7
  111. data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb +7 -2
  112. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container.rb +14 -10
  113. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb +15 -10
  114. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb +7 -2
  115. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +34 -14
  116. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb +10 -6
  117. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job.rb +20 -18
  118. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb +8 -3
  119. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb +7 -2
  120. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb +9 -5
  121. data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb +8 -4
  122. data/lib/generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb +5 -1
  123. data/lib/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb +12 -8
  124. data/lib/generated/azure_mgmt_recovery_services_backup/models/name_info.rb +59 -0
  125. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb +7 -2
  126. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb +8 -3
  127. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb +12 -6
  128. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb +9 -7
  129. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_error.rb +9 -4
  130. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb +8 -3
  131. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_job_extended_info.rb +8 -3
  132. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_jobs_extended_info.rb +8 -3
  133. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_provision_ilrextended_info.rb +9 -5
  134. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_values.rb +5 -1
  135. data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb +20 -15
  136. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb +34 -19
  137. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb +49 -14
  138. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb +11 -3
  139. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb +8 -3
  140. data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb +5 -1
  141. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb +25 -17
  142. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb +11 -3
  143. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource_list.rb +11 -6
  144. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb +9 -4
  145. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb +11 -7
  146. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb +11 -3
  147. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb +11 -6
  148. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_state.rb +5 -1
  149. data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_status.rb +5 -1
  150. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb +9 -4
  151. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb +12 -4
  152. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb +11 -6
  153. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_information.rb +63 -0
  154. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_status.rb +22 -0
  155. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_type.rb +21 -0
  156. data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb +5 -1
  157. data/lib/generated/azure_mgmt_recovery_services_backup/models/resource.rb +10 -2
  158. data/lib/generated/azure_mgmt_recovery_services_backup/models/resource_list.rb +8 -3
  159. data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request.rb +8 -3
  160. data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb +12 -4
  161. data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb +14 -10
  162. data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb +5 -1
  163. data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb +8 -3
  164. data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb +5 -1
  165. data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +7 -2
  166. data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb +5 -1
  167. data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb +6 -1
  168. data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb +14 -11
  169. data/lib/generated/azure_mgmt_recovery_services_backup/models/storage_type.rb +21 -0
  170. data/lib/generated/azure_mgmt_recovery_services_backup/models/storage_type_state.rb +21 -0
  171. data/lib/generated/azure_mgmt_recovery_services_backup/models/token_information.rb +69 -0
  172. data/lib/generated/azure_mgmt_recovery_services_backup/models/type.rb +21 -0
  173. data/lib/generated/azure_mgmt_recovery_services_backup/models/usages_unit.rb +24 -0
  174. data/lib/generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb +5 -1
  175. data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb +7 -2
  176. data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb +10 -5
  177. data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb +15 -11
  178. data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb +13 -4
  179. data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb +7 -2
  180. data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb +9 -2
  181. data/lib/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb +15 -13
  182. data/lib/generated/azure_mgmt_recovery_services_backup/module_definition.rb +5 -1
  183. data/lib/generated/azure_mgmt_recovery_services_backup/operations.rb +217 -0
  184. data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +40 -34
  185. data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +43 -37
  186. data/lib/generated/azure_mgmt_recovery_services_backup/protected_items.rb +112 -350
  187. data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +37 -31
  188. data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +26 -20
  189. data/lib/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +57 -365
  190. data/lib/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +87 -313
  191. data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +31 -25
  192. data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +43 -37
  193. data/lib/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +110 -114
  194. data/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +95 -55
  195. data/lib/generated/azure_mgmt_recovery_services_backup/restores.rb +46 -46
  196. data/lib/generated/azure_mgmt_recovery_services_backup/security_pins.rb +123 -0
  197. data/lib/generated/azure_mgmt_recovery_services_backup/version.rb +6 -2
  198. metadata +48 -5
@@ -1,14 +1,17 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for
4
+ # license information.
5
+ #
6
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
7
  # Changes may cause incorrect behavior and will be lost if the code is
4
8
  # regenerated.
5
9
 
6
10
  module Azure::ARM::RecoveryServicesBackup
7
11
  #
8
- # Composite Swagger for Recovery Services Backup Client
12
+ # Open API 2.0 Specs for Azure RecoveryServices Backup service
9
13
  #
10
14
  class ProtectionPolicyOperationResults
11
- include Azure::ARM::RecoveryServicesBackup::Models
12
15
  include MsRestAzure
13
16
 
14
17
  #
@@ -25,12 +28,13 @@ module Azure::ARM::RecoveryServicesBackup
25
28
  #
26
29
  # Provides the result of an operation.
27
30
  #
28
- # @param vault_name [String] The name of the Recovery Services vault.
29
- # @param resource_group_name [String] The name of the resource group associated
30
- # with the Recovery Services vault.
31
- # @param policy_name [String] The backup policy name used in this GET
32
- # operation.
33
- # @param operation_id [String] The ID associated with this GET operation.
31
+ # @param vault_name [String] The name of the recovery services vault.
32
+ # @param resource_group_name [String] The name of the resource group where the
33
+ # recovery services vault is present.
34
+ # @param policy_name [String] Backup policy name whose operation's result needs
35
+ # to be fetched.
36
+ # @param operation_id [String] Operation ID which represents the operation
37
+ # whose result needs to be fetched.
34
38
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
39
  # will be added to the HTTP request.
36
40
  #
@@ -44,12 +48,13 @@ module Azure::ARM::RecoveryServicesBackup
44
48
  #
45
49
  # Provides the result of an operation.
46
50
  #
47
- # @param vault_name [String] The name of the Recovery Services vault.
48
- # @param resource_group_name [String] The name of the resource group associated
49
- # with the Recovery Services vault.
50
- # @param policy_name [String] The backup policy name used in this GET
51
- # operation.
52
- # @param operation_id [String] The ID associated with this GET operation.
51
+ # @param vault_name [String] The name of the recovery services vault.
52
+ # @param resource_group_name [String] The name of the resource group where the
53
+ # recovery services vault is present.
54
+ # @param policy_name [String] Backup policy name whose operation's result needs
55
+ # to be fetched.
56
+ # @param operation_id [String] Operation ID which represents the operation
57
+ # whose result needs to be fetched.
53
58
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
54
59
  # will be added to the HTTP request.
55
60
  #
@@ -62,19 +67,20 @@ module Azure::ARM::RecoveryServicesBackup
62
67
  #
63
68
  # Provides the result of an operation.
64
69
  #
65
- # @param vault_name [String] The name of the Recovery Services vault.
66
- # @param resource_group_name [String] The name of the resource group associated
67
- # with the Recovery Services vault.
68
- # @param policy_name [String] The backup policy name used in this GET
69
- # operation.
70
- # @param operation_id [String] The ID associated with this GET operation.
70
+ # @param vault_name [String] The name of the recovery services vault.
71
+ # @param resource_group_name [String] The name of the resource group where the
72
+ # recovery services vault is present.
73
+ # @param policy_name [String] Backup policy name whose operation's result needs
74
+ # to be fetched.
75
+ # @param operation_id [String] Operation ID which represents the operation
76
+ # whose result needs to be fetched.
71
77
  # @param [Hash{String => String}] A hash of custom headers that will be added
72
78
  # to the HTTP request.
73
79
  #
74
80
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
75
81
  #
76
82
  def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil)
77
- api_version = '2016-06-01'
83
+ api_version = '2016-12-01'
78
84
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
79
85
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
80
86
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -87,7 +93,7 @@ module Azure::ARM::RecoveryServicesBackup
87
93
  # Set Headers
88
94
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
89
95
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
90
- path_template = '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}'
96
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}'
91
97
 
92
98
  request_url = @base_url || @client.base_url
93
99
 
@@ -114,8 +120,8 @@ module Azure::ARM::RecoveryServicesBackup
114
120
  if status_code == 200
115
121
  begin
116
122
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
117
- result_mapper = ProtectionPolicyResource.mapper()
118
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
123
+ result_mapper = Azure::ARM::RecoveryServicesBackup::Models::ProtectionPolicyResource.mapper()
124
+ result.body = @client.deserialize(result_mapper, parsed_response)
119
125
  rescue Exception => e
120
126
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
121
127
  end
@@ -1,14 +1,17 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for
4
+ # license information.
5
+ #
6
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
7
  # Changes may cause incorrect behavior and will be lost if the code is
4
8
  # regenerated.
5
9
 
6
10
  module Azure::ARM::RecoveryServicesBackup
7
11
  #
8
- # Composite Swagger for Recovery Services Backup Client
12
+ # Open API 2.0 Specs for Azure RecoveryServices Backup service
9
13
  #
10
14
  class ProtectionPolicyOperationStatuses
11
- include Azure::ARM::RecoveryServicesBackup::Models
12
15
  include MsRestAzure
13
16
 
14
17
  #
@@ -23,18 +26,19 @@ module Azure::ARM::RecoveryServicesBackup
23
26
  attr_reader :client
24
27
 
25
28
  #
26
- # Provides the status of the asynchronous operations like backup or restore.
27
- # The status can be: in progress, completed, or failed. You can refer to the
28
- # Operation Status enumeration for the possible states of an operation. Some
29
+ # Provides the status of the asynchronous operations like backup, restore. The
30
+ # status can be in progress, completed or failed. You can refer to the
31
+ # Operation Status enum for all the possible states of an operation. Some
29
32
  # operations create jobs. This method returns the list of jobs associated with
30
- # the operation.
31
- #
32
- # @param vault_name [String] The name of the Recovery Services vault.
33
- # @param resource_group_name [String] The name of the resource group associated
34
- # with the Recovery Services vault.
35
- # @param policy_name [String] The backup policy name used in this GET
36
33
  # operation.
37
- # @param operation_id [String] The ID associated with this GET operation.
34
+ #
35
+ # @param vault_name [String] The name of the recovery services vault.
36
+ # @param resource_group_name [String] The name of the resource group where the
37
+ # recovery services vault is present.
38
+ # @param policy_name [String] Backup policy name whose operation's status needs
39
+ # to be fetched.
40
+ # @param operation_id [String] Operation ID which represents an operation whose
41
+ # status needs to be fetched.
38
42
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
39
43
  # will be added to the HTTP request.
40
44
  #
@@ -46,18 +50,19 @@ module Azure::ARM::RecoveryServicesBackup
46
50
  end
47
51
 
48
52
  #
49
- # Provides the status of the asynchronous operations like backup or restore.
50
- # The status can be: in progress, completed, or failed. You can refer to the
51
- # Operation Status enumeration for the possible states of an operation. Some
53
+ # Provides the status of the asynchronous operations like backup, restore. The
54
+ # status can be in progress, completed or failed. You can refer to the
55
+ # Operation Status enum for all the possible states of an operation. Some
52
56
  # operations create jobs. This method returns the list of jobs associated with
53
- # the operation.
54
- #
55
- # @param vault_name [String] The name of the Recovery Services vault.
56
- # @param resource_group_name [String] The name of the resource group associated
57
- # with the Recovery Services vault.
58
- # @param policy_name [String] The backup policy name used in this GET
59
57
  # operation.
60
- # @param operation_id [String] The ID associated with this GET operation.
58
+ #
59
+ # @param vault_name [String] The name of the recovery services vault.
60
+ # @param resource_group_name [String] The name of the resource group where the
61
+ # recovery services vault is present.
62
+ # @param policy_name [String] Backup policy name whose operation's status needs
63
+ # to be fetched.
64
+ # @param operation_id [String] Operation ID which represents an operation whose
65
+ # status needs to be fetched.
61
66
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
62
67
  # will be added to the HTTP request.
63
68
  #
@@ -68,25 +73,26 @@ module Azure::ARM::RecoveryServicesBackup
68
73
  end
69
74
 
70
75
  #
71
- # Provides the status of the asynchronous operations like backup or restore.
72
- # The status can be: in progress, completed, or failed. You can refer to the
73
- # Operation Status enumeration for the possible states of an operation. Some
76
+ # Provides the status of the asynchronous operations like backup, restore. The
77
+ # status can be in progress, completed or failed. You can refer to the
78
+ # Operation Status enum for all the possible states of an operation. Some
74
79
  # operations create jobs. This method returns the list of jobs associated with
75
- # the operation.
76
- #
77
- # @param vault_name [String] The name of the Recovery Services vault.
78
- # @param resource_group_name [String] The name of the resource group associated
79
- # with the Recovery Services vault.
80
- # @param policy_name [String] The backup policy name used in this GET
81
80
  # operation.
82
- # @param operation_id [String] The ID associated with this GET operation.
81
+ #
82
+ # @param vault_name [String] The name of the recovery services vault.
83
+ # @param resource_group_name [String] The name of the resource group where the
84
+ # recovery services vault is present.
85
+ # @param policy_name [String] Backup policy name whose operation's status needs
86
+ # to be fetched.
87
+ # @param operation_id [String] Operation ID which represents an operation whose
88
+ # status needs to be fetched.
83
89
  # @param [Hash{String => String}] A hash of custom headers that will be added
84
90
  # to the HTTP request.
85
91
  #
86
92
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
87
93
  #
88
94
  def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil)
89
- api_version = '2016-06-01'
95
+ api_version = '2016-12-01'
90
96
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
91
97
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
92
98
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -99,7 +105,7 @@ module Azure::ARM::RecoveryServicesBackup
99
105
  # Set Headers
100
106
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
101
107
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
102
- path_template = '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}'
108
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}'
103
109
 
104
110
  request_url = @base_url || @client.base_url
105
111
 
@@ -126,8 +132,8 @@ module Azure::ARM::RecoveryServicesBackup
126
132
  if status_code == 200
127
133
  begin
128
134
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
129
- result_mapper = OperationStatus.mapper()
130
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
135
+ result_mapper = Azure::ARM::RecoveryServicesBackup::Models::OperationStatus.mapper()
136
+ result.body = @client.deserialize(result_mapper, parsed_response)
131
137
  rescue Exception => e
132
138
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
133
139
  end
@@ -1,14 +1,17 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for
4
+ # license information.
5
+ #
6
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
7
  # Changes may cause incorrect behavior and will be lost if the code is
4
8
  # regenerated.
5
9
 
6
10
  module Azure::ARM::RecoveryServicesBackup
7
11
  #
8
- # Composite Swagger for Recovery Services Backup Client
12
+ # Open API 2.0 Specs for Azure RecoveryServices Backup service
9
13
  #
10
14
  class RecoveryPoints
11
- include Azure::ARM::RecoveryServicesBackup::Models
12
15
  include MsRestAzure
13
16
 
14
17
  #
@@ -23,83 +26,73 @@ module Azure::ARM::RecoveryServicesBackup
23
26
  attr_reader :client
24
27
 
25
28
  #
26
- # Provides the backup data for the RecoveryPointID. This is an asynchronous
27
- # operation. To learn the status of the operation, call the
28
- # GetProtectedItemOperationResult API.
29
+ # Lists the backup copies for the backed up item.
29
30
  #
30
- # @param vault_name [String] The name of the Recovery Services vault.
31
- # @param resource_group_name [String] The name of the resource group associated
32
- # with the Recovery Services vault.
33
- # @param fabric_name [String] The fabric name associated with backup item.
34
- # @param container_name [String] The container name associated with backup
31
+ # @param vault_name [String] The name of the recovery services vault.
32
+ # @param resource_group_name [String] The name of the resource group where the
33
+ # recovery services vault is present.
34
+ # @param fabric_name [String] Fabric name associated with the backed up item.
35
+ # @param container_name [String] Container name associated with the backed up
35
36
  # item.
36
- # @param protected_item_name [String] The name of the backup item used in this
37
- # GET operation.
38
- # @param recovery_point_id [String] The RecoveryPointID associated with this
39
- # GET operation.
37
+ # @param protected_item_name [String] Backed up item whose backup copies are to
38
+ # be fetched.
39
+ # @param filter [String] OData filter options.
40
40
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
41
  # will be added to the HTTP request.
42
42
  #
43
- # @return [RecoveryPointResource] operation results.
43
+ # @return [Array<RecoveryPointResource>] operation results.
44
44
  #
45
- def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
46
- response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value!
47
- response.body unless response.nil?
45
+ def list(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
46
+ first_page = list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers)
47
+ first_page.get_all_items
48
48
  end
49
49
 
50
50
  #
51
- # Provides the backup data for the RecoveryPointID. This is an asynchronous
52
- # operation. To learn the status of the operation, call the
53
- # GetProtectedItemOperationResult API.
51
+ # Lists the backup copies for the backed up item.
54
52
  #
55
- # @param vault_name [String] The name of the Recovery Services vault.
56
- # @param resource_group_name [String] The name of the resource group associated
57
- # with the Recovery Services vault.
58
- # @param fabric_name [String] The fabric name associated with backup item.
59
- # @param container_name [String] The container name associated with backup
53
+ # @param vault_name [String] The name of the recovery services vault.
54
+ # @param resource_group_name [String] The name of the resource group where the
55
+ # recovery services vault is present.
56
+ # @param fabric_name [String] Fabric name associated with the backed up item.
57
+ # @param container_name [String] Container name associated with the backed up
60
58
  # item.
61
- # @param protected_item_name [String] The name of the backup item used in this
62
- # GET operation.
63
- # @param recovery_point_id [String] The RecoveryPointID associated with this
64
- # GET operation.
59
+ # @param protected_item_name [String] Backed up item whose backup copies are to
60
+ # be fetched.
61
+ # @param filter [String] OData filter options.
65
62
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
66
63
  # will be added to the HTTP request.
67
64
  #
68
65
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
69
66
  #
70
- def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
71
- get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value!
67
+ def list_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
68
+ list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value!
72
69
  end
73
70
 
74
71
  #
75
- # Provides the backup data for the RecoveryPointID. This is an asynchronous
76
- # operation. To learn the status of the operation, call the
77
- # GetProtectedItemOperationResult API.
72
+ # Lists the backup copies for the backed up item.
78
73
  #
79
- # @param vault_name [String] The name of the Recovery Services vault.
80
- # @param resource_group_name [String] The name of the resource group associated
81
- # with the Recovery Services vault.
82
- # @param fabric_name [String] The fabric name associated with backup item.
83
- # @param container_name [String] The container name associated with backup
74
+ # @param vault_name [String] The name of the recovery services vault.
75
+ # @param resource_group_name [String] The name of the resource group where the
76
+ # recovery services vault is present.
77
+ # @param fabric_name [String] Fabric name associated with the backed up item.
78
+ # @param container_name [String] Container name associated with the backed up
84
79
  # item.
85
- # @param protected_item_name [String] The name of the backup item used in this
86
- # GET operation.
87
- # @param recovery_point_id [String] The RecoveryPointID associated with this
88
- # GET operation.
80
+ # @param protected_item_name [String] Backed up item whose backup copies are to
81
+ # be fetched.
82
+ # @param filter [String] OData filter options.
89
83
  # @param [Hash{String => String}] A hash of custom headers that will be added
90
84
  # to the HTTP request.
91
85
  #
92
86
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
93
87
  #
94
- def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
95
- api_version = '2016-06-01'
88
+ def list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
89
+ api_version = '2016-12-01'
96
90
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
97
91
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
98
92
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
99
93
  fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
100
94
  fail ArgumentError, 'container_name is nil' if container_name.nil?
101
95
  fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
102
- fail ArgumentError, 'recovery_point_id is nil' if recovery_point_id.nil?
103
96
 
104
97
 
105
98
  request_headers = {}
@@ -107,14 +100,14 @@ module Azure::ARM::RecoveryServicesBackup
107
100
  # Set Headers
108
101
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
109
102
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
110
- path_template = '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}'
103
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints'
111
104
 
112
105
  request_url = @base_url || @client.base_url
113
106
 
114
107
  options = {
115
108
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
116
- path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name,'recoveryPointId' => recovery_point_id},
117
- query_params: {'api-version' => api_version},
109
+ path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name},
110
+ query_params: {'api-version' => api_version,'$filter' => filter},
118
111
  headers: request_headers.merge(custom_headers || {}),
119
112
  base_url: request_url
120
113
  }
@@ -134,8 +127,8 @@ module Azure::ARM::RecoveryServicesBackup
134
127
  if status_code == 200
135
128
  begin
136
129
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
137
- result_mapper = RecoveryPointResource.mapper()
138
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
130
+ result_mapper = Azure::ARM::RecoveryServicesBackup::Models::RecoveryPointResourceList.mapper()
131
+ result.body = @client.deserialize(result_mapper, parsed_response)
139
132
  rescue Exception => e
140
133
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
141
134
  end
@@ -148,76 +141,80 @@ module Azure::ARM::RecoveryServicesBackup
148
141
  end
149
142
 
150
143
  #
151
- # Lists the recovery points, or backup copies, for the specified backup item.
144
+ # Provides the information of the backed up data identified using
145
+ # RecoveryPointID. This is an asynchronous operation. To know the status of the
146
+ # operation, call the GetProtectedItemOperationResult API.
152
147
  #
153
- # @param vault_name [String] The name of the Recovery Services vault.
154
- # @param resource_group_name [String] The name of the resource group associated
155
- # with the Recovery Services vault.
156
- # @param fabric_name [String] The fabric name associated with the backup item.
157
- # @param container_name [String] The container name associated with the backup
158
- # item.
159
- # @param protected_item_name [String] The name of backup item used in this GET
160
- # operation.
161
- # @param filter [String] startDate eq {yyyy-mm-dd hh:mm:ss PM} and endDate {
162
- # yyyy-mm-dd hh:mm:ss PM}.
148
+ # @param vault_name [String] The name of the recovery services vault.
149
+ # @param resource_group_name [String] The name of the resource group where the
150
+ # recovery services vault is present.
151
+ # @param fabric_name [String] Fabric name associated with backed up item.
152
+ # @param container_name [String] Container name associated with backed up item.
153
+ # @param protected_item_name [String] Backed up item name whose backup data
154
+ # needs to be fetched.
155
+ # @param recovery_point_id [String] RecoveryPointID represents the backed up
156
+ # data to be fetched.
163
157
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
164
158
  # will be added to the HTTP request.
165
159
  #
166
- # @return [Array<RecoveryPointResource>] operation results.
160
+ # @return [RecoveryPointResource] operation results.
167
161
  #
168
- def list(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
169
- first_page = list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers)
170
- first_page.get_all_items
162
+ def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
163
+ response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value!
164
+ response.body unless response.nil?
171
165
  end
172
166
 
173
167
  #
174
- # Lists the recovery points, or backup copies, for the specified backup item.
168
+ # Provides the information of the backed up data identified using
169
+ # RecoveryPointID. This is an asynchronous operation. To know the status of the
170
+ # operation, call the GetProtectedItemOperationResult API.
175
171
  #
176
- # @param vault_name [String] The name of the Recovery Services vault.
177
- # @param resource_group_name [String] The name of the resource group associated
178
- # with the Recovery Services vault.
179
- # @param fabric_name [String] The fabric name associated with the backup item.
180
- # @param container_name [String] The container name associated with the backup
181
- # item.
182
- # @param protected_item_name [String] The name of backup item used in this GET
183
- # operation.
184
- # @param filter [String] startDate eq {yyyy-mm-dd hh:mm:ss PM} and endDate {
185
- # yyyy-mm-dd hh:mm:ss PM}.
172
+ # @param vault_name [String] The name of the recovery services vault.
173
+ # @param resource_group_name [String] The name of the resource group where the
174
+ # recovery services vault is present.
175
+ # @param fabric_name [String] Fabric name associated with backed up item.
176
+ # @param container_name [String] Container name associated with backed up item.
177
+ # @param protected_item_name [String] Backed up item name whose backup data
178
+ # needs to be fetched.
179
+ # @param recovery_point_id [String] RecoveryPointID represents the backed up
180
+ # data to be fetched.
186
181
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
187
182
  # will be added to the HTTP request.
188
183
  #
189
184
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
190
185
  #
191
- def list_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
192
- list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value!
186
+ def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
187
+ get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value!
193
188
  end
194
189
 
195
190
  #
196
- # Lists the recovery points, or backup copies, for the specified backup item.
191
+ # Provides the information of the backed up data identified using
192
+ # RecoveryPointID. This is an asynchronous operation. To know the status of the
193
+ # operation, call the GetProtectedItemOperationResult API.
197
194
  #
198
- # @param vault_name [String] The name of the Recovery Services vault.
199
- # @param resource_group_name [String] The name of the resource group associated
200
- # with the Recovery Services vault.
201
- # @param fabric_name [String] The fabric name associated with the backup item.
202
- # @param container_name [String] The container name associated with the backup
203
- # item.
204
- # @param protected_item_name [String] The name of backup item used in this GET
205
- # operation.
206
- # @param filter [String] startDate eq {yyyy-mm-dd hh:mm:ss PM} and endDate {
207
- # yyyy-mm-dd hh:mm:ss PM}.
195
+ # @param vault_name [String] The name of the recovery services vault.
196
+ # @param resource_group_name [String] The name of the resource group where the
197
+ # recovery services vault is present.
198
+ # @param fabric_name [String] Fabric name associated with backed up item.
199
+ # @param container_name [String] Container name associated with backed up item.
200
+ # @param protected_item_name [String] Backed up item name whose backup data
201
+ # needs to be fetched.
202
+ # @param recovery_point_id [String] RecoveryPointID represents the backed up
203
+ # data to be fetched.
208
204
  # @param [Hash{String => String}] A hash of custom headers that will be added
209
205
  # to the HTTP request.
210
206
  #
211
207
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
212
208
  #
213
- def list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
214
- api_version = '2016-06-01'
209
+ def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
210
+ api_version = '2016-12-01'
215
211
  fail ArgumentError, 'vault_name is nil' if vault_name.nil?
216
212
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
217
213
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
218
214
  fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
219
215
  fail ArgumentError, 'container_name is nil' if container_name.nil?
220
216
  fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
217
+ fail ArgumentError, 'recovery_point_id is nil' if recovery_point_id.nil?
221
218
 
222
219
 
223
220
  request_headers = {}
@@ -225,14 +222,14 @@ module Azure::ARM::RecoveryServicesBackup
225
222
  # Set Headers
226
223
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
227
224
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
228
- path_template = '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints'
225
+ path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}'
229
226
 
230
227
  request_url = @base_url || @client.base_url
231
228
 
232
229
  options = {
233
230
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
234
- path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name},
235
- query_params: {'api-version' => api_version,'$filter' => filter},
231
+ path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name,'recoveryPointId' => recovery_point_id},
232
+ query_params: {'api-version' => api_version},
236
233
  headers: request_headers.merge(custom_headers || {}),
237
234
  base_url: request_url
238
235
  }
@@ -252,8 +249,8 @@ module Azure::ARM::RecoveryServicesBackup
252
249
  if status_code == 200
253
250
  begin
254
251
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
255
- result_mapper = RecoveryPointResourceList.mapper()
256
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
252
+ result_mapper = Azure::ARM::RecoveryServicesBackup::Models::RecoveryPointResource.mapper()
253
+ result.body = @client.deserialize(result_mapper, parsed_response)
257
254
  rescue Exception => e
258
255
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
259
256
  end
@@ -266,7 +263,7 @@ module Azure::ARM::RecoveryServicesBackup
266
263
  end
267
264
 
268
265
  #
269
- # Lists the recovery points, or backup copies, for the specified backup item.
266
+ # Lists the backup copies for the backed up item.
270
267
  #
271
268
  # @param next_page_link [String] The NextLink from the previous successful call
272
269
  # to List operation.
@@ -281,7 +278,7 @@ module Azure::ARM::RecoveryServicesBackup
281
278
  end
282
279
 
283
280
  #
284
- # Lists the recovery points, or backup copies, for the specified backup item.
281
+ # Lists the backup copies for the backed up item.
285
282
  #
286
283
  # @param next_page_link [String] The NextLink from the previous successful call
287
284
  # to List operation.
@@ -295,7 +292,7 @@ module Azure::ARM::RecoveryServicesBackup
295
292
  end
296
293
 
297
294
  #
298
- # Lists the recovery points, or backup copies, for the specified backup item.
295
+ # Lists the backup copies for the backed up item.
299
296
  #
300
297
  # @param next_page_link [String] The NextLink from the previous successful call
301
298
  # to List operation.
@@ -339,8 +336,8 @@ module Azure::ARM::RecoveryServicesBackup
339
336
  if status_code == 200
340
337
  begin
341
338
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
342
- result_mapper = RecoveryPointResourceList.mapper()
343
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
339
+ result_mapper = Azure::ARM::RecoveryServicesBackup::Models::RecoveryPointResourceList.mapper()
340
+ result.body = @client.deserialize(result_mapper, parsed_response)
344
341
  rescue Exception => e
345
342
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
346
343
  end
@@ -353,18 +350,17 @@ module Azure::ARM::RecoveryServicesBackup
353
350
  end
354
351
 
355
352
  #
356
- # Lists the recovery points, or backup copies, for the specified backup item.
353
+ # Lists the backup copies for the backed up item.
357
354
  #
358
- # @param vault_name [String] The name of the Recovery Services vault.
359
- # @param resource_group_name [String] The name of the resource group associated
360
- # with the Recovery Services vault.
361
- # @param fabric_name [String] The fabric name associated with the backup item.
362
- # @param container_name [String] The container name associated with the backup
355
+ # @param vault_name [String] The name of the recovery services vault.
356
+ # @param resource_group_name [String] The name of the resource group where the
357
+ # recovery services vault is present.
358
+ # @param fabric_name [String] Fabric name associated with the backed up item.
359
+ # @param container_name [String] Container name associated with the backed up
363
360
  # item.
364
- # @param protected_item_name [String] The name of backup item used in this GET
365
- # operation.
366
- # @param filter [String] startDate eq {yyyy-mm-dd hh:mm:ss PM} and endDate {
367
- # yyyy-mm-dd hh:mm:ss PM}.
361
+ # @param protected_item_name [String] Backed up item whose backup copies are to
362
+ # be fetched.
363
+ # @param filter [String] OData filter options.
368
364
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
365
  # will be added to the HTTP request.
370
366
  #