azure_mgmt_recovery_services_backup 0.15.2 → 0.16.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/backup_engines.rb +15 -13
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backups.rb +6 -7
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +12 -12
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_details.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/jobs.rb +21 -18
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protectable_items.rb +15 -13
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb +33 -30
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +33 -28
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +33 -30
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +21 -18
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +4 -1
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/restores.rb +6 -7
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/models/client_discovery_display.rb +9 -7
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/models/client_discovery_for_log_specification.rb +2 -2
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/models/client_discovery_response.rb +3 -3
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/models/client_discovery_value_for_single_api.rb +7 -6
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/operations.rb +15 -13
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +4 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup.rb +119 -68
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +21 -18
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protectable_items.rb +15 -13
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protection_containers.rb +15 -13
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_storage_configs.rb +23 -10
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb +12 -12
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_workload_items.rb +256 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backups.rb +6 -7
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +12 -12
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_container.rb +8 -17
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_backup_server_engine.rb +2 -2
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_backup_request.rb +62 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protectable_item.rb +118 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb +111 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_recovery_point.rb +85 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_restore_request.rb +132 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_type.rb +17 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb +192 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item_extended_info.rb +71 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmcontainer.rb +4 -13
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotectable_item.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmcontainer.rb +4 -13
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotectable_item.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +9 -2
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_container.rb +4 -13
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/{job_query_object.rb → azure_sqlagworkload_container_protection_container.rb} +38 -37
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_storage_container.rb +126 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_storage_protectable_container.rb +82 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_item.rb +138 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protectable_item.rb +165 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protected_item_extended_info.rb +71 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb +102 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sqlavailability_group_protectable_item.rb +141 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sqldatabase_protectable_item.rb +140 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sqldatabase_protected_item.rb +250 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sqldatabase_workload_item.rb +122 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sqlinstance_protectable_item.rb +140 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sqlinstance_workload_item.rb +143 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vmapp_container_protectable_container.rb +82 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_vmapp_container_protection_container.rb +107 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_backup_request.rb +86 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_container.rb +119 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_container_extended_info.rb +80 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_recovery_point.rb +74 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb +94 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlpoint_in_time_recovery_point.rb +95 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlpoint_in_time_restore_request.rb +137 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlrecovery_point.rb +83 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlrecovery_point_extended_info.rb +68 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_sqlrestore_request.rb +138 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_engine_base.rb +5 -4
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_item_type.rb +2 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +3 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_request.rb +2 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_resource_config.rb +12 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_resource_vault_config.rb +12 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/backup_type.rb +19 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_engines_query_object.rb +2 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/bmscontainer_query_object.rb +16 -2
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/bmspoquery_object.rb +27 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/bmsrefresh_containers_query_object.rb +49 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/bmsrpquery_object.rb +25 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/bmsworkload_item_query_object.rb +87 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/container_identity_info.rb +79 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/container_type.rb +4 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/copy_options.rb +19 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb +2 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/distributed_nodes_info.rb +70 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/dpm_backup_engine.rb +2 -2
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/dpm_container.rb +8 -17
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/error_detail.rb +76 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_container.rb +106 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_container_extended_info.rb +78 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb +184 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb +102 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmcontainer.rb +4 -13
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/iaa_svmprotectable_item.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrecovery_point.rb +3 -3
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/iaas_vmrestore_request.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/inquiry_info.rb +81 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/{job_status.rb → inquiry_status.rb} +3 -7
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/inquiry_validation.rb +58 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/last_backup_status.rb +18 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/log_schedule_policy.rb +62 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/mab_container.rb +36 -13
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/mab_container_extended_info.rb +2 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +8 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/mabcontainer_health_details.rb +87 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/overwrite_options.rb +17 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/point_in_time_range.rb +57 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/pre_backup_validation.rb +71 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protectable_container.rb +94 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protectable_container_resource.rb +108 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protectable_container_resource_list.rb +95 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb +17 -2
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protected_item_health_status.rb +19 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb +10 -23
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protection_container_resource.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb +3 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/protection_status.rb +1 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/recovery_point.rb +4 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/restore_file_specs.rb +68 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/restore_point_query_type.rb +20 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/restore_point_type.rb +18 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/restore_request.rb +4 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/restore_request_type.rb +17 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +1 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/settings.rb +58 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/sqldata_directory.rb +69 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/sqldata_directory_mapping.rb +80 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/sqldata_directory_type.rb +17 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/sub_protection_policy.rb +76 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/target_afsrestore_info.rb +57 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/target_restore_info.rb +71 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/workload_inquiry_details.rb +71 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/workload_item.rb +95 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/workload_item_resource.rb +109 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/workload_item_resource_list.rb +95 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/workload_item_type.rb +17 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/workload_protectable_item.rb +18 -1
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb +27 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protectable_containers.rb +240 -0
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb +18 -17
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +344 -11
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +18 -17
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +21 -18
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +12 -21
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/restores.rb +6 -7
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/security_pins.rb +6 -5
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup.rb +112 -9
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb +15 -13
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/backup_policies.rb +18 -16
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb +18 -16
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/backup_status.rb +124 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/backup_usage_summaries.rb +8 -7
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +18 -7
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/feature_support.rb +127 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/job_details.rb +6 -5
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/jobs.rb +7 -6
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_file_share_protection_policy.rb +111 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item.rb +192 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_fileshare_protected_item_extended_info.rb +71 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_sclassic_compute_vmprotected_item.rb +197 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_scompute_vmprotected_item.rb +197 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmhealth_details.rb +87 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb +234 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item_extended_info.rb +71 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb +100 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_resource_protection_intent.rb +102 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item.rb +144 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protected_item_extended_info.rb +71 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_sql_protection_policy.rb +72 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_storage_error_info.rb +77 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_storage_job.rb +195 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_storage_job_extended_info.rb +85 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_storage_job_task_details.rb +57 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protected_item_extended_info.rb +71 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb +102 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_sqldatabase_protected_item.rb +250 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_vmresource_feature_support_request.rb +73 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_vmresource_feature_support_response.rb +48 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_error_info.rb +100 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_job.rb +172 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_job_extended_info.rb +85 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_job_task_details.rb +57 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/backup_management_type.rb +3 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/backup_management_usage.rb +1 -1
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/backup_management_usage_list.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/backup_status_request.rb +72 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/backup_status_response.rb +140 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/bmsbackup_summaries_query_object.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/daily_retention_format.rb +55 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/daily_retention_schedule.rb +66 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/data_source_type.rb +27 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/day.rb +57 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/day_of_week.rb +21 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item.rb +166 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/dpmprotected_item_extended_info.rb +198 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/error_detail.rb +76 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/export_jobs_operation_result_info.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/fabric_name.rb +16 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/feature_support_request.rb +46 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb +184 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/generic_protection_policy.rb +102 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/health_state.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/health_status.rb +18 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/http_status_code.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/job.rb +4 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/job_query_object.rb +2 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/last_backup_status.rb +18 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/log_schedule_policy.rb +62 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb +102 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/long_term_schedule_policy.rb +50 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item.rb +187 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_file_folder_protected_item_extended_info.rb +69 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_job.rb +4 -2
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb +86 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/mab_server_type.rb +4 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/month_of_year.rb +27 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb +105 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/name_info.rb +1 -1
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/operation_result_info.rb +1 -1
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base.rb +1 -1
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/operation_result_info_base_resource.rb +2 -2
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/operation_worker_response.rb +2 -2
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/pre_validate_enable_backup_request.rb +88 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/pre_validate_enable_backup_response.rb +105 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb +139 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item_health_status.rb +19 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/protected_item_query_object.rb +26 -3
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource.rb +108 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/protected_item_resource_list.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item_state.rb +20 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protection_intent.rb +108 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protection_intent_resource.rb +108 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb +63 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/protection_policy_query_object.rb +14 -2
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource.rb +109 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/protection_policy_resource_list.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protection_state.rb +20 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protection_status.rb +19 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb +62 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/retention_duration_type.rb +19 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/retention_policy.rb +47 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/retention_schedule_format.rb +17 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/schedule_policy.rb +48 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/schedule_run_type.rb +17 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/settings.rb +58 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/simple_retention_policy.rb +63 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/simple_schedule_policy.rb +114 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/sub_protection_policy.rb +76 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/support_status.rb +19 -0
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/type.rb +1 -1
- data/lib/{2016-12-01 → 2017-07-01}/generated/azure_mgmt_recovery_services_backup/models/usages_unit.rb +1 -1
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/validation_status.rb +17 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/week_of_month.rb +19 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_format.rb +75 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/weekly_retention_schedule.rb +87 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/workload_type.rb +2 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb +125 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/protection_intent_operations.rb +253 -0
- data/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/recovery_services_backup_client.rb +36 -1
- data/lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb +1039 -628
- data/lib/profiles/latest/recoveryservicesbackup_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/recoveryservicesbackup_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +182 -28
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/job_operation_type.rb +0 -22
@@ -39,8 +39,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
39
39
|
#
|
40
40
|
# @return [ProtectedItemResource] operation results.
|
41
41
|
#
|
42
|
-
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers
|
43
|
-
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value!
|
42
|
+
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil)
|
43
|
+
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value!
|
44
44
|
response.body unless response.nil?
|
45
45
|
end
|
46
46
|
|
@@ -62,8 +62,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
62
62
|
#
|
63
63
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
64
64
|
#
|
65
|
-
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers
|
66
|
-
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value!
|
65
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil)
|
66
|
+
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value!
|
67
67
|
end
|
68
68
|
|
69
69
|
#
|
@@ -84,7 +84,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
84
84
|
#
|
85
85
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
86
86
|
#
|
87
|
-
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers
|
87
|
+
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil)
|
88
88
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
89
89
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
90
90
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -96,6 +96,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
96
96
|
|
97
97
|
|
98
98
|
request_headers = {}
|
99
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
99
100
|
|
100
101
|
# Set Headers
|
101
102
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -43,8 +43,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
43
43
|
#
|
44
44
|
# @return [OperationStatus] operation results.
|
45
45
|
#
|
46
|
-
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers
|
47
|
-
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value!
|
46
|
+
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil)
|
47
|
+
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value!
|
48
48
|
response.body unless response.nil?
|
49
49
|
end
|
50
50
|
|
@@ -70,8 +70,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
70
70
|
#
|
71
71
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
72
72
|
#
|
73
|
-
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers
|
74
|
-
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value!
|
73
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil)
|
74
|
+
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value!
|
75
75
|
end
|
76
76
|
|
77
77
|
#
|
@@ -96,7 +96,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
96
96
|
#
|
97
97
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
98
98
|
#
|
99
|
-
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers
|
99
|
+
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil)
|
100
100
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
101
101
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
102
102
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -108,6 +108,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
108
108
|
|
109
109
|
|
110
110
|
request_headers = {}
|
111
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
111
112
|
|
112
113
|
# Set Headers
|
113
114
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -40,8 +40,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
40
40
|
#
|
41
41
|
# @return [ProtectedItemResource] operation results.
|
42
42
|
#
|
43
|
-
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter
|
44
|
-
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value!
|
43
|
+
def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil)
|
44
|
+
response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value!
|
45
45
|
response.body unless response.nil?
|
46
46
|
end
|
47
47
|
|
@@ -64,8 +64,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
64
64
|
#
|
65
65
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
66
66
|
#
|
67
|
-
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter
|
68
|
-
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value!
|
67
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil)
|
68
|
+
get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value!
|
69
69
|
end
|
70
70
|
|
71
71
|
#
|
@@ -87,7 +87,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
87
87
|
#
|
88
88
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
89
89
|
#
|
90
|
-
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter
|
90
|
+
def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil)
|
91
91
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
92
92
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
93
93
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -98,6 +98,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
98
98
|
|
99
99
|
|
100
100
|
request_headers = {}
|
101
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
101
102
|
|
102
103
|
# Set Headers
|
103
104
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -159,8 +160,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
159
160
|
# will be added to the HTTP request.
|
160
161
|
#
|
161
162
|
#
|
162
|
-
def create_or_update(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers
|
163
|
-
response = create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers).value!
|
163
|
+
def create_or_update(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil)
|
164
|
+
response = create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:custom_headers).value!
|
164
165
|
nil
|
165
166
|
end
|
166
167
|
|
@@ -182,8 +183,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
182
183
|
#
|
183
184
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
184
185
|
#
|
185
|
-
def create_or_update_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers
|
186
|
-
create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers).value!
|
186
|
+
def create_or_update_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil)
|
187
|
+
create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:custom_headers).value!
|
187
188
|
end
|
188
189
|
|
189
190
|
#
|
@@ -204,7 +205,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
204
205
|
#
|
205
206
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
206
207
|
#
|
207
|
-
def create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers
|
208
|
+
def create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil)
|
208
209
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
209
210
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
210
211
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -216,13 +217,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
216
217
|
|
217
218
|
|
218
219
|
request_headers = {}
|
220
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
219
221
|
|
220
222
|
# Set Headers
|
221
223
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
222
224
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
223
225
|
|
224
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
225
|
-
|
226
226
|
# Serialize Request
|
227
227
|
request_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectedItemResource.mapper()
|
228
228
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -275,8 +275,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
275
275
|
# will be added to the HTTP request.
|
276
276
|
#
|
277
277
|
#
|
278
|
-
def delete(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers
|
279
|
-
response = delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers).value!
|
278
|
+
def delete(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil)
|
279
|
+
response = delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:custom_headers).value!
|
280
280
|
nil
|
281
281
|
end
|
282
282
|
|
@@ -297,8 +297,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
297
297
|
#
|
298
298
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
299
299
|
#
|
300
|
-
def delete_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers
|
301
|
-
delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers).value!
|
300
|
+
def delete_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil)
|
301
|
+
delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:custom_headers).value!
|
302
302
|
end
|
303
303
|
|
304
304
|
#
|
@@ -318,7 +318,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
318
318
|
#
|
319
319
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
320
320
|
#
|
321
|
-
def delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers
|
321
|
+
def delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil)
|
322
322
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
323
323
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
324
324
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -329,6 +329,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
329
329
|
|
330
330
|
|
331
331
|
request_headers = {}
|
332
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
332
333
|
|
333
334
|
# Set Headers
|
334
335
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -37,8 +37,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
37
37
|
#
|
38
38
|
# @return [ProtectionContainerResource] operation results.
|
39
39
|
#
|
40
|
-
def get(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers
|
41
|
-
response = get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers).value!
|
40
|
+
def get(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil)
|
41
|
+
response = get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:custom_headers).value!
|
42
42
|
response.body unless response.nil?
|
43
43
|
end
|
44
44
|
|
@@ -58,8 +58,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
58
58
|
#
|
59
59
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
60
60
|
#
|
61
|
-
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers
|
62
|
-
get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers).value!
|
61
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil)
|
62
|
+
get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:custom_headers).value!
|
63
63
|
end
|
64
64
|
|
65
65
|
#
|
@@ -78,7 +78,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
78
78
|
#
|
79
79
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
80
80
|
#
|
81
|
-
def get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers
|
81
|
+
def get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil)
|
82
82
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
83
83
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
84
84
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -89,6 +89,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
89
89
|
|
90
90
|
|
91
91
|
request_headers = {}
|
92
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
92
93
|
|
93
94
|
# Set Headers
|
94
95
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -35,8 +35,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
35
35
|
# will be added to the HTTP request.
|
36
36
|
#
|
37
37
|
#
|
38
|
-
def get(vault_name, resource_group_name, fabric_name, operation_id, custom_headers
|
39
|
-
response = get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers).value!
|
38
|
+
def get(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil)
|
39
|
+
response = get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:custom_headers).value!
|
40
40
|
nil
|
41
41
|
end
|
42
42
|
|
@@ -55,8 +55,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
55
55
|
#
|
56
56
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
57
57
|
#
|
58
|
-
def get_with_http_info(vault_name, resource_group_name, fabric_name, operation_id, custom_headers
|
59
|
-
get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers).value!
|
58
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil)
|
59
|
+
get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:custom_headers).value!
|
60
60
|
end
|
61
61
|
|
62
62
|
#
|
@@ -74,7 +74,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
74
74
|
#
|
75
75
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
76
76
|
#
|
77
|
-
def get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers
|
77
|
+
def get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil)
|
78
78
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
79
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
80
80
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -84,6 +84,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
84
84
|
|
85
85
|
|
86
86
|
request_headers = {}
|
87
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
87
88
|
|
88
89
|
# Set Headers
|
89
90
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -36,8 +36,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
36
36
|
#
|
37
37
|
# @return [ProtectionContainerResource] operation results.
|
38
38
|
#
|
39
|
-
def get(vault_name, resource_group_name, fabric_name, container_name, custom_headers
|
40
|
-
response = get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers).value!
|
39
|
+
def get(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
40
|
+
response = get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value!
|
41
41
|
response.body unless response.nil?
|
42
42
|
end
|
43
43
|
|
@@ -56,8 +56,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
56
56
|
#
|
57
57
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
58
|
#
|
59
|
-
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, custom_headers
|
60
|
-
get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers).value!
|
59
|
+
def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
60
|
+
get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value!
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -75,7 +75,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers
|
78
|
+
def get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
79
79
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
80
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
81
81
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -85,6 +85,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
85
85
|
|
86
86
|
|
87
87
|
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
89
|
|
89
90
|
# Set Headers
|
90
91
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -129,6 +130,334 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
129
130
|
promise.execute
|
130
131
|
end
|
131
132
|
|
133
|
+
#
|
134
|
+
# Registers the container with Recovery Services vault.
|
135
|
+
# This is an asynchronous operation. To track the operation status, use
|
136
|
+
# location header to call get latest status of the operation.
|
137
|
+
#
|
138
|
+
# @param vault_name [String] The name of the recovery services vault.
|
139
|
+
# @param resource_group_name [String] The name of the resource group where the
|
140
|
+
# recovery services vault is present.
|
141
|
+
# @param fabric_name [String] Fabric name associated with the container.
|
142
|
+
# @param container_name [String] Name of the container to be registered.
|
143
|
+
# @param parameters [ProtectionContainerResource] Request body for operation
|
144
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
145
|
+
# will be added to the HTTP request.
|
146
|
+
#
|
147
|
+
# @return [ProtectionContainerResource] operation results.
|
148
|
+
#
|
149
|
+
def register(vault_name, resource_group_name, fabric_name, container_name, parameters, custom_headers:nil)
|
150
|
+
response = register_async(vault_name, resource_group_name, fabric_name, container_name, parameters, custom_headers:custom_headers).value!
|
151
|
+
response.body unless response.nil?
|
152
|
+
end
|
153
|
+
|
154
|
+
#
|
155
|
+
# Registers the container with Recovery Services vault.
|
156
|
+
# This is an asynchronous operation. To track the operation status, use
|
157
|
+
# location header to call get latest status of the operation.
|
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 where the
|
161
|
+
# recovery services vault is present.
|
162
|
+
# @param fabric_name [String] Fabric name associated with the container.
|
163
|
+
# @param container_name [String] Name of the container to be registered.
|
164
|
+
# @param parameters [ProtectionContainerResource] Request body for operation
|
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 register_with_http_info(vault_name, resource_group_name, fabric_name, container_name, parameters, custom_headers:nil)
|
171
|
+
register_async(vault_name, resource_group_name, fabric_name, container_name, parameters, custom_headers:custom_headers).value!
|
172
|
+
end
|
173
|
+
|
174
|
+
#
|
175
|
+
# Registers the container with Recovery Services vault.
|
176
|
+
# This is an asynchronous operation. To track the operation status, use
|
177
|
+
# location header to call get latest status of the operation.
|
178
|
+
#
|
179
|
+
# @param vault_name [String] The name of the recovery services vault.
|
180
|
+
# @param resource_group_name [String] The name of the resource group where the
|
181
|
+
# recovery services vault is present.
|
182
|
+
# @param fabric_name [String] Fabric name associated with the container.
|
183
|
+
# @param container_name [String] Name of the container to be registered.
|
184
|
+
# @param parameters [ProtectionContainerResource] Request body for operation
|
185
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
186
|
+
# to the HTTP request.
|
187
|
+
#
|
188
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
189
|
+
#
|
190
|
+
def register_async(vault_name, resource_group_name, fabric_name, container_name, parameters, custom_headers:nil)
|
191
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
192
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
193
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
194
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
195
|
+
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
196
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
197
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
198
|
+
|
199
|
+
|
200
|
+
request_headers = {}
|
201
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
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
|
+
|
207
|
+
# Serialize Request
|
208
|
+
request_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource.mapper()
|
209
|
+
request_content = @client.serialize(request_mapper, parameters)
|
210
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
211
|
+
|
212
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}'
|
213
|
+
|
214
|
+
request_url = @base_url || @client.base_url
|
215
|
+
|
216
|
+
options = {
|
217
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
218
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name},
|
219
|
+
query_params: {'api-version' => @client.api_version},
|
220
|
+
body: request_content,
|
221
|
+
headers: request_headers.merge(custom_headers || {}),
|
222
|
+
base_url: request_url
|
223
|
+
}
|
224
|
+
promise = @client.make_request_async(:put, path_template, options)
|
225
|
+
|
226
|
+
promise = promise.then do |result|
|
227
|
+
http_response = result.response
|
228
|
+
status_code = http_response.status
|
229
|
+
response_content = http_response.body
|
230
|
+
unless status_code == 200 || status_code == 202
|
231
|
+
error_model = JSON.load(response_content)
|
232
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
233
|
+
end
|
234
|
+
|
235
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
236
|
+
# Deserialize Response
|
237
|
+
if status_code == 200
|
238
|
+
begin
|
239
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
240
|
+
result_mapper = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource.mapper()
|
241
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
242
|
+
rescue Exception => e
|
243
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
result
|
248
|
+
end
|
249
|
+
|
250
|
+
promise.execute
|
251
|
+
end
|
252
|
+
|
253
|
+
#
|
254
|
+
# Unregisters the given container from your Recovery Services Vault.
|
255
|
+
# This is an asynchronous operation. To determine whether the backend service
|
256
|
+
# has finished processing the request, call Get Container Operation Result API.
|
257
|
+
#
|
258
|
+
# @param vault_name [String] The name of the recovery services vault.
|
259
|
+
# @param resource_group_name [String] The name of the resource group where the
|
260
|
+
# recovery services vault is present.
|
261
|
+
# @param fabric_name [String] Name of the fabric where the container belongs.
|
262
|
+
# @param container_name [String] Name of the container which needs to be
|
263
|
+
# unregistered from the Recovery Services Vault.
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
|
+
# will be added to the HTTP request.
|
266
|
+
#
|
267
|
+
#
|
268
|
+
def unregister(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
269
|
+
response = unregister_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value!
|
270
|
+
nil
|
271
|
+
end
|
272
|
+
|
273
|
+
#
|
274
|
+
# Unregisters the given container from your Recovery Services Vault.
|
275
|
+
# This is an asynchronous operation. To determine whether the backend service
|
276
|
+
# has finished processing the request, call Get Container Operation Result API.
|
277
|
+
#
|
278
|
+
# @param vault_name [String] The name of the recovery services vault.
|
279
|
+
# @param resource_group_name [String] The name of the resource group where the
|
280
|
+
# recovery services vault is present.
|
281
|
+
# @param fabric_name [String] Name of the fabric where the container belongs.
|
282
|
+
# @param container_name [String] Name of the container which needs to be
|
283
|
+
# unregistered from the Recovery Services Vault.
|
284
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
285
|
+
# will be added to the HTTP request.
|
286
|
+
#
|
287
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
288
|
+
#
|
289
|
+
def unregister_with_http_info(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
290
|
+
unregister_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value!
|
291
|
+
end
|
292
|
+
|
293
|
+
#
|
294
|
+
# Unregisters the given container from your Recovery Services Vault.
|
295
|
+
# This is an asynchronous operation. To determine whether the backend service
|
296
|
+
# has finished processing the request, call Get Container Operation Result API.
|
297
|
+
#
|
298
|
+
# @param vault_name [String] The name of the recovery services vault.
|
299
|
+
# @param resource_group_name [String] The name of the resource group where the
|
300
|
+
# recovery services vault is present.
|
301
|
+
# @param fabric_name [String] Name of the fabric where the container belongs.
|
302
|
+
# @param container_name [String] Name of the container which needs to be
|
303
|
+
# unregistered from the Recovery Services Vault.
|
304
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
305
|
+
# to the HTTP request.
|
306
|
+
#
|
307
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
308
|
+
#
|
309
|
+
def unregister_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
310
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
311
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
312
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
313
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
314
|
+
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
315
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
316
|
+
|
317
|
+
|
318
|
+
request_headers = {}
|
319
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
320
|
+
|
321
|
+
# Set Headers
|
322
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
323
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
324
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}'
|
325
|
+
|
326
|
+
request_url = @base_url || @client.base_url
|
327
|
+
|
328
|
+
options = {
|
329
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
330
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name},
|
331
|
+
query_params: {'api-version' => @client.api_version},
|
332
|
+
headers: request_headers.merge(custom_headers || {}),
|
333
|
+
base_url: request_url
|
334
|
+
}
|
335
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
336
|
+
|
337
|
+
promise = promise.then do |result|
|
338
|
+
http_response = result.response
|
339
|
+
status_code = http_response.status
|
340
|
+
response_content = http_response.body
|
341
|
+
unless status_code == 202 || status_code == 204
|
342
|
+
error_model = JSON.load(response_content)
|
343
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
344
|
+
end
|
345
|
+
|
346
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
347
|
+
|
348
|
+
result
|
349
|
+
end
|
350
|
+
|
351
|
+
promise.execute
|
352
|
+
end
|
353
|
+
|
354
|
+
#
|
355
|
+
# Inquires all the protectable item in the given container that can be
|
356
|
+
# protected.
|
357
|
+
#
|
358
|
+
# Inquires all the protectable items that are protectable under the given
|
359
|
+
# container.
|
360
|
+
#
|
361
|
+
# @param vault_name [String] The name of the recovery services vault.
|
362
|
+
# @param resource_group_name [String] The name of the resource group where the
|
363
|
+
# recovery services vault is present.
|
364
|
+
# @param fabric_name [String] Fabric Name associated with the container.
|
365
|
+
# @param container_name [String] Name of the container in which inquiry needs
|
366
|
+
# to be triggered.
|
367
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
368
|
+
# will be added to the HTTP request.
|
369
|
+
#
|
370
|
+
#
|
371
|
+
def inquire(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
372
|
+
response = inquire_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value!
|
373
|
+
nil
|
374
|
+
end
|
375
|
+
|
376
|
+
#
|
377
|
+
# Inquires all the protectable item in the given container that can be
|
378
|
+
# protected.
|
379
|
+
#
|
380
|
+
# Inquires all the protectable items that are protectable under the given
|
381
|
+
# container.
|
382
|
+
#
|
383
|
+
# @param vault_name [String] The name of the recovery services vault.
|
384
|
+
# @param resource_group_name [String] The name of the resource group where the
|
385
|
+
# recovery services vault is present.
|
386
|
+
# @param fabric_name [String] Fabric Name associated with the container.
|
387
|
+
# @param container_name [String] Name of the container in which inquiry needs
|
388
|
+
# to be triggered.
|
389
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
390
|
+
# will be added to the HTTP request.
|
391
|
+
#
|
392
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
393
|
+
#
|
394
|
+
def inquire_with_http_info(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
395
|
+
inquire_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value!
|
396
|
+
end
|
397
|
+
|
398
|
+
#
|
399
|
+
# Inquires all the protectable item in the given container that can be
|
400
|
+
# protected.
|
401
|
+
#
|
402
|
+
# Inquires all the protectable items that are protectable under the given
|
403
|
+
# container.
|
404
|
+
#
|
405
|
+
# @param vault_name [String] The name of the recovery services vault.
|
406
|
+
# @param resource_group_name [String] The name of the resource group where the
|
407
|
+
# recovery services vault is present.
|
408
|
+
# @param fabric_name [String] Fabric Name associated with the container.
|
409
|
+
# @param container_name [String] Name of the container in which inquiry needs
|
410
|
+
# to be triggered.
|
411
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
412
|
+
# to the HTTP request.
|
413
|
+
#
|
414
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
415
|
+
#
|
416
|
+
def inquire_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil)
|
417
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
418
|
+
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
419
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
420
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
421
|
+
fail ArgumentError, 'fabric_name is nil' if fabric_name.nil?
|
422
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
423
|
+
|
424
|
+
|
425
|
+
request_headers = {}
|
426
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
427
|
+
|
428
|
+
# Set Headers
|
429
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
430
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
431
|
+
path_template = 'Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire'
|
432
|
+
|
433
|
+
request_url = @base_url || @client.base_url
|
434
|
+
|
435
|
+
options = {
|
436
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
437
|
+
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name,'containerName' => container_name},
|
438
|
+
query_params: {'api-version' => @client.api_version},
|
439
|
+
headers: request_headers.merge(custom_headers || {}),
|
440
|
+
base_url: request_url
|
441
|
+
}
|
442
|
+
promise = @client.make_request_async(:post, path_template, options)
|
443
|
+
|
444
|
+
promise = promise.then do |result|
|
445
|
+
http_response = result.response
|
446
|
+
status_code = http_response.status
|
447
|
+
response_content = http_response.body
|
448
|
+
unless status_code == 202
|
449
|
+
error_model = JSON.load(response_content)
|
450
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
451
|
+
end
|
452
|
+
|
453
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
454
|
+
|
455
|
+
result
|
456
|
+
end
|
457
|
+
|
458
|
+
promise.execute
|
459
|
+
end
|
460
|
+
|
132
461
|
#
|
133
462
|
# Discovers all the containers in the subscription that can be backed up to
|
134
463
|
# Recovery Services Vault. This is an asynchronous operation. To know the
|
@@ -138,12 +467,13 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
138
467
|
# @param resource_group_name [String] The name of the resource group where the
|
139
468
|
# recovery services vault is present.
|
140
469
|
# @param fabric_name [String] Fabric name associated the container.
|
470
|
+
# @param filter [String] OData filter options.
|
141
471
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
142
472
|
# will be added to the HTTP request.
|
143
473
|
#
|
144
474
|
#
|
145
|
-
def refresh(vault_name, resource_group_name, fabric_name, custom_headers
|
146
|
-
response = refresh_async(vault_name, resource_group_name, fabric_name, custom_headers).value!
|
475
|
+
def refresh(vault_name, resource_group_name, fabric_name, filter:nil, custom_headers:nil)
|
476
|
+
response = refresh_async(vault_name, resource_group_name, fabric_name, filter:filter, custom_headers:custom_headers).value!
|
147
477
|
nil
|
148
478
|
end
|
149
479
|
|
@@ -156,13 +486,14 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
156
486
|
# @param resource_group_name [String] The name of the resource group where the
|
157
487
|
# recovery services vault is present.
|
158
488
|
# @param fabric_name [String] Fabric name associated the container.
|
489
|
+
# @param filter [String] OData filter options.
|
159
490
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
160
491
|
# will be added to the HTTP request.
|
161
492
|
#
|
162
493
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
163
494
|
#
|
164
|
-
def refresh_with_http_info(vault_name, resource_group_name, fabric_name, custom_headers
|
165
|
-
refresh_async(vault_name, resource_group_name, fabric_name, custom_headers).value!
|
495
|
+
def refresh_with_http_info(vault_name, resource_group_name, fabric_name, filter:nil, custom_headers:nil)
|
496
|
+
refresh_async(vault_name, resource_group_name, fabric_name, filter:filter, custom_headers:custom_headers).value!
|
166
497
|
end
|
167
498
|
|
168
499
|
#
|
@@ -174,12 +505,13 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
174
505
|
# @param resource_group_name [String] The name of the resource group where the
|
175
506
|
# recovery services vault is present.
|
176
507
|
# @param fabric_name [String] Fabric name associated the container.
|
508
|
+
# @param filter [String] OData filter options.
|
177
509
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
178
510
|
# to the HTTP request.
|
179
511
|
#
|
180
512
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
181
513
|
#
|
182
|
-
def refresh_async(vault_name, resource_group_name, fabric_name, custom_headers
|
514
|
+
def refresh_async(vault_name, resource_group_name, fabric_name, filter:nil, custom_headers:nil)
|
183
515
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
184
516
|
fail ArgumentError, 'vault_name is nil' if vault_name.nil?
|
185
517
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -188,6 +520,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
188
520
|
|
189
521
|
|
190
522
|
request_headers = {}
|
523
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
191
524
|
|
192
525
|
# Set Headers
|
193
526
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -199,7 +532,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01
|
|
199
532
|
options = {
|
200
533
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
201
534
|
path_params: {'vaultName' => vault_name,'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'fabricName' => fabric_name},
|
202
|
-
query_params: {'api-version' => @client.api_version},
|
535
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter},
|
203
536
|
headers: request_headers.merge(custom_headers || {}),
|
204
537
|
base_url: request_url
|
205
538
|
}
|