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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_recovery_services_backup.rb +5 -0
- data/lib/generated/azure_mgmt_recovery_services_backup.rb +175 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +253 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +128 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +136 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backups.rb +149 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +124 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +276 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +116 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb +124 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +117 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/jobs.rb +369 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb +92 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb +107 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb +77 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +136 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb +107 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb +77 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +137 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb +82 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb +169 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb +91 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb +104 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +165 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb +68 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb +83 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb +85 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +121 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb +67 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb +68 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb +112 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +20 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb +65 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb +47 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb +68 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb +67 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb +54 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb +67 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb +52 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb +62 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/day.rb +54 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb +92 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb +62 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb +198 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb +80 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb +84 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb +87 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb +70 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb +89 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb +45 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb +61 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb +118 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb +82 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmbackup_request.rb +60 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmilrregistration_request.rb +92 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +124 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +202 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb +45 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb +96 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb +52 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job.rb +121 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +20 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb +103 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource.rb +96 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_status.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb +17 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb +67 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb +63 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb +96 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb +48 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container.rb +137 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb +95 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb +61 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +149 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb +66 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job.rb +194 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb +79 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb +84 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb +82 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb +25 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb +27 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb +99 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb +65 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb +76 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb +114 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_error.rb +54 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb +47 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_job_extended_info.rb +58 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_jobs_extended_info.rb +83 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_provision_ilrextended_info.rb +61 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_values.rb +19 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb +83 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb +107 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb +81 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb +96 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb +20 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb +110 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb +58 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb +47 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_state.rb +20 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_status.rb +18 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb +47 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb +18 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/resource_list.rb +45 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb +60 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb +19 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb +17 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +46 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb +17 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb +60 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb +108 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb +19 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb +70 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb +81 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb +80 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb +97 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb +90 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb +119 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protectable_items.rb +276 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +142 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +154 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_items.rb +609 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +135 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +120 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +538 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +566 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +131 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +143 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +386 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +215 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/restores.rb +150 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/version.rb +8 -0
- metadata +268 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bda475b76e57cf325a620d42d96190d05318aeb8
|
4
|
+
data.tar.gz: 7fd3b7871a041ed42b94e1d949b6a9024955f2e2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: efc705c99e4e0f07b79972472a35d12e6f3ac012f3e3962f1439eb4f7a413d7c78c49a1b0265371370f244841864fbe421ca3df4b2d8ead529cc87037ccba872
|
7
|
+
data.tar.gz: 9bcb57905be115a02c7e84976c12ba91d4e85e6cc8e3a3651ae8f6cfae9872f4f4647296f195734c1aafbb4c126233594be293a0a8ddf6481d4d2ac461608157
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Microsoft Corporation
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -0,0 +1,175 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require 'generated/azure_mgmt_recovery_services_backup/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ARM::RecoveryServicesBackup
|
23
|
+
autoload :ItemLevelRecoveryConnections, 'generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb'
|
24
|
+
autoload :Restores, 'generated/azure_mgmt_recovery_services_backup/restores.rb'
|
25
|
+
autoload :ProtectionPolicyOperationStatuses, 'generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb'
|
26
|
+
autoload :ProtectionPolicyOperationResults, 'generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb'
|
27
|
+
autoload :ProtectionPolicies, 'generated/azure_mgmt_recovery_services_backup/protection_policies.rb'
|
28
|
+
autoload :ProtectionContainerOperationResults, 'generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb'
|
29
|
+
autoload :ProtectionContainerRefreshOperationResults, 'generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb'
|
30
|
+
autoload :ProtectionContainers, 'generated/azure_mgmt_recovery_services_backup/protection_containers.rb'
|
31
|
+
autoload :RecoveryPoints, 'generated/azure_mgmt_recovery_services_backup/recovery_points.rb'
|
32
|
+
autoload :Backups, 'generated/azure_mgmt_recovery_services_backup/backups.rb'
|
33
|
+
autoload :ProtectedItemOperationStatuses, 'generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb'
|
34
|
+
autoload :ProtectedItemOperationResults, 'generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb'
|
35
|
+
autoload :ProtectedItems, 'generated/azure_mgmt_recovery_services_backup/protected_items.rb'
|
36
|
+
autoload :ProtectableItems, 'generated/azure_mgmt_recovery_services_backup/protectable_items.rb'
|
37
|
+
autoload :ExportJobsOperationResults, 'generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb'
|
38
|
+
autoload :JobOperationResults, 'generated/azure_mgmt_recovery_services_backup/job_operation_results.rb'
|
39
|
+
autoload :Jobs, 'generated/azure_mgmt_recovery_services_backup/jobs.rb'
|
40
|
+
autoload :JobCancellations, 'generated/azure_mgmt_recovery_services_backup/job_cancellations.rb'
|
41
|
+
autoload :JobDetails, 'generated/azure_mgmt_recovery_services_backup/job_details.rb'
|
42
|
+
autoload :BackupOperationStatuses, 'generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb'
|
43
|
+
autoload :BackupOperationResults, 'generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb'
|
44
|
+
autoload :BackupEngines, 'generated/azure_mgmt_recovery_services_backup/backup_engines.rb'
|
45
|
+
autoload :RecoveryServicesBackupClient, 'generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb'
|
46
|
+
|
47
|
+
module Models
|
48
|
+
autoload :BMSContainerQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb'
|
49
|
+
autoload :AzureIaaSVMJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb'
|
50
|
+
autoload :ProtectionContainer, 'generated/azure_mgmt_recovery_services_backup/models/protection_container.rb'
|
51
|
+
autoload :AzureIaaSVMErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb'
|
52
|
+
autoload :BMSRPQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb'
|
53
|
+
autoload :BackupEngineBase, 'generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb'
|
54
|
+
autoload :YearlyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb'
|
55
|
+
autoload :OperationStatus, 'generated/azure_mgmt_recovery_services_backup/models/operation_status.rb'
|
56
|
+
autoload :ResourceList, 'generated/azure_mgmt_recovery_services_backup/models/resource_list.rb'
|
57
|
+
autoload :OperationStatusExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb'
|
58
|
+
autoload :ProtectionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb'
|
59
|
+
autoload :JobQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb'
|
60
|
+
autoload :MonthlyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb'
|
61
|
+
autoload :RetentionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb'
|
62
|
+
autoload :OperationResultInfoBase, 'generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb'
|
63
|
+
autoload :RestoreRequest, 'generated/azure_mgmt_recovery_services_backup/models/restore_request.rb'
|
64
|
+
autoload :ProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/protected_item.rb'
|
65
|
+
autoload :ProtectionPolicyQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb'
|
66
|
+
autoload :DailyRetentionFormat, 'generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb'
|
67
|
+
autoload :AzureIaaSVMJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb'
|
68
|
+
autoload :Day, 'generated/azure_mgmt_recovery_services_backup/models/day.rb'
|
69
|
+
autoload :ILRRequest, 'generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb'
|
70
|
+
autoload :ProtectedItemQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb'
|
71
|
+
autoload :InstantItemRecoveryTarget, 'generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb'
|
72
|
+
autoload :KEKDetails, 'generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb'
|
73
|
+
autoload :ClientScriptForConnect, 'generated/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb'
|
74
|
+
autoload :KeyAndSecretDetails, 'generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb'
|
75
|
+
autoload :MabJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb'
|
76
|
+
autoload :Job, 'generated/azure_mgmt_recovery_services_backup/models/job.rb'
|
77
|
+
autoload :MabJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb'
|
78
|
+
autoload :OperationStatusError, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_error.rb'
|
79
|
+
autoload :MabErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb'
|
80
|
+
autoload :WeeklyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb'
|
81
|
+
autoload :MabContainerExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb'
|
82
|
+
autoload :EncryptionDetails, 'generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb'
|
83
|
+
autoload :RetentionDuration, 'generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb'
|
84
|
+
autoload :GetProtectedItemQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb'
|
85
|
+
autoload :DpmJobTaskDetails, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb'
|
86
|
+
autoload :BEKDetails, 'generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb'
|
87
|
+
autoload :AzureIaaSVMProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb'
|
88
|
+
autoload :WeeklyRetentionFormat, 'generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb'
|
89
|
+
autoload :DpmJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb'
|
90
|
+
autoload :OperationWorkerResponse, 'generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb'
|
91
|
+
autoload :MabFileFolderProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb'
|
92
|
+
autoload :BMSPOQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb'
|
93
|
+
autoload :DpmErrorInfo, 'generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb'
|
94
|
+
autoload :RecoveryPoint, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb'
|
95
|
+
autoload :AzureSqlProtectedItemExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb'
|
96
|
+
autoload :WorkloadProtectableItem, 'generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb'
|
97
|
+
autoload :DailyRetentionSchedule, 'generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb'
|
98
|
+
autoload :BMSBackupEngineQueryObject, 'generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb'
|
99
|
+
autoload :BackupRequest, 'generated/azure_mgmt_recovery_services_backup/models/backup_request.rb'
|
100
|
+
autoload :SchedulePolicy, 'generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb'
|
101
|
+
autoload :JobResourceList, 'generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb'
|
102
|
+
autoload :JobResource, 'generated/azure_mgmt_recovery_services_backup/models/job_resource.rb'
|
103
|
+
autoload :WorkloadProtectableItemResourceList, 'generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb'
|
104
|
+
autoload :WorkloadProtectableItemResource, 'generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb'
|
105
|
+
autoload :ProtectedItemResource, 'generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb'
|
106
|
+
autoload :ProtectedItemResourceList, 'generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb'
|
107
|
+
autoload :BackupRequestResource, 'generated/azure_mgmt_recovery_services_backup/models/backup_request_resource.rb'
|
108
|
+
autoload :RecoveryPointResourceList, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb'
|
109
|
+
autoload :RecoveryPointResource, 'generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb'
|
110
|
+
autoload :ProtectionContainerResourceList, 'generated/azure_mgmt_recovery_services_backup/models/protection_container_resource_list.rb'
|
111
|
+
autoload :ProtectionContainerResource, 'generated/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb'
|
112
|
+
autoload :ProtectionPolicyResourceList, 'generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb'
|
113
|
+
autoload :ProtectionPolicyResource, 'generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb'
|
114
|
+
autoload :RestoreRequestResource, 'generated/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb'
|
115
|
+
autoload :ILRRequestResource, 'generated/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb'
|
116
|
+
autoload :AzureBackupServerEngine, 'generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb'
|
117
|
+
autoload :DpmBackupEngine, 'generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb'
|
118
|
+
autoload :AzureSqlContainer, 'generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb'
|
119
|
+
autoload :IaaSVMContainer, 'generated/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb'
|
120
|
+
autoload :MabContainer, 'generated/azure_mgmt_recovery_services_backup/models/mab_container.rb'
|
121
|
+
autoload :IaaSVMProtectableItem, 'generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb'
|
122
|
+
autoload :AzureIaaSVMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb'
|
123
|
+
autoload :MabFileFolderProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb'
|
124
|
+
autoload :AzureSqlProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb'
|
125
|
+
autoload :IaasVMBackupRequest, 'generated/azure_mgmt_recovery_services_backup/models/iaas_vmbackup_request.rb'
|
126
|
+
autoload :AzureIaaSVMProtectionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb'
|
127
|
+
autoload :MabProtectionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb'
|
128
|
+
autoload :AzureSqlProtectionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb'
|
129
|
+
autoload :IaasVMRecoveryPoint, 'generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb'
|
130
|
+
autoload :GenericRecoveryPoint, 'generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb'
|
131
|
+
autoload :IaasVMRestoreRequest, 'generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb'
|
132
|
+
autoload :IaasVMILRRegistrationRequest, 'generated/azure_mgmt_recovery_services_backup/models/iaas_vmilrregistration_request.rb'
|
133
|
+
autoload :AzureIaaSVMJob, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb'
|
134
|
+
autoload :DpmJob, 'generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb'
|
135
|
+
autoload :MabJob, 'generated/azure_mgmt_recovery_services_backup/models/mab_job.rb'
|
136
|
+
autoload :OperationResultInfo, 'generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb'
|
137
|
+
autoload :ExportJobsOperationResultInfo, 'generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb'
|
138
|
+
autoload :AzureIaaSComputeVMContainer, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb'
|
139
|
+
autoload :AzureIaaSClassicComputeVMContainer, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb'
|
140
|
+
autoload :AzureIaaSComputeVMProtectableItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb'
|
141
|
+
autoload :AzureIaaSClassicComputeVMProtectableItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb'
|
142
|
+
autoload :AzureIaaSComputeVMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb'
|
143
|
+
autoload :AzureIaaSClassicComputeVMProtectedItem, 'generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb'
|
144
|
+
autoload :OperationStatusJobExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_job_extended_info.rb'
|
145
|
+
autoload :OperationStatusProvisionILRExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_provision_ilrextended_info.rb'
|
146
|
+
autoload :OperationStatusJobsExtendedInfo, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_jobs_extended_info.rb'
|
147
|
+
autoload :LongTermSchedulePolicy, 'generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb'
|
148
|
+
autoload :SimpleSchedulePolicy, 'generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb'
|
149
|
+
autoload :SimpleRetentionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb'
|
150
|
+
autoload :LongTermRetentionPolicy, 'generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb'
|
151
|
+
autoload :BackupEngineBaseResourceList, 'generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource_list.rb'
|
152
|
+
autoload :BackupEngineBaseResource, 'generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource.rb'
|
153
|
+
autoload :OperationResultInfoBaseResource, 'generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb'
|
154
|
+
autoload :BackupManagementType, 'generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb'
|
155
|
+
autoload :OperationStatusValues, 'generated/azure_mgmt_recovery_services_backup/models/operation_status_values.rb'
|
156
|
+
autoload :HttpStatusCode, 'generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb'
|
157
|
+
autoload :JobStatus, 'generated/azure_mgmt_recovery_services_backup/models/job_status.rb'
|
158
|
+
autoload :JobOperationType, 'generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb'
|
159
|
+
autoload :ProtectionStatus, 'generated/azure_mgmt_recovery_services_backup/models/protection_status.rb'
|
160
|
+
autoload :DataSourceType, 'generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb'
|
161
|
+
autoload :BackupItemType, 'generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb'
|
162
|
+
autoload :ProtectionState, 'generated/azure_mgmt_recovery_services_backup/models/protection_state.rb'
|
163
|
+
autoload :ProtectedItemState, 'generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb'
|
164
|
+
autoload :RecoveryType, 'generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb'
|
165
|
+
autoload :JobSupportedAction, 'generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb'
|
166
|
+
autoload :MabServerType, 'generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb'
|
167
|
+
autoload :WorkloadType, 'generated/azure_mgmt_recovery_services_backup/models/workload_type.rb'
|
168
|
+
autoload :ScheduleRunType, 'generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb'
|
169
|
+
autoload :DayOfWeek, 'generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb'
|
170
|
+
autoload :RetentionDurationType, 'generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb'
|
171
|
+
autoload :RetentionScheduleFormat, 'generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb'
|
172
|
+
autoload :WeekOfMonth, 'generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb'
|
173
|
+
autoload :MonthOfYear, 'generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb'
|
174
|
+
end
|
175
|
+
end
|
@@ -0,0 +1,253 @@
|
|
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
|
+
#
|
8
|
+
# Composite Swagger for Recovery Services Backup Client
|
9
|
+
#
|
10
|
+
class BackupEngines
|
11
|
+
include Azure::ARM::RecoveryServicesBackup::Models
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the BackupEngines class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# The backup management servers registered to a Recovery Services vault. This
|
27
|
+
# returns a pageable list of servers.
|
28
|
+
#
|
29
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
30
|
+
# @param resource_group_name [String] The name of the resource group associated
|
31
|
+
# with the Recovery Services vault.
|
32
|
+
# @param filter [String] Use this filter to choose the specific backup
|
33
|
+
# management server. backupManagementType { AzureIaasVM, MAB, DPM,
|
34
|
+
# AzureBackupServer, AzureSql }.
|
35
|
+
# @param skip_token [String] The Skip Token filter.
|
36
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
+
# will be added to the HTTP request.
|
38
|
+
#
|
39
|
+
# @return [Array<BackupEngineBaseResource>] operation results.
|
40
|
+
#
|
41
|
+
def get(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
42
|
+
first_page = get_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers)
|
43
|
+
first_page.get_all_items
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# The backup management servers registered to a Recovery Services vault. This
|
48
|
+
# returns a pageable list of servers.
|
49
|
+
#
|
50
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
51
|
+
# @param resource_group_name [String] The name of the resource group associated
|
52
|
+
# with the Recovery Services vault.
|
53
|
+
# @param filter [String] Use this filter to choose the specific backup
|
54
|
+
# management server. backupManagementType { AzureIaasVM, MAB, DPM,
|
55
|
+
# AzureBackupServer, AzureSql }.
|
56
|
+
# @param skip_token [String] The Skip Token filter.
|
57
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
58
|
+
# will be added to the HTTP request.
|
59
|
+
#
|
60
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
61
|
+
#
|
62
|
+
def get_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
63
|
+
get_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value!
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# The backup management servers registered to a Recovery Services vault. This
|
68
|
+
# returns a pageable list of servers.
|
69
|
+
#
|
70
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
71
|
+
# @param resource_group_name [String] The name of the resource group associated
|
72
|
+
# with the Recovery Services vault.
|
73
|
+
# @param filter [String] Use this filter to choose the specific backup
|
74
|
+
# management server. backupManagementType { AzureIaasVM, MAB, DPM,
|
75
|
+
# AzureBackupServer, AzureSql }.
|
76
|
+
# @param skip_token [String] The Skip Token filter.
|
77
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
78
|
+
# to the HTTP request.
|
79
|
+
#
|
80
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
81
|
+
#
|
82
|
+
def get_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
83
|
+
api_version = '2016-06-01'
|
84
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
85
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
86
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
87
|
+
|
88
|
+
|
89
|
+
request_headers = {}
|
90
|
+
|
91
|
+
# Set Headers
|
92
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
93
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
94
|
+
path_template = '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines'
|
95
|
+
|
96
|
+
request_url = @base_url || @client.base_url
|
97
|
+
|
98
|
+
options = {
|
99
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
100
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
101
|
+
query_params: {'api-version' => api_version,'$filter' => filter,'$skipToken' => skip_token},
|
102
|
+
headers: request_headers.merge(custom_headers || {}),
|
103
|
+
base_url: request_url
|
104
|
+
}
|
105
|
+
promise = @client.make_request_async(:get, path_template, options)
|
106
|
+
|
107
|
+
promise = promise.then do |result|
|
108
|
+
http_response = result.response
|
109
|
+
status_code = http_response.status
|
110
|
+
response_content = http_response.body
|
111
|
+
unless status_code == 200
|
112
|
+
error_model = JSON.load(response_content)
|
113
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
114
|
+
end
|
115
|
+
|
116
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
117
|
+
# Deserialize Response
|
118
|
+
if status_code == 200
|
119
|
+
begin
|
120
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
121
|
+
result_mapper = BackupEngineBaseResourceList.mapper()
|
122
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
123
|
+
rescue Exception => e
|
124
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
result
|
129
|
+
end
|
130
|
+
|
131
|
+
promise.execute
|
132
|
+
end
|
133
|
+
|
134
|
+
#
|
135
|
+
# The backup management servers registered to a Recovery Services vault. This
|
136
|
+
# returns a pageable list of servers.
|
137
|
+
#
|
138
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
139
|
+
# to List operation.
|
140
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
|
+
# will be added to the HTTP request.
|
142
|
+
#
|
143
|
+
# @return [BackupEngineBaseResourceList] operation results.
|
144
|
+
#
|
145
|
+
def get_next(next_page_link, custom_headers = nil)
|
146
|
+
response = get_next_async(next_page_link, custom_headers).value!
|
147
|
+
response.body unless response.nil?
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# The backup management servers registered to a Recovery Services vault. This
|
152
|
+
# returns a pageable list of servers.
|
153
|
+
#
|
154
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
155
|
+
# to List operation.
|
156
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
157
|
+
# will be added to the HTTP request.
|
158
|
+
#
|
159
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
160
|
+
#
|
161
|
+
def get_next_with_http_info(next_page_link, custom_headers = nil)
|
162
|
+
get_next_async(next_page_link, custom_headers).value!
|
163
|
+
end
|
164
|
+
|
165
|
+
#
|
166
|
+
# The backup management servers registered to a Recovery Services vault. This
|
167
|
+
# returns a pageable list of servers.
|
168
|
+
#
|
169
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
170
|
+
# to List operation.
|
171
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
172
|
+
# to the HTTP request.
|
173
|
+
#
|
174
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
175
|
+
#
|
176
|
+
def get_next_async(next_page_link, custom_headers = nil)
|
177
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
178
|
+
|
179
|
+
|
180
|
+
request_headers = {}
|
181
|
+
|
182
|
+
# Set Headers
|
183
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
184
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
185
|
+
path_template = '{nextLink}'
|
186
|
+
|
187
|
+
request_url = @base_url || @client.base_url
|
188
|
+
|
189
|
+
options = {
|
190
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
191
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
192
|
+
headers: request_headers.merge(custom_headers || {}),
|
193
|
+
base_url: request_url
|
194
|
+
}
|
195
|
+
promise = @client.make_request_async(:get, path_template, options)
|
196
|
+
|
197
|
+
promise = promise.then do |result|
|
198
|
+
http_response = result.response
|
199
|
+
status_code = http_response.status
|
200
|
+
response_content = http_response.body
|
201
|
+
unless status_code == 200
|
202
|
+
error_model = JSON.load(response_content)
|
203
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
204
|
+
end
|
205
|
+
|
206
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
207
|
+
# Deserialize Response
|
208
|
+
if status_code == 200
|
209
|
+
begin
|
210
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
211
|
+
result_mapper = BackupEngineBaseResourceList.mapper()
|
212
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
213
|
+
rescue Exception => e
|
214
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
result
|
219
|
+
end
|
220
|
+
|
221
|
+
promise.execute
|
222
|
+
end
|
223
|
+
|
224
|
+
#
|
225
|
+
# The backup management servers registered to a Recovery Services vault. This
|
226
|
+
# returns a pageable list of servers.
|
227
|
+
#
|
228
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
229
|
+
# @param resource_group_name [String] The name of the resource group associated
|
230
|
+
# with the Recovery Services vault.
|
231
|
+
# @param filter [String] Use this filter to choose the specific backup
|
232
|
+
# management server. backupManagementType { AzureIaasVM, MAB, DPM,
|
233
|
+
# AzureBackupServer, AzureSql }.
|
234
|
+
# @param skip_token [String] The Skip Token filter.
|
235
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
236
|
+
# will be added to the HTTP request.
|
237
|
+
#
|
238
|
+
# @return [BackupEngineBaseResourceList] which provide lazy access to pages of
|
239
|
+
# the response.
|
240
|
+
#
|
241
|
+
def get_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
242
|
+
response = get_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value!
|
243
|
+
unless response.nil?
|
244
|
+
page = response.body
|
245
|
+
page.next_method = Proc.new do |next_page_link|
|
246
|
+
get_next_async(next_page_link, custom_headers)
|
247
|
+
end
|
248
|
+
page
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
end
|
253
|
+
end
|