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