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,701 @@
|
|
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_10_01
|
7
|
+
#
|
8
|
+
# Microsoft Storage Sync Service API
|
9
|
+
#
|
10
|
+
class RegisteredServers
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the RegisteredServers 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
|
+
# Get a given registered server list.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
28
|
+
# is case insensitive.
|
29
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
30
|
+
# resource.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [RegisteredServerArray] operation results.
|
35
|
+
#
|
36
|
+
def list_by_storage_sync_service(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
37
|
+
response = list_by_storage_sync_service_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Get a given registered server list.
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
45
|
+
# is case insensitive.
|
46
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
47
|
+
# resource.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def list_by_storage_sync_service_with_http_info(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
54
|
+
list_by_storage_sync_service_async(resource_group_name, storage_sync_service_name, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Get a given registered server list.
|
59
|
+
#
|
60
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
61
|
+
# is case insensitive.
|
62
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
63
|
+
# resource.
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def list_by_storage_sync_service_async(resource_group_name, storage_sync_service_name, custom_headers:nil)
|
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, 'resource_group_name is nil' if resource_group_name.nil?
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
75
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
76
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
78
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
79
|
+
|
80
|
+
|
81
|
+
request_headers = {}
|
82
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
|
+
|
84
|
+
# Set Headers
|
85
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers'
|
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: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name},
|
94
|
+
query_params: {'api-version' => @client.api_version},
|
95
|
+
headers: request_headers.merge(custom_headers || {}),
|
96
|
+
base_url: request_url
|
97
|
+
}
|
98
|
+
promise = @client.make_request_async(:get, path_template, options)
|
99
|
+
|
100
|
+
promise = promise.then do |result|
|
101
|
+
http_response = result.response
|
102
|
+
status_code = http_response.status
|
103
|
+
response_content = http_response.body
|
104
|
+
unless status_code == 200
|
105
|
+
error_model = JSON.load(response_content)
|
106
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
107
|
+
end
|
108
|
+
|
109
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
110
|
+
# Deserialize Response
|
111
|
+
if status_code == 200
|
112
|
+
begin
|
113
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_10_01::Models::RegisteredServerArray.mapper()
|
115
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
|
+
rescue Exception => e
|
117
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
result
|
122
|
+
end
|
123
|
+
|
124
|
+
promise.execute
|
125
|
+
end
|
126
|
+
|
127
|
+
#
|
128
|
+
# Get a given registered server.
|
129
|
+
#
|
130
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
131
|
+
# is case insensitive.
|
132
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
133
|
+
# resource.
|
134
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
135
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
136
|
+
# will be added to the HTTP request.
|
137
|
+
#
|
138
|
+
# @return [RegisteredServer] operation results.
|
139
|
+
#
|
140
|
+
def get(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
|
141
|
+
response = get_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:custom_headers).value!
|
142
|
+
response.body unless response.nil?
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Get a given registered server.
|
147
|
+
#
|
148
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
149
|
+
# is case insensitive.
|
150
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
151
|
+
# resource.
|
152
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
153
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
154
|
+
# will be added to the HTTP request.
|
155
|
+
#
|
156
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
157
|
+
#
|
158
|
+
def get_with_http_info(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
|
159
|
+
get_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:custom_headers).value!
|
160
|
+
end
|
161
|
+
|
162
|
+
#
|
163
|
+
# Get a given registered server.
|
164
|
+
#
|
165
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
166
|
+
# is case insensitive.
|
167
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
168
|
+
# resource.
|
169
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
170
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
171
|
+
# to the HTTP request.
|
172
|
+
#
|
173
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
174
|
+
#
|
175
|
+
def get_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
|
176
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
177
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
178
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
179
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
180
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
181
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
182
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
183
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
184
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
185
|
+
fail ArgumentError, 'server_id is nil' if server_id.nil?
|
186
|
+
|
187
|
+
|
188
|
+
request_headers = {}
|
189
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
190
|
+
|
191
|
+
# Set Headers
|
192
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
193
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
194
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}'
|
195
|
+
|
196
|
+
request_url = @base_url || @client.base_url
|
197
|
+
|
198
|
+
options = {
|
199
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
200
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'serverId' => server_id},
|
201
|
+
query_params: {'api-version' => @client.api_version},
|
202
|
+
headers: request_headers.merge(custom_headers || {}),
|
203
|
+
base_url: request_url
|
204
|
+
}
|
205
|
+
promise = @client.make_request_async(:get, path_template, options)
|
206
|
+
|
207
|
+
promise = promise.then do |result|
|
208
|
+
http_response = result.response
|
209
|
+
status_code = http_response.status
|
210
|
+
response_content = http_response.body
|
211
|
+
unless status_code == 200
|
212
|
+
error_model = JSON.load(response_content)
|
213
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
214
|
+
end
|
215
|
+
|
216
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
217
|
+
# Deserialize Response
|
218
|
+
if status_code == 200
|
219
|
+
begin
|
220
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
221
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_10_01::Models::RegisteredServer.mapper()
|
222
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
223
|
+
rescue Exception => e
|
224
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
result
|
229
|
+
end
|
230
|
+
|
231
|
+
promise.execute
|
232
|
+
end
|
233
|
+
|
234
|
+
#
|
235
|
+
# Add a new registered server.
|
236
|
+
#
|
237
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
238
|
+
# is case insensitive.
|
239
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
240
|
+
# resource.
|
241
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
242
|
+
# @param parameters [RegisteredServerCreateParameters] Body of Registered
|
243
|
+
# Server object.
|
244
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
245
|
+
# will be added to the HTTP request.
|
246
|
+
#
|
247
|
+
# @return [RegisteredServer] operation results.
|
248
|
+
#
|
249
|
+
def create(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
250
|
+
response = create_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:custom_headers).value!
|
251
|
+
response.body unless response.nil?
|
252
|
+
end
|
253
|
+
|
254
|
+
#
|
255
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
256
|
+
# is case insensitive.
|
257
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
258
|
+
# resource.
|
259
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
260
|
+
# @param parameters [RegisteredServerCreateParameters] Body of Registered
|
261
|
+
# Server object.
|
262
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
263
|
+
# will be added to the HTTP request.
|
264
|
+
#
|
265
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
266
|
+
# response.
|
267
|
+
#
|
268
|
+
def create_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
269
|
+
# Send request
|
270
|
+
promise = begin_create_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:custom_headers)
|
271
|
+
|
272
|
+
promise = promise.then do |response|
|
273
|
+
# Defining deserialization method.
|
274
|
+
deserialize_method = lambda do |parsed_response|
|
275
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_10_01::Models::RegisteredServer.mapper()
|
276
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
277
|
+
end
|
278
|
+
|
279
|
+
# Waiting for response.
|
280
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
281
|
+
end
|
282
|
+
|
283
|
+
promise
|
284
|
+
end
|
285
|
+
|
286
|
+
#
|
287
|
+
# Delete the given registered server.
|
288
|
+
#
|
289
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
290
|
+
# is case insensitive.
|
291
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
292
|
+
# resource.
|
293
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
294
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
295
|
+
# will be added to the HTTP request.
|
296
|
+
#
|
297
|
+
def delete(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
|
298
|
+
response = delete_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:custom_headers).value!
|
299
|
+
nil
|
300
|
+
end
|
301
|
+
|
302
|
+
#
|
303
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
304
|
+
# is case insensitive.
|
305
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
306
|
+
# resource.
|
307
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
308
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
309
|
+
# will be added to the HTTP request.
|
310
|
+
#
|
311
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
312
|
+
# response.
|
313
|
+
#
|
314
|
+
def delete_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
|
315
|
+
# Send request
|
316
|
+
promise = begin_delete_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:custom_headers)
|
317
|
+
|
318
|
+
promise = promise.then do |response|
|
319
|
+
# Defining deserialization method.
|
320
|
+
deserialize_method = lambda do |parsed_response|
|
321
|
+
end
|
322
|
+
|
323
|
+
# Waiting for response.
|
324
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
325
|
+
end
|
326
|
+
|
327
|
+
promise
|
328
|
+
end
|
329
|
+
|
330
|
+
#
|
331
|
+
# Triggers Server certificate rollover.
|
332
|
+
#
|
333
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
334
|
+
# is case insensitive.
|
335
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
336
|
+
# resource.
|
337
|
+
# @param server_id [String] Server Id
|
338
|
+
# @param parameters [TriggerRolloverRequest] Body of Trigger Rollover request.
|
339
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
340
|
+
# will be added to the HTTP request.
|
341
|
+
#
|
342
|
+
def trigger_rollover(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
343
|
+
response = trigger_rollover_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:custom_headers).value!
|
344
|
+
nil
|
345
|
+
end
|
346
|
+
|
347
|
+
#
|
348
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
349
|
+
# is case insensitive.
|
350
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
351
|
+
# resource.
|
352
|
+
# @param server_id [String] Server Id
|
353
|
+
# @param parameters [TriggerRolloverRequest] Body of Trigger Rollover request.
|
354
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
355
|
+
# will be added to the HTTP request.
|
356
|
+
#
|
357
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
358
|
+
# response.
|
359
|
+
#
|
360
|
+
def trigger_rollover_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
361
|
+
# Send request
|
362
|
+
promise = begin_trigger_rollover_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:custom_headers)
|
363
|
+
|
364
|
+
promise = promise.then do |response|
|
365
|
+
# Defining deserialization method.
|
366
|
+
deserialize_method = lambda do |parsed_response|
|
367
|
+
end
|
368
|
+
|
369
|
+
# Waiting for response.
|
370
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
371
|
+
end
|
372
|
+
|
373
|
+
promise
|
374
|
+
end
|
375
|
+
|
376
|
+
#
|
377
|
+
# Add a new registered server.
|
378
|
+
#
|
379
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
380
|
+
# is case insensitive.
|
381
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
382
|
+
# resource.
|
383
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
384
|
+
# @param parameters [RegisteredServerCreateParameters] Body of Registered
|
385
|
+
# Server object.
|
386
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
387
|
+
# will be added to the HTTP request.
|
388
|
+
#
|
389
|
+
# @return [RegisteredServer] operation results.
|
390
|
+
#
|
391
|
+
def begin_create(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
392
|
+
response = begin_create_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:custom_headers).value!
|
393
|
+
response.body unless response.nil?
|
394
|
+
end
|
395
|
+
|
396
|
+
#
|
397
|
+
# Add a new registered server.
|
398
|
+
#
|
399
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
400
|
+
# is case insensitive.
|
401
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
402
|
+
# resource.
|
403
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
404
|
+
# @param parameters [RegisteredServerCreateParameters] Body of Registered
|
405
|
+
# Server object.
|
406
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
407
|
+
# will be added to the HTTP request.
|
408
|
+
#
|
409
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
410
|
+
#
|
411
|
+
def begin_create_with_http_info(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
412
|
+
begin_create_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:custom_headers).value!
|
413
|
+
end
|
414
|
+
|
415
|
+
#
|
416
|
+
# Add a new registered server.
|
417
|
+
#
|
418
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
419
|
+
# is case insensitive.
|
420
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
421
|
+
# resource.
|
422
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
423
|
+
# @param parameters [RegisteredServerCreateParameters] Body of Registered
|
424
|
+
# Server object.
|
425
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
426
|
+
# to the HTTP request.
|
427
|
+
#
|
428
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
429
|
+
#
|
430
|
+
def begin_create_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
431
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
432
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
433
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
434
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
435
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
436
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
437
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
438
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
439
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
440
|
+
fail ArgumentError, 'server_id is nil' if server_id.nil?
|
441
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
442
|
+
|
443
|
+
|
444
|
+
request_headers = {}
|
445
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
446
|
+
|
447
|
+
# Set Headers
|
448
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
449
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
450
|
+
|
451
|
+
# Serialize Request
|
452
|
+
request_mapper = Azure::StorageSync::Mgmt::V2018_10_01::Models::RegisteredServerCreateParameters.mapper()
|
453
|
+
request_content = @client.serialize(request_mapper, parameters)
|
454
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
455
|
+
|
456
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}'
|
457
|
+
|
458
|
+
request_url = @base_url || @client.base_url
|
459
|
+
|
460
|
+
options = {
|
461
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
462
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'serverId' => server_id},
|
463
|
+
query_params: {'api-version' => @client.api_version},
|
464
|
+
body: request_content,
|
465
|
+
headers: request_headers.merge(custom_headers || {}),
|
466
|
+
base_url: request_url
|
467
|
+
}
|
468
|
+
promise = @client.make_request_async(:put, path_template, options)
|
469
|
+
|
470
|
+
promise = promise.then do |result|
|
471
|
+
http_response = result.response
|
472
|
+
status_code = http_response.status
|
473
|
+
response_content = http_response.body
|
474
|
+
unless status_code == 200 || status_code == 202
|
475
|
+
error_model = JSON.load(response_content)
|
476
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
477
|
+
end
|
478
|
+
|
479
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
480
|
+
# Deserialize Response
|
481
|
+
if status_code == 200
|
482
|
+
begin
|
483
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
484
|
+
result_mapper = Azure::StorageSync::Mgmt::V2018_10_01::Models::RegisteredServer.mapper()
|
485
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
486
|
+
rescue Exception => e
|
487
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
491
|
+
result
|
492
|
+
end
|
493
|
+
|
494
|
+
promise.execute
|
495
|
+
end
|
496
|
+
|
497
|
+
#
|
498
|
+
# Delete the given registered server.
|
499
|
+
#
|
500
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
501
|
+
# is case insensitive.
|
502
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
503
|
+
# resource.
|
504
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
505
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
506
|
+
# will be added to the HTTP request.
|
507
|
+
#
|
508
|
+
#
|
509
|
+
def begin_delete(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
|
510
|
+
response = begin_delete_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:custom_headers).value!
|
511
|
+
nil
|
512
|
+
end
|
513
|
+
|
514
|
+
#
|
515
|
+
# Delete the given registered server.
|
516
|
+
#
|
517
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
518
|
+
# is case insensitive.
|
519
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
520
|
+
# resource.
|
521
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
522
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
523
|
+
# will be added to the HTTP request.
|
524
|
+
#
|
525
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
526
|
+
#
|
527
|
+
def begin_delete_with_http_info(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
|
528
|
+
begin_delete_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:custom_headers).value!
|
529
|
+
end
|
530
|
+
|
531
|
+
#
|
532
|
+
# Delete the given registered server.
|
533
|
+
#
|
534
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
535
|
+
# is case insensitive.
|
536
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
537
|
+
# resource.
|
538
|
+
# @param server_id [String] GUID identifying the on-premises server.
|
539
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
540
|
+
# to the HTTP request.
|
541
|
+
#
|
542
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
543
|
+
#
|
544
|
+
def begin_delete_async(resource_group_name, storage_sync_service_name, server_id, custom_headers:nil)
|
545
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
546
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
547
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
548
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
549
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
550
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
551
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
552
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
553
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
554
|
+
fail ArgumentError, 'server_id is nil' if server_id.nil?
|
555
|
+
|
556
|
+
|
557
|
+
request_headers = {}
|
558
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
559
|
+
|
560
|
+
# Set Headers
|
561
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
562
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
563
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}'
|
564
|
+
|
565
|
+
request_url = @base_url || @client.base_url
|
566
|
+
|
567
|
+
options = {
|
568
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
569
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'serverId' => server_id},
|
570
|
+
query_params: {'api-version' => @client.api_version},
|
571
|
+
headers: request_headers.merge(custom_headers || {}),
|
572
|
+
base_url: request_url
|
573
|
+
}
|
574
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
575
|
+
|
576
|
+
promise = promise.then do |result|
|
577
|
+
http_response = result.response
|
578
|
+
status_code = http_response.status
|
579
|
+
response_content = http_response.body
|
580
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
581
|
+
error_model = JSON.load(response_content)
|
582
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
583
|
+
end
|
584
|
+
|
585
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
586
|
+
|
587
|
+
result
|
588
|
+
end
|
589
|
+
|
590
|
+
promise.execute
|
591
|
+
end
|
592
|
+
|
593
|
+
#
|
594
|
+
# Triggers Server certificate rollover.
|
595
|
+
#
|
596
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
597
|
+
# is case insensitive.
|
598
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
599
|
+
# resource.
|
600
|
+
# @param server_id [String] Server Id
|
601
|
+
# @param parameters [TriggerRolloverRequest] Body of Trigger Rollover request.
|
602
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
603
|
+
# will be added to the HTTP request.
|
604
|
+
#
|
605
|
+
#
|
606
|
+
def begin_trigger_rollover(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
607
|
+
response = begin_trigger_rollover_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:custom_headers).value!
|
608
|
+
nil
|
609
|
+
end
|
610
|
+
|
611
|
+
#
|
612
|
+
# Triggers Server certificate rollover.
|
613
|
+
#
|
614
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
615
|
+
# is case insensitive.
|
616
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
617
|
+
# resource.
|
618
|
+
# @param server_id [String] Server Id
|
619
|
+
# @param parameters [TriggerRolloverRequest] Body of Trigger Rollover request.
|
620
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
621
|
+
# will be added to the HTTP request.
|
622
|
+
#
|
623
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
624
|
+
#
|
625
|
+
def begin_trigger_rollover_with_http_info(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
626
|
+
begin_trigger_rollover_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:custom_headers).value!
|
627
|
+
end
|
628
|
+
|
629
|
+
#
|
630
|
+
# Triggers Server certificate rollover.
|
631
|
+
#
|
632
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
633
|
+
# is case insensitive.
|
634
|
+
# @param storage_sync_service_name [String] Name of Storage Sync Service
|
635
|
+
# resource.
|
636
|
+
# @param server_id [String] Server Id
|
637
|
+
# @param parameters [TriggerRolloverRequest] Body of Trigger Rollover request.
|
638
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
639
|
+
# to the HTTP request.
|
640
|
+
#
|
641
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
642
|
+
#
|
643
|
+
def begin_trigger_rollover_async(resource_group_name, storage_sync_service_name, server_id, parameters, custom_headers:nil)
|
644
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
645
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
646
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
647
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
648
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
649
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
650
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
651
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
652
|
+
fail ArgumentError, 'storage_sync_service_name is nil' if storage_sync_service_name.nil?
|
653
|
+
fail ArgumentError, 'server_id is nil' if server_id.nil?
|
654
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
655
|
+
|
656
|
+
|
657
|
+
request_headers = {}
|
658
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
659
|
+
|
660
|
+
# Set Headers
|
661
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
662
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
663
|
+
|
664
|
+
# Serialize Request
|
665
|
+
request_mapper = Azure::StorageSync::Mgmt::V2018_10_01::Models::TriggerRolloverRequest.mapper()
|
666
|
+
request_content = @client.serialize(request_mapper, parameters)
|
667
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
668
|
+
|
669
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover'
|
670
|
+
|
671
|
+
request_url = @base_url || @client.base_url
|
672
|
+
|
673
|
+
options = {
|
674
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
675
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'storageSyncServiceName' => storage_sync_service_name,'serverId' => server_id},
|
676
|
+
query_params: {'api-version' => @client.api_version},
|
677
|
+
body: request_content,
|
678
|
+
headers: request_headers.merge(custom_headers || {}),
|
679
|
+
base_url: request_url
|
680
|
+
}
|
681
|
+
promise = @client.make_request_async(:post, path_template, options)
|
682
|
+
|
683
|
+
promise = promise.then do |result|
|
684
|
+
http_response = result.response
|
685
|
+
status_code = http_response.status
|
686
|
+
response_content = http_response.body
|
687
|
+
unless status_code == 200 || status_code == 202
|
688
|
+
error_model = JSON.load(response_content)
|
689
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
690
|
+
end
|
691
|
+
|
692
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
693
|
+
|
694
|
+
result
|
695
|
+
end
|
696
|
+
|
697
|
+
promise.execute
|
698
|
+
end
|
699
|
+
|
700
|
+
end
|
701
|
+
end
|