-
Notifications
You must be signed in to change notification settings - Fork 5.7k
swagger and example files for new api GetSynapselinkWorkspaces #20377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
xiaoxuqi-ms
merged 22 commits into
Azure:dev-sql-Microsoft.Sql-2022-05-01-preview
from
janamvyas:javyas-synapselinkworspaces
Sep 1, 2022
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8b07023
swagger and example files for new api
janamvyas 8d04a82
Update readme.md
janamvyas c658c5e
Update custom-words.txt
janamvyas f165ee1
Update GetSynapseLinkWorkspaces.json
janamvyas bd9d33f
Update SynapseLinkWorkspaces.json
janamvyas 27ce7d8
Update readme.md
janamvyas 47982a5
update example file
janamvyas 77249af
Update GetSynapseLinkWorkspaces.json
janamvyas ddcf91d
Update SynapseLinkWorkspaces.json
janamvyas 2b0dfdb
Update SynapseLinkWorkspaces.json
janamvyas 5d3f974
Update SynapseLinkWorkspaces.json
janamvyas 4db318b
Update GetSynapseLinkWorkspaces.json
janamvyas 5aab015
Update GetSynapseLinkWorkspaces.json
janamvyas cfee56c
Update GetSynapseLinkWorkspaces.json
janamvyas 3f1a22c
Update GetSynapseLinkWorkspaces.json
janamvyas 22694ba
Update SynapseLinkWorkspaces.json
janamvyas 8f41795
Update GetSynapseLinkWorkspaces.json
janamvyas 53eec55
remove get and use listbydatbases
janamvyas b5197c8
fix path of example file.
janamvyas f8222a8
Merge branch 'dev-sql-Microsoft.Sql-2022-05-01-preview' into javyas-s…
janamvyas 9aa7f8c
Update SynapseLinkWorkspaces.json
janamvyas acb59bd
Merge branch 'javyas-synapselinkworspaces' of https://github.com/jana…
janamvyas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
159 changes: 159 additions & 0 deletions
159
.../sql/resource-manager/Microsoft.Sql/preview/2022-05-01-preview/SynapseLinkWorkspaces.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,159 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2022-05-01-preview", | ||
| "title": "SqlManagementClient", | ||
| "description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities." | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/linkWorkspaces": { | ||
| "get": { | ||
| "tags": [ | ||
| "SynapseLinkWorkspaces" | ||
| ], | ||
| "description": "Gets all synapselink workspaces for a database.", | ||
| "operationId": "SynapseLinkWorkspaces_ListByDatabase", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ServerNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/DatabaseNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Successfully retrieved synapselink workspaces.", | ||
| "schema": { | ||
| "$ref": "#/definitions/SynapseLinkWorkspaceListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 404 SourceDatabaseNotFound - The source database does not exist." | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| }, | ||
| "x-ms-examples": { | ||
| "List all synapselink workspaces for the given database.": { | ||
| "$ref": "./examples/SynapseLinkWorkspaceListByDatabase.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "SynapseLinkWorkspace": { | ||
| "description": "Synapse link workspace resource", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../common/v1/types.json#/definitions/ProxyResource" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "properties": { | ||
| "$ref": "#/definitions/SynapseLinkWorkspaceProperties", | ||
| "description": "Resource properties.", | ||
| "x-ms-client-flatten": true | ||
| } | ||
| } | ||
| }, | ||
| "SynapseLinkWorkspaceInfoProperties": { | ||
| "description": "Properties of a Synapse link workspaces", | ||
| "type": "object", | ||
| "properties": { | ||
| "workspaceId": { | ||
| "description": "Synapse link workspace id.", | ||
| "type": "string" | ||
| }, | ||
| "linkConnectionName": { | ||
| "description": "Link connection name.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "SynapseLinkWorkspaceListResult": { | ||
| "description": "A list of synapselink workspaces", | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "description": "Array of results.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/SynapseLinkWorkspace" | ||
| }, | ||
| "readOnly": true | ||
| }, | ||
| "nextLink": { | ||
| "description": "Link to retrieve next page of results.", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "SynapseLinkWorkspaceProperties": { | ||
| "description": "Properties of a Synapse link workspaces", | ||
| "type": "object", | ||
| "properties": { | ||
| "workspaces": { | ||
| "description": "List of all synapselink workspaces", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/SynapseLinkWorkspaceInfoProperties" | ||
| }, | ||
| "x-ms-identifiers": [] | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "DatabaseNameParameter": { | ||
| "name": "databaseName", | ||
| "in": "path", | ||
| "description": "The name of the database.", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "ServerNameParameter": { | ||
| "name": "serverName", | ||
| "in": "path", | ||
| "description": "The name of the server.", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| }, | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "flow": "implicit", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| } | ||
| } | ||
34 changes: 34 additions & 0 deletions
34
...Microsoft.Sql/preview/2022-05-01-preview/examples/SynapseLinkWorkspaceListByDatabase.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2022-05-01-preview", | ||
| "databaseName": "dbSynapse", | ||
| "resourceGroupName": "Default-SQL-SouthEastAsia", | ||
| "serverName": "testsvr", | ||
| "subscriptionId": "00000000-1111-2222-3333-444444444444" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "properties": { | ||
| "workspaces": [ | ||
| { | ||
| "workspaceId": "/subcriptions/00000000-1111-2222-3333-444444444444/resourcegroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/workspace1", | ||
| "linkConnectionName": "buildlink-cloud1" | ||
| }, | ||
| { | ||
| "workspaceId": "/subcriptions/00000000-1111-2222-3333-444444444444/resourcegroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/workspace2", | ||
| "linkConnectionName": "buildlink-cloud2" | ||
| } | ||
| ] | ||
| }, | ||
| "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/dbSynapse/linkWorkspaces/current", | ||
| "name": "current", | ||
| "type": "Microsoft.Sql/servers/databases/linkWorkspaces" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.