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/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services_backup/module_definition.rb
RENAMED
@@ -3,10 +3,11 @@
|
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for
|
4
4
|
# license information.
|
5
5
|
#
|
6
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 2.2.
|
6
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 2.2.27.0
|
7
7
|
# Changes may cause incorrect behavior and will be lost if the code is
|
8
8
|
# regenerated.
|
9
9
|
|
10
10
|
module Azure end
|
11
|
-
module Azure::
|
12
|
-
module Azure::
|
11
|
+
module Azure::RecoveryServicesBackup end
|
12
|
+
module Azure::RecoveryServicesBackup::Mgmt end
|
13
|
+
module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 end
|
@@ -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 ProtectableItems
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the ProtectableItems 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
|
+
# Based on the query filter and the pagination parameters, this operation
|
30
|
+
# provides a pageable list of objects within the subscription that can be
|
31
|
+
# protected.
|
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 filter [String] Using the following query filters, you can sort a
|
37
|
+
# specific backup item based on: type of backup item, status, name of the item,
|
38
|
+
# and more. providerType eq { AzureIaasVM, MAB, DPM, AzureBackupServer,
|
39
|
+
# AzureSql } and status eq { NotProtected , Protecting , Protected } and
|
40
|
+
# friendlyName {name} and skipToken eq {string which provides the next set of
|
41
|
+
# list} and topToken eq {int} and backupManagementType eq { AzureIaasVM, MAB,
|
42
|
+
# DPM, AzureBackupServer, AzureSql }.
|
43
|
+
# @param skip_token [String] The Skip Token filter.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [Array<WorkloadProtectableItemResource>] operation results.
|
48
|
+
#
|
49
|
+
def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
50
|
+
first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers)
|
51
|
+
first_page.get_all_items
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Based on the query filter and the pagination parameters, this operation
|
56
|
+
# provides a pageable list of objects within the subscription that can be
|
57
|
+
# protected.
|
58
|
+
#
|
59
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
60
|
+
# @param resource_group_name [String] The name of the resource group associated
|
61
|
+
# with the Recovery Services vault.
|
62
|
+
# @param filter [String] Using the following query filters, you can sort a
|
63
|
+
# specific backup item based on: type of backup item, status, name of the item,
|
64
|
+
# and more. providerType eq { AzureIaasVM, MAB, DPM, AzureBackupServer,
|
65
|
+
# AzureSql } and status eq { NotProtected , Protecting , Protected } and
|
66
|
+
# friendlyName {name} and skipToken eq {string which provides the next set of
|
67
|
+
# list} and topToken eq {int} and backupManagementType eq { AzureIaasVM, MAB,
|
68
|
+
# DPM, AzureBackupServer, AzureSql }.
|
69
|
+
# @param skip_token [String] The Skip Token filter.
|
70
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
71
|
+
# will be added to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
74
|
+
#
|
75
|
+
def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
76
|
+
list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value!
|
77
|
+
end
|
78
|
+
|
79
|
+
#
|
80
|
+
# Based on the query filter and the pagination parameters, this operation
|
81
|
+
# provides a pageable list of objects within the subscription that can be
|
82
|
+
# protected.
|
83
|
+
#
|
84
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
85
|
+
# @param resource_group_name [String] The name of the resource group associated
|
86
|
+
# with the Recovery Services vault.
|
87
|
+
# @param filter [String] Using the following query filters, you can sort a
|
88
|
+
# specific backup item based on: type of backup item, status, name of the item,
|
89
|
+
# and more. providerType eq { AzureIaasVM, MAB, DPM, AzureBackupServer,
|
90
|
+
# AzureSql } and status eq { NotProtected , Protecting , Protected } and
|
91
|
+
# friendlyName {name} and skipToken eq {string which provides the next set of
|
92
|
+
# list} and topToken eq {int} and backupManagementType eq { AzureIaasVM, MAB,
|
93
|
+
# DPM, AzureBackupServer, AzureSql }.
|
94
|
+
# @param skip_token [String] The Skip Token filter.
|
95
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
96
|
+
# to the HTTP request.
|
97
|
+
#
|
98
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
99
|
+
#
|
100
|
+
def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
101
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
102
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
103
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
104
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems'
|
113
|
+
|
114
|
+
request_url = @base_url || @client.base_url
|
115
|
+
|
116
|
+
options = {
|
117
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
118
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
119
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$skipToken' => skip_token},
|
120
|
+
headers: request_headers.merge(custom_headers || {}),
|
121
|
+
base_url: request_url
|
122
|
+
}
|
123
|
+
promise = @client.make_request_async(:get, path_template, options)
|
124
|
+
|
125
|
+
promise = promise.then do |result|
|
126
|
+
http_response = result.response
|
127
|
+
status_code = http_response.status
|
128
|
+
response_content = http_response.body
|
129
|
+
unless status_code == 200
|
130
|
+
error_model = JSON.load(response_content)
|
131
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
132
|
+
end
|
133
|
+
|
134
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
135
|
+
# Deserialize Response
|
136
|
+
if status_code == 200
|
137
|
+
begin
|
138
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
139
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::WorkloadProtectableItemResourceList.mapper()
|
140
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
141
|
+
rescue Exception => e
|
142
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
result
|
147
|
+
end
|
148
|
+
|
149
|
+
promise.execute
|
150
|
+
end
|
151
|
+
|
152
|
+
#
|
153
|
+
# Based on the query filter and the pagination parameters, this operation
|
154
|
+
# provides a pageable list of objects within the subscription that can be
|
155
|
+
# protected.
|
156
|
+
#
|
157
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
158
|
+
# to List operation.
|
159
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
160
|
+
# will be added to the HTTP request.
|
161
|
+
#
|
162
|
+
# @return [WorkloadProtectableItemResourceList] operation results.
|
163
|
+
#
|
164
|
+
def list_next(next_page_link, custom_headers = nil)
|
165
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
166
|
+
response.body unless response.nil?
|
167
|
+
end
|
168
|
+
|
169
|
+
#
|
170
|
+
# Based on the query filter and the pagination parameters, this operation
|
171
|
+
# provides a pageable list of objects within the subscription that can be
|
172
|
+
# protected.
|
173
|
+
#
|
174
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
175
|
+
# to List operation.
|
176
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
177
|
+
# will be added to the HTTP request.
|
178
|
+
#
|
179
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
180
|
+
#
|
181
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
182
|
+
list_next_async(next_page_link, custom_headers).value!
|
183
|
+
end
|
184
|
+
|
185
|
+
#
|
186
|
+
# Based on the query filter and the pagination parameters, this operation
|
187
|
+
# provides a pageable list of objects within the subscription that can be
|
188
|
+
# protected.
|
189
|
+
#
|
190
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
191
|
+
# to List operation.
|
192
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
193
|
+
# to the HTTP request.
|
194
|
+
#
|
195
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
196
|
+
#
|
197
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
198
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
199
|
+
|
200
|
+
|
201
|
+
request_headers = {}
|
202
|
+
|
203
|
+
# Set Headers
|
204
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
205
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
206
|
+
path_template = '{nextLink}'
|
207
|
+
|
208
|
+
request_url = @base_url || @client.base_url
|
209
|
+
|
210
|
+
options = {
|
211
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
212
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
213
|
+
headers: request_headers.merge(custom_headers || {}),
|
214
|
+
base_url: request_url
|
215
|
+
}
|
216
|
+
promise = @client.make_request_async(:get, path_template, options)
|
217
|
+
|
218
|
+
promise = promise.then do |result|
|
219
|
+
http_response = result.response
|
220
|
+
status_code = http_response.status
|
221
|
+
response_content = http_response.body
|
222
|
+
unless status_code == 200
|
223
|
+
error_model = JSON.load(response_content)
|
224
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
225
|
+
end
|
226
|
+
|
227
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
228
|
+
# Deserialize Response
|
229
|
+
if status_code == 200
|
230
|
+
begin
|
231
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
232
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::WorkloadProtectableItemResourceList.mapper()
|
233
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
234
|
+
rescue Exception => e
|
235
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
result
|
240
|
+
end
|
241
|
+
|
242
|
+
promise.execute
|
243
|
+
end
|
244
|
+
|
245
|
+
#
|
246
|
+
# Based on the query filter and the pagination parameters, this operation
|
247
|
+
# provides a pageable list of objects within the subscription that can be
|
248
|
+
# protected.
|
249
|
+
#
|
250
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
251
|
+
# @param resource_group_name [String] The name of the resource group associated
|
252
|
+
# with the Recovery Services vault.
|
253
|
+
# @param filter [String] Using the following query filters, you can sort a
|
254
|
+
# specific backup item based on: type of backup item, status, name of the item,
|
255
|
+
# and more. providerType eq { AzureIaasVM, MAB, DPM, AzureBackupServer,
|
256
|
+
# AzureSql } and status eq { NotProtected , Protecting , Protected } and
|
257
|
+
# friendlyName {name} and skipToken eq {string which provides the next set of
|
258
|
+
# list} and topToken eq {int} and backupManagementType eq { AzureIaasVM, MAB,
|
259
|
+
# DPM, AzureBackupServer, AzureSql }.
|
260
|
+
# @param skip_token [String] The Skip Token filter.
|
261
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
262
|
+
# will be added to the HTTP request.
|
263
|
+
#
|
264
|
+
# @return [WorkloadProtectableItemResourceList] which provide lazy access to
|
265
|
+
# pages of the response.
|
266
|
+
#
|
267
|
+
def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil)
|
268
|
+
response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value!
|
269
|
+
unless response.nil?
|
270
|
+
page = response.body
|
271
|
+
page.next_method = Proc.new do |next_page_link|
|
272
|
+
list_next_async(next_page_link, custom_headers)
|
273
|
+
end
|
274
|
+
page
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
end
|
279
|
+
end
|
@@ -0,0 +1,145 @@
|
|
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 ProtectedItemOperationResults
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the ProtectedItemOperationResults 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 any operation on the backup item.
|
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 fabric_name [String] The fabric name associated with the backup item.
|
35
|
+
# @param container_name [String] The container name associated with the backup
|
36
|
+
# item.
|
37
|
+
# @param protected_item_name [String] The name of backup item used in this GET
|
38
|
+
# operation.
|
39
|
+
# @param operation_id [String] The OperationID used in this GET operation.
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [ProtectedItemResource] operation results.
|
44
|
+
#
|
45
|
+
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil)
|
46
|
+
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value!
|
47
|
+
response.body unless response.nil?
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# Gets the result of any operation on the backup item.
|
52
|
+
#
|
53
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
54
|
+
# @param resource_group_name [String] The name of the resource group associated
|
55
|
+
# with the Recovery Services vault.
|
56
|
+
# @param fabric_name [String] The fabric name associated with the backup item.
|
57
|
+
# @param container_name [String] The container name associated with the backup
|
58
|
+
# item.
|
59
|
+
# @param protected_item_name [String] The name of backup item used in this GET
|
60
|
+
# operation.
|
61
|
+
# @param operation_id [String] The OperationID used in this GET operation.
|
62
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
63
|
+
# will be added to the HTTP request.
|
64
|
+
#
|
65
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
66
|
+
#
|
67
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil)
|
68
|
+
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value!
|
69
|
+
end
|
70
|
+
|
71
|
+
#
|
72
|
+
# Gets the result of any operation on the backup item.
|
73
|
+
#
|
74
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
75
|
+
# @param resource_group_name [String] The name of the resource group associated
|
76
|
+
# with the Recovery Services vault.
|
77
|
+
# @param fabric_name [String] The fabric name associated with the backup item.
|
78
|
+
# @param container_name [String] The container name associated with the backup
|
79
|
+
# item.
|
80
|
+
# @param protected_item_name [String] The name of backup item used in this GET
|
81
|
+
# operation.
|
82
|
+
# @param operation_id [String] The OperationID used in this GET operation.
|
83
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
84
|
+
# to the HTTP request.
|
85
|
+
#
|
86
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
87
|
+
#
|
88
|
+
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil)
|
89
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
90
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
91
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
92
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
93
|
+
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
94
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
95
|
+
fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
|
96
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
97
|
+
|
98
|
+
|
99
|
+
request_headers = {}
|
100
|
+
|
101
|
+
# Set Headers
|
102
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
103
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
104
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}'
|
105
|
+
|
106
|
+
request_url = @base_url || @client.base_url
|
107
|
+
|
108
|
+
options = {
|
109
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
110
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name,'operationId' => operation_id},
|
111
|
+
query_params: {'api-version' => @client.api_version},
|
112
|
+
headers: request_headers.merge(custom_headers || {}),
|
113
|
+
base_url: request_url
|
114
|
+
}
|
115
|
+
promise = @client.make_request_async(:get, path_template, options)
|
116
|
+
|
117
|
+
promise = promise.then do |result|
|
118
|
+
http_response = result.response
|
119
|
+
status_code = http_response.status
|
120
|
+
response_content = http_response.body
|
121
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
122
|
+
error_model = JSON.load(response_content)
|
123
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
124
|
+
end
|
125
|
+
|
126
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
127
|
+
# Deserialize Response
|
128
|
+
if status_code == 200
|
129
|
+
begin
|
130
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
131
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectedItemResource.mapper()
|
132
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
133
|
+
rescue Exception => e
|
134
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
result
|
139
|
+
end
|
140
|
+
|
141
|
+
promise.execute
|
142
|
+
end
|
143
|
+
|
144
|
+
end
|
145
|
+
end
|
@@ -0,0 +1,157 @@
|
|
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 ProtectedItemOperationStatuses
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the ProtectedItemOperationStatuses 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 the operation. Some
|
32
|
+
# operations create jobs. This method returns the list of jobs associated with
|
33
|
+
# the operation.
|
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 fabric_name [String] The fabric name associated with the backup item.
|
39
|
+
# @param container_name [String] The container name associated with the backup
|
40
|
+
# item.
|
41
|
+
# @param protected_item_name [String] The name of backup item used in this GET
|
42
|
+
# operation.
|
43
|
+
# @param operation_id [String] The OperationID used in this GET operation.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [OperationStatus] operation results.
|
48
|
+
#
|
49
|
+
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil)
|
50
|
+
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value!
|
51
|
+
response.body unless response.nil?
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Gets the status of an operation such as triggering a backup or restore. The
|
56
|
+
# status can be: In progress, Completed, or Failed. You can refer to the
|
57
|
+
# OperationStatus enum for all the possible states of the operation. Some
|
58
|
+
# operations create jobs. This method returns the list of jobs associated with
|
59
|
+
# the operation.
|
60
|
+
#
|
61
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
62
|
+
# @param resource_group_name [String] The name of the resource group associated
|
63
|
+
# with the Recovery Services vault.
|
64
|
+
# @param fabric_name [String] The fabric name associated with the backup item.
|
65
|
+
# @param container_name [String] The container name associated with the backup
|
66
|
+
# item.
|
67
|
+
# @param protected_item_name [String] The name of backup item used in this GET
|
68
|
+
# operation.
|
69
|
+
# @param operation_id [String] The OperationID used in this GET operation.
|
70
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
71
|
+
# will be added to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
74
|
+
#
|
75
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil)
|
76
|
+
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value!
|
77
|
+
end
|
78
|
+
|
79
|
+
#
|
80
|
+
# Gets the status of an operation such as triggering a backup or restore. The
|
81
|
+
# status can be: In progress, Completed, or Failed. You can refer to the
|
82
|
+
# OperationStatus enum for all the possible states of the operation. Some
|
83
|
+
# operations create jobs. This method returns the list of jobs associated with
|
84
|
+
# the operation.
|
85
|
+
#
|
86
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
87
|
+
# @param resource_group_name [String] The name of the resource group associated
|
88
|
+
# with the Recovery Services vault.
|
89
|
+
# @param fabric_name [String] The fabric name associated with the backup item.
|
90
|
+
# @param container_name [String] The container name associated with the backup
|
91
|
+
# item.
|
92
|
+
# @param protected_item_name [String] The name of backup item used in this GET
|
93
|
+
# operation.
|
94
|
+
# @param operation_id [String] The OperationID used in this GET operation.
|
95
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
96
|
+
# to the HTTP request.
|
97
|
+
#
|
98
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
99
|
+
#
|
100
|
+
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil)
|
101
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
102
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
103
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
104
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
105
|
+
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
106
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
107
|
+
fail ArgumentError, 'protected_item_name is nil' if protected_item_name.nil?
|
108
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
109
|
+
|
110
|
+
|
111
|
+
request_headers = {}
|
112
|
+
|
113
|
+
# Set Headers
|
114
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
115
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
116
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}'
|
117
|
+
|
118
|
+
request_url = @base_url || @client.base_url
|
119
|
+
|
120
|
+
options = {
|
121
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
122
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name,'protectedItemName' => protected_item_name,'operationId' => operation_id},
|
123
|
+
query_params: {'api-version' => @client.api_version},
|
124
|
+
headers: request_headers.merge(custom_headers || {}),
|
125
|
+
base_url: request_url
|
126
|
+
}
|
127
|
+
promise = @client.make_request_async(:get, path_template, options)
|
128
|
+
|
129
|
+
promise = promise.then do |result|
|
130
|
+
http_response = result.response
|
131
|
+
status_code = http_response.status
|
132
|
+
response_content = http_response.body
|
133
|
+
unless status_code == 200
|
134
|
+
error_model = JSON.load(response_content)
|
135
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
136
|
+
end
|
137
|
+
|
138
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
139
|
+
# Deserialize Response
|
140
|
+
if status_code == 200
|
141
|
+
begin
|
142
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
143
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::OperationStatus.mapper()
|
144
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
145
|
+
rescue Exception => e
|
146
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
result
|
151
|
+
end
|
152
|
+
|
153
|
+
promise.execute
|
154
|
+
end
|
155
|
+
|
156
|
+
end
|
157
|
+
end
|