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,5 +1,9 @@
|
|
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
|
|
@@ -17,7 +21,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
17
21
|
# @return Credentials needed for the client to connect to Azure.
|
18
22
|
attr_reader :credentials
|
19
23
|
|
20
|
-
# @return [String] The subscription
|
24
|
+
# @return [String] The subscription Id.
|
21
25
|
attr_accessor :subscription_id
|
22
26
|
|
23
27
|
# @return [String] Gets or sets the preferred language for the response.
|
@@ -31,26 +35,11 @@ module Azure::ARM::RecoveryServicesBackup
|
|
31
35
|
# is generated and included in each request. Default is true.
|
32
36
|
attr_accessor :generate_client_request_id
|
33
37
|
|
34
|
-
# @return [
|
35
|
-
attr_reader :
|
36
|
-
|
37
|
-
# @return [Restores] restores
|
38
|
-
attr_reader :restores
|
39
|
-
|
40
|
-
# @return [ProtectionPolicyOperationStatuses]
|
41
|
-
# protection_policy_operation_statuses
|
42
|
-
attr_reader :protection_policy_operation_statuses
|
43
|
-
|
44
|
-
# @return [ProtectionPolicyOperationResults]
|
45
|
-
# protection_policy_operation_results
|
46
|
-
attr_reader :protection_policy_operation_results
|
47
|
-
|
48
|
-
# @return [ProtectionPolicies] protection_policies
|
49
|
-
attr_reader :protection_policies
|
38
|
+
# @return [BackupResourceVaultConfigs] backup_resource_vault_configs
|
39
|
+
attr_reader :backup_resource_vault_configs
|
50
40
|
|
51
|
-
# @return [
|
52
|
-
|
53
|
-
attr_reader :protection_container_operation_results
|
41
|
+
# @return [BackupEngines] backup_engines
|
42
|
+
attr_reader :backup_engines
|
54
43
|
|
55
44
|
# @return [ProtectionContainerRefreshOperationResults]
|
56
45
|
# protection_container_refresh_operation_results
|
@@ -59,48 +48,90 @@ module Azure::ARM::RecoveryServicesBackup
|
|
59
48
|
# @return [ProtectionContainers] protection_containers
|
60
49
|
attr_reader :protection_containers
|
61
50
|
|
62
|
-
# @return [
|
63
|
-
|
51
|
+
# @return [ProtectionContainerOperationResults]
|
52
|
+
# protection_container_operation_results
|
53
|
+
attr_reader :protection_container_operation_results
|
54
|
+
|
55
|
+
# @return [ProtectedItems] protected_items
|
56
|
+
attr_reader :protected_items
|
64
57
|
|
65
58
|
# @return [Backups] backups
|
66
59
|
attr_reader :backups
|
67
60
|
|
61
|
+
# @return [ProtectedItemOperationResults] protected_item_operation_results
|
62
|
+
attr_reader :protected_item_operation_results
|
63
|
+
|
68
64
|
# @return [ProtectedItemOperationStatuses]
|
69
65
|
# protected_item_operation_statuses
|
70
66
|
attr_reader :protected_item_operation_statuses
|
71
67
|
|
72
|
-
# @return [
|
73
|
-
attr_reader :
|
68
|
+
# @return [RecoveryPoints] recovery_points
|
69
|
+
attr_reader :recovery_points
|
74
70
|
|
75
|
-
# @return [
|
76
|
-
attr_reader :
|
71
|
+
# @return [ItemLevelRecoveryConnections] item_level_recovery_connections
|
72
|
+
attr_reader :item_level_recovery_connections
|
77
73
|
|
78
|
-
# @return [
|
79
|
-
attr_reader :
|
74
|
+
# @return [Restores] restores
|
75
|
+
attr_reader :restores
|
80
76
|
|
81
|
-
# @return [
|
82
|
-
attr_reader :
|
77
|
+
# @return [BackupJobs] backup_jobs
|
78
|
+
attr_reader :backup_jobs
|
79
|
+
|
80
|
+
# @return [JobDetails] job_details
|
81
|
+
attr_reader :job_details
|
82
|
+
|
83
|
+
# @return [JobCancellations] job_cancellations
|
84
|
+
attr_reader :job_cancellations
|
83
85
|
|
84
86
|
# @return [JobOperationResults] job_operation_results
|
85
87
|
attr_reader :job_operation_results
|
86
88
|
|
89
|
+
# @return [ExportJobsOperationResults] export_jobs_operation_results
|
90
|
+
attr_reader :export_jobs_operation_results
|
91
|
+
|
87
92
|
# @return [Jobs] jobs
|
88
93
|
attr_reader :jobs
|
89
94
|
|
90
|
-
# @return [
|
91
|
-
attr_reader :
|
92
|
-
|
93
|
-
# @return [JobDetails] job_details
|
94
|
-
attr_reader :job_details
|
95
|
+
# @return [BackupOperationResults] backup_operation_results
|
96
|
+
attr_reader :backup_operation_results
|
95
97
|
|
96
98
|
# @return [BackupOperationStatuses] backup_operation_statuses
|
97
99
|
attr_reader :backup_operation_statuses
|
98
100
|
|
99
|
-
# @return [
|
100
|
-
attr_reader :
|
101
|
+
# @return [BackupPolicies] backup_policies
|
102
|
+
attr_reader :backup_policies
|
101
103
|
|
102
|
-
# @return [
|
103
|
-
attr_reader :
|
104
|
+
# @return [ProtectionPolicies] protection_policies
|
105
|
+
attr_reader :protection_policies
|
106
|
+
|
107
|
+
# @return [ProtectionPolicyOperationResults]
|
108
|
+
# protection_policy_operation_results
|
109
|
+
attr_reader :protection_policy_operation_results
|
110
|
+
|
111
|
+
# @return [ProtectionPolicyOperationStatuses]
|
112
|
+
# protection_policy_operation_statuses
|
113
|
+
attr_reader :protection_policy_operation_statuses
|
114
|
+
|
115
|
+
# @return [BackupProtectableItems] backup_protectable_items
|
116
|
+
attr_reader :backup_protectable_items
|
117
|
+
|
118
|
+
# @return [BackupProtectedItems] backup_protected_items
|
119
|
+
attr_reader :backup_protected_items
|
120
|
+
|
121
|
+
# @return [BackupProtectionContainers] backup_protection_containers
|
122
|
+
attr_reader :backup_protection_containers
|
123
|
+
|
124
|
+
# @return [SecurityPINs] security_pins
|
125
|
+
attr_reader :security_pins
|
126
|
+
|
127
|
+
# @return [BackupResourceStorageConfigs] backup_resource_storage_configs
|
128
|
+
attr_reader :backup_resource_storage_configs
|
129
|
+
|
130
|
+
# @return [BackupUsageSummaries] backup_usage_summaries
|
131
|
+
attr_reader :backup_usage_summaries
|
132
|
+
|
133
|
+
# @return [Operations] operations
|
134
|
+
attr_reader :operations
|
104
135
|
|
105
136
|
#
|
106
137
|
# Creates initializes a new instance of the RecoveryServicesBackupClient class.
|
@@ -115,28 +146,37 @@ module Azure::ARM::RecoveryServicesBackup
|
|
115
146
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
116
147
|
@credentials = credentials
|
117
148
|
|
118
|
-
@
|
119
|
-
@
|
120
|
-
@protection_policy_operation_statuses = ProtectionPolicyOperationStatuses.new(self)
|
121
|
-
@protection_policy_operation_results = ProtectionPolicyOperationResults.new(self)
|
122
|
-
@protection_policies = ProtectionPolicies.new(self)
|
123
|
-
@protection_container_operation_results = ProtectionContainerOperationResults.new(self)
|
149
|
+
@backup_resource_vault_configs = BackupResourceVaultConfigs.new(self)
|
150
|
+
@backup_engines = BackupEngines.new(self)
|
124
151
|
@protection_container_refresh_operation_results = ProtectionContainerRefreshOperationResults.new(self)
|
125
152
|
@protection_containers = ProtectionContainers.new(self)
|
126
|
-
@
|
153
|
+
@protection_container_operation_results = ProtectionContainerOperationResults.new(self)
|
154
|
+
@protected_items = ProtectedItems.new(self)
|
127
155
|
@backups = Backups.new(self)
|
128
|
-
@protected_item_operation_statuses = ProtectedItemOperationStatuses.new(self)
|
129
156
|
@protected_item_operation_results = ProtectedItemOperationResults.new(self)
|
130
|
-
@
|
131
|
-
@
|
132
|
-
@
|
157
|
+
@protected_item_operation_statuses = ProtectedItemOperationStatuses.new(self)
|
158
|
+
@recovery_points = RecoveryPoints.new(self)
|
159
|
+
@item_level_recovery_connections = ItemLevelRecoveryConnections.new(self)
|
160
|
+
@restores = Restores.new(self)
|
161
|
+
@backup_jobs = BackupJobs.new(self)
|
162
|
+
@job_details = JobDetails.new(self)
|
163
|
+
@job_cancellations = JobCancellations.new(self)
|
133
164
|
@job_operation_results = JobOperationResults.new(self)
|
165
|
+
@export_jobs_operation_results = ExportJobsOperationResults.new(self)
|
134
166
|
@jobs = Jobs.new(self)
|
135
|
-
@job_cancellations = JobCancellations.new(self)
|
136
|
-
@job_details = JobDetails.new(self)
|
137
|
-
@backup_operation_statuses = BackupOperationStatuses.new(self)
|
138
167
|
@backup_operation_results = BackupOperationResults.new(self)
|
139
|
-
@
|
168
|
+
@backup_operation_statuses = BackupOperationStatuses.new(self)
|
169
|
+
@backup_policies = BackupPolicies.new(self)
|
170
|
+
@protection_policies = ProtectionPolicies.new(self)
|
171
|
+
@protection_policy_operation_results = ProtectionPolicyOperationResults.new(self)
|
172
|
+
@protection_policy_operation_statuses = ProtectionPolicyOperationStatuses.new(self)
|
173
|
+
@backup_protectable_items = BackupProtectableItems.new(self)
|
174
|
+
@backup_protected_items = BackupProtectedItems.new(self)
|
175
|
+
@backup_protection_containers = BackupProtectionContainers.new(self)
|
176
|
+
@security_pins = SecurityPINs.new(self)
|
177
|
+
@backup_resource_storage_configs = BackupResourceStorageConfigs.new(self)
|
178
|
+
@backup_usage_summaries = BackupUsageSummaries.new(self)
|
179
|
+
@operations = Operations.new(self)
|
140
180
|
@accept_language = 'en-US'
|
141
181
|
@long_running_operation_retry_timeout = 30
|
142
182
|
@generate_client_request_id = true
|
@@ -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 Restores
|
11
|
-
include Azure::ARM::RecoveryServicesBackup::Models
|
12
15
|
include MsRestAzure
|
13
16
|
|
14
17
|
#
|
@@ -23,75 +26,72 @@ module Azure::ARM::RecoveryServicesBackup
|
|
23
26
|
attr_reader :client
|
24
27
|
|
25
28
|
#
|
26
|
-
# Restores the specified
|
29
|
+
# Restores the specified backed up data. This is an asynchronous operation. To
|
27
30
|
# know the status of this API call, use GetProtectedItemOperationResult 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 fabric_name [String]
|
33
|
-
# @param container_name [String]
|
32
|
+
# @param vault_name [String] The name of the recovery services vault.
|
33
|
+
# @param resource_group_name [String] The name of the resource group where the
|
34
|
+
# recovery services vault is present.
|
35
|
+
# @param fabric_name [String] Fabric name associated with the backed up items.
|
36
|
+
# @param container_name [String] Container name associated with the backed up
|
34
37
|
# items.
|
35
|
-
# @param protected_item_name [String]
|
36
|
-
# @param recovery_point_id [String]
|
37
|
-
# to be restored.
|
38
|
-
# @param
|
39
|
-
# request.
|
38
|
+
# @param protected_item_name [String] Backed up item to be restored.
|
39
|
+
# @param recovery_point_id [String] Recovery point ID which represents the
|
40
|
+
# backed up data to be restored.
|
41
|
+
# @param parameters [RestoreRequestResource] resource restore request
|
40
42
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
43
|
# will be added to the HTTP request.
|
42
44
|
#
|
43
45
|
#
|
44
|
-
def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id,
|
45
|
-
response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id,
|
46
|
+
def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil)
|
47
|
+
response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers).value!
|
46
48
|
nil
|
47
49
|
end
|
48
50
|
|
49
51
|
#
|
50
|
-
# Restores the specified
|
52
|
+
# Restores the specified backed up data. This is an asynchronous operation. To
|
51
53
|
# know the status of this API call, use GetProtectedItemOperationResult API.
|
52
54
|
#
|
53
|
-
# @param vault_name [String] The name of the
|
54
|
-
# @param resource_group_name [String] The name of the resource group
|
55
|
-
#
|
56
|
-
# @param fabric_name [String]
|
57
|
-
# @param container_name [String]
|
55
|
+
# @param vault_name [String] The name of the recovery services vault.
|
56
|
+
# @param resource_group_name [String] The name of the resource group where the
|
57
|
+
# recovery services vault is present.
|
58
|
+
# @param fabric_name [String] Fabric name associated with the backed up items.
|
59
|
+
# @param container_name [String] Container name associated with the backed up
|
58
60
|
# items.
|
59
|
-
# @param protected_item_name [String]
|
60
|
-
# @param recovery_point_id [String]
|
61
|
-
# to be restored.
|
62
|
-
# @param
|
63
|
-
# request.
|
61
|
+
# @param protected_item_name [String] Backed up item to be restored.
|
62
|
+
# @param recovery_point_id [String] Recovery point ID which represents the
|
63
|
+
# backed up data to be restored.
|
64
|
+
# @param parameters [RestoreRequestResource] resource restore request
|
64
65
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
65
66
|
# will be added to the HTTP request.
|
66
67
|
#
|
67
68
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
68
69
|
#
|
69
|
-
def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id,
|
70
|
-
trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id,
|
70
|
+
def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil)
|
71
|
+
trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers).value!
|
71
72
|
end
|
72
73
|
|
73
74
|
#
|
74
|
-
# Restores the specified
|
75
|
+
# Restores the specified backed up data. This is an asynchronous operation. To
|
75
76
|
# know the status of this API call, use GetProtectedItemOperationResult API.
|
76
77
|
#
|
77
|
-
# @param vault_name [String] The name of the
|
78
|
-
# @param resource_group_name [String] The name of the resource group
|
79
|
-
#
|
80
|
-
# @param fabric_name [String]
|
81
|
-
# @param container_name [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 fabric_name [String] Fabric name associated with the backed up items.
|
82
|
+
# @param container_name [String] Container name associated with the backed up
|
82
83
|
# items.
|
83
|
-
# @param protected_item_name [String]
|
84
|
-
# @param recovery_point_id [String]
|
85
|
-
# to be restored.
|
86
|
-
# @param
|
87
|
-
# request.
|
84
|
+
# @param protected_item_name [String] Backed up item to be restored.
|
85
|
+
# @param recovery_point_id [String] Recovery point ID which represents the
|
86
|
+
# backed up data to be restored.
|
87
|
+
# @param parameters [RestoreRequestResource] resource restore request
|
88
88
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
89
89
|
# to the HTTP request.
|
90
90
|
#
|
91
91
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
92
92
|
#
|
93
|
-
def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id,
|
94
|
-
api_version = '2016-
|
93
|
+
def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil)
|
94
|
+
api_version = '2016-12-01'
|
95
95
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
96
96
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
97
97
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -99,7 +99,7 @@ module Azure::ARM::RecoveryServicesBackup
|
|
99
99
|
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
100
100
|
fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
|
101
101
|
fail ArgumentError, 'recovery_point_id is nil' if recovery_point_id.nil?
|
102
|
-
fail ArgumentError, '
|
102
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
103
103
|
|
104
104
|
|
105
105
|
request_headers = {}
|
@@ -111,11 +111,11 @@ module Azure::ARM::RecoveryServicesBackup
|
|
111
111
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
112
112
|
|
113
113
|
# Serialize Request
|
114
|
-
request_mapper = RestoreRequestResource.mapper()
|
115
|
-
request_content = @client.serialize(request_mapper,
|
114
|
+
request_mapper = Azure::ARM::RecoveryServicesBackup::Models::RestoreRequestResource.mapper()
|
115
|
+
request_content = @client.serialize(request_mapper, parameters)
|
116
116
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
117
117
|
|
118
|
-
path_template = '
|
118
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore'
|
119
119
|
|
120
120
|
request_url = @base_url || @client.base_url
|
121
121
|
|
@@ -0,0 +1,123 @@
|
|
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 SecurityPINs
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the SecurityPINs 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
|
+
# Get the security PIN.
|
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 custom_headers [Hash{String => String}] A hash of custom headers that
|
35
|
+
# will be added to the HTTP request.
|
36
|
+
#
|
37
|
+
# @return [TokenInformation] operation results.
|
38
|
+
#
|
39
|
+
def get(vault_name, resource_group_name, custom_headers = nil)
|
40
|
+
response = get_async(vault_name, resource_group_name, custom_headers).value!
|
41
|
+
response.body unless response.nil?
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Get the security PIN.
|
46
|
+
#
|
47
|
+
# @param vault_name [String] The name of the recovery services vault.
|
48
|
+
# @param resource_group_name [String] The name of the resource group where the
|
49
|
+
# recovery services vault is present.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def get_with_http_info(vault_name, resource_group_name, custom_headers = nil)
|
56
|
+
get_async(vault_name, resource_group_name, custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Get the security PIN.
|
61
|
+
#
|
62
|
+
# @param vault_name [String] The name of the recovery services vault.
|
63
|
+
# @param resource_group_name [String] The name of the resource group where the
|
64
|
+
# recovery services vault is present.
|
65
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
66
|
+
# to the HTTP request.
|
67
|
+
#
|
68
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
69
|
+
#
|
70
|
+
def get_async(vault_name, resource_group_name, custom_headers = nil)
|
71
|
+
api_version = '2016-12-01'
|
72
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
73
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
75
|
+
|
76
|
+
|
77
|
+
request_headers = {}
|
78
|
+
|
79
|
+
# Set Headers
|
80
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
81
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
82
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN'
|
83
|
+
|
84
|
+
request_url = @base_url || @client.base_url
|
85
|
+
|
86
|
+
options = {
|
87
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
88
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
89
|
+
query_params: {'api-version' => api_version},
|
90
|
+
headers: request_headers.merge(custom_headers || {}),
|
91
|
+
base_url: request_url
|
92
|
+
}
|
93
|
+
promise = @client.make_request_async(:post, path_template, options)
|
94
|
+
|
95
|
+
promise = promise.then do |result|
|
96
|
+
http_response = result.response
|
97
|
+
status_code = http_response.status
|
98
|
+
response_content = http_response.body
|
99
|
+
unless status_code == 200
|
100
|
+
error_model = JSON.load(response_content)
|
101
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
102
|
+
end
|
103
|
+
|
104
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
105
|
+
# Deserialize Response
|
106
|
+
if status_code == 200
|
107
|
+
begin
|
108
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
109
|
+
result_mapper = Azure::ARM::RecoveryServicesBackup::Models::TokenInformation.mapper()
|
110
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
111
|
+
rescue Exception => e
|
112
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
promise.execute
|
120
|
+
end
|
121
|
+
|
122
|
+
end
|
123
|
+
end
|