azure_mgmt_recovery_services_backup 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup.rb +180 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +256 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +131 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +139 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backups.rb +152 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +127 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +279 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +119 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_details.rb +127 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +120 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/jobs.rb +372 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb +96 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb +6 -5
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb +5 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +140 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb +111 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb +81 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +141 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb +5 -6
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb +173 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb +108 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +169 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb +72 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb +87 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb +5 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +125 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb +71 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb +116 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource.rb +101 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource_list.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/backup_item_type.rb +3 -6
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/backup_request.rb +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/backup_request_resource.rb +101 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/bekdetails.rb +69 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb +51 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb +72 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb +71 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb +58 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb +71 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb +66 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/data_source_type.rb +3 -6
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/day.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/day_of_week.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb +96 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/dpm_job.rb +202 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb +3 -3
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/encryption_details.rb +91 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb +74 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb +3 -3
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb +3 -3
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/http_status_code.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb +122 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb +86 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaas_vmbackup_request.rb +64 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaas_vmilrregistration_request.rb +96 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +128 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +206 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/ilrrequest.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb +100 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/job.rb +125 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +2 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb +107 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/job_resource.rb +100 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/job_resource_list.rb +3 -3
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/job_status.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/job_supported_action.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/kekdetails.rb +71 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb +67 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb +8 -8
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/mab_container.rb +141 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb +99 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/mab_error_info.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +153 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb +70 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/mab_job.rb +198 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb +86 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/mab_server_type.rb +5 -5
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/month_of_year.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb +103 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/operation_result_info.rb +3 -3
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb +80 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_status.rb +118 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_status_error.rb +58 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/operation_status_job_extended_info.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/operation_status_jobs_extended_info.rb +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_status_provision_ilrextended_info.rb +65 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/operation_status_values.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb +87 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb +111 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb +85 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb +100 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/protected_item_state.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb +114 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb +101 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource_list.rb +95 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb +62 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb +51 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb +101 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb +95 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/protection_state.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/protection_status.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/recovery_point.rb +5 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb +101 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb +95 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/recovery_type.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/resource.rb +107 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/resource_list.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/restore_request.rb +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb +101 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb +64 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/retention_policy.rb +4 -4
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +3 -3
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb +112 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/week_of_month.rb +2 -2
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb +85 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb +84 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb +101 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb +3 -3
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/models/workload_type.rb +3 -6
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb +123 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/module_definition.rb +4 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protectable_items.rb +279 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +145 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +157 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb +612 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +138 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +123 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +541 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +569 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +134 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +146 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +389 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +222 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/restores.rb +153 -0
- data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/version.rb +3 -3
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup.rb +34 -0
- data/lib/{generated → 2016-08-10/generated}/azure_mgmt_recovery_services_backup/models/client_discovery_display.rb +2 -6
- data/lib/{generated → 2016-08-10/generated}/azure_mgmt_recovery_services_backup/models/client_discovery_for_log_specification.rb +2 -6
- data/lib/{generated → 2016-08-10/generated}/azure_mgmt_recovery_services_backup/models/client_discovery_for_properties.rb +2 -6
- data/lib/{generated → 2016-08-10/generated}/azure_mgmt_recovery_services_backup/models/client_discovery_for_service_specification.rb +2 -6
- data/lib/{generated → 2016-08-10/generated}/azure_mgmt_recovery_services_backup/models/client_discovery_response.rb +2 -6
- data/lib/{generated → 2016-08-10/generated}/azure_mgmt_recovery_services_backup/models/client_discovery_value_for_single_api.rb +2 -6
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/module_definition.rb +9 -0
- data/lib/{generated → 2016-08-10/generated}/azure_mgmt_recovery_services_backup/operations.rb +7 -11
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +126 -0
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/version.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup.rb +192 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_engines.rb +10 -14
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_operation_results.rb +5 -9
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_policies.rb +7 -11
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_protectable_items.rb +7 -11
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_protected_items.rb +7 -11
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_protection_containers.rb +7 -11
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_resource_storage_configs.rb +8 -12
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb +10 -14
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backup_usage_summaries.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/backups.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +8 -12
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/job_cancellations.rb +5 -9
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/job_operation_results.rb +5 -9
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/jobs.rb +5 -9
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_backup_server_container.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb +106 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb +77 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_svmhealth_details.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb +84 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb +68 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base_resource_list.rb +91 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_engine_extended_info.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb +25 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +20 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_management_usage.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_management_usage_list.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_request.rb +46 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_request_resource.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_resource_config.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_resource_config_resource.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config_resource.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/bekdetails.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/bmsbackup_engine_query_object.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/bmsbackup_engines_query_object.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/bmsbackup_summaries_query_object.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/client_script_for_connect.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/container_type.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb +52 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb +25 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/day.rb +54 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb +21 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/dpm_container.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/dpmcontainer_extended_info.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/dpmprotected_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/dpmprotected_item_extended_info.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/encryption_details.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/enhanced_security_state.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_recovery_point.rb +89 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/get_protected_item_query_object.rb +45 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/health_state.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/health_status.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb +61 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/iaas_vmbackup_request.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/iaas_vmilrregistration_request.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/ilrrequest.rb +45 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/ilrrequest_resource.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/instant_item_recovery_target.rb +52 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +22 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/job_query_object.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/job_status.rb +21 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/kekdetails.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/key_and_secret_details.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb +96 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb +48 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/mab_container.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb +27 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/name_info.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb +65 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb +46 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/operation_status.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/operation_status_error.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status_extended_info.rb +47 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status_job_extended_info.rb +58 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status_jobs_extended_info.rb +83 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/operation_status_provision_ilrextended_info.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/operation_status_values.rb +19 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protected_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb +91 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb +20 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protection_container.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protection_container_resource_list.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protection_policy.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protection_state.rb +20 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protection_status.rb +18 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb +47 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/recovery_point_resource.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/recovery_point_resource_list.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/recovery_point_tier_information.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/recovery_point_tier_status.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/recovery_point_tier_type.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/recovery_type.rb +18 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/resource.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/resource_list.rb +45 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/restore_request.rb +46 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/restore_request_resource.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/retention_duration.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb +19 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb +46 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb +17 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +46 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb +17 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb +60 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/storage_type.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/storage_type_state.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/token_information.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/type.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/usages_unit.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb +19 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb +70 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb +2 -6
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item_resource_list.rb +91 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb +2 -6
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/module_definition.rb +9 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protected_items.rb +11 -15
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +5 -9
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protection_containers.rb +8 -12
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protection_policies.rb +12 -16
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/recovery_points.rb +10 -14
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +8 -20
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/restores.rb +6 -10
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services_backup/security_pins.rb +6 -10
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/version.rb +8 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup.rb +53 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_recovery_services_backup/backup_jobs.rb +7 -11
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_recovery_services_backup/job_details.rb +6 -10
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmerror_info.rb +83 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob.rb +2 -6
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_extended_info.rb +91 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_recovery_services_backup/models/azure_iaa_svmjob_task_details.rb +2 -6
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +20 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/dpm_error_info.rb +62 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_recovery_services_backup/models/dpm_job.rb +2 -6
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/dpm_job_extended_info.rb +80 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/dpm_job_task_details.rb +84 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_recovery_services_backup/models/job.rb +2 -6
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +22 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb +100 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_recovery_services_backup/models/job_resource.rb +2 -6
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/job_resource_list.rb +91 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/job_status.rb +21 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/job_supported_action.rb +17 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_error_info.rb +61 -0
- data/lib/{generated → 2017-07-01/generated}/azure_mgmt_recovery_services_backup/models/mab_job.rb +2 -6
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_job_extended_info.rb +79 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_job_task_details.rb +84 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb +25 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/resource.rb +106 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/resource_list.rb +45 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb +25 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/module_definition.rb +9 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +133 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/version.rb +8 -0
- data/lib/azure_mgmt_recovery_services_backup.rb +5 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb +756 -0
- data/lib/profiles/latest/recoveryservicesbackup_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/recoveryservicesbackup_module_definition.rb +9 -0
- data/lib/version.rb +7 -0
- metadata +372 -198
- data/lib/generated/azure_mgmt_recovery_services_backup.rb +0 -223
data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb
ADDED
@@ -0,0 +1,139 @@
|
|
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 2.2.27.0
|
7
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
8
|
+
# regenerated.
|
9
|
+
|
10
|
+
module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
11
|
+
#
|
12
|
+
# Open API 2.0 Specs for Azure RecoveryServices Backup service
|
13
|
+
#
|
14
|
+
class BackupOperationStatuses
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the BackupOperationStatuses 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
|
+
# Gets the status of an operation such as triggering a backup or restore. The
|
30
|
+
# status can be In progress, Completed or Failed. You can refer to the
|
31
|
+
# OperationStatus enum for all the possible states of an operation. Some
|
32
|
+
# operations create jobs. This method returns the list of jobs when the
|
33
|
+
# operation is complete.
|
34
|
+
#
|
35
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
36
|
+
# @param resource_group_name [String] The name of the resource group associated
|
37
|
+
# with the Recovery Services vault.
|
38
|
+
# @param operation_id [String] The ID of the operation.
|
39
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
40
|
+
# will be added to the HTTP request.
|
41
|
+
#
|
42
|
+
# @return [OperationStatus] operation results.
|
43
|
+
#
|
44
|
+
def get(vault_name, resource_group_name, operation_id, custom_headers = nil)
|
45
|
+
response = get_async(vault_name, resource_group_name, operation_id, custom_headers).value!
|
46
|
+
response.body unless response.nil?
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Gets the status of an operation such as triggering a backup or restore. The
|
51
|
+
# status can be In progress, Completed or Failed. You can refer to the
|
52
|
+
# OperationStatus enum for all the possible states of an operation. Some
|
53
|
+
# operations create jobs. This method returns the list of jobs when the
|
54
|
+
# operation is complete.
|
55
|
+
#
|
56
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
57
|
+
# @param resource_group_name [String] The name of the resource group associated
|
58
|
+
# with the Recovery Services vault.
|
59
|
+
# @param operation_id [String] The ID of the operation.
|
60
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
61
|
+
# will be added to the HTTP request.
|
62
|
+
#
|
63
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
64
|
+
#
|
65
|
+
def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers = nil)
|
66
|
+
get_async(vault_name, resource_group_name, operation_id, custom_headers).value!
|
67
|
+
end
|
68
|
+
|
69
|
+
#
|
70
|
+
# Gets the status of an operation such as triggering a backup or restore. The
|
71
|
+
# status can be In progress, Completed or Failed. You can refer to the
|
72
|
+
# OperationStatus enum for all the possible states of an operation. Some
|
73
|
+
# operations create jobs. This method returns the list of jobs when the
|
74
|
+
# operation is complete.
|
75
|
+
#
|
76
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
77
|
+
# @param resource_group_name [String] The name of the resource group associated
|
78
|
+
# with the Recovery Services vault.
|
79
|
+
# @param operation_id [String] The ID of the operation.
|
80
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
81
|
+
# to the HTTP request.
|
82
|
+
#
|
83
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
84
|
+
#
|
85
|
+
def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil)
|
86
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
87
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
88
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
89
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
90
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
91
|
+
|
92
|
+
|
93
|
+
request_headers = {}
|
94
|
+
|
95
|
+
# Set Headers
|
96
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
97
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
98
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}'
|
99
|
+
|
100
|
+
request_url = @base_url || @client.base_url
|
101
|
+
|
102
|
+
options = {
|
103
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
104
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'operationId' => operation_id},
|
105
|
+
query_params: {'api-version' => @client.api_version},
|
106
|
+
headers: request_headers.merge(custom_headers || {}),
|
107
|
+
base_url: request_url
|
108
|
+
}
|
109
|
+
promise = @client.make_request_async(:get, path_template, options)
|
110
|
+
|
111
|
+
promise = promise.then do |result|
|
112
|
+
http_response = result.response
|
113
|
+
status_code = http_response.status
|
114
|
+
response_content = http_response.body
|
115
|
+
unless status_code == 200
|
116
|
+
error_model = JSON.load(response_content)
|
117
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
118
|
+
end
|
119
|
+
|
120
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
121
|
+
# Deserialize Response
|
122
|
+
if status_code == 200
|
123
|
+
begin
|
124
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
125
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::OperationStatus.mapper()
|
126
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
127
|
+
rescue Exception => e
|
128
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
result
|
133
|
+
end
|
134
|
+
|
135
|
+
promise.execute
|
136
|
+
end
|
137
|
+
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,152 @@
|
|
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 2.2.27.0
|
7
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
8
|
+
# regenerated.
|
9
|
+
|
10
|
+
module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
11
|
+
#
|
12
|
+
# Open API 2.0 Specs for Azure RecoveryServices Backup service
|
13
|
+
#
|
14
|
+
class Backups
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the Backups 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
|
+
# Triggers the backup job for the specified backup item. This is an
|
30
|
+
# asynchronous operation. To know the status of the operation, call
|
31
|
+
# GetProtectedItemOperationResult API.
|
32
|
+
#
|
33
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
34
|
+
# @param resource_group_name [String] The name of the resource group associated
|
35
|
+
# with the Recovery Services vault.
|
36
|
+
# @param fabric_name [String] The fabric name associated with the backup item.
|
37
|
+
# @param container_name [String] The container name associated with the backup
|
38
|
+
# item.
|
39
|
+
# @param protected_item_name [String] The name of backup item used in this POST
|
40
|
+
# operation.
|
41
|
+
# @param resource_backup_request [BackupRequestResource] The resource backup
|
42
|
+
# request.
|
43
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
|
+
# will be added to the HTTP request.
|
45
|
+
#
|
46
|
+
#
|
47
|
+
def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers = nil)
|
48
|
+
response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers).value!
|
49
|
+
nil
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Triggers the backup job for the specified backup item. This is an
|
54
|
+
# asynchronous operation. To know the status of the operation, call
|
55
|
+
# GetProtectedItemOperationResult API.
|
56
|
+
#
|
57
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
58
|
+
# @param resource_group_name [String] The name of the resource group associated
|
59
|
+
# with the Recovery Services vault.
|
60
|
+
# @param fabric_name [String] The fabric name associated with the backup item.
|
61
|
+
# @param container_name [String] The container name associated with the backup
|
62
|
+
# item.
|
63
|
+
# @param protected_item_name [String] The name of backup item used in this POST
|
64
|
+
# operation.
|
65
|
+
# @param resource_backup_request [BackupRequestResource] The resource backup
|
66
|
+
# request.
|
67
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
68
|
+
# will be added to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
71
|
+
#
|
72
|
+
def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers = nil)
|
73
|
+
trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers).value!
|
74
|
+
end
|
75
|
+
|
76
|
+
#
|
77
|
+
# Triggers the backup job for the specified backup item. This is an
|
78
|
+
# asynchronous operation. To know the status of the operation, call
|
79
|
+
# GetProtectedItemOperationResult API.
|
80
|
+
#
|
81
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
82
|
+
# @param resource_group_name [String] The name of the resource group associated
|
83
|
+
# with the Recovery Services vault.
|
84
|
+
# @param fabric_name [String] The fabric name associated with the backup item.
|
85
|
+
# @param container_name [String] The container name associated with the backup
|
86
|
+
# item.
|
87
|
+
# @param protected_item_name [String] The name of backup item used in this POST
|
88
|
+
# operation.
|
89
|
+
# @param resource_backup_request [BackupRequestResource] The resource backup
|
90
|
+
# request.
|
91
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
92
|
+
# to the HTTP request.
|
93
|
+
#
|
94
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
95
|
+
#
|
96
|
+
def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers = nil)
|
97
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
98
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
99
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
100
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
101
|
+
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
102
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
103
|
+
fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
|
104
|
+
fail ArgumentError, 'resource_backup_request is nil' if resource_backup_request.nil?
|
105
|
+
|
106
|
+
|
107
|
+
request_headers = {}
|
108
|
+
|
109
|
+
# Set Headers
|
110
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
111
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
112
|
+
|
113
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
114
|
+
|
115
|
+
# Serialize Request
|
116
|
+
request_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::BackupRequestResource.mapper()
|
117
|
+
request_content = @client.serialize(request_mapper, resource_backup_request)
|
118
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
119
|
+
|
120
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup'
|
121
|
+
|
122
|
+
request_url = @base_url || @client.base_url
|
123
|
+
|
124
|
+
options = {
|
125
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
126
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name},
|
127
|
+
query_params: {'api-version' => @client.api_version},
|
128
|
+
body: request_content,
|
129
|
+
headers: request_headers.merge(custom_headers || {}),
|
130
|
+
base_url: request_url
|
131
|
+
}
|
132
|
+
promise = @client.make_request_async(:post, path_template, options)
|
133
|
+
|
134
|
+
promise = promise.then do |result|
|
135
|
+
http_response = result.response
|
136
|
+
status_code = http_response.status
|
137
|
+
response_content = http_response.body
|
138
|
+
unless status_code == 202
|
139
|
+
error_model = JSON.load(response_content)
|
140
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
141
|
+
end
|
142
|
+
|
143
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
144
|
+
|
145
|
+
result
|
146
|
+
end
|
147
|
+
|
148
|
+
promise.execute
|
149
|
+
end
|
150
|
+
|
151
|
+
end
|
152
|
+
end
|
data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb
ADDED
@@ -0,0 +1,127 @@
|
|
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 2.2.27.0
|
7
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
8
|
+
# regenerated.
|
9
|
+
|
10
|
+
module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
11
|
+
#
|
12
|
+
# Open API 2.0 Specs for Azure RecoveryServices Backup service
|
13
|
+
#
|
14
|
+
class ExportJobsOperationResults
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the ExportJobsOperationResults 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
|
+
# Gets the result of the operation triggered by the ExportJob API.
|
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 associated
|
33
|
+
# with the Recovery Services vault.
|
34
|
+
# @param operation_id [String] The ID associated with the export job.
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
|
+
#
|
38
|
+
# @return [OperationResultInfoBaseResource] operation results.
|
39
|
+
#
|
40
|
+
def get(vault_name, resource_group_name, operation_id, custom_headers = nil)
|
41
|
+
response = get_async(vault_name, resource_group_name, operation_id, custom_headers).value!
|
42
|
+
response.body unless response.nil?
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Gets the result of the operation triggered by the ExportJob API.
|
47
|
+
#
|
48
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
49
|
+
# @param resource_group_name [String] The name of the resource group associated
|
50
|
+
# with the Recovery Services vault.
|
51
|
+
# @param operation_id [String] The ID associated with the export job.
|
52
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
|
+
# will be added to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
|
+
#
|
57
|
+
def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers = nil)
|
58
|
+
get_async(vault_name, resource_group_name, operation_id, custom_headers).value!
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# Gets the result of the operation triggered by the ExportJob API.
|
63
|
+
#
|
64
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
65
|
+
# @param resource_group_name [String] The name of the resource group associated
|
66
|
+
# with the Recovery Services vault.
|
67
|
+
# @param operation_id [String] The ID associated with the export job.
|
68
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
69
|
+
# to the HTTP request.
|
70
|
+
#
|
71
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
72
|
+
#
|
73
|
+
def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil)
|
74
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
75
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
76
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
78
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
79
|
+
|
80
|
+
|
81
|
+
request_headers = {}
|
82
|
+
|
83
|
+
# Set Headers
|
84
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
85
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
86
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}'
|
87
|
+
|
88
|
+
request_url = @base_url || @client.base_url
|
89
|
+
|
90
|
+
options = {
|
91
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
92
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'operationId' => operation_id},
|
93
|
+
query_params: {'api-version' => @client.api_version},
|
94
|
+
headers: request_headers.merge(custom_headers || {}),
|
95
|
+
base_url: request_url
|
96
|
+
}
|
97
|
+
promise = @client.make_request_async(:get, path_template, options)
|
98
|
+
|
99
|
+
promise = promise.then do |result|
|
100
|
+
http_response = result.response
|
101
|
+
status_code = http_response.status
|
102
|
+
response_content = http_response.body
|
103
|
+
unless status_code == 200 || status_code == 202
|
104
|
+
error_model = JSON.load(response_content)
|
105
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
106
|
+
end
|
107
|
+
|
108
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
109
|
+
# Deserialize Response
|
110
|
+
if status_code == 200
|
111
|
+
begin
|
112
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
113
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::OperationResultInfoBaseResource.mapper()
|
114
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
115
|
+
rescue Exception => e
|
116
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
result
|
121
|
+
end
|
122
|
+
|
123
|
+
promise.execute
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
127
|
+
end
|
data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb
ADDED
@@ -0,0 +1,279 @@
|
|
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 2.2.27.0
|
7
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
8
|
+
# regenerated.
|
9
|
+
|
10
|
+
module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01
|
11
|
+
#
|
12
|
+
# Open API 2.0 Specs for Azure RecoveryServices Backup service
|
13
|
+
#
|
14
|
+
class ItemLevelRecoveryConnections
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the ItemLevelRecoveryConnections 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
|
+
# Revokes an iSCSI connection which can be used to download a script. Executing
|
30
|
+
# this script opens a file explorer displaying all recoverable files and
|
31
|
+
# folders. This is an asynchronous operation.
|
32
|
+
#
|
33
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
34
|
+
# @param resource_group_name [String] The name of the resource group associated
|
35
|
+
# with the Recovery Services vault.
|
36
|
+
# @param fabric_name [String] The fabric name associated with the backup items.
|
37
|
+
# The value allowed is Azure.
|
38
|
+
# @param container_name [String] The container name associated with the backup
|
39
|
+
# items.
|
40
|
+
# @param protected_item_name [String] The name of the backup items whose files
|
41
|
+
# or folders will be restored.
|
42
|
+
# @param recovery_point_id [String] The string that identifies the recovery
|
43
|
+
# point. The iSCSI connection will be revoked for this protected data.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
#
|
48
|
+
def revoke(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
|
49
|
+
response = revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value!
|
50
|
+
nil
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Revokes an iSCSI connection which can be used to download a script. Executing
|
55
|
+
# this script opens a file explorer displaying all recoverable files and
|
56
|
+
# folders. This is an asynchronous operation.
|
57
|
+
#
|
58
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
59
|
+
# @param resource_group_name [String] The name of the resource group associated
|
60
|
+
# with the Recovery Services vault.
|
61
|
+
# @param fabric_name [String] The fabric name associated with the backup items.
|
62
|
+
# The value allowed is Azure.
|
63
|
+
# @param container_name [String] The container name associated with the backup
|
64
|
+
# items.
|
65
|
+
# @param protected_item_name [String] The name of the backup items whose files
|
66
|
+
# or folders will be restored.
|
67
|
+
# @param recovery_point_id [String] The string that identifies the recovery
|
68
|
+
# point. The iSCSI connection will be revoked for this protected data.
|
69
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
70
|
+
# will be added to the HTTP request.
|
71
|
+
#
|
72
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
73
|
+
#
|
74
|
+
def revoke_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
|
75
|
+
revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value!
|
76
|
+
end
|
77
|
+
|
78
|
+
#
|
79
|
+
# Revokes an iSCSI connection which can be used to download a script. Executing
|
80
|
+
# this script opens a file explorer displaying all recoverable files and
|
81
|
+
# folders. This is an asynchronous operation.
|
82
|
+
#
|
83
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
84
|
+
# @param resource_group_name [String] The name of the resource group associated
|
85
|
+
# with the Recovery Services vault.
|
86
|
+
# @param fabric_name [String] The fabric name associated with the backup items.
|
87
|
+
# The value allowed is Azure.
|
88
|
+
# @param container_name [String] The container name associated with the backup
|
89
|
+
# items.
|
90
|
+
# @param protected_item_name [String] The name of the backup items whose files
|
91
|
+
# or folders will be restored.
|
92
|
+
# @param recovery_point_id [String] The string that identifies the recovery
|
93
|
+
# point. The iSCSI connection will be revoked for this protected data.
|
94
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
95
|
+
# to the HTTP request.
|
96
|
+
#
|
97
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
98
|
+
#
|
99
|
+
def revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil)
|
100
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
101
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
102
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
103
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
104
|
+
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
105
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
106
|
+
fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
|
107
|
+
fail ArgumentError, 'recovery_point_id is nil' if recovery_point_id.nil?
|
108
|
+
|
109
|
+
|
110
|
+
request_headers = {}
|
111
|
+
|
112
|
+
# Set Headers
|
113
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
114
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
115
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/revokeInstantItemRecovery'
|
116
|
+
|
117
|
+
request_url = @base_url || @client.base_url
|
118
|
+
|
119
|
+
options = {
|
120
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
121
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name,'recoveryPointId' => recovery_point_id},
|
122
|
+
query_params: {'api-version' => @client.api_version},
|
123
|
+
headers: request_headers.merge(custom_headers || {}),
|
124
|
+
base_url: request_url
|
125
|
+
}
|
126
|
+
promise = @client.make_request_async(:post, path_template, options)
|
127
|
+
|
128
|
+
promise = promise.then do |result|
|
129
|
+
http_response = result.response
|
130
|
+
status_code = http_response.status
|
131
|
+
response_content = http_response.body
|
132
|
+
unless status_code == 202
|
133
|
+
error_model = JSON.load(response_content)
|
134
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
135
|
+
end
|
136
|
+
|
137
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
138
|
+
|
139
|
+
result
|
140
|
+
end
|
141
|
+
|
142
|
+
promise.execute
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Provisions a script which invokes an iSCSI connection to the backup data.
|
147
|
+
# Executing this script opens File Explorer which displays the recoverable
|
148
|
+
# files and folders. This is an asynchronous operation. To get the provisioning
|
149
|
+
# status, call GetProtectedItemOperationResult API.
|
150
|
+
#
|
151
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
152
|
+
# @param resource_group_name [String] The name of the resource group associated
|
153
|
+
# with the Recovery Services vault.
|
154
|
+
# @param fabric_name [String] The fabric name associated with the backup items.
|
155
|
+
# @param container_name [String] The container name associated with the backup
|
156
|
+
# items.
|
157
|
+
# @param protected_item_name [String] The name of the backup item whose files
|
158
|
+
# or folders are to be restored.
|
159
|
+
# @param recovery_point_id [String] The recovery point ID for backup data. The
|
160
|
+
# iSCSI connection will be provisioned for this backup data.
|
161
|
+
# @param resource_ilrrequest [ILRRequestResource] The resource Item Level
|
162
|
+
# Recovery (ILR) request.
|
163
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
164
|
+
# will be added to the HTTP request.
|
165
|
+
#
|
166
|
+
#
|
167
|
+
def provision(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers = nil)
|
168
|
+
response = provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers).value!
|
169
|
+
nil
|
170
|
+
end
|
171
|
+
|
172
|
+
#
|
173
|
+
# Provisions a script which invokes an iSCSI connection to the backup data.
|
174
|
+
# Executing this script opens File Explorer which displays the recoverable
|
175
|
+
# files and folders. This is an asynchronous operation. To get the provisioning
|
176
|
+
# status, call GetProtectedItemOperationResult API.
|
177
|
+
#
|
178
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
179
|
+
# @param resource_group_name [String] The name of the resource group associated
|
180
|
+
# with the Recovery Services vault.
|
181
|
+
# @param fabric_name [String] The fabric name associated with the backup items.
|
182
|
+
# @param container_name [String] The container name associated with the backup
|
183
|
+
# items.
|
184
|
+
# @param protected_item_name [String] The name of the backup item whose files
|
185
|
+
# or folders are to be restored.
|
186
|
+
# @param recovery_point_id [String] The recovery point ID for backup data. The
|
187
|
+
# iSCSI connection will be provisioned for this backup data.
|
188
|
+
# @param resource_ilrrequest [ILRRequestResource] The resource Item Level
|
189
|
+
# Recovery (ILR) request.
|
190
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
191
|
+
# will be added to the HTTP request.
|
192
|
+
#
|
193
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
194
|
+
#
|
195
|
+
def provision_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers = nil)
|
196
|
+
provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers).value!
|
197
|
+
end
|
198
|
+
|
199
|
+
#
|
200
|
+
# Provisions a script which invokes an iSCSI connection to the backup data.
|
201
|
+
# Executing this script opens File Explorer which displays the recoverable
|
202
|
+
# files and folders. This is an asynchronous operation. To get the provisioning
|
203
|
+
# status, call GetProtectedItemOperationResult API.
|
204
|
+
#
|
205
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
206
|
+
# @param resource_group_name [String] The name of the resource group associated
|
207
|
+
# with the Recovery Services vault.
|
208
|
+
# @param fabric_name [String] The fabric name associated with the backup items.
|
209
|
+
# @param container_name [String] The container name associated with the backup
|
210
|
+
# items.
|
211
|
+
# @param protected_item_name [String] The name of the backup item whose files
|
212
|
+
# or folders are to be restored.
|
213
|
+
# @param recovery_point_id [String] The recovery point ID for backup data. The
|
214
|
+
# iSCSI connection will be provisioned for this backup data.
|
215
|
+
# @param resource_ilrrequest [ILRRequestResource] The resource Item Level
|
216
|
+
# Recovery (ILR) request.
|
217
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
218
|
+
# to the HTTP request.
|
219
|
+
#
|
220
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
221
|
+
#
|
222
|
+
def provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers = nil)
|
223
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
224
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
225
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
226
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
227
|
+
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
228
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
229
|
+
fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
|
230
|
+
fail ArgumentError, 'recovery_point_id is nil' if recovery_point_id.nil?
|
231
|
+
fail ArgumentError, 'resource_ilrrequest is nil' if resource_ilrrequest.nil?
|
232
|
+
|
233
|
+
|
234
|
+
request_headers = {}
|
235
|
+
|
236
|
+
# Set Headers
|
237
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
238
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
239
|
+
|
240
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
241
|
+
|
242
|
+
# Serialize Request
|
243
|
+
request_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ILRRequestResource.mapper()
|
244
|
+
request_content = @client.serialize(request_mapper, resource_ilrrequest)
|
245
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
246
|
+
|
247
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/provisionInstantItemRecovery'
|
248
|
+
|
249
|
+
request_url = @base_url || @client.base_url
|
250
|
+
|
251
|
+
options = {
|
252
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
253
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name,'recoveryPointId' => recovery_point_id},
|
254
|
+
query_params: {'api-version' => @client.api_version},
|
255
|
+
body: request_content,
|
256
|
+
headers: request_headers.merge(custom_headers || {}),
|
257
|
+
base_url: request_url
|
258
|
+
}
|
259
|
+
promise = @client.make_request_async(:post, path_template, options)
|
260
|
+
|
261
|
+
promise = promise.then do |result|
|
262
|
+
http_response = result.response
|
263
|
+
status_code = http_response.status
|
264
|
+
response_content = http_response.body
|
265
|
+
unless status_code == 202
|
266
|
+
error_model = JSON.load(response_content)
|
267
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
268
|
+
end
|
269
|
+
|
270
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
271
|
+
|
272
|
+
result
|
273
|
+
end
|
274
|
+
|
275
|
+
promise.execute
|
276
|
+
end
|
277
|
+
|
278
|
+
end
|
279
|
+
end
|