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_policy_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 ProtectionPolicyOperationResults
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -25,12 +28,13 @@ module Azure::ARM::RecoveryServicesBackup
|
|
25
28
|
#
|
26
29
|
# Provides the result of an operation.
|
27
30
|
#
|
28
|
-
# @param vault_name [String] The name of the
|
29
|
-
# @param resource_group_name [String] The name of the resource group
|
30
|
-
#
|
31
|
-
# @param policy_name [String]
|
32
|
-
#
|
33
|
-
# @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 policy_name [String] Backup policy name whose operation's result needs
|
35
|
+
# to be fetched.
|
36
|
+
# @param operation_id [String] Operation ID which represents the operation
|
37
|
+
# whose result needs to be fetched.
|
34
38
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
35
39
|
# will be added to the HTTP request.
|
36
40
|
#
|
@@ -44,12 +48,13 @@ module Azure::ARM::RecoveryServicesBackup
|
|
44
48
|
#
|
45
49
|
# Provides the result of an operation.
|
46
50
|
#
|
47
|
-
# @param vault_name [String] The name of the
|
48
|
-
# @param resource_group_name [String] The name of the resource group
|
49
|
-
#
|
50
|
-
# @param policy_name [String]
|
51
|
-
#
|
52
|
-
# @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 policy_name [String] Backup policy name whose operation's result needs
|
55
|
+
# to be fetched.
|
56
|
+
# @param operation_id [String] Operation ID which represents the operation
|
57
|
+
# whose result needs to be fetched.
|
53
58
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
54
59
|
# will be added to the HTTP request.
|
55
60
|
#
|
@@ -62,19 +67,20 @@ module Azure::ARM::RecoveryServicesBackup
|
|
62
67
|
#
|
63
68
|
# Provides the result of an operation.
|
64
69
|
#
|
65
|
-
# @param vault_name [String] The name of the
|
66
|
-
# @param resource_group_name [String] The name of the resource group
|
67
|
-
#
|
68
|
-
# @param policy_name [String]
|
69
|
-
#
|
70
|
-
# @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 policy_name [String] Backup policy name whose operation's result needs
|
74
|
+
# to be fetched.
|
75
|
+
# @param operation_id [String] Operation ID which represents the operation
|
76
|
+
# whose result needs to be fetched.
|
71
77
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
72
78
|
# to the HTTP request.
|
73
79
|
#
|
74
80
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
75
81
|
#
|
76
82
|
def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil)
|
77
|
-
api_version = '2016-
|
83
|
+
api_version = '2016-12-01'
|
78
84
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
79
85
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
86
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -87,7 +93,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
87
93
|
# Set Headers
|
88
94
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
89
95
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
90
|
-
path_template = '
|
96
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}'
|
91
97
|
|
92
98
|
request_url = @base_url || @client.base_url
|
93
99
|
|
@@ -114,8 +120,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
114
120
|
if status_code == 200
|
115
121
|
begin
|
116
122
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
117
|
-
result_mapper = ProtectionPolicyResource.mapper()
|
118
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
123
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::ProtectionPolicyResource.mapper()
|
124
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
119
125
|
rescue Exception => e
|
120
126
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
121
127
|
end
|
data/lib/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.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 ProtectionPolicyOperationStatuses
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,18 +26,19 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
# Provides the status of the asynchronous operations like backup
|
27
|
-
#
|
28
|
-
# Operation Status
|
29
|
+
# Provides the status of the asynchronous operations like backup, restore. The
|
30
|
+
# status can be in progress, completed or failed. You can refer to the
|
31
|
+
# Operation Status enum for all the possible states of an operation. Some
|
29
32
|
# operations create jobs. This method returns the list of jobs associated with
|
30
|
-
# the operation.
|
31
|
-
#
|
32
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
33
|
-
# @param resource_group_name [String] The name of the resource group associated
|
34
|
-
# with the Recovery Services vault.
|
35
|
-
# @param policy_name [String] The backup policy name used in this GET
|
36
33
|
# operation.
|
37
|
-
#
|
34
|
+
#
|
35
|
+
# @param vault_name [String] The name of the recovery services vault.
|
36
|
+
# @param resource_group_name [String] The name of the resource group where the
|
37
|
+
# recovery services vault is present.
|
38
|
+
# @param policy_name [String] Backup policy name whose operation's status needs
|
39
|
+
# to be fetched.
|
40
|
+
# @param operation_id [String] Operation ID which represents an operation whose
|
41
|
+
# status needs to be fetched.
|
38
42
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
39
43
|
# will be added to the HTTP request.
|
40
44
|
#
|
@@ -46,18 +50,19 @@ module Azure::ARM::RecoveryServicesBackup
|
|
46
50
|
end
|
47
51
|
|
48
52
|
#
|
49
|
-
# Provides the status of the asynchronous operations like backup
|
50
|
-
#
|
51
|
-
# Operation Status
|
53
|
+
# Provides the status of the asynchronous operations like backup, restore. The
|
54
|
+
# status can be in progress, completed or failed. You can refer to the
|
55
|
+
# Operation Status enum for all the possible states of an operation. Some
|
52
56
|
# operations create jobs. This method returns the list of jobs associated with
|
53
|
-
# the operation.
|
54
|
-
#
|
55
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
56
|
-
# @param resource_group_name [String] The name of the resource group associated
|
57
|
-
# with the Recovery Services vault.
|
58
|
-
# @param policy_name [String] The backup policy name used in this GET
|
59
57
|
# operation.
|
60
|
-
#
|
58
|
+
#
|
59
|
+
# @param vault_name [String] The name of the recovery services vault.
|
60
|
+
# @param resource_group_name [String] The name of the resource group where the
|
61
|
+
# recovery services vault is present.
|
62
|
+
# @param policy_name [String] Backup policy name whose operation's status needs
|
63
|
+
# to be fetched.
|
64
|
+
# @param operation_id [String] Operation ID which represents an operation whose
|
65
|
+
# status needs to be fetched.
|
61
66
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
62
67
|
# will be added to the HTTP request.
|
63
68
|
#
|
@@ -68,25 +73,26 @@ module Azure::ARM::RecoveryServicesBackup
|
|
68
73
|
end
|
69
74
|
|
70
75
|
#
|
71
|
-
# Provides the status of the asynchronous operations like backup
|
72
|
-
#
|
73
|
-
# Operation Status
|
76
|
+
# Provides the status of the asynchronous operations like backup, restore. The
|
77
|
+
# status can be in progress, completed or failed. You can refer to the
|
78
|
+
# Operation Status enum for all the possible states of an operation. Some
|
74
79
|
# operations create jobs. This method returns the list of jobs associated with
|
75
|
-
# the operation.
|
76
|
-
#
|
77
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
78
|
-
# @param resource_group_name [String] The name of the resource group associated
|
79
|
-
# with the Recovery Services vault.
|
80
|
-
# @param policy_name [String] The backup policy name used in this GET
|
81
80
|
# operation.
|
82
|
-
#
|
81
|
+
#
|
82
|
+
# @param vault_name [String] The name of the recovery services vault.
|
83
|
+
# @param resource_group_name [String] The name of the resource group where the
|
84
|
+
# recovery services vault is present.
|
85
|
+
# @param policy_name [String] Backup policy name whose operation's status needs
|
86
|
+
# to be fetched.
|
87
|
+
# @param operation_id [String] Operation ID which represents an operation whose
|
88
|
+
# status needs to be fetched.
|
83
89
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
84
90
|
# to the HTTP request.
|
85
91
|
#
|
86
92
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
87
93
|
#
|
88
94
|
def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil)
|
89
|
-
api_version = '2016-
|
95
|
+
api_version = '2016-12-01'
|
90
96
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
91
97
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
92
98
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -99,7 +105,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
99
105
|
# Set Headers
|
100
106
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
101
107
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
102
|
-
path_template = '
|
108
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}'
|
103
109
|
|
104
110
|
request_url = @base_url || @client.base_url
|
105
111
|
|
@@ -126,8 +132,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
126
132
|
if status_code == 200
|
127
133
|
begin
|
128
134
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
129
|
-
result_mapper = OperationStatus.mapper()
|
130
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
135
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::OperationStatus.mapper()
|
136
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
131
137
|
rescue Exception => e
|
132
138
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
133
139
|
end
|
@@ -1,14 +1,17 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
#
|
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 RecoveryPoints
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,83 +26,73 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
#
|
27
|
-
# operation. To learn the status of the operation, call the
|
28
|
-
# GetProtectedItemOperationResult API.
|
29
|
+
# Lists the backup copies for the backed up item.
|
29
30
|
#
|
30
|
-
# @param vault_name [String] The name of the
|
31
|
-
# @param resource_group_name [String] The name of the resource group
|
32
|
-
#
|
33
|
-
# @param fabric_name [String]
|
34
|
-
# @param container_name [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 backed up item.
|
35
|
+
# @param container_name [String] Container name associated with the backed up
|
35
36
|
# item.
|
36
|
-
# @param protected_item_name [String]
|
37
|
-
#
|
38
|
-
# @param
|
39
|
-
# GET operation.
|
37
|
+
# @param protected_item_name [String] Backed up item whose backup copies are to
|
38
|
+
# be fetched.
|
39
|
+
# @param filter [String] OData filter options.
|
40
40
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
41
|
# will be added to the HTTP request.
|
42
42
|
#
|
43
|
-
# @return [RecoveryPointResource] operation results.
|
43
|
+
# @return [Array<RecoveryPointResource>] operation results.
|
44
44
|
#
|
45
|
-
def
|
46
|
-
|
47
|
-
|
45
|
+
def list(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
|
46
|
+
first_page = list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers)
|
47
|
+
first_page.get_all_items
|
48
48
|
end
|
49
49
|
|
50
50
|
#
|
51
|
-
#
|
52
|
-
# operation. To learn the status of the operation, call the
|
53
|
-
# GetProtectedItemOperationResult API.
|
51
|
+
# Lists the backup copies for the backed up item.
|
54
52
|
#
|
55
|
-
# @param vault_name [String] The name of the
|
56
|
-
# @param resource_group_name [String] The name of the resource group
|
57
|
-
#
|
58
|
-
# @param fabric_name [String]
|
59
|
-
# @param container_name [String]
|
53
|
+
# @param vault_name [String] The name of the recovery services vault.
|
54
|
+
# @param resource_group_name [String] The name of the resource group where the
|
55
|
+
# recovery services vault is present.
|
56
|
+
# @param fabric_name [String] Fabric name associated with the backed up item.
|
57
|
+
# @param container_name [String] Container name associated with the backed up
|
60
58
|
# item.
|
61
|
-
# @param protected_item_name [String]
|
62
|
-
#
|
63
|
-
# @param
|
64
|
-
# GET operation.
|
59
|
+
# @param protected_item_name [String] Backed up item whose backup copies are to
|
60
|
+
# be fetched.
|
61
|
+
# @param filter [String] OData filter options.
|
65
62
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
66
63
|
# will be added to the HTTP request.
|
67
64
|
#
|
68
65
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
69
66
|
#
|
70
|
-
def
|
71
|
-
|
67
|
+
def list_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
|
68
|
+
list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value!
|
72
69
|
end
|
73
70
|
|
74
71
|
#
|
75
|
-
#
|
76
|
-
# operation. To learn the status of the operation, call the
|
77
|
-
# GetProtectedItemOperationResult API.
|
72
|
+
# Lists the backup copies for the backed up item.
|
78
73
|
#
|
79
|
-
# @param vault_name [String] The name of the
|
80
|
-
# @param resource_group_name [String] The name of the resource group
|
81
|
-
#
|
82
|
-
# @param fabric_name [String]
|
83
|
-
# @param container_name [String]
|
74
|
+
# @param vault_name [String] The name of the recovery services vault.
|
75
|
+
# @param resource_group_name [String] The name of the resource group where the
|
76
|
+
# recovery services vault is present.
|
77
|
+
# @param fabric_name [String] Fabric name associated with the backed up item.
|
78
|
+
# @param container_name [String] Container name associated with the backed up
|
84
79
|
# item.
|
85
|
-
# @param protected_item_name [String]
|
86
|
-
#
|
87
|
-
# @param
|
88
|
-
# GET operation.
|
80
|
+
# @param protected_item_name [String] Backed up item whose backup copies are to
|
81
|
+
# be fetched.
|
82
|
+
# @param filter [String] OData filter options.
|
89
83
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
90
84
|
# to the HTTP request.
|
91
85
|
#
|
92
86
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
93
87
|
#
|
94
|
-
def
|
95
|
-
api_version = '2016-
|
88
|
+
def list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil)
|
89
|
+
api_version = '2016-12-01'
|
96
90
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
97
91
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
98
92
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
99
93
|
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
100
94
|
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
101
95
|
fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
|
102
|
-
fail ArgumentError, 'recovery_point_id is nil' if recovery_point_id.nil?
|
103
96
|
|
104
97
|
|
105
98
|
request_headers = {}
|
@@ -107,14 +100,14 @@ module Azure::ARM::RecoveryServicesBackup
|
|
107
100
|
# Set Headers
|
108
101
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
109
102
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
110
|
-
path_template = '
|
103
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints'
|
111
104
|
|
112
105
|
request_url = @base_url || @client.base_url
|
113
106
|
|
114
107
|
options = {
|
115
108
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
116
|
-
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name
|
117
|
-
query_params: {'api-version' => api_version},
|
109
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name},
|
110
|
+
query_params: {'api-version' => api_version,'$filter' => filter},
|
118
111
|
headers: request_headers.merge(custom_headers || {}),
|
119
112
|
base_url: request_url
|
120
113
|
}
|
@@ -134,8 +127,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
134
127
|
if status_code == 200
|
135
128
|
begin
|
136
129
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
137
|
-
result_mapper =
|
138
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
130
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::RecoveryPointResourceList.mapper()
|
131
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
139
132
|
rescue Exception => e
|
140
133
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
141
134
|
end
|
@@ -148,76 +141,80 @@ module Azure::ARM::RecoveryServicesBackup
|
|
148
141
|
end
|
149
142
|
|
150
143
|
#
|
151
|
-
#
|
144
|
+
# Provides the information of the backed up data identified using
|
145
|
+
# RecoveryPointID. This is an asynchronous operation. To know the status of the
|
146
|
+
# operation, call the GetProtectedItemOperationResult API.
|
152
147
|
#
|
153
|
-
# @param vault_name [String] The name of the
|
154
|
-
# @param resource_group_name [String] The name of the resource group
|
155
|
-
#
|
156
|
-
# @param fabric_name [String]
|
157
|
-
# @param container_name [String]
|
158
|
-
# item
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
# yyyy-mm-dd hh:mm:ss PM}.
|
148
|
+
# @param vault_name [String] The name of the recovery services vault.
|
149
|
+
# @param resource_group_name [String] The name of the resource group where the
|
150
|
+
# recovery services vault is present.
|
151
|
+
# @param fabric_name [String] Fabric name associated with backed up item.
|
152
|
+
# @param container_name [String] Container name associated with backed up item.
|
153
|
+
# @param protected_item_name [String] Backed up item name whose backup data
|
154
|
+
# needs to be fetched.
|
155
|
+
# @param recovery_point_id [String] RecoveryPointID represents the backed up
|
156
|
+
# data to be fetched.
|
163
157
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
164
158
|
# will be added to the HTTP request.
|
165
159
|
#
|
166
|
-
# @return [
|
160
|
+
# @return [RecoveryPointResource] operation results.
|
167
161
|
#
|
168
|
-
def
|
169
|
-
|
170
|
-
|
162
|
+
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
|
163
|
+
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value!
|
164
|
+
response.body unless response.nil?
|
171
165
|
end
|
172
166
|
|
173
167
|
#
|
174
|
-
#
|
168
|
+
# Provides the information of the backed up data identified using
|
169
|
+
# RecoveryPointID. This is an asynchronous operation. To know the status of the
|
170
|
+
# operation, call the GetProtectedItemOperationResult API.
|
175
171
|
#
|
176
|
-
# @param vault_name [String] The name of the
|
177
|
-
# @param resource_group_name [String] The name of the resource group
|
178
|
-
#
|
179
|
-
# @param fabric_name [String]
|
180
|
-
# @param container_name [String]
|
181
|
-
# item
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
# yyyy-mm-dd hh:mm:ss PM}.
|
172
|
+
# @param vault_name [String] The name of the recovery services vault.
|
173
|
+
# @param resource_group_name [String] The name of the resource group where the
|
174
|
+
# recovery services vault is present.
|
175
|
+
# @param fabric_name [String] Fabric name associated with backed up item.
|
176
|
+
# @param container_name [String] Container name associated with backed up item.
|
177
|
+
# @param protected_item_name [String] Backed up item name whose backup data
|
178
|
+
# needs to be fetched.
|
179
|
+
# @param recovery_point_id [String] RecoveryPointID represents the backed up
|
180
|
+
# data to be fetched.
|
186
181
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
187
182
|
# will be added to the HTTP request.
|
188
183
|
#
|
189
184
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
190
185
|
#
|
191
|
-
def
|
192
|
-
|
186
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
|
187
|
+
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value!
|
193
188
|
end
|
194
189
|
|
195
190
|
#
|
196
|
-
#
|
191
|
+
# Provides the information of the backed up data identified using
|
192
|
+
# RecoveryPointID. This is an asynchronous operation. To know the status of the
|
193
|
+
# operation, call the GetProtectedItemOperationResult API.
|
197
194
|
#
|
198
|
-
# @param vault_name [String] The name of the
|
199
|
-
# @param resource_group_name [String] The name of the resource group
|
200
|
-
#
|
201
|
-
# @param fabric_name [String]
|
202
|
-
# @param container_name [String]
|
203
|
-
# item
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
207
|
-
# yyyy-mm-dd hh:mm:ss PM}.
|
195
|
+
# @param vault_name [String] The name of the recovery services vault.
|
196
|
+
# @param resource_group_name [String] The name of the resource group where the
|
197
|
+
# recovery services vault is present.
|
198
|
+
# @param fabric_name [String] Fabric name associated with backed up item.
|
199
|
+
# @param container_name [String] Container name associated with backed up item.
|
200
|
+
# @param protected_item_name [String] Backed up item name whose backup data
|
201
|
+
# needs to be fetched.
|
202
|
+
# @param recovery_point_id [String] RecoveryPointID represents the backed up
|
203
|
+
# data to be fetched.
|
208
204
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
209
205
|
# to the HTTP request.
|
210
206
|
#
|
211
207
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
212
208
|
#
|
213
|
-
def
|
214
|
-
api_version = '2016-
|
209
|
+
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
|
210
|
+
api_version = '2016-12-01'
|
215
211
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
216
212
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
217
213
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
218
214
|
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
219
215
|
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
220
216
|
fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
|
217
|
+
fail ArgumentError, 'recovery_point_id is nil' if recovery_point_id.nil?
|
221
218
|
|
222
219
|
|
223
220
|
request_headers = {}
|
@@ -225,14 +222,14 @@ module Azure::ARM::RecoveryServicesBackup
|
|
225
222
|
# Set Headers
|
226
223
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
227
224
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
228
|
-
path_template = '
|
225
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}'
|
229
226
|
|
230
227
|
request_url = @base_url || @client.base_url
|
231
228
|
|
232
229
|
options = {
|
233
230
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
234
|
-
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name},
|
235
|
-
query_params: {'api-version' => api_version
|
231
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name,'recoveryPointId' => recovery_point_id},
|
232
|
+
query_params: {'api-version' => api_version},
|
236
233
|
headers: request_headers.merge(custom_headers || {}),
|
237
234
|
base_url: request_url
|
238
235
|
}
|
@@ -252,8 +249,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
252
249
|
if status_code == 200
|
253
250
|
begin
|
254
251
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
255
|
-
result_mapper =
|
256
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
252
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::RecoveryPointResource.mapper()
|
253
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
257
254
|
rescue Exception => e
|
258
255
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
259
256
|
end
|
@@ -266,7 +263,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
266
263
|
end
|
267
264
|
|
268
265
|
#
|
269
|
-
# Lists the
|
266
|
+
# Lists the backup copies for the backed up item.
|
270
267
|
#
|
271
268
|
# @param next_page_link [String] The NextLink from the previous successful call
|
272
269
|
# to List operation.
|
@@ -281,7 +278,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
281
278
|
end
|
282
279
|
|
283
280
|
#
|
284
|
-
# Lists the
|
281
|
+
# Lists the backup copies for the backed up item.
|
285
282
|
#
|
286
283
|
# @param next_page_link [String] The NextLink from the previous successful call
|
287
284
|
# to List operation.
|
@@ -295,7 +292,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
295
292
|
end
|
296
293
|
|
297
294
|
#
|
298
|
-
# Lists the
|
295
|
+
# Lists the backup copies for the backed up item.
|
299
296
|
#
|
300
297
|
# @param next_page_link [String] The NextLink from the previous successful call
|
301
298
|
# to List operation.
|
@@ -339,8 +336,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
339
336
|
if status_code == 200
|
340
337
|
begin
|
341
338
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
342
|
-
result_mapper = RecoveryPointResourceList.mapper()
|
343
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
339
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::RecoveryPointResourceList.mapper()
|
340
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
344
341
|
rescue Exception => e
|
345
342
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
346
343
|
end
|
@@ -353,18 +350,17 @@ module Azure::ARM::RecoveryServicesBackup
|
|
353
350
|
end
|
354
351
|
|
355
352
|
#
|
356
|
-
# Lists the
|
353
|
+
# Lists the backup copies for the backed up item.
|
357
354
|
#
|
358
|
-
# @param vault_name [String] The name of the
|
359
|
-
# @param resource_group_name [String] The name of the resource group
|
360
|
-
#
|
361
|
-
# @param fabric_name [String]
|
362
|
-
# @param container_name [String]
|
355
|
+
# @param vault_name [String] The name of the recovery services vault.
|
356
|
+
# @param resource_group_name [String] The name of the resource group where the
|
357
|
+
# recovery services vault is present.
|
358
|
+
# @param fabric_name [String] Fabric name associated with the backed up item.
|
359
|
+
# @param container_name [String] Container name associated with the backed up
|
363
360
|
# item.
|
364
|
-
# @param protected_item_name [String]
|
365
|
-
#
|
366
|
-
# @param filter [String]
|
367
|
-
# yyyy-mm-dd hh:mm:ss PM}.
|
361
|
+
# @param protected_item_name [String] Backed up item whose backup copies are to
|
362
|
+
# be fetched.
|
363
|
+
# @param filter [String] OData filter options.
|
368
364
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
369
365
|
# will be added to the HTTP request.
|
370
366
|
#
|