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
@@ -0,0 +1,240 @@
|
|
1
|
+
# encoding: utf-8
|
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
|
7
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
8
|
+
# regenerated.
|
9
|
+
|
10
|
+
module Azure::ARM::RecoveryServicesBackup
|
11
|
+
#
|
12
|
+
# Open API 2.0 Specs for Azure RecoveryServices Backup service
|
13
|
+
#
|
14
|
+
class BackupJobs
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the BackupJobs class.
|
19
|
+
# @param client service class for accessing basic functionality.
|
20
|
+
#
|
21
|
+
def initialize(client)
|
22
|
+
@client = client
|
23
|
+
end
|
24
|
+
|
25
|
+
# @return [RecoveryServicesBackupClient] reference to the RecoveryServicesBackupClient
|
26
|
+
attr_reader :client
|
27
|
+
|
28
|
+
#
|
29
|
+
# Provides a pageable list of jobs.
|
30
|
+
#
|
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 filter [String] OData filter options.
|
35
|
+
# @param skip_token [String] skipToken Filter.
|
36
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
+
# will be added to the HTTP request.
|
38
|
+
#
|
39
|
+
# @return [Array<JobResource>] operation results.
|
40
|
+
#
|
41
|
+
def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
42
|
+
first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers)
|
43
|
+
first_page.get_all_items
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# Provides a pageable list of jobs.
|
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.
|
52
|
+
# @param filter [String] OData filter options.
|
53
|
+
# @param skip_token [String] skipToken Filter.
|
54
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
55
|
+
# will be added to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
|
+
#
|
59
|
+
def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
60
|
+
list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value!
|
61
|
+
end
|
62
|
+
|
63
|
+
#
|
64
|
+
# Provides a pageable list of jobs.
|
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.
|
69
|
+
# @param filter [String] OData filter options.
|
70
|
+
# @param skip_token [String] skipToken Filter.
|
71
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
72
|
+
# to the HTTP request.
|
73
|
+
#
|
74
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
75
|
+
#
|
76
|
+
def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
77
|
+
api_version = '2016-12-01'
|
78
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
79
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
81
|
+
|
82
|
+
|
83
|
+
request_headers = {}
|
84
|
+
|
85
|
+
# Set Headers
|
86
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
87
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
88
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs'
|
89
|
+
|
90
|
+
request_url = @base_url || @client.base_url
|
91
|
+
|
92
|
+
options = {
|
93
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
94
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
95
|
+
query_params: {'api-version' => api_version,'$filter' => filter,'$skipToken' => skip_token},
|
96
|
+
headers: request_headers.merge(custom_headers || {}),
|
97
|
+
base_url: request_url
|
98
|
+
}
|
99
|
+
promise = @client.make_request_async(:get, path_template, options)
|
100
|
+
|
101
|
+
promise = promise.then do |result|
|
102
|
+
http_response = result.response
|
103
|
+
status_code = http_response.status
|
104
|
+
response_content = http_response.body
|
105
|
+
unless status_code == 200
|
106
|
+
error_model = JSON.load(response_content)
|
107
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
108
|
+
end
|
109
|
+
|
110
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
111
|
+
# Deserialize Response
|
112
|
+
if status_code == 200
|
113
|
+
begin
|
114
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
115
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::JobResourceList.mapper()
|
116
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
117
|
+
rescue Exception => e
|
118
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
result
|
123
|
+
end
|
124
|
+
|
125
|
+
promise.execute
|
126
|
+
end
|
127
|
+
|
128
|
+
#
|
129
|
+
# Provides a pageable list of jobs.
|
130
|
+
#
|
131
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
132
|
+
# to List operation.
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
# @return [JobResourceList] operation results.
|
137
|
+
#
|
138
|
+
def list_next(next_page_link, custom_headers = nil)
|
139
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
140
|
+
response.body unless response.nil?
|
141
|
+
end
|
142
|
+
|
143
|
+
#
|
144
|
+
# Provides a pageable list of jobs.
|
145
|
+
#
|
146
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
147
|
+
# to List operation.
|
148
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
149
|
+
# will be added to the HTTP request.
|
150
|
+
#
|
151
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
152
|
+
#
|
153
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
154
|
+
list_next_async(next_page_link, custom_headers).value!
|
155
|
+
end
|
156
|
+
|
157
|
+
#
|
158
|
+
# Provides a pageable list of jobs.
|
159
|
+
#
|
160
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
161
|
+
# to List operation.
|
162
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
163
|
+
# to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
166
|
+
#
|
167
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
168
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
169
|
+
|
170
|
+
|
171
|
+
request_headers = {}
|
172
|
+
|
173
|
+
# Set Headers
|
174
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
175
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
176
|
+
path_template = '{nextLink}'
|
177
|
+
|
178
|
+
request_url = @base_url || @client.base_url
|
179
|
+
|
180
|
+
options = {
|
181
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
182
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
183
|
+
headers: request_headers.merge(custom_headers || {}),
|
184
|
+
base_url: request_url
|
185
|
+
}
|
186
|
+
promise = @client.make_request_async(:get, path_template, options)
|
187
|
+
|
188
|
+
promise = promise.then do |result|
|
189
|
+
http_response = result.response
|
190
|
+
status_code = http_response.status
|
191
|
+
response_content = http_response.body
|
192
|
+
unless status_code == 200
|
193
|
+
error_model = JSON.load(response_content)
|
194
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
195
|
+
end
|
196
|
+
|
197
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
198
|
+
# Deserialize Response
|
199
|
+
if status_code == 200
|
200
|
+
begin
|
201
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
202
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::JobResourceList.mapper()
|
203
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
204
|
+
rescue Exception => e
|
205
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
result
|
210
|
+
end
|
211
|
+
|
212
|
+
promise.execute
|
213
|
+
end
|
214
|
+
|
215
|
+
#
|
216
|
+
# Provides a pageable list of jobs.
|
217
|
+
#
|
218
|
+
# @param vault_name [String] The name of the recovery services vault.
|
219
|
+
# @param resource_group_name [String] The name of the resource group where the
|
220
|
+
# recovery services vault is present.
|
221
|
+
# @param filter [String] OData filter options.
|
222
|
+
# @param skip_token [String] skipToken Filter.
|
223
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
224
|
+
# will be added to the HTTP request.
|
225
|
+
#
|
226
|
+
# @return [JobResourceList] which provide lazy access to pages of the response.
|
227
|
+
#
|
228
|
+
def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
229
|
+
response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value!
|
230
|
+
unless response.nil?
|
231
|
+
page = response.body
|
232
|
+
page.next_method = Proc.new do |next_page_link|
|
233
|
+
list_next_async(next_page_link, custom_headers)
|
234
|
+
end
|
235
|
+
page
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
end
|
240
|
+
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 BackupOperationResults
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,17 +26,17 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
# Provides the status of the delete operations
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
29
|
+
# Provides the status of the delete operations such as deleting backed up item.
|
30
|
+
# Once the operation has started, the status code in the response would be
|
31
|
+
# Accepted. It will continue to be in this state till it reaches completion. On
|
32
|
+
# successful completion, the status code will be OK. This method expects
|
33
|
+
# OperationID as an argument. OperationID is part of the Location header of the
|
34
|
+
# operation response.
|
32
35
|
#
|
33
|
-
# @param vault_name [String] The name of the
|
34
|
-
# @param resource_group_name [String] The name of the resource group
|
35
|
-
#
|
36
|
-
# @param operation_id [String]
|
36
|
+
# @param vault_name [String] The name of the recovery services vault.
|
37
|
+
# @param resource_group_name [String] The name of the resource group where the
|
38
|
+
# recovery services vault is present.
|
39
|
+
# @param operation_id [String] OperationID which represents the operation.
|
37
40
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
38
41
|
# will be added to the HTTP request.
|
39
42
|
#
|
@@ -44,17 +47,17 @@ module Azure::ARM::RecoveryServicesBackup
|
|
44
47
|
end
|
45
48
|
|
46
49
|
#
|
47
|
-
# Provides the status of the delete operations
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
50
|
+
# Provides the status of the delete operations such as deleting backed up item.
|
51
|
+
# Once the operation has started, the status code in the response would be
|
52
|
+
# Accepted. It will continue to be in this state till it reaches completion. On
|
53
|
+
# successful completion, the status code will be OK. This method expects
|
54
|
+
# OperationID as an argument. OperationID is part of the Location header of the
|
55
|
+
# operation response.
|
53
56
|
#
|
54
|
-
# @param vault_name [String] The name of the
|
55
|
-
# @param resource_group_name [String] The name of the resource group
|
56
|
-
#
|
57
|
-
# @param operation_id [String]
|
57
|
+
# @param vault_name [String] The name of the recovery services vault.
|
58
|
+
# @param resource_group_name [String] The name of the resource group where the
|
59
|
+
# recovery services vault is present.
|
60
|
+
# @param operation_id [String] OperationID which represents the operation.
|
58
61
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
59
62
|
# will be added to the HTTP request.
|
60
63
|
#
|
@@ -65,24 +68,24 @@ module Azure::ARM::RecoveryServicesBackup
|
|
65
68
|
end
|
66
69
|
|
67
70
|
#
|
68
|
-
# Provides the status of the delete operations
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
71
|
+
# Provides the status of the delete operations such as deleting backed up item.
|
72
|
+
# Once the operation has started, the status code in the response would be
|
73
|
+
# Accepted. It will continue to be in this state till it reaches completion. On
|
74
|
+
# successful completion, the status code will be OK. This method expects
|
75
|
+
# OperationID as an argument. OperationID is part of the Location header of the
|
76
|
+
# operation response.
|
74
77
|
#
|
75
|
-
# @param vault_name [String] The name of the
|
76
|
-
# @param resource_group_name [String] The name of the resource group
|
77
|
-
#
|
78
|
-
# @param operation_id [String]
|
78
|
+
# @param vault_name [String] The name of the recovery services vault.
|
79
|
+
# @param resource_group_name [String] The name of the resource group where the
|
80
|
+
# recovery services vault is present.
|
81
|
+
# @param operation_id [String] OperationID which represents the operation.
|
79
82
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
80
83
|
# to the HTTP request.
|
81
84
|
#
|
82
85
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
83
86
|
#
|
84
87
|
def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil)
|
85
|
-
api_version = '2016-
|
88
|
+
api_version = '2016-12-01'
|
86
89
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
87
90
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
88
91
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -94,7 +97,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
94
97
|
# Set Headers
|
95
98
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
96
99
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
97
|
-
path_template = '
|
100
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId}'
|
98
101
|
|
99
102
|
request_url = @base_url || @client.base_url
|
100
103
|
|
@@ -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 BackupOperationStatuses
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,16 +26,16 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
#
|
27
|
-
# status can be
|
29
|
+
# Fetches the status of an operation such as triggering a backup, restore. The
|
30
|
+
# status can be in progress, completed or failed. You can refer to the
|
28
31
|
# OperationStatus enum for all the possible states of an operation. Some
|
29
32
|
# operations create jobs. This method returns the list of jobs when the
|
30
33
|
# operation is complete.
|
31
34
|
#
|
32
|
-
# @param vault_name [String] The name of the
|
33
|
-
# @param resource_group_name [String] The name of the resource group
|
34
|
-
#
|
35
|
-
# @param operation_id [String]
|
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 operation_id [String] OperationID which represents the operation.
|
36
39
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
40
|
# will be added to the HTTP request.
|
38
41
|
#
|
@@ -44,16 +47,16 @@ module Azure::ARM::RecoveryServicesBackup
|
|
44
47
|
end
|
45
48
|
|
46
49
|
#
|
47
|
-
#
|
48
|
-
# status can be
|
50
|
+
# Fetches the status of an operation such as triggering a backup, restore. The
|
51
|
+
# status can be in progress, completed or failed. You can refer to the
|
49
52
|
# OperationStatus enum for all the possible states of an operation. Some
|
50
53
|
# operations create jobs. This method returns the list of jobs when the
|
51
54
|
# operation is complete.
|
52
55
|
#
|
53
|
-
# @param vault_name [String] The name of the
|
54
|
-
# @param resource_group_name [String] The name of the resource group
|
55
|
-
#
|
56
|
-
# @param operation_id [String]
|
56
|
+
# @param vault_name [String] The name of the recovery services vault.
|
57
|
+
# @param resource_group_name [String] The name of the resource group where the
|
58
|
+
# recovery services vault is present.
|
59
|
+
# @param operation_id [String] OperationID which represents the operation.
|
57
60
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
58
61
|
# will be added to the HTTP request.
|
59
62
|
#
|
@@ -64,23 +67,23 @@ module Azure::ARM::RecoveryServicesBackup
|
|
64
67
|
end
|
65
68
|
|
66
69
|
#
|
67
|
-
#
|
68
|
-
# status can be
|
70
|
+
# Fetches the status of an operation such as triggering a backup, restore. The
|
71
|
+
# status can be in progress, completed or failed. You can refer to the
|
69
72
|
# OperationStatus enum for all the possible states of an operation. Some
|
70
73
|
# operations create jobs. This method returns the list of jobs when the
|
71
74
|
# operation is complete.
|
72
75
|
#
|
73
|
-
# @param vault_name [String] The name of the
|
74
|
-
# @param resource_group_name [String] The name of the resource group
|
75
|
-
#
|
76
|
-
# @param operation_id [String]
|
76
|
+
# @param vault_name [String] The name of the recovery services vault.
|
77
|
+
# @param resource_group_name [String] The name of the resource group where the
|
78
|
+
# recovery services vault is present.
|
79
|
+
# @param operation_id [String] OperationID which represents the operation.
|
77
80
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
78
81
|
# to the HTTP request.
|
79
82
|
#
|
80
83
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
81
84
|
#
|
82
85
|
def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil)
|
83
|
-
api_version = '2016-
|
86
|
+
api_version = '2016-12-01'
|
84
87
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
85
88
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
86
89
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -92,7 +95,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
92
95
|
# Set Headers
|
93
96
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
97
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
|
-
path_template = '
|
98
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}'
|
96
99
|
|
97
100
|
request_url = @base_url || @client.base_url
|
98
101
|
|
@@ -119,8 +122,8 @@ module Azure::ARM::RecoveryServicesBackup
|
|
119
122
|
if status_code == 200
|
120
123
|
begin
|
121
124
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
-
result_mapper = OperationStatus.mapper()
|
123
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
125
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::OperationStatus.mapper()
|
126
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
127
|
rescue Exception => e
|
125
128
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
126
129
|
end
|