azure_mgmt_storagesync 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync.rb +76 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1319 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +107 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server.rb +260 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +173 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint.rb +166 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +134 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +82 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +74 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +85 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/operations.rb +216 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/registered_servers.rb +548 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/server_endpoints.rb +905 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +155 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/storage_sync_services.rb +739 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/sync_groups.rb +449 -0
- data/lib/2018-04-02/generated/azure_mgmt_storagesync/workflows.rb +228 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync.rb +77 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1319 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +95 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server.rb +271 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +161 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +181 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +137 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +77 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +85 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +73 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +46 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/operations.rb +216 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/registered_servers.rb +701 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb +905 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +155 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +739 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/sync_groups.rb +449 -0
- data/lib/2018-07-01/generated/azure_mgmt_storagesync/workflows.rb +331 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync.rb +80 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1319 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +95 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server.rb +271 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +161 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +229 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +160 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_health.rb +133 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +85 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +73 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_progress_status.rb +133 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/sync_session_status.rb +83 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +46 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/operations.rb +216 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/registered_servers.rb +701 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/server_endpoints.rb +905 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +155 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +739 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/sync_groups.rb +449 -0
- data/lib/2018-10-01/generated/azure_mgmt_storagesync/workflows.rb +331 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync.rb +81 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb +1319 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/azure_entity_resource.rb +75 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/backup_request.rb +46 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/check_name_availability_parameters.rb +61 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/check_name_availability_result.rb +78 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint.rb +162 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_array.rb +55 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/cloud_endpoint_create_parameters.rb +95 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/files_not_syncing_error.rb +73 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/name_availability_reason.rb +16 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_display_info.rb +80 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_display_resource.rb +79 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_entity.rb +69 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/operation_entity_list_result.rb +98 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/post_backup_response.rb +47 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/post_restore_request.rb +132 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/pre_restore_request.rb +144 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/proxy_resource.rb +63 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/reason.rb +19 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/recall_action_parameters.rb +57 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server.rb +271 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server_array.rb +55 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/registered_server_create_parameters.rb +161 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/resource.rb +83 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/resources_move_info.rb +65 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/restore_file_spec.rb +58 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint.rb +233 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_array.rb +55 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_create_parameters.rb +160 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_sync_status.rb +180 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/server_endpoint_update_parameters.rb +100 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_api_error.rb +80 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_error.rb +59 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_error_details.rb +68 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service.rb +110 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_array.rb +55 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_create_parameters.rb +85 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/storage_sync_service_update_parameters.rb +66 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/subscription_state.rb +70 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_activity_status.rb +107 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group.rb +85 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group_array.rb +55 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_group_create_parameters.rb +73 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/sync_session_status.rb +131 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/tracked_resource.rb +92 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/trigger_rollover_request.rb +46 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/workflow.rb +119 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/models/workflow_array.rb +55 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/module_definition.rb +9 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/operations.rb +216 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/registered_servers.rb +701 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/server_endpoints.rb +905 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/storage_sync_management_client.rb +155 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/storage_sync_services.rb +739 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/sync_groups.rb +449 -0
- data/lib/2019-02-01/generated/azure_mgmt_storagesync/workflows.rb +331 -0
- data/lib/azure_mgmt_storagesync.rb +9 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/storagesync_profile_module.rb +261 -0
- data/lib/profiles/latest/storagesync_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/storagesync_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +343 -0
@@ -0,0 +1,155 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::StorageSync::Mgmt::V2018_04_02
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class StorageSyncManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] The API version to use for this operation.
|
21
|
+
attr_reader :api_version
|
22
|
+
|
23
|
+
# @return [String] The ID of the target subscription.
|
24
|
+
attr_accessor :subscription_id
|
25
|
+
|
26
|
+
# @return [String] The preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
30
|
+
# Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
34
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
35
|
+
# generated and included in each request. Default is true.
|
36
|
+
attr_accessor :generate_client_request_id
|
37
|
+
|
38
|
+
# @return [Operations] operations
|
39
|
+
attr_reader :operations
|
40
|
+
|
41
|
+
# @return [StorageSyncServices] storage_sync_services
|
42
|
+
attr_reader :storage_sync_services
|
43
|
+
|
44
|
+
# @return [SyncGroups] sync_groups
|
45
|
+
attr_reader :sync_groups
|
46
|
+
|
47
|
+
# @return [CloudEndpoints] cloud_endpoints
|
48
|
+
attr_reader :cloud_endpoints
|
49
|
+
|
50
|
+
# @return [ServerEndpoints] server_endpoints
|
51
|
+
attr_reader :server_endpoints
|
52
|
+
|
53
|
+
# @return [RegisteredServers] registered_servers
|
54
|
+
attr_reader :registered_servers
|
55
|
+
|
56
|
+
# @return [Workflows] workflows
|
57
|
+
attr_reader :workflows
|
58
|
+
|
59
|
+
#
|
60
|
+
# Creates initializes a new instance of the StorageSyncManagementClient class.
|
61
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
62
|
+
# @param base_url [String] the base URI of the service.
|
63
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
64
|
+
#
|
65
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
66
|
+
super(credentials, options)
|
67
|
+
@base_url = base_url || 'https://management.azure.com'
|
68
|
+
|
69
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
70
|
+
@credentials = credentials
|
71
|
+
|
72
|
+
@operations = Operations.new(self)
|
73
|
+
@storage_sync_services = StorageSyncServices.new(self)
|
74
|
+
@sync_groups = SyncGroups.new(self)
|
75
|
+
@cloud_endpoints = CloudEndpoints.new(self)
|
76
|
+
@server_endpoints = ServerEndpoints.new(self)
|
77
|
+
@registered_servers = RegisteredServers.new(self)
|
78
|
+
@workflows = Workflows.new(self)
|
79
|
+
@api_version = '2018-04-02'
|
80
|
+
@accept_language = 'en-US'
|
81
|
+
@long_running_operation_retry_timeout = 30
|
82
|
+
@generate_client_request_id = true
|
83
|
+
add_telemetry
|
84
|
+
end
|
85
|
+
|
86
|
+
#
|
87
|
+
# Makes a request and returns the body of the response.
|
88
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
89
|
+
# @param path [String] the path, relative to {base_url}.
|
90
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
91
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
92
|
+
# Example:
|
93
|
+
#
|
94
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
95
|
+
# path = "/path"
|
96
|
+
# options = {
|
97
|
+
# body: request_content,
|
98
|
+
# query_params: {'api-version' => '2016-02-01'}
|
99
|
+
# }
|
100
|
+
# result = @client.make_request(:put, path, options)
|
101
|
+
#
|
102
|
+
def make_request(method, path, options = {})
|
103
|
+
result = make_request_with_http_info(method, path, options)
|
104
|
+
result.body unless result.nil?
|
105
|
+
end
|
106
|
+
|
107
|
+
#
|
108
|
+
# Makes a request and returns the operation response.
|
109
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
110
|
+
# @param path [String] the path, relative to {base_url}.
|
111
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
112
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
113
|
+
#
|
114
|
+
def make_request_with_http_info(method, path, options = {})
|
115
|
+
result = make_request_async(method, path, options).value!
|
116
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
117
|
+
result
|
118
|
+
end
|
119
|
+
|
120
|
+
#
|
121
|
+
# Makes a request asynchronously.
|
122
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
123
|
+
# @param path [String] the path, relative to {base_url}.
|
124
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
125
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
126
|
+
#
|
127
|
+
def make_request_async(method, path, options = {})
|
128
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
129
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
130
|
+
|
131
|
+
request_url = options[:base_url] || @base_url
|
132
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
133
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
134
|
+
end
|
135
|
+
|
136
|
+
request_headers = @request_headers
|
137
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
138
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
139
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
140
|
+
|
141
|
+
super(request_url, method, path, options)
|
142
|
+
end
|
143
|
+
|
144
|
+
|
145
|
+
private
|
146
|
+
#
|
147
|
+
# Adds telemetry information.
|
148
|
+
#
|
149
|
+
def add_telemetry
|
150
|
+
sdk_information = 'azure_mgmt_storagesync'
|
151
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
152
|
+
add_user_agent_information(sdk_information)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
@@ -0,0 +1,739 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::StorageSync::Mgmt::V2018_04_02
|
7
|
+
#
|
8
|
+
# Microsoft Storage Sync Service API
|
9
|
+
#
|
10
|
+
class StorageSyncServices
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the StorageSyncServices class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [StorageSyncManagementClient] reference to the StorageSyncManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Check the give namespace name availability.
|
26
|
+
#
|
27
|
+
# @param location_name [String] The desired region for the name check.
|
28
|
+
# @param parameters [CheckNameAvailabilityParameters] Parameters to check
|
29
|
+
# availability of the given namespace name
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [CheckNameAvailabilityResult] operation results.
|
34
|
+
#
|
35
|
+
def check_name_availability(location_name, parameters, custom_headers:nil)
|
36
|
+
response = check_name_availability_async(location_name, parameters, custom_headers:custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Check the give namespace name availability.
|
42
|
+
#
|
43
|
+
# @param location_name [String] The desired region for the name check.
|
44
|
+
# @param parameters [CheckNameAvailabilityParameters] Parameters to check
|
45
|
+
# availability of the given namespace name
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def check_name_availability_with_http_info(location_name, parameters, custom_headers:nil)
|
52
|
+
check_name_availability_async(location_name, parameters, custom_headers:custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Check the give namespace name availability.
|
57
|
+
#
|
58
|
+
# @param location_name [String] The desired region for the name check.
|
59
|
+
# @param parameters [CheckNameAvailabilityParameters] Parameters to check
|
60
|
+
# availability of the given namespace name
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def check_name_availability_async(location_name, parameters, custom_headers:nil)
|
67
|
+
fail ArgumentError, 'location_name is nil' if location_name.nil?
|
68
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
69
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
70
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
71
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
72
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
73
|
+
|
74
|
+
|
75
|
+
request_headers = {}
|
76
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
77
|
+
|
78
|
+
# Set Headers
|
79
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
80
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
81
|
+
|
82
|
+
# Serialize Request
|
83
|
+
request_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::CheckNameAvailabilityParameters.mapper()
|
84
|
+
request_content = @client.serialize(request_mapper, parameters)
|
85
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
86
|
+
|
87
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability'
|
88
|
+
|
89
|
+
request_url = @base_url || @client.base_url
|
90
|
+
|
91
|
+
options = {
|
92
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
93
|
+
path_params: {'locationName' => location_name,'subscriptionId' => @client.subscription_id},
|
94
|
+
query_params: {'api-version' => @client.api_version},
|
95
|
+
body: request_content,
|
96
|
+
headers: request_headers.merge(custom_headers || {}),
|
97
|
+
base_url: request_url
|
98
|
+
}
|
99
|
+
promise = @client.make_request_async(:post, path_template, options)
|
100
|
+
|
101
|
+
promise = promise.then do |result|
|
102
|
+
http_response = result.response
|
103
|
+
status_code = http_response.status
|
104
|
+
response_content = http_response.body
|
105
|
+
unless status_code == 200
|
106
|
+
error_model = JSON.load(response_content)
|
107
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
108
|
+
end
|
109
|
+
|
110
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
111
|
+
# Deserialize Response
|
112
|
+
if status_code == 200
|
113
|
+
begin
|
114
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
115
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::CheckNameAvailabilityResult.mapper()
|
116
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
117
|
+
rescue Exception => e
|
118
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
result
|
123
|
+
end
|
124
|
+
|
125
|
+
promise.execute
|
126
|
+
end
|
127
|
+
|
128
|
+
#
|
129
|
+
# Create a new StorageSyncService.
|
130
|
+
#
|
131
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
132
|
+
# is case insensitive.
|
133
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
134
|
+
# resource.
|
135
|
+
# @param parameters [StorageSyncServiceCreateParameters] Storage Sync Service
|
136
|
+
# resource name.
|
137
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
138
|
+
# will be added to the HTTP request.
|
139
|
+
#
|
140
|
+
# @return [StorageSyncService] operation results.
|
141
|
+
#
|
142
|
+
def create(resource_group_name, storage_sync_service_name, parameters, custom_headers:nil)
|
143
|
+
response = create_async(resource_group_name, storage_sync_service_name, parameters, custom_headers:custom_headers).value!
|
144
|
+
response.body unless response.nil?
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Create a new StorageSyncService.
|
149
|
+
#
|
150
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
151
|
+
# is case insensitive.
|
152
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
153
|
+
# resource.
|
154
|
+
# @param parameters [StorageSyncServiceCreateParameters] Storage Sync Service
|
155
|
+
# resource name.
|
156
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
157
|
+
# will be added to the HTTP request.
|
158
|
+
#
|
159
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
160
|
+
#
|
161
|
+
def create_with_http_info(resource_group_name, storage_sync_service_name, parameters, custom_headers:nil)
|
162
|
+
create_async(resource_group_name, storage_sync_service_name, parameters, custom_headers:custom_headers).value!
|
163
|
+
end
|
164
|
+
|
165
|
+
#
|
166
|
+
# Create a new StorageSyncService.
|
167
|
+
#
|
168
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
169
|
+
# is case insensitive.
|
170
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
171
|
+
# resource.
|
172
|
+
# @param parameters [StorageSyncServiceCreateParameters] Storage Sync Service
|
173
|
+
# resource name.
|
174
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
175
|
+
# to the HTTP request.
|
176
|
+
#
|
177
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
178
|
+
#
|
179
|
+
def create_async(resource_group_name, storage_sync_service_name, parameters, custom_headers:nil)
|
180
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
181
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
182
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
183
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
184
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
185
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
186
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
187
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
188
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
189
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
190
|
+
|
191
|
+
|
192
|
+
request_headers = {}
|
193
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
194
|
+
|
195
|
+
# Set Headers
|
196
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
197
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
198
|
+
|
199
|
+
# Serialize Request
|
200
|
+
request_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::StorageSyncServiceCreateParameters.mapper()
|
201
|
+
request_content = @client.serialize(request_mapper, parameters)
|
202
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
203
|
+
|
204
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}'
|
205
|
+
|
206
|
+
request_url = @base_url || @client.base_url
|
207
|
+
|
208
|
+
options = {
|
209
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
210
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
|
211
|
+
query_params: {'api-version' => @client.api_version},
|
212
|
+
body: request_content,
|
213
|
+
headers: request_headers.merge(custom_headers || {}),
|
214
|
+
base_url: request_url
|
215
|
+
}
|
216
|
+
promise = @client.make_request_async(:put, path_template, options)
|
217
|
+
|
218
|
+
promise = promise.then do |result|
|
219
|
+
http_response = result.response
|
220
|
+
status_code = http_response.status
|
221
|
+
response_content = http_response.body
|
222
|
+
unless status_code == 200
|
223
|
+
error_model = JSON.load(response_content)
|
224
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
225
|
+
end
|
226
|
+
|
227
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
228
|
+
# Deserialize Response
|
229
|
+
if status_code == 200
|
230
|
+
begin
|
231
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
232
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::StorageSyncService.mapper()
|
233
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
234
|
+
rescue Exception => e
|
235
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
result
|
240
|
+
end
|
241
|
+
|
242
|
+
promise.execute
|
243
|
+
end
|
244
|
+
|
245
|
+
#
|
246
|
+
# Get a given StorageSyncService.
|
247
|
+
#
|
248
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
249
|
+
# is case insensitive.
|
250
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
251
|
+
# resource.
|
252
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
253
|
+
# will be added to the HTTP request.
|
254
|
+
#
|
255
|
+
# @return [StorageSyncService] operation results.
|
256
|
+
#
|
257
|
+
def get(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
258
|
+
response = get_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
|
259
|
+
response.body unless response.nil?
|
260
|
+
end
|
261
|
+
|
262
|
+
#
|
263
|
+
# Get a given StorageSyncService.
|
264
|
+
#
|
265
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
266
|
+
# is case insensitive.
|
267
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
268
|
+
# resource.
|
269
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
270
|
+
# will be added to the HTTP request.
|
271
|
+
#
|
272
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
273
|
+
#
|
274
|
+
def get_with_http_info(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
275
|
+
get_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
|
276
|
+
end
|
277
|
+
|
278
|
+
#
|
279
|
+
# Get a given StorageSyncService.
|
280
|
+
#
|
281
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
282
|
+
# is case insensitive.
|
283
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
284
|
+
# resource.
|
285
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
286
|
+
# to the HTTP request.
|
287
|
+
#
|
288
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
289
|
+
#
|
290
|
+
def get_async(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
291
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
292
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
293
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
294
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
295
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
296
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
297
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
298
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
299
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
300
|
+
|
301
|
+
|
302
|
+
request_headers = {}
|
303
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
304
|
+
|
305
|
+
# Set Headers
|
306
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
307
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
308
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}'
|
309
|
+
|
310
|
+
request_url = @base_url || @client.base_url
|
311
|
+
|
312
|
+
options = {
|
313
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
314
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
|
315
|
+
query_params: {'api-version' => @client.api_version},
|
316
|
+
headers: request_headers.merge(custom_headers || {}),
|
317
|
+
base_url: request_url
|
318
|
+
}
|
319
|
+
promise = @client.make_request_async(:get, path_template, options)
|
320
|
+
|
321
|
+
promise = promise.then do |result|
|
322
|
+
http_response = result.response
|
323
|
+
status_code = http_response.status
|
324
|
+
response_content = http_response.body
|
325
|
+
unless status_code == 200
|
326
|
+
error_model = JSON.load(response_content)
|
327
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
328
|
+
end
|
329
|
+
|
330
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
331
|
+
# Deserialize Response
|
332
|
+
if status_code == 200
|
333
|
+
begin
|
334
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
335
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::StorageSyncService.mapper()
|
336
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
337
|
+
rescue Exception => e
|
338
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
result
|
343
|
+
end
|
344
|
+
|
345
|
+
promise.execute
|
346
|
+
end
|
347
|
+
|
348
|
+
#
|
349
|
+
# Patch a given StorageSyncService.
|
350
|
+
#
|
351
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
352
|
+
# is case insensitive.
|
353
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
354
|
+
# resource.
|
355
|
+
# @param parameters [StorageSyncServiceUpdateParameters] Storage Sync Service
|
356
|
+
# resource.
|
357
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
358
|
+
# will be added to the HTTP request.
|
359
|
+
#
|
360
|
+
# @return [StorageSyncService] operation results.
|
361
|
+
#
|
362
|
+
def update(resource_group_name, storage_sync_service_name, parameters:nil, custom_headers:nil)
|
363
|
+
response = update_async(resource_group_name, storage_sync_service_name, parameters:parameters, custom_headers:custom_headers).value!
|
364
|
+
response.body unless response.nil?
|
365
|
+
end
|
366
|
+
|
367
|
+
#
|
368
|
+
# Patch a given StorageSyncService.
|
369
|
+
#
|
370
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
371
|
+
# is case insensitive.
|
372
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
373
|
+
# resource.
|
374
|
+
# @param parameters [StorageSyncServiceUpdateParameters] Storage Sync Service
|
375
|
+
# resource.
|
376
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
377
|
+
# will be added to the HTTP request.
|
378
|
+
#
|
379
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
380
|
+
#
|
381
|
+
def update_with_http_info(resource_group_name, storage_sync_service_name, parameters:nil, custom_headers:nil)
|
382
|
+
update_async(resource_group_name, storage_sync_service_name, parameters:parameters, custom_headers:custom_headers).value!
|
383
|
+
end
|
384
|
+
|
385
|
+
#
|
386
|
+
# Patch a given StorageSyncService.
|
387
|
+
#
|
388
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
389
|
+
# is case insensitive.
|
390
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
391
|
+
# resource.
|
392
|
+
# @param parameters [StorageSyncServiceUpdateParameters] Storage Sync Service
|
393
|
+
# resource.
|
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 update_async(resource_group_name, storage_sync_service_name, parameters:nil, custom_headers:nil)
|
400
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
401
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
402
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
403
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
404
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
405
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
406
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
407
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
408
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
409
|
+
|
410
|
+
|
411
|
+
request_headers = {}
|
412
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
413
|
+
|
414
|
+
# Set Headers
|
415
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
416
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
417
|
+
|
418
|
+
# Serialize Request
|
419
|
+
request_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::StorageSyncServiceUpdateParameters.mapper()
|
420
|
+
request_content = @client.serialize(request_mapper, parameters)
|
421
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
422
|
+
|
423
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}'
|
424
|
+
|
425
|
+
request_url = @base_url || @client.base_url
|
426
|
+
|
427
|
+
options = {
|
428
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
429
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
|
430
|
+
query_params: {'api-version' => @client.api_version},
|
431
|
+
body: request_content,
|
432
|
+
headers: request_headers.merge(custom_headers || {}),
|
433
|
+
base_url: request_url
|
434
|
+
}
|
435
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
436
|
+
|
437
|
+
promise = promise.then do |result|
|
438
|
+
http_response = result.response
|
439
|
+
status_code = http_response.status
|
440
|
+
response_content = http_response.body
|
441
|
+
unless status_code == 200
|
442
|
+
error_model = JSON.load(response_content)
|
443
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
444
|
+
end
|
445
|
+
|
446
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
447
|
+
# Deserialize Response
|
448
|
+
if status_code == 200
|
449
|
+
begin
|
450
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
451
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::StorageSyncService.mapper()
|
452
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
453
|
+
rescue Exception => e
|
454
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
result
|
459
|
+
end
|
460
|
+
|
461
|
+
promise.execute
|
462
|
+
end
|
463
|
+
|
464
|
+
#
|
465
|
+
# Delete a given StorageSyncService.
|
466
|
+
#
|
467
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
468
|
+
# is case insensitive.
|
469
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
470
|
+
# resource.
|
471
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
472
|
+
# will be added to the HTTP request.
|
473
|
+
#
|
474
|
+
#
|
475
|
+
def delete(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
476
|
+
response = delete_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
|
477
|
+
nil
|
478
|
+
end
|
479
|
+
|
480
|
+
#
|
481
|
+
# Delete a given StorageSyncService.
|
482
|
+
#
|
483
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
484
|
+
# is case insensitive.
|
485
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
486
|
+
# resource.
|
487
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
488
|
+
# will be added to the HTTP request.
|
489
|
+
#
|
490
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
491
|
+
#
|
492
|
+
def delete_with_http_info(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
493
|
+
delete_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
|
494
|
+
end
|
495
|
+
|
496
|
+
#
|
497
|
+
# Delete a given StorageSyncService.
|
498
|
+
#
|
499
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
500
|
+
# is case insensitive.
|
501
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
502
|
+
# resource.
|
503
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
504
|
+
# to the HTTP request.
|
505
|
+
#
|
506
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
507
|
+
#
|
508
|
+
def delete_async(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
509
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
510
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
511
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
512
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
513
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
514
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
515
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
516
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
517
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
518
|
+
|
519
|
+
|
520
|
+
request_headers = {}
|
521
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
522
|
+
|
523
|
+
# Set Headers
|
524
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
525
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
526
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}'
|
527
|
+
|
528
|
+
request_url = @base_url || @client.base_url
|
529
|
+
|
530
|
+
options = {
|
531
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
532
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
|
533
|
+
query_params: {'api-version' => @client.api_version},
|
534
|
+
headers: request_headers.merge(custom_headers || {}),
|
535
|
+
base_url: request_url
|
536
|
+
}
|
537
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
538
|
+
|
539
|
+
promise = promise.then do |result|
|
540
|
+
http_response = result.response
|
541
|
+
status_code = http_response.status
|
542
|
+
response_content = http_response.body
|
543
|
+
unless status_code == 200 || status_code == 204
|
544
|
+
error_model = JSON.load(response_content)
|
545
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
546
|
+
end
|
547
|
+
|
548
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
549
|
+
|
550
|
+
result
|
551
|
+
end
|
552
|
+
|
553
|
+
promise.execute
|
554
|
+
end
|
555
|
+
|
556
|
+
#
|
557
|
+
# Get a StorageSyncService list by Resource group name.
|
558
|
+
#
|
559
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
560
|
+
# is case insensitive.
|
561
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
562
|
+
# will be added to the HTTP request.
|
563
|
+
#
|
564
|
+
# @return [StorageSyncServiceArray] operation results.
|
565
|
+
#
|
566
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
567
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
568
|
+
response.body unless response.nil?
|
569
|
+
end
|
570
|
+
|
571
|
+
#
|
572
|
+
# Get a StorageSyncService list by Resource group name.
|
573
|
+
#
|
574
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
575
|
+
# is case insensitive.
|
576
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
577
|
+
# will be added to the HTTP request.
|
578
|
+
#
|
579
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
580
|
+
#
|
581
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
582
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
583
|
+
end
|
584
|
+
|
585
|
+
#
|
586
|
+
# Get a StorageSyncService list by Resource group name.
|
587
|
+
#
|
588
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
589
|
+
# is case insensitive.
|
590
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
591
|
+
# to the HTTP request.
|
592
|
+
#
|
593
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
594
|
+
#
|
595
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
596
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
597
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
598
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
599
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
600
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
601
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
602
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
603
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
604
|
+
|
605
|
+
|
606
|
+
request_headers = {}
|
607
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
608
|
+
|
609
|
+
# Set Headers
|
610
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
611
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
612
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices'
|
613
|
+
|
614
|
+
request_url = @base_url || @client.base_url
|
615
|
+
|
616
|
+
options = {
|
617
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
618
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
619
|
+
query_params: {'api-version' => @client.api_version},
|
620
|
+
headers: request_headers.merge(custom_headers || {}),
|
621
|
+
base_url: request_url
|
622
|
+
}
|
623
|
+
promise = @client.make_request_async(:get, path_template, options)
|
624
|
+
|
625
|
+
promise = promise.then do |result|
|
626
|
+
http_response = result.response
|
627
|
+
status_code = http_response.status
|
628
|
+
response_content = http_response.body
|
629
|
+
unless status_code == 200
|
630
|
+
error_model = JSON.load(response_content)
|
631
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
632
|
+
end
|
633
|
+
|
634
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
635
|
+
# Deserialize Response
|
636
|
+
if status_code == 200
|
637
|
+
begin
|
638
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
639
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::StorageSyncServiceArray.mapper()
|
640
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
641
|
+
rescue Exception => e
|
642
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
643
|
+
end
|
644
|
+
end
|
645
|
+
|
646
|
+
result
|
647
|
+
end
|
648
|
+
|
649
|
+
promise.execute
|
650
|
+
end
|
651
|
+
|
652
|
+
#
|
653
|
+
# Get a StorageSyncService list by subscription.
|
654
|
+
#
|
655
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
656
|
+
# will be added to the HTTP request.
|
657
|
+
#
|
658
|
+
# @return [StorageSyncServiceArray] operation results.
|
659
|
+
#
|
660
|
+
def list_by_subscription(custom_headers:nil)
|
661
|
+
response = list_by_subscription_async(custom_headers:custom_headers).value!
|
662
|
+
response.body unless response.nil?
|
663
|
+
end
|
664
|
+
|
665
|
+
#
|
666
|
+
# Get a StorageSyncService list by subscription.
|
667
|
+
#
|
668
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
669
|
+
# will be added to the HTTP request.
|
670
|
+
#
|
671
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
672
|
+
#
|
673
|
+
def list_by_subscription_with_http_info(custom_headers:nil)
|
674
|
+
list_by_subscription_async(custom_headers:custom_headers).value!
|
675
|
+
end
|
676
|
+
|
677
|
+
#
|
678
|
+
# Get a StorageSyncService list by subscription.
|
679
|
+
#
|
680
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
681
|
+
# to the HTTP request.
|
682
|
+
#
|
683
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
684
|
+
#
|
685
|
+
def list_by_subscription_async(custom_headers:nil)
|
686
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
687
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
688
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
689
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
690
|
+
|
691
|
+
|
692
|
+
request_headers = {}
|
693
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
694
|
+
|
695
|
+
# Set Headers
|
696
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
697
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
698
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices'
|
699
|
+
|
700
|
+
request_url = @base_url || @client.base_url
|
701
|
+
|
702
|
+
options = {
|
703
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
704
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
705
|
+
query_params: {'api-version' => @client.api_version},
|
706
|
+
headers: request_headers.merge(custom_headers || {}),
|
707
|
+
base_url: request_url
|
708
|
+
}
|
709
|
+
promise = @client.make_request_async(:get, path_template, options)
|
710
|
+
|
711
|
+
promise = promise.then do |result|
|
712
|
+
http_response = result.response
|
713
|
+
status_code = http_response.status
|
714
|
+
response_content = http_response.body
|
715
|
+
unless status_code == 200
|
716
|
+
error_model = JSON.load(response_content)
|
717
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
718
|
+
end
|
719
|
+
|
720
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
721
|
+
# Deserialize Response
|
722
|
+
if status_code == 200
|
723
|
+
begin
|
724
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
725
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_04_02::Models::StorageSyncServiceArray.mapper()
|
726
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
727
|
+
rescue Exception => e
|
728
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
result
|
733
|
+
end
|
734
|
+
|
735
|
+
promise.execute
|
736
|
+
end
|
737
|
+
|
738
|
+
end
|
739
|
+
end
|