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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_recovery_services_backup.rb +158 -111
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +163 -64
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb +240 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +38 -35
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +28 -25
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_policies.rb +244 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/{protectable_items.rb → backup_protectable_items.rb} +48 -76
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb +248 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_protection_containers.rb +237 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_resource_storage_configs.rb +206 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb +230 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backup_usage_summaries.rb +129 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/backups.rb +46 -46
- data/lib/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +31 -22
- data/lib/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +108 -111
- data/lib/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +23 -20
- data/lib/generated/azure_mgmt_recovery_services_backup/job_details.rb +25 -22
- data/lib/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +32 -23
- data/lib/generated/azure_mgmt_recovery_services_backup/jobs.rb +26 -277
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_container.rb +177 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb +51 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb +9 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb +9 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +47 -8
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb +9 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb +9 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +47 -9
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb +10 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmhealth_details.rb +86 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb +15 -11
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb +9 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +67 -19
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb +10 -6
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb +22 -6
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb +8 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +20 -11
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb +11 -6
- data/lib/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb +80 -14
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource.rb +11 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource_list.rb +6 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_engine_extended_info.rb +119 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb +9 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_usage.rb +102 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_management_usage_list.rb +58 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_request_resource.rb +11 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_resource_config.rb +62 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_resource_config_resource.rb +102 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config.rb +73 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config_resource.rb +103 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb +9 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb +12 -10
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engines_query_object.rb +71 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_summaries_query_object.rb +51 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb +35 -8
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb +13 -9
- data/lib/generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb +9 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_display.rb +79 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_log_specification.rb +69 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_properties.rb +50 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_service_specification.rb +59 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_response.rb +99 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_discovery_value_for_single_api.rb +83 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb +35 -7
- data/lib/generated/azure_mgmt_recovery_services_backup/models/container_type.rb +29 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb +6 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb +9 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/day.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb +51 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_container.rb +177 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb +15 -11
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpmcontainer_extended_info.rb +49 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item.rb +150 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item_extended_info.rb +187 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb +11 -8
- data/lib/generated/azure_mgmt_recovery_services_backup/models/enhanced_security_state.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb +9 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/health_state.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/health_status.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb +12 -9
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb +9 -7
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmbackup_request.rb +9 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmilrregistration_request.rb +14 -10
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +50 -7
- data/lib/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +39 -37
- data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb +11 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job.rb +12 -8
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +7 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb +16 -14
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource.rb +11 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_status.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb +10 -8
- data/lib/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb +14 -11
- data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb +12 -7
- data/lib/generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container.rb +14 -10
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb +15 -10
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +34 -14
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb +10 -6
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job.rb +20 -18
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb +9 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb +8 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb +12 -8
- data/lib/generated/azure_mgmt_recovery_services_backup/models/name_info.rb +59 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb +12 -6
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb +9 -7
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_error.rb +9 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_job_extended_info.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_jobs_extended_info.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_provision_ilrextended_info.rb +9 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_status_values.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb +20 -15
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb +34 -19
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb +49 -14
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb +11 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb +25 -17
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb +11 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource_list.rb +11 -6
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb +9 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb +11 -7
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb +11 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb +11 -6
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_state.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/protection_status.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb +9 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb +12 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb +11 -6
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_information.rb +63 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_status.rb +22 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_point_tier_type.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/resource.rb +10 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/resource_list.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb +12 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb +14 -10
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb +8 -3
- data/lib/generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb +6 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb +14 -11
- data/lib/generated/azure_mgmt_recovery_services_backup/models/storage_type.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/storage_type_state.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/token_information.rb +69 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/type.rb +21 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/usages_unit.rb +24 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb +10 -5
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb +15 -11
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb +13 -4
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb +7 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb +9 -2
- data/lib/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb +15 -13
- data/lib/generated/azure_mgmt_recovery_services_backup/module_definition.rb +5 -1
- data/lib/generated/azure_mgmt_recovery_services_backup/operations.rb +217 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +40 -34
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +43 -37
- data/lib/generated/azure_mgmt_recovery_services_backup/protected_items.rb +112 -350
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +37 -31
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +26 -20
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +57 -365
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +87 -313
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +31 -25
- data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +43 -37
- data/lib/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +110 -114
- data/lib/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +95 -55
- data/lib/generated/azure_mgmt_recovery_services_backup/restores.rb +46 -46
- data/lib/generated/azure_mgmt_recovery_services_backup/security_pins.rb +123 -0
- data/lib/generated/azure_mgmt_recovery_services_backup/version.rb +6 -2
- metadata +48 -5
data/lib/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
#
|
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
|
-
#
|
12
|
+
# Open API 2.0 Specs for Azure RecoveryServices Backup service
|
9
13
|
#
|
10
14
|
class ProtectionContainerOperationResults
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,15 +26,16 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
#
|
29
|
+
# Fetches the result of any operation on the container.
|
27
30
|
#
|
28
|
-
# @param vault_name [String] The name of the
|
29
|
-
# @param resource_group_name [String] The name of the resource group
|
30
|
-
#
|
31
|
-
# @param fabric_name [String]
|
32
|
-
# @param container_name [String]
|
33
|
-
#
|
34
|
-
# @param operation_id [String]
|
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 container.
|
35
|
+
# @param container_name [String] Container name whose information should be
|
36
|
+
# fetched.
|
37
|
+
# @param operation_id [String] Operation ID which represents the operation
|
38
|
+
# whose result needs to be fetched.
|
35
39
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
40
|
# will be added to the HTTP request.
|
37
41
|
#
|
@@ -43,15 +47,16 @@ module Azure::ARM::RecoveryServicesBackup
|
|
43
47
|
end
|
44
48
|
|
45
49
|
#
|
46
|
-
#
|
50
|
+
# Fetches the result of any operation on the container.
|
47
51
|
#
|
48
|
-
# @param vault_name [String] The name of the
|
49
|
-
# @param resource_group_name [String] The name of the resource group
|
50
|
-
#
|
51
|
-
# @param fabric_name [String]
|
52
|
-
# @param container_name [String]
|
53
|
-
#
|
54
|
-
# @param operation_id [String]
|
52
|
+
# @param vault_name [String] The name of the recovery services vault.
|
53
|
+
# @param resource_group_name [String] The name of the resource group where the
|
54
|
+
# recovery services vault is present.
|
55
|
+
# @param fabric_name [String] Fabric name associated with the container.
|
56
|
+
# @param container_name [String] Container name whose information should be
|
57
|
+
# fetched.
|
58
|
+
# @param operation_id [String] Operation ID which represents the operation
|
59
|
+
# whose result needs to be fetched.
|
55
60
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
61
|
# will be added to the HTTP request.
|
57
62
|
#
|
@@ -62,22 +67,23 @@ module Azure::ARM::RecoveryServicesBackup
|
|
62
67
|
end
|
63
68
|
|
64
69
|
#
|
65
|
-
#
|
70
|
+
# Fetches the result of any operation on the container.
|
66
71
|
#
|
67
|
-
# @param vault_name [String] The name of the
|
68
|
-
# @param resource_group_name [String] The name of the resource group
|
69
|
-
#
|
70
|
-
# @param fabric_name [String]
|
71
|
-
# @param container_name [String]
|
72
|
-
#
|
73
|
-
# @param operation_id [String]
|
72
|
+
# @param vault_name [String] The name of the recovery services vault.
|
73
|
+
# @param resource_group_name [String] The name of the resource group where the
|
74
|
+
# recovery services vault is present.
|
75
|
+
# @param fabric_name [String] Fabric name associated with the container.
|
76
|
+
# @param container_name [String] Container name whose information should be
|
77
|
+
# fetched.
|
78
|
+
# @param operation_id [String] Operation ID which represents the operation
|
79
|
+
# whose result needs to be fetched.
|
74
80
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
75
81
|
# to the HTTP request.
|
76
82
|
#
|
77
83
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
78
84
|
#
|
79
85
|
def get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers = nil)
|
80
|
-
api_version = '2016-
|
86
|
+
api_version = '2016-12-01'
|
81
87
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
82
88
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
83
89
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -91,7 +97,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
91
97
|
# Set Headers
|
92
98
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
93
99
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
94
|
-
path_template = '
|
100
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}'
|
95
101
|
|
96
102
|
request_url = @base_url || @client.base_url
|
97
103
|
|
@@ -118,8 +124,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
118
124
|
if status_code == 200
|
119
125
|
begin
|
120
126
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
121
|
-
result_mapper = ProtectionContainerResource.mapper()
|
122
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
127
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::ProtectionContainerResource.mapper()
|
128
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
123
129
|
rescue Exception => e
|
124
130
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
125
131
|
end
|
@@ -1,14 +1,17 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
#
|
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
|
-
#
|
12
|
+
# Open API 2.0 Specs for Azure RecoveryServices Backup service
|
9
13
|
#
|
10
14
|
class ProtectionContainerRefreshOperationResults
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -26,11 +29,12 @@ module Azure::ARM::RecoveryServicesBackup
|
|
26
29
|
# Provides the result of the refresh operation triggered by the BeginRefresh
|
27
30
|
# operation.
|
28
31
|
#
|
29
|
-
# @param vault_name [String] The name of the
|
30
|
-
# @param resource_group_name [String] The name of the resource group
|
31
|
-
#
|
32
|
-
# @param fabric_name [String]
|
33
|
-
# @param operation_id [String]
|
32
|
+
# @param vault_name [String] The name of the recovery services vault.
|
33
|
+
# @param resource_group_name [String] The name of the resource group where the
|
34
|
+
# recovery services vault is present.
|
35
|
+
# @param fabric_name [String] Fabric name associated with the container.
|
36
|
+
# @param operation_id [String] Operation ID associated with the operation whose
|
37
|
+
# 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,11 +48,12 @@ module Azure::ARM::RecoveryServicesBackup
|
|
44
48
|
# Provides the result of the refresh operation triggered by the BeginRefresh
|
45
49
|
# operation.
|
46
50
|
#
|
47
|
-
# @param vault_name [String] The name of the
|
48
|
-
# @param resource_group_name [String] The name of the resource group
|
49
|
-
#
|
50
|
-
# @param fabric_name [String]
|
51
|
-
# @param operation_id [String]
|
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 fabric_name [String] Fabric name associated with the container.
|
55
|
+
# @param operation_id [String] Operation ID associated with the operation whose
|
56
|
+
# result needs to be fetched.
|
52
57
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
58
|
# will be added to the HTTP request.
|
54
59
|
#
|
@@ -62,18 +67,19 @@ module Azure::ARM::RecoveryServicesBackup
|
|
62
67
|
# Provides the result of the refresh operation triggered by the BeginRefresh
|
63
68
|
# operation.
|
64
69
|
#
|
65
|
-
# @param vault_name [String] The name of the
|
66
|
-
# @param resource_group_name [String] The name of the resource group
|
67
|
-
#
|
68
|
-
# @param fabric_name [String]
|
69
|
-
# @param operation_id [String]
|
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 fabric_name [String] Fabric name associated with the container.
|
74
|
+
# @param operation_id [String] Operation ID associated with the operation whose
|
75
|
+
# result needs to be fetched.
|
70
76
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
77
|
# to the HTTP request.
|
72
78
|
#
|
73
79
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
80
|
#
|
75
81
|
def get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers = nil)
|
76
|
-
api_version = '2016-
|
82
|
+
api_version = '2016-12-01'
|
77
83
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
78
84
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
79
85
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -86,7 +92,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
86
92
|
# Set Headers
|
87
93
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
88
94
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
89
|
-
path_template = '
|
95
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}'
|
90
96
|
|
91
97
|
request_url = @base_url || @client.base_url
|
92
98
|
|
@@ -1,14 +1,17 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
#
|
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
|
-
#
|
12
|
+
# Open API 2.0 Specs for Azure RecoveryServices Backup service
|
9
13
|
#
|
10
14
|
class ProtectionContainers
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -24,14 +27,14 @@ module Azure::ARM::RecoveryServicesBackup
|
|
24
27
|
|
25
28
|
#
|
26
29
|
# Gets details of the specific container registered to your Recovery Services
|
27
|
-
#
|
28
|
-
#
|
29
|
-
# @param vault_name [String] The name of the
|
30
|
-
# @param resource_group_name [String] The name of the resource group
|
31
|
-
#
|
32
|
-
# @param fabric_name [String]
|
33
|
-
# @param container_name [String]
|
34
|
-
#
|
30
|
+
# Vault.
|
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 where the
|
34
|
+
# recovery services vault is present.
|
35
|
+
# @param fabric_name [String] Name of the fabric where the container belongs.
|
36
|
+
# @param container_name [String] Name of the container whose details need to be
|
37
|
+
# fetched.
|
35
38
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
39
|
# will be added to the HTTP request.
|
37
40
|
#
|
@@ -44,14 +47,14 @@ module Azure::ARM::RecoveryServicesBackup
|
|
44
47
|
|
45
48
|
#
|
46
49
|
# Gets details of the specific container registered to your Recovery Services
|
47
|
-
#
|
48
|
-
#
|
49
|
-
# @param vault_name [String] The name of the
|
50
|
-
# @param resource_group_name [String] The name of the resource group
|
51
|
-
#
|
52
|
-
# @param fabric_name [String]
|
53
|
-
# @param container_name [String]
|
54
|
-
#
|
50
|
+
# Vault.
|
51
|
+
#
|
52
|
+
# @param vault_name [String] The name of the recovery services vault.
|
53
|
+
# @param resource_group_name [String] The name of the resource group where the
|
54
|
+
# recovery services vault is present.
|
55
|
+
# @param fabric_name [String] Name of the fabric where the container belongs.
|
56
|
+
# @param container_name [String] Name of the container whose details need to be
|
57
|
+
# fetched.
|
55
58
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
59
|
# will be added to the HTTP request.
|
57
60
|
#
|
@@ -63,21 +66,21 @@ module Azure::ARM::RecoveryServicesBackup
|
|
63
66
|
|
64
67
|
#
|
65
68
|
# Gets details of the specific container registered to your Recovery Services
|
66
|
-
#
|
67
|
-
#
|
68
|
-
# @param vault_name [String] The name of the
|
69
|
-
# @param resource_group_name [String] The name of the resource group
|
70
|
-
#
|
71
|
-
# @param fabric_name [String]
|
72
|
-
# @param container_name [String]
|
73
|
-
#
|
69
|
+
# Vault.
|
70
|
+
#
|
71
|
+
# @param vault_name [String] The name of the recovery services vault.
|
72
|
+
# @param resource_group_name [String] The name of the resource group where the
|
73
|
+
# recovery services vault is present.
|
74
|
+
# @param fabric_name [String] Name of the fabric where the container belongs.
|
75
|
+
# @param container_name [String] Name of the container whose details need to be
|
76
|
+
# fetched.
|
74
77
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
75
78
|
# to the HTTP request.
|
76
79
|
#
|
77
80
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
78
81
|
#
|
79
82
|
def get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers = nil)
|
80
|
-
api_version = '2016-
|
83
|
+
api_version = '2016-12-01'
|
81
84
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
82
85
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
83
86
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -90,7 +93,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
90
93
|
# Set Headers
|
91
94
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
92
95
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
93
|
-
path_template = '
|
96
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}'
|
94
97
|
|
95
98
|
request_url = @base_url || @client.base_url
|
96
99
|
|
@@ -117,8 +120,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
117
120
|
if status_code == 200
|
118
121
|
begin
|
119
122
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
120
|
-
result_mapper = ProtectionContainerResource.mapper()
|
121
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
123
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::ProtectionContainerResource.mapper()
|
124
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
122
125
|
rescue Exception => e
|
123
126
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
124
127
|
end
|
@@ -131,123 +134,14 @@ module Azure::ARM::RecoveryServicesBackup
|
|
131
134
|
end
|
132
135
|
|
133
136
|
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
# @param resource_group_name [String] The name of the resource group associated
|
138
|
-
# with the Recovery Services vault.
|
139
|
-
# @param filter [String] The following equation is used to sort or filter the
|
140
|
-
# containers registered to the vault. providerType eq {AzureIaasVM, MAB, DPM,
|
141
|
-
# AzureBackupServer, AzureSql} and status eq {Unknown, NotRegistered,
|
142
|
-
# Registered, Registering} and friendlyName eq {containername} and
|
143
|
-
# backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql}.
|
144
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
145
|
-
# will be added to the HTTP request.
|
146
|
-
#
|
147
|
-
# @return [Array<ProtectionContainerResource>] operation results.
|
148
|
-
#
|
149
|
-
def list(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
150
|
-
first_page = list_as_lazy(vault_name, resource_group_name, filter, custom_headers)
|
151
|
-
first_page.get_all_items
|
152
|
-
end
|
153
|
-
|
154
|
-
#
|
155
|
-
# Lists the containers registered to the Recovery Services vault.
|
137
|
+
# Discovers all the containers in the subscription that can be backed up to
|
138
|
+
# Recovery Services Vault. This is an asynchronous operation. To know the
|
139
|
+
# status of the operation, call GetRefreshOperationResult API.
|
156
140
|
#
|
157
|
-
# @param vault_name [String] The name of the
|
158
|
-
# @param resource_group_name [String] The name of the resource group
|
159
|
-
#
|
160
|
-
# @param
|
161
|
-
# containers registered to the vault. providerType eq {AzureIaasVM, MAB, DPM,
|
162
|
-
# AzureBackupServer, AzureSql} and status eq {Unknown, NotRegistered,
|
163
|
-
# Registered, Registering} and friendlyName eq {containername} and
|
164
|
-
# backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql}.
|
165
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
166
|
-
# will be added to the HTTP request.
|
167
|
-
#
|
168
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
169
|
-
#
|
170
|
-
def list_with_http_info(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
171
|
-
list_async(vault_name, resource_group_name, filter, custom_headers).value!
|
172
|
-
end
|
173
|
-
|
174
|
-
#
|
175
|
-
# Lists the containers registered to the Recovery Services vault.
|
176
|
-
#
|
177
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
178
|
-
# @param resource_group_name [String] The name of the resource group associated
|
179
|
-
# with the Recovery Services vault.
|
180
|
-
# @param filter [String] The following equation is used to sort or filter the
|
181
|
-
# containers registered to the vault. providerType eq {AzureIaasVM, MAB, DPM,
|
182
|
-
# AzureBackupServer, AzureSql} and status eq {Unknown, NotRegistered,
|
183
|
-
# Registered, Registering} and friendlyName eq {containername} and
|
184
|
-
# backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql}.
|
185
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
186
|
-
# to the HTTP request.
|
187
|
-
#
|
188
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
189
|
-
#
|
190
|
-
def list_async(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
191
|
-
api_version = '2016-06-01'
|
192
|
-
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
193
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
194
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
195
|
-
|
196
|
-
|
197
|
-
request_headers = {}
|
198
|
-
|
199
|
-
# Set Headers
|
200
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
201
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
202
|
-
path_template = '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers'
|
203
|
-
|
204
|
-
request_url = @base_url || @client.base_url
|
205
|
-
|
206
|
-
options = {
|
207
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
208
|
-
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
209
|
-
query_params: {'api-version' => api_version,'$filter' => filter},
|
210
|
-
headers: request_headers.merge(custom_headers || {}),
|
211
|
-
base_url: request_url
|
212
|
-
}
|
213
|
-
promise = @client.make_request_async(:get, path_template, options)
|
214
|
-
|
215
|
-
promise = promise.then do |result|
|
216
|
-
http_response = result.response
|
217
|
-
status_code = http_response.status
|
218
|
-
response_content = http_response.body
|
219
|
-
unless status_code == 200
|
220
|
-
error_model = JSON.load(response_content)
|
221
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
222
|
-
end
|
223
|
-
|
224
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
225
|
-
# Deserialize Response
|
226
|
-
if status_code == 200
|
227
|
-
begin
|
228
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
229
|
-
result_mapper = ProtectionContainerResourceList.mapper()
|
230
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
231
|
-
rescue Exception => e
|
232
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
233
|
-
end
|
234
|
-
end
|
235
|
-
|
236
|
-
result
|
237
|
-
end
|
238
|
-
|
239
|
-
promise.execute
|
240
|
-
end
|
241
|
-
|
242
|
-
#
|
243
|
-
# Discovers the containers in the subscription that can be protected in a
|
244
|
-
# Recovery Services vault. This is an asynchronous operation. To learn the
|
245
|
-
# status of the operation, use the GetRefreshOperationResult API.
|
246
|
-
#
|
247
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
248
|
-
# @param resource_group_name [String] The name of the resource group associated
|
249
|
-
# with the Recovery Services vault.
|
250
|
-
# @param fabric_name [String] The fabric name associated with the container.
|
141
|
+
# @param vault_name [String] The name of the recovery services vault.
|
142
|
+
# @param resource_group_name [String] The name of the resource group where the
|
143
|
+
# recovery services vault is present.
|
144
|
+
# @param fabric_name [String] Fabric name associated the container.
|
251
145
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
252
146
|
# will be added to the HTTP request.
|
253
147
|
#
|
@@ -258,14 +152,14 @@ module Azure::ARM::RecoveryServicesBackup
|
|
258
152
|
end
|
259
153
|
|
260
154
|
#
|
261
|
-
# Discovers the containers in the subscription that can be
|
262
|
-
# Recovery Services
|
263
|
-
# status of the operation,
|
155
|
+
# Discovers all the containers in the subscription that can be backed up to
|
156
|
+
# Recovery Services Vault. This is an asynchronous operation. To know the
|
157
|
+
# status of the operation, call GetRefreshOperationResult API.
|
264
158
|
#
|
265
|
-
# @param vault_name [String] The name of the
|
266
|
-
# @param resource_group_name [String] The name of the resource group
|
267
|
-
#
|
268
|
-
# @param fabric_name [String]
|
159
|
+
# @param vault_name [String] The name of the recovery services vault.
|
160
|
+
# @param resource_group_name [String] The name of the resource group where the
|
161
|
+
# recovery services vault is present.
|
162
|
+
# @param fabric_name [String] Fabric name associated the container.
|
269
163
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
270
164
|
# will be added to the HTTP request.
|
271
165
|
#
|
@@ -276,21 +170,21 @@ module Azure::ARM::RecoveryServicesBackup
|
|
276
170
|
end
|
277
171
|
|
278
172
|
#
|
279
|
-
# Discovers the containers in the subscription that can be
|
280
|
-
# Recovery Services
|
281
|
-
# status of the operation,
|
173
|
+
# Discovers all the containers in the subscription that can be backed up to
|
174
|
+
# Recovery Services Vault. This is an asynchronous operation. To know the
|
175
|
+
# status of the operation, call GetRefreshOperationResult API.
|
282
176
|
#
|
283
|
-
# @param vault_name [String] The name of the
|
284
|
-
# @param resource_group_name [String] The name of the resource group
|
285
|
-
#
|
286
|
-
# @param fabric_name [String]
|
177
|
+
# @param vault_name [String] The name of the recovery services vault.
|
178
|
+
# @param resource_group_name [String] The name of the resource group where the
|
179
|
+
# recovery services vault is present.
|
180
|
+
# @param fabric_name [String] Fabric name associated the container.
|
287
181
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
288
182
|
# to the HTTP request.
|
289
183
|
#
|
290
184
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
291
185
|
#
|
292
186
|
def refresh_async(vault_name, resource_group_name, fabric_name, custom_headers = nil)
|
293
|
-
api_version = '2016-
|
187
|
+
api_version = '2016-12-01'
|
294
188
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
295
189
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
296
190
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -302,7 +196,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
302
196
|
# Set Headers
|
303
197
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
304
198
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
305
|
-
path_template = '
|
199
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers'
|
306
200
|
|
307
201
|
request_url = @base_url || @client.base_url
|
308
202
|
|
@@ -332,207 +226,5 @@ module Azure::ARM::RecoveryServicesBackup
|
|
332
226
|
promise.execute
|
333
227
|
end
|
334
228
|
|
335
|
-
#
|
336
|
-
# Unregisters the given container from your Recovery Services vault.
|
337
|
-
#
|
338
|
-
# @param resource_group_name [String] The name of the resource group associated
|
339
|
-
# with the Recovery Services vault.
|
340
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
341
|
-
# @param identity_name [String] Name of the protection container to unregister.
|
342
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
343
|
-
# will be added to the HTTP request.
|
344
|
-
#
|
345
|
-
#
|
346
|
-
def unregister(resource_group_name, vault_name, identity_name, custom_headers = nil)
|
347
|
-
response = unregister_async(resource_group_name, vault_name, identity_name, custom_headers).value!
|
348
|
-
nil
|
349
|
-
end
|
350
|
-
|
351
|
-
#
|
352
|
-
# Unregisters the given container from your Recovery Services vault.
|
353
|
-
#
|
354
|
-
# @param resource_group_name [String] The name of the resource group associated
|
355
|
-
# with the Recovery Services vault.
|
356
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
357
|
-
# @param identity_name [String] Name of the protection container to unregister.
|
358
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
359
|
-
# will be added to the HTTP request.
|
360
|
-
#
|
361
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
362
|
-
#
|
363
|
-
def unregister_with_http_info(resource_group_name, vault_name, identity_name, custom_headers = nil)
|
364
|
-
unregister_async(resource_group_name, vault_name, identity_name, custom_headers).value!
|
365
|
-
end
|
366
|
-
|
367
|
-
#
|
368
|
-
# Unregisters the given container from your Recovery Services vault.
|
369
|
-
#
|
370
|
-
# @param resource_group_name [String] The name of the resource group associated
|
371
|
-
# with the Recovery Services vault.
|
372
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
373
|
-
# @param identity_name [String] Name of the protection container to unregister.
|
374
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
375
|
-
# to the HTTP request.
|
376
|
-
#
|
377
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
378
|
-
#
|
379
|
-
def unregister_async(resource_group_name, vault_name, identity_name, custom_headers = nil)
|
380
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
381
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
382
|
-
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
383
|
-
api_version = '2016-06-01'
|
384
|
-
fail ArgumentError, 'identity_name is nil' if identity_name.nil?
|
385
|
-
|
386
|
-
|
387
|
-
request_headers = {}
|
388
|
-
|
389
|
-
# Set Headers
|
390
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
391
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
392
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/registeredIdentities/{identityName}'
|
393
|
-
|
394
|
-
request_url = @base_url || @client.base_url
|
395
|
-
|
396
|
-
options = {
|
397
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
398
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vaultName' => vault_name,'identityName' => identity_name},
|
399
|
-
query_params: {'api-version' => api_version},
|
400
|
-
headers: request_headers.merge(custom_headers || {}),
|
401
|
-
base_url: request_url
|
402
|
-
}
|
403
|
-
promise = @client.make_request_async(:delete, path_template, options)
|
404
|
-
|
405
|
-
promise = promise.then do |result|
|
406
|
-
http_response = result.response
|
407
|
-
status_code = http_response.status
|
408
|
-
response_content = http_response.body
|
409
|
-
unless status_code == 204
|
410
|
-
error_model = JSON.load(response_content)
|
411
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
412
|
-
end
|
413
|
-
|
414
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
415
|
-
|
416
|
-
result
|
417
|
-
end
|
418
|
-
|
419
|
-
promise.execute
|
420
|
-
end
|
421
|
-
|
422
|
-
#
|
423
|
-
# Lists the containers registered to the Recovery Services vault.
|
424
|
-
#
|
425
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
426
|
-
# to List operation.
|
427
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
428
|
-
# will be added to the HTTP request.
|
429
|
-
#
|
430
|
-
# @return [ProtectionContainerResourceList] operation results.
|
431
|
-
#
|
432
|
-
def list_next(next_page_link, custom_headers = nil)
|
433
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
434
|
-
response.body unless response.nil?
|
435
|
-
end
|
436
|
-
|
437
|
-
#
|
438
|
-
# Lists the containers registered to the Recovery Services vault.
|
439
|
-
#
|
440
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
441
|
-
# to List operation.
|
442
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
443
|
-
# will be added to the HTTP request.
|
444
|
-
#
|
445
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
446
|
-
#
|
447
|
-
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
448
|
-
list_next_async(next_page_link, custom_headers).value!
|
449
|
-
end
|
450
|
-
|
451
|
-
#
|
452
|
-
# Lists the containers registered to the Recovery Services vault.
|
453
|
-
#
|
454
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
455
|
-
# to List operation.
|
456
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
457
|
-
# to the HTTP request.
|
458
|
-
#
|
459
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
460
|
-
#
|
461
|
-
def list_next_async(next_page_link, custom_headers = nil)
|
462
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
463
|
-
|
464
|
-
|
465
|
-
request_headers = {}
|
466
|
-
|
467
|
-
# Set Headers
|
468
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
469
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
470
|
-
path_template = '{nextLink}'
|
471
|
-
|
472
|
-
request_url = @base_url || @client.base_url
|
473
|
-
|
474
|
-
options = {
|
475
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
476
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
477
|
-
headers: request_headers.merge(custom_headers || {}),
|
478
|
-
base_url: request_url
|
479
|
-
}
|
480
|
-
promise = @client.make_request_async(:get, path_template, options)
|
481
|
-
|
482
|
-
promise = promise.then do |result|
|
483
|
-
http_response = result.response
|
484
|
-
status_code = http_response.status
|
485
|
-
response_content = http_response.body
|
486
|
-
unless status_code == 200
|
487
|
-
error_model = JSON.load(response_content)
|
488
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
489
|
-
end
|
490
|
-
|
491
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
492
|
-
# Deserialize Response
|
493
|
-
if status_code == 200
|
494
|
-
begin
|
495
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
496
|
-
result_mapper = ProtectionContainerResourceList.mapper()
|
497
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
498
|
-
rescue Exception => e
|
499
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
500
|
-
end
|
501
|
-
end
|
502
|
-
|
503
|
-
result
|
504
|
-
end
|
505
|
-
|
506
|
-
promise.execute
|
507
|
-
end
|
508
|
-
|
509
|
-
#
|
510
|
-
# Lists the containers registered to the Recovery Services vault.
|
511
|
-
#
|
512
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
513
|
-
# @param resource_group_name [String] The name of the resource group associated
|
514
|
-
# with the Recovery Services vault.
|
515
|
-
# @param filter [String] The following equation is used to sort or filter the
|
516
|
-
# containers registered to the vault. providerType eq {AzureIaasVM, MAB, DPM,
|
517
|
-
# AzureBackupServer, AzureSql} and status eq {Unknown, NotRegistered,
|
518
|
-
# Registered, Registering} and friendlyName eq {containername} and
|
519
|
-
# backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql}.
|
520
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
521
|
-
# will be added to the HTTP request.
|
522
|
-
#
|
523
|
-
# @return [ProtectionContainerResourceList] which provide lazy access to pages
|
524
|
-
# of the response.
|
525
|
-
#
|
526
|
-
def list_as_lazy(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
527
|
-
response = list_async(vault_name, resource_group_name, filter, custom_headers).value!
|
528
|
-
unless response.nil?
|
529
|
-
page = response.body
|
530
|
-
page.next_method = Proc.new do |next_page_link|
|
531
|
-
list_next_async(next_page_link, custom_headers)
|
532
|
-
end
|
533
|
-
page
|
534
|
-
end
|
535
|
-
end
|
536
|
-
|
537
229
|
end
|
538
230
|
end
|