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
@@ -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 JobCancellations
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,12 +26,12 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
# Cancels
|
27
|
-
# cancellation, call
|
29
|
+
# Cancels a job. This is an asynchronous operation. To know the status of the
|
30
|
+
# cancellation, call GetCancelOperationResult API.
|
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 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.
|
32
35
|
# @param job_name [String] Name of the job to cancel.
|
33
36
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
37
|
# will be added to the HTTP request.
|
@@ -40,12 +43,12 @@ module Azure::ARM::RecoveryServicesBackup
|
|
40
43
|
end
|
41
44
|
|
42
45
|
#
|
43
|
-
# Cancels
|
44
|
-
# cancellation, call
|
46
|
+
# Cancels a job. This is an asynchronous operation. To know the status of the
|
47
|
+
# cancellation, call GetCancelOperationResult API.
|
45
48
|
#
|
46
|
-
# @param vault_name [String] The name of the
|
47
|
-
# @param resource_group_name [String] The name of the resource group
|
48
|
-
#
|
49
|
+
# @param vault_name [String] The name of the recovery services vault.
|
50
|
+
# @param resource_group_name [String] The name of the resource group where the
|
51
|
+
# recovery services vault is present.
|
49
52
|
# @param job_name [String] Name of the job to cancel.
|
50
53
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
54
|
# will be added to the HTTP request.
|
@@ -57,12 +60,12 @@ module Azure::ARM::RecoveryServicesBackup
|
|
57
60
|
end
|
58
61
|
|
59
62
|
#
|
60
|
-
# Cancels
|
61
|
-
# cancellation, call
|
63
|
+
# Cancels a job. This is an asynchronous operation. To know the status of the
|
64
|
+
# cancellation, call GetCancelOperationResult API.
|
62
65
|
#
|
63
|
-
# @param vault_name [String] The name of the
|
64
|
-
# @param resource_group_name [String] The name of the resource group
|
65
|
-
#
|
66
|
+
# @param vault_name [String] The name of the recovery services vault.
|
67
|
+
# @param resource_group_name [String] The name of the resource group where the
|
68
|
+
# recovery services vault is present.
|
66
69
|
# @param job_name [String] Name of the job to cancel.
|
67
70
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
71
|
# to the HTTP request.
|
@@ -70,7 +73,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
70
73
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
74
|
#
|
72
75
|
def trigger_async(vault_name, resource_group_name, job_name, custom_headers = nil)
|
73
|
-
api_version = '2016-
|
76
|
+
api_version = '2016-12-01'
|
74
77
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
75
78
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
76
79
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -82,7 +85,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
82
85
|
# Set Headers
|
83
86
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
87
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
-
path_template = '
|
88
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel'
|
86
89
|
|
87
90
|
request_url = @base_url || @client.base_url
|
88
91
|
|
@@ -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 JobDetails
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,12 +26,12 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
# Gets
|
29
|
+
# Gets exteded information associated with the job.
|
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 job_name [String] Name of the job
|
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 job_name [String] Name of the job whose details are to be fetched.
|
32
35
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
36
|
# will be added to the HTTP request.
|
34
37
|
#
|
@@ -40,12 +43,12 @@ module Azure::ARM::RecoveryServicesBackup
|
|
40
43
|
end
|
41
44
|
|
42
45
|
#
|
43
|
-
# Gets
|
46
|
+
# Gets exteded information associated with the job.
|
44
47
|
#
|
45
|
-
# @param vault_name [String] The name of the
|
46
|
-
# @param resource_group_name [String] The name of the resource group
|
47
|
-
#
|
48
|
-
# @param job_name [String] Name of the job
|
48
|
+
# @param vault_name [String] The name of the recovery services vault.
|
49
|
+
# @param resource_group_name [String] The name of the resource group where the
|
50
|
+
# recovery services vault is present.
|
51
|
+
# @param job_name [String] Name of the job whose details are to be fetched.
|
49
52
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
53
|
# will be added to the HTTP request.
|
51
54
|
#
|
@@ -56,19 +59,19 @@ module Azure::ARM::RecoveryServicesBackup
|
|
56
59
|
end
|
57
60
|
|
58
61
|
#
|
59
|
-
# Gets
|
62
|
+
# Gets exteded information associated with the job.
|
60
63
|
#
|
61
|
-
# @param vault_name [String] The name of the
|
62
|
-
# @param resource_group_name [String] The name of the resource group
|
63
|
-
#
|
64
|
-
# @param job_name [String] Name of the job
|
64
|
+
# @param vault_name [String] The name of the recovery services vault.
|
65
|
+
# @param resource_group_name [String] The name of the resource group where the
|
66
|
+
# recovery services vault is present.
|
67
|
+
# @param job_name [String] Name of the job whose details are to be fetched.
|
65
68
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
66
69
|
# to the HTTP request.
|
67
70
|
#
|
68
71
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
69
72
|
#
|
70
73
|
def get_async(vault_name, resource_group_name, job_name, custom_headers = nil)
|
71
|
-
api_version = '2016-
|
74
|
+
api_version = '2016-12-01'
|
72
75
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
73
76
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
77
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -80,7 +83,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
80
83
|
# Set Headers
|
81
84
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
82
85
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
83
|
-
path_template = '
|
86
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}'
|
84
87
|
|
85
88
|
request_url = @base_url || @client.base_url
|
86
89
|
|
@@ -107,8 +110,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
107
110
|
if status_code == 200
|
108
111
|
begin
|
109
112
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
110
|
-
result_mapper = JobResource.mapper()
|
111
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
113
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::JobResource.mapper()
|
114
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
112
115
|
rescue Exception => e
|
113
116
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
114
117
|
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 JobOperationResults
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,13 +26,15 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
#
|
29
|
+
# Fetches the result of any operation.
|
30
|
+
# the operation.
|
27
31
|
#
|
28
|
-
# @param vault_name [String] The name of the
|
29
|
-
# @param resource_group_name [String] The name of the resource group
|
30
|
-
#
|
31
|
-
# @param job_name [String] Job name
|
32
|
-
# @param operation_id [String] OperationID
|
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 job_name [String] Job name whose operation result has to be fetched.
|
36
|
+
# @param operation_id [String] OperationID which represents the operation whose
|
37
|
+
# result has to be fetched.
|
33
38
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
39
|
# will be added to the HTTP request.
|
35
40
|
#
|
@@ -40,13 +45,15 @@ module Azure::ARM::RecoveryServicesBackup
|
|
40
45
|
end
|
41
46
|
|
42
47
|
#
|
43
|
-
#
|
48
|
+
# Fetches the result of any operation.
|
49
|
+
# the operation.
|
44
50
|
#
|
45
|
-
# @param vault_name [String] The name of the
|
46
|
-
# @param resource_group_name [String] The name of the resource group
|
47
|
-
#
|
48
|
-
# @param job_name [String] Job name
|
49
|
-
# @param operation_id [String] OperationID
|
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 job_name [String] Job name whose operation result has to be fetched.
|
55
|
+
# @param operation_id [String] OperationID which represents the operation whose
|
56
|
+
# result has to be fetched.
|
50
57
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
58
|
# will be added to the HTTP request.
|
52
59
|
#
|
@@ -57,20 +64,22 @@ module Azure::ARM::RecoveryServicesBackup
|
|
57
64
|
end
|
58
65
|
|
59
66
|
#
|
60
|
-
#
|
67
|
+
# Fetches the result of any operation.
|
68
|
+
# the operation.
|
61
69
|
#
|
62
|
-
# @param vault_name [String] The name of the
|
63
|
-
# @param resource_group_name [String] The name of the resource group
|
64
|
-
#
|
65
|
-
# @param job_name [String] Job name
|
66
|
-
# @param operation_id [String] OperationID
|
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 job_name [String] Job name whose operation result has to be fetched.
|
74
|
+
# @param operation_id [String] OperationID which represents the operation whose
|
75
|
+
# result has to be fetched.
|
67
76
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
77
|
# to the HTTP request.
|
69
78
|
#
|
70
79
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
80
|
#
|
72
81
|
def get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers = nil)
|
73
|
-
api_version = '2016-
|
82
|
+
api_version = '2016-12-01'
|
74
83
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
75
84
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
76
85
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -83,7 +92,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
83
92
|
# Set Headers
|
84
93
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
85
94
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
86
|
-
path_template = '
|
95
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}'
|
87
96
|
|
88
97
|
request_url = @base_url || @client.base_url
|
89
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 Jobs
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,18 +26,13 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
#
|
27
|
-
#
|
29
|
+
# Triggers export of jobs specified by filters and returns an OperationID to
|
30
|
+
# track.
|
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 filter [String]
|
33
|
-
# Completed , Failed , CompletedWithWarnings , Cancelled , Cancelling } and
|
34
|
-
# backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql }
|
35
|
-
# and operation eq { ConfigureBackup , Backup , Restore , DisableBackup ,
|
36
|
-
# DeleteBackupData } and jobId eq {guid} and startTime eq { yyyy-mm-dd hh:mm:ss
|
37
|
-
# PM } and endTime eq { yyyy-mm-dd hh:mm:ss PM }.
|
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 filter [String] OData filter options.
|
38
36
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
39
37
|
# will be added to the HTTP request.
|
40
38
|
#
|
@@ -45,18 +43,13 @@ module Azure::ARM::RecoveryServicesBackup
|
|
45
43
|
end
|
46
44
|
|
47
45
|
#
|
48
|
-
#
|
49
|
-
#
|
46
|
+
# Triggers export of jobs specified by filters and returns an OperationID to
|
47
|
+
# track.
|
50
48
|
#
|
51
|
-
# @param vault_name [String] The name of the
|
52
|
-
# @param resource_group_name [String] The name of the resource group
|
53
|
-
#
|
54
|
-
# @param filter [String]
|
55
|
-
# Completed , Failed , CompletedWithWarnings , Cancelled , Cancelling } and
|
56
|
-
# backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql }
|
57
|
-
# and operation eq { ConfigureBackup , Backup , Restore , DisableBackup ,
|
58
|
-
# DeleteBackupData } and jobId eq {guid} and startTime eq { yyyy-mm-dd hh:mm:ss
|
59
|
-
# PM } and endTime eq { yyyy-mm-dd hh:mm:ss PM }.
|
49
|
+
# @param vault_name [String] The name of the recovery services vault.
|
50
|
+
# @param resource_group_name [String] The name of the resource group where the
|
51
|
+
# recovery services vault is present.
|
52
|
+
# @param filter [String] OData filter options.
|
60
53
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
61
54
|
# will be added to the HTTP request.
|
62
55
|
#
|
@@ -67,25 +60,20 @@ module Azure::ARM::RecoveryServicesBackup
|
|
67
60
|
end
|
68
61
|
|
69
62
|
#
|
70
|
-
#
|
71
|
-
#
|
63
|
+
# Triggers export of jobs specified by filters and returns an OperationID to
|
64
|
+
# track.
|
72
65
|
#
|
73
|
-
# @param vault_name [String] The name of the
|
74
|
-
# @param resource_group_name [String] The name of the resource group
|
75
|
-
#
|
76
|
-
# @param filter [String]
|
77
|
-
# Completed , Failed , CompletedWithWarnings , Cancelled , Cancelling } and
|
78
|
-
# backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql }
|
79
|
-
# and operation eq { ConfigureBackup , Backup , Restore , DisableBackup ,
|
80
|
-
# DeleteBackupData } and jobId eq {guid} and startTime eq { yyyy-mm-dd hh:mm:ss
|
81
|
-
# PM } and endTime eq { yyyy-mm-dd hh:mm:ss PM }.
|
66
|
+
# @param vault_name [String] The name of the recovery services vault.
|
67
|
+
# @param resource_group_name [String] The name of the resource group where the
|
68
|
+
# recovery services vault is present.
|
69
|
+
# @param filter [String] OData filter options.
|
82
70
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
83
71
|
# to the HTTP request.
|
84
72
|
#
|
85
73
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
86
74
|
#
|
87
75
|
def export_async(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
88
|
-
api_version = '2016-
|
76
|
+
api_version = '2016-12-01'
|
89
77
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
90
78
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
91
79
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -96,7 +84,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
96
84
|
# Set Headers
|
97
85
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
98
86
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
99
|
-
path_template = '
|
87
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport'
|
100
88
|
|
101
89
|
request_url = @base_url || @client.base_url
|
102
90
|
|
@@ -126,244 +114,5 @@ module Azure::ARM::RecoveryServicesBackup
|
|
126
114
|
promise.execute
|
127
115
|
end
|
128
116
|
|
129
|
-
#
|
130
|
-
# Provides a pageable list of jobs.
|
131
|
-
#
|
132
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
133
|
-
# @param resource_group_name [String] The name of the resource group associated
|
134
|
-
# with the Recovery Services vault.
|
135
|
-
# @param filter [String] The following equation can be used to filter the list
|
136
|
-
# of jobs based on status, type, start date, and end date. status eq {
|
137
|
-
# InProgress , Completed , Failed , CompletedWithWarnings , Cancelled ,
|
138
|
-
# Cancelling } and backupManagementType eq {AzureIaasVM, MAB, DPM,
|
139
|
-
# AzureBackupServer, AzureSql } and operation eq { ConfigureBackup , Backup ,
|
140
|
-
# Restore , DisableBackup , DeleteBackupData } and jobId eq {guid} and
|
141
|
-
# startTime eq { yyyy-mm-dd hh:mm:ss PM } and endTime eq { yyyy-mm-dd hh:mm:ss
|
142
|
-
# PM }.
|
143
|
-
# @param skip_token [String] The Skip Token filter.
|
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<JobResource>] operation results.
|
148
|
-
#
|
149
|
-
def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
150
|
-
first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers)
|
151
|
-
first_page.get_all_items
|
152
|
-
end
|
153
|
-
|
154
|
-
#
|
155
|
-
# Provides a pageable list of jobs.
|
156
|
-
#
|
157
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
158
|
-
# @param resource_group_name [String] The name of the resource group associated
|
159
|
-
# with the Recovery Services vault.
|
160
|
-
# @param filter [String] The following equation can be used to filter the list
|
161
|
-
# of jobs based on status, type, start date, and end date. status eq {
|
162
|
-
# InProgress , Completed , Failed , CompletedWithWarnings , Cancelled ,
|
163
|
-
# Cancelling } and backupManagementType eq {AzureIaasVM, MAB, DPM,
|
164
|
-
# AzureBackupServer, AzureSql } and operation eq { ConfigureBackup , Backup ,
|
165
|
-
# Restore , DisableBackup , DeleteBackupData } and jobId eq {guid} and
|
166
|
-
# startTime eq { yyyy-mm-dd hh:mm:ss PM } and endTime eq { yyyy-mm-dd hh:mm:ss
|
167
|
-
# PM }.
|
168
|
-
# @param skip_token [String] The Skip Token filter.
|
169
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
170
|
-
# will be added to the HTTP request.
|
171
|
-
#
|
172
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
173
|
-
#
|
174
|
-
def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
175
|
-
list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value!
|
176
|
-
end
|
177
|
-
|
178
|
-
#
|
179
|
-
# Provides a pageable list of jobs.
|
180
|
-
#
|
181
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
182
|
-
# @param resource_group_name [String] The name of the resource group associated
|
183
|
-
# with the Recovery Services vault.
|
184
|
-
# @param filter [String] The following equation can be used to filter the list
|
185
|
-
# of jobs based on status, type, start date, and end date. status eq {
|
186
|
-
# InProgress , Completed , Failed , CompletedWithWarnings , Cancelled ,
|
187
|
-
# Cancelling } and backupManagementType eq {AzureIaasVM, MAB, DPM,
|
188
|
-
# AzureBackupServer, AzureSql } and operation eq { ConfigureBackup , Backup ,
|
189
|
-
# Restore , DisableBackup , DeleteBackupData } and jobId eq {guid} and
|
190
|
-
# startTime eq { yyyy-mm-dd hh:mm:ss PM } and endTime eq { yyyy-mm-dd hh:mm:ss
|
191
|
-
# PM }.
|
192
|
-
# @param skip_token [String] The Skip Token filter.
|
193
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
194
|
-
# to the HTTP request.
|
195
|
-
#
|
196
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
197
|
-
#
|
198
|
-
def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
199
|
-
api_version = '2016-06-01'
|
200
|
-
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
201
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
202
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
203
|
-
|
204
|
-
|
205
|
-
request_headers = {}
|
206
|
-
|
207
|
-
# Set Headers
|
208
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
209
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
210
|
-
path_template = '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs'
|
211
|
-
|
212
|
-
request_url = @base_url || @client.base_url
|
213
|
-
|
214
|
-
options = {
|
215
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
216
|
-
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
217
|
-
query_params: {'api-version' => api_version,'$filter' => filter,'$skipToken' => skip_token},
|
218
|
-
headers: request_headers.merge(custom_headers || {}),
|
219
|
-
base_url: request_url
|
220
|
-
}
|
221
|
-
promise = @client.make_request_async(:get, path_template, options)
|
222
|
-
|
223
|
-
promise = promise.then do |result|
|
224
|
-
http_response = result.response
|
225
|
-
status_code = http_response.status
|
226
|
-
response_content = http_response.body
|
227
|
-
unless status_code == 200
|
228
|
-
error_model = JSON.load(response_content)
|
229
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
230
|
-
end
|
231
|
-
|
232
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
233
|
-
# Deserialize Response
|
234
|
-
if status_code == 200
|
235
|
-
begin
|
236
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
237
|
-
result_mapper = JobResourceList.mapper()
|
238
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
239
|
-
rescue Exception => e
|
240
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
|
-
result
|
245
|
-
end
|
246
|
-
|
247
|
-
promise.execute
|
248
|
-
end
|
249
|
-
|
250
|
-
#
|
251
|
-
# Provides a pageable list of jobs.
|
252
|
-
#
|
253
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
254
|
-
# to List operation.
|
255
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
256
|
-
# will be added to the HTTP request.
|
257
|
-
#
|
258
|
-
# @return [JobResourceList] operation results.
|
259
|
-
#
|
260
|
-
def list_next(next_page_link, custom_headers = nil)
|
261
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
262
|
-
response.body unless response.nil?
|
263
|
-
end
|
264
|
-
|
265
|
-
#
|
266
|
-
# Provides a pageable list of jobs.
|
267
|
-
#
|
268
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
269
|
-
# to List operation.
|
270
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
271
|
-
# will be added to the HTTP request.
|
272
|
-
#
|
273
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
274
|
-
#
|
275
|
-
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
276
|
-
list_next_async(next_page_link, custom_headers).value!
|
277
|
-
end
|
278
|
-
|
279
|
-
#
|
280
|
-
# Provides a pageable list of jobs.
|
281
|
-
#
|
282
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
283
|
-
# to List operation.
|
284
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
285
|
-
# to the HTTP request.
|
286
|
-
#
|
287
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
288
|
-
#
|
289
|
-
def list_next_async(next_page_link, custom_headers = nil)
|
290
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
291
|
-
|
292
|
-
|
293
|
-
request_headers = {}
|
294
|
-
|
295
|
-
# Set Headers
|
296
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
297
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
298
|
-
path_template = '{nextLink}'
|
299
|
-
|
300
|
-
request_url = @base_url || @client.base_url
|
301
|
-
|
302
|
-
options = {
|
303
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
304
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
305
|
-
headers: request_headers.merge(custom_headers || {}),
|
306
|
-
base_url: request_url
|
307
|
-
}
|
308
|
-
promise = @client.make_request_async(:get, path_template, options)
|
309
|
-
|
310
|
-
promise = promise.then do |result|
|
311
|
-
http_response = result.response
|
312
|
-
status_code = http_response.status
|
313
|
-
response_content = http_response.body
|
314
|
-
unless status_code == 200
|
315
|
-
error_model = JSON.load(response_content)
|
316
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
317
|
-
end
|
318
|
-
|
319
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
320
|
-
# Deserialize Response
|
321
|
-
if status_code == 200
|
322
|
-
begin
|
323
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
324
|
-
result_mapper = JobResourceList.mapper()
|
325
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
326
|
-
rescue Exception => e
|
327
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
328
|
-
end
|
329
|
-
end
|
330
|
-
|
331
|
-
result
|
332
|
-
end
|
333
|
-
|
334
|
-
promise.execute
|
335
|
-
end
|
336
|
-
|
337
|
-
#
|
338
|
-
# Provides a pageable list of jobs.
|
339
|
-
#
|
340
|
-
# @param vault_name [String] The name of the Recovery Services vault.
|
341
|
-
# @param resource_group_name [String] The name of the resource group associated
|
342
|
-
# with the Recovery Services vault.
|
343
|
-
# @param filter [String] The following equation can be used to filter the list
|
344
|
-
# of jobs based on status, type, start date, and end date. status eq {
|
345
|
-
# InProgress , Completed , Failed , CompletedWithWarnings , Cancelled ,
|
346
|
-
# Cancelling } and backupManagementType eq {AzureIaasVM, MAB, DPM,
|
347
|
-
# AzureBackupServer, AzureSql } and operation eq { ConfigureBackup , Backup ,
|
348
|
-
# Restore , DisableBackup , DeleteBackupData } and jobId eq {guid} and
|
349
|
-
# startTime eq { yyyy-mm-dd hh:mm:ss PM } and endTime eq { yyyy-mm-dd hh:mm:ss
|
350
|
-
# PM }.
|
351
|
-
# @param skip_token [String] The Skip Token filter.
|
352
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
353
|
-
# will be added to the HTTP request.
|
354
|
-
#
|
355
|
-
# @return [JobResourceList] which provide lazy access to pages of the response.
|
356
|
-
#
|
357
|
-
def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
358
|
-
response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value!
|
359
|
-
unless response.nil?
|
360
|
-
page = response.body
|
361
|
-
page.next_method = Proc.new do |next_page_link|
|
362
|
-
list_next_async(next_page_link, custom_headers)
|
363
|
-
end
|
364
|
-
page
|
365
|
-
end
|
366
|
-
end
|
367
|
-
|
368
117
|
end
|
369
118
|
end
|