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
@@ -0,0 +1,569 @@
|
|
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 ProtectionPolicies
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
#
|
18
|
+
# Creates and initializes a new instance of the ProtectionPolicies 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 details of the backup policy associated with the Recovery Services
|
30
|
+
# vault. This is an asynchronous operation. Use the GetPolicyOperationResult
|
31
|
+
# API to Get the operation status.
|
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 policy_name [String] The backup policy name used in this GET
|
37
|
+
# operation.
|
38
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
39
|
+
# will be added to the HTTP request.
|
40
|
+
#
|
41
|
+
# @return [ProtectionPolicyResource] operation results.
|
42
|
+
#
|
43
|
+
def get(vault_name, resource_group_name, policy_name, custom_headers = nil)
|
44
|
+
response = get_async(vault_name, resource_group_name, policy_name, custom_headers).value!
|
45
|
+
response.body unless response.nil?
|
46
|
+
end
|
47
|
+
|
48
|
+
#
|
49
|
+
# Gets the details of the backup policy associated with the Recovery Services
|
50
|
+
# vault. This is an asynchronous operation. Use the GetPolicyOperationResult
|
51
|
+
# API to Get the operation status.
|
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 policy_name [String] The backup policy name used in this GET
|
57
|
+
# operation.
|
58
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
59
|
+
# will be added to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
62
|
+
#
|
63
|
+
def get_with_http_info(vault_name, resource_group_name, policy_name, custom_headers = nil)
|
64
|
+
get_async(vault_name, resource_group_name, policy_name, custom_headers).value!
|
65
|
+
end
|
66
|
+
|
67
|
+
#
|
68
|
+
# Gets the details of the backup policy associated with the Recovery Services
|
69
|
+
# vault. This is an asynchronous operation. Use the GetPolicyOperationResult
|
70
|
+
# API to Get the operation status.
|
71
|
+
#
|
72
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
73
|
+
# @param resource_group_name [String] The name of the resource group associated
|
74
|
+
# with the Recovery Services vault.
|
75
|
+
# @param policy_name [String] The backup policy name used in this GET
|
76
|
+
# operation.
|
77
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
78
|
+
# to the HTTP request.
|
79
|
+
#
|
80
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
81
|
+
#
|
82
|
+
def get_async(vault_name, resource_group_name, policy_name, custom_headers = nil)
|
83
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
84
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
85
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
86
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
87
|
+
fail ArgumentError, 'policy_name is nil' if policy_name.nil?
|
88
|
+
|
89
|
+
|
90
|
+
request_headers = {}
|
91
|
+
|
92
|
+
# Set Headers
|
93
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}'
|
96
|
+
|
97
|
+
request_url = @base_url || @client.base_url
|
98
|
+
|
99
|
+
options = {
|
100
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
101
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'policyName' => policy_name},
|
102
|
+
query_params: {'api-version' => @client.api_version},
|
103
|
+
headers: request_headers.merge(custom_headers || {}),
|
104
|
+
base_url: request_url
|
105
|
+
}
|
106
|
+
promise = @client.make_request_async(:get, path_template, options)
|
107
|
+
|
108
|
+
promise = promise.then do |result|
|
109
|
+
http_response = result.response
|
110
|
+
status_code = http_response.status
|
111
|
+
response_content = http_response.body
|
112
|
+
unless status_code == 200
|
113
|
+
error_model = JSON.load(response_content)
|
114
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
115
|
+
end
|
116
|
+
|
117
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
118
|
+
# Deserialize Response
|
119
|
+
if status_code == 200
|
120
|
+
begin
|
121
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionPolicyResource.mapper()
|
123
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
|
+
rescue Exception => e
|
125
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
result
|
130
|
+
end
|
131
|
+
|
132
|
+
promise.execute
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Creates or modifies a backup policy. This is an asynchronous operation. Use
|
137
|
+
# the GetPolicyOperationResult API to Get the operation status.
|
138
|
+
#
|
139
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
140
|
+
# @param resource_group_name [String] The name of the resource group associated
|
141
|
+
# with the Recovery Services vault.
|
142
|
+
# @param policy_name [String] The backup policy to be created.
|
143
|
+
# @param resource_protection_policy [ProtectionPolicyResource] The resource
|
144
|
+
# backup policy.
|
145
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
|
+
# will be added to the HTTP request.
|
147
|
+
#
|
148
|
+
# @return [ProtectionPolicyResource] operation results.
|
149
|
+
#
|
150
|
+
def create_or_update(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers = nil)
|
151
|
+
response = create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers).value!
|
152
|
+
response.body unless response.nil?
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# Creates or modifies a backup policy. This is an asynchronous operation. Use
|
157
|
+
# the GetPolicyOperationResult API to Get the operation status.
|
158
|
+
#
|
159
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
160
|
+
# @param resource_group_name [String] The name of the resource group associated
|
161
|
+
# with the Recovery Services vault.
|
162
|
+
# @param policy_name [String] The backup policy to be created.
|
163
|
+
# @param resource_protection_policy [ProtectionPolicyResource] The resource
|
164
|
+
# backup policy.
|
165
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
166
|
+
# will be added to the HTTP request.
|
167
|
+
#
|
168
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
169
|
+
#
|
170
|
+
def create_or_update_with_http_info(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers = nil)
|
171
|
+
create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers).value!
|
172
|
+
end
|
173
|
+
|
174
|
+
#
|
175
|
+
# Creates or modifies a backup policy. This is an asynchronous operation. Use
|
176
|
+
# the GetPolicyOperationResult API to Get the operation status.
|
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 policy_name [String] The backup policy to be created.
|
182
|
+
# @param resource_protection_policy [ProtectionPolicyResource] The resource
|
183
|
+
# backup policy.
|
184
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
185
|
+
# to the HTTP request.
|
186
|
+
#
|
187
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
188
|
+
#
|
189
|
+
def create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers = nil)
|
190
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
191
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
192
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
193
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
194
|
+
fail ArgumentError, 'policy_name is nil' if policy_name.nil?
|
195
|
+
fail ArgumentError, 'resource_protection_policy is nil' if resource_protection_policy.nil?
|
196
|
+
|
197
|
+
|
198
|
+
request_headers = {}
|
199
|
+
|
200
|
+
# Set Headers
|
201
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
202
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
203
|
+
|
204
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
205
|
+
|
206
|
+
# Serialize Request
|
207
|
+
request_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionPolicyResource.mapper()
|
208
|
+
request_content = @client.serialize(request_mapper, resource_protection_policy)
|
209
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
210
|
+
|
211
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}'
|
212
|
+
|
213
|
+
request_url = @base_url || @client.base_url
|
214
|
+
|
215
|
+
options = {
|
216
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
217
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'policyName' => policy_name},
|
218
|
+
query_params: {'api-version' => @client.api_version},
|
219
|
+
body: request_content,
|
220
|
+
headers: request_headers.merge(custom_headers || {}),
|
221
|
+
base_url: request_url
|
222
|
+
}
|
223
|
+
promise = @client.make_request_async(:put, path_template, options)
|
224
|
+
|
225
|
+
promise = promise.then do |result|
|
226
|
+
http_response = result.response
|
227
|
+
status_code = http_response.status
|
228
|
+
response_content = http_response.body
|
229
|
+
unless status_code == 200 || status_code == 202
|
230
|
+
error_model = JSON.load(response_content)
|
231
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
232
|
+
end
|
233
|
+
|
234
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
235
|
+
# Deserialize Response
|
236
|
+
if status_code == 200
|
237
|
+
begin
|
238
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
239
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionPolicyResource.mapper()
|
240
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
241
|
+
rescue Exception => e
|
242
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
result
|
247
|
+
end
|
248
|
+
|
249
|
+
promise.execute
|
250
|
+
end
|
251
|
+
|
252
|
+
#
|
253
|
+
# Deletes the specified backup policy from your Recovery Services vault. This
|
254
|
+
# is an asynchronous operation. Use the GetPolicyOperationResult API to Get the
|
255
|
+
# operation status.
|
256
|
+
#
|
257
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
258
|
+
# @param resource_group_name [String] The name of the resource group associated
|
259
|
+
# with the Recovery Services vault.
|
260
|
+
# @param policy_name [String] The name of the backup policy to be deleted.
|
261
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
262
|
+
# will be added to the HTTP request.
|
263
|
+
#
|
264
|
+
#
|
265
|
+
def delete(vault_name, resource_group_name, policy_name, custom_headers = nil)
|
266
|
+
response = delete_async(vault_name, resource_group_name, policy_name, custom_headers).value!
|
267
|
+
nil
|
268
|
+
end
|
269
|
+
|
270
|
+
#
|
271
|
+
# Deletes the specified backup policy from your Recovery Services vault. This
|
272
|
+
# is an asynchronous operation. Use the GetPolicyOperationResult API to Get the
|
273
|
+
# operation status.
|
274
|
+
#
|
275
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
276
|
+
# @param resource_group_name [String] The name of the resource group associated
|
277
|
+
# with the Recovery Services vault.
|
278
|
+
# @param policy_name [String] The name of the backup policy to be deleted.
|
279
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
280
|
+
# will be added to the HTTP request.
|
281
|
+
#
|
282
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
283
|
+
#
|
284
|
+
def delete_with_http_info(vault_name, resource_group_name, policy_name, custom_headers = nil)
|
285
|
+
delete_async(vault_name, resource_group_name, policy_name, custom_headers).value!
|
286
|
+
end
|
287
|
+
|
288
|
+
#
|
289
|
+
# Deletes the specified backup policy from your Recovery Services vault. This
|
290
|
+
# is an asynchronous operation. Use the GetPolicyOperationResult API to Get the
|
291
|
+
# operation status.
|
292
|
+
#
|
293
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
294
|
+
# @param resource_group_name [String] The name of the resource group associated
|
295
|
+
# with the Recovery Services vault.
|
296
|
+
# @param policy_name [String] The name of the backup policy to be deleted.
|
297
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
298
|
+
# to the HTTP request.
|
299
|
+
#
|
300
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
301
|
+
#
|
302
|
+
def delete_async(vault_name, resource_group_name, policy_name, custom_headers = nil)
|
303
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
304
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
305
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
306
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
307
|
+
fail ArgumentError, 'policy_name is nil' if policy_name.nil?
|
308
|
+
|
309
|
+
|
310
|
+
request_headers = {}
|
311
|
+
|
312
|
+
# Set Headers
|
313
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
314
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
315
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}'
|
316
|
+
|
317
|
+
request_url = @base_url || @client.base_url
|
318
|
+
|
319
|
+
options = {
|
320
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
321
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'policyName' => policy_name},
|
322
|
+
query_params: {'api-version' => @client.api_version},
|
323
|
+
headers: request_headers.merge(custom_headers || {}),
|
324
|
+
base_url: request_url
|
325
|
+
}
|
326
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
327
|
+
|
328
|
+
promise = promise.then do |result|
|
329
|
+
http_response = result.response
|
330
|
+
status_code = http_response.status
|
331
|
+
response_content = http_response.body
|
332
|
+
unless status_code == 200 || status_code == 204
|
333
|
+
error_model = JSON.load(response_content)
|
334
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
335
|
+
end
|
336
|
+
|
337
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
338
|
+
|
339
|
+
result
|
340
|
+
end
|
341
|
+
|
342
|
+
promise.execute
|
343
|
+
end
|
344
|
+
|
345
|
+
#
|
346
|
+
# Lists the backup policies associated with the Recovery Services vault. The
|
347
|
+
# API provides parameters to Get scoped results.
|
348
|
+
#
|
349
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
350
|
+
# @param resource_group_name [String] The name of the resource group associated
|
351
|
+
# with the Recovery Services vault.
|
352
|
+
# @param filter [String] The following equation can be used to filter the list
|
353
|
+
# of backup policies. backupManagementType eq {AzureIaasVM, MAB, DPM,
|
354
|
+
# AzureBackupServer, AzureSql}.
|
355
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
356
|
+
# will be added to the HTTP request.
|
357
|
+
#
|
358
|
+
# @return [Array<ProtectionPolicyResource>] operation results.
|
359
|
+
#
|
360
|
+
def list(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
361
|
+
first_page = list_as_lazy(vault_name, resource_group_name, filter, custom_headers)
|
362
|
+
first_page.get_all_items
|
363
|
+
end
|
364
|
+
|
365
|
+
#
|
366
|
+
# Lists the backup policies associated with the Recovery Services vault. The
|
367
|
+
# API provides parameters to Get scoped results.
|
368
|
+
#
|
369
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
370
|
+
# @param resource_group_name [String] The name of the resource group associated
|
371
|
+
# with the Recovery Services vault.
|
372
|
+
# @param filter [String] The following equation can be used to filter the list
|
373
|
+
# of backup policies. backupManagementType eq {AzureIaasVM, MAB, DPM,
|
374
|
+
# AzureBackupServer, AzureSql}.
|
375
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
376
|
+
# will be added to the HTTP request.
|
377
|
+
#
|
378
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
379
|
+
#
|
380
|
+
def list_with_http_info(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
381
|
+
list_async(vault_name, resource_group_name, filter, custom_headers).value!
|
382
|
+
end
|
383
|
+
|
384
|
+
#
|
385
|
+
# Lists the backup policies associated with the Recovery Services vault. The
|
386
|
+
# API provides parameters to Get scoped results.
|
387
|
+
#
|
388
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
389
|
+
# @param resource_group_name [String] The name of the resource group associated
|
390
|
+
# with the Recovery Services vault.
|
391
|
+
# @param filter [String] The following equation can be used to filter the list
|
392
|
+
# of backup policies. backupManagementType eq {AzureIaasVM, MAB, DPM,
|
393
|
+
# AzureBackupServer, AzureSql}.
|
394
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
395
|
+
# to the HTTP request.
|
396
|
+
#
|
397
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
398
|
+
#
|
399
|
+
def list_async(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
400
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
401
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
402
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
403
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
404
|
+
|
405
|
+
|
406
|
+
request_headers = {}
|
407
|
+
|
408
|
+
# Set Headers
|
409
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
410
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
411
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies'
|
412
|
+
|
413
|
+
request_url = @base_url || @client.base_url
|
414
|
+
|
415
|
+
options = {
|
416
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
417
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
418
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter},
|
419
|
+
headers: request_headers.merge(custom_headers || {}),
|
420
|
+
base_url: request_url
|
421
|
+
}
|
422
|
+
promise = @client.make_request_async(:get, path_template, options)
|
423
|
+
|
424
|
+
promise = promise.then do |result|
|
425
|
+
http_response = result.response
|
426
|
+
status_code = http_response.status
|
427
|
+
response_content = http_response.body
|
428
|
+
unless status_code == 200
|
429
|
+
error_model = JSON.load(response_content)
|
430
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
431
|
+
end
|
432
|
+
|
433
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
434
|
+
# Deserialize Response
|
435
|
+
if status_code == 200
|
436
|
+
begin
|
437
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
438
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionPolicyResourceList.mapper()
|
439
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
440
|
+
rescue Exception => e
|
441
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
445
|
+
result
|
446
|
+
end
|
447
|
+
|
448
|
+
promise.execute
|
449
|
+
end
|
450
|
+
|
451
|
+
#
|
452
|
+
# Lists the backup policies associated with the Recovery Services vault. The
|
453
|
+
# API provides parameters to Get scoped results.
|
454
|
+
#
|
455
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
456
|
+
# to List operation.
|
457
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
458
|
+
# will be added to the HTTP request.
|
459
|
+
#
|
460
|
+
# @return [ProtectionPolicyResourceList] operation results.
|
461
|
+
#
|
462
|
+
def list_next(next_page_link, custom_headers = nil)
|
463
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
464
|
+
response.body unless response.nil?
|
465
|
+
end
|
466
|
+
|
467
|
+
#
|
468
|
+
# Lists the backup policies associated with the Recovery Services vault. The
|
469
|
+
# API provides parameters to Get scoped results.
|
470
|
+
#
|
471
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
472
|
+
# to List operation.
|
473
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
474
|
+
# will be added to the HTTP request.
|
475
|
+
#
|
476
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
477
|
+
#
|
478
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
479
|
+
list_next_async(next_page_link, custom_headers).value!
|
480
|
+
end
|
481
|
+
|
482
|
+
#
|
483
|
+
# Lists the backup policies associated with the Recovery Services vault. The
|
484
|
+
# API provides parameters to Get scoped results.
|
485
|
+
#
|
486
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
487
|
+
# to List operation.
|
488
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
489
|
+
# to the HTTP request.
|
490
|
+
#
|
491
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
492
|
+
#
|
493
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
494
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
495
|
+
|
496
|
+
|
497
|
+
request_headers = {}
|
498
|
+
|
499
|
+
# Set Headers
|
500
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
501
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
502
|
+
path_template = '{nextLink}'
|
503
|
+
|
504
|
+
request_url = @base_url || @client.base_url
|
505
|
+
|
506
|
+
options = {
|
507
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
508
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
509
|
+
headers: request_headers.merge(custom_headers || {}),
|
510
|
+
base_url: request_url
|
511
|
+
}
|
512
|
+
promise = @client.make_request_async(:get, path_template, options)
|
513
|
+
|
514
|
+
promise = promise.then do |result|
|
515
|
+
http_response = result.response
|
516
|
+
status_code = http_response.status
|
517
|
+
response_content = http_response.body
|
518
|
+
unless status_code == 200
|
519
|
+
error_model = JSON.load(response_content)
|
520
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
521
|
+
end
|
522
|
+
|
523
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
524
|
+
# Deserialize Response
|
525
|
+
if status_code == 200
|
526
|
+
begin
|
527
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
528
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionPolicyResourceList.mapper()
|
529
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
530
|
+
rescue Exception => e
|
531
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
532
|
+
end
|
533
|
+
end
|
534
|
+
|
535
|
+
result
|
536
|
+
end
|
537
|
+
|
538
|
+
promise.execute
|
539
|
+
end
|
540
|
+
|
541
|
+
#
|
542
|
+
# Lists the backup policies associated with the Recovery Services vault. The
|
543
|
+
# API provides parameters to Get scoped results.
|
544
|
+
#
|
545
|
+
# @param vault_name [String] The name of the Recovery Services vault.
|
546
|
+
# @param resource_group_name [String] The name of the resource group associated
|
547
|
+
# with the Recovery Services vault.
|
548
|
+
# @param filter [String] The following equation can be used to filter the list
|
549
|
+
# of backup policies. backupManagementType eq {AzureIaasVM, MAB, DPM,
|
550
|
+
# AzureBackupServer, AzureSql}.
|
551
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
552
|
+
# will be added to the HTTP request.
|
553
|
+
#
|
554
|
+
# @return [ProtectionPolicyResourceList] which provide lazy access to pages of
|
555
|
+
# the response.
|
556
|
+
#
|
557
|
+
def list_as_lazy(vault_name, resource_group_name, filter = nil, custom_headers = nil)
|
558
|
+
response = list_async(vault_name, resource_group_name, filter, custom_headers).value!
|
559
|
+
unless response.nil?
|
560
|
+
page = response.body
|
561
|
+
page.next_method = Proc.new do |next_page_link|
|
562
|
+
list_next_async(next_page_link, custom_headers)
|
563
|
+
end
|
564
|
+
page
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
end
|
569
|
+
end
|