{ "swagger": "2.0", "info": { "version": "2021-06-01", "title": "SynapseManagementClient", "description": "Azure Synapse Analytics APIs" }, "host": "management.azure.com", "schemes": [ "https" ], "securityDefinitions": { "azure_auth": { "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "type": "oauth2", "scopes": { "user_impersonation": "impersonate your user account" }, "description": "Azure Active Directory OAuth2 Flow" } }, "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries/{libraryName}": { "get": { "operationId": "Library_Get", "summary": "Get library by name.", "description": "Get library by name in a workspace.", "tags": [ "Libraries" ], "deprecated": false, "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/LibraryNameParameter" }, { "$ref": "../../../../../common/v1/types.json#/parameters/WorkspaceNameParameter" } ], "responses": { "200": { "description": "OK.", "schema": { "$ref": "#/definitions/LibraryResource" } }, "default": { "description": "An error response received from the Azure Synapse service.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "consumes": [], "produces": [ "application/json" ], "x-ms-examples": { "Get Library by name": { "$ref": "./examples/Library_Get.json" } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries": { "get": { "operationId": "Libraries_ListByWorkspace", "summary": "List the libraries in a workspace.", "description": "List libraries in a workspace.", "tags": [ "Libraries" ], "deprecated": false, "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common/v1/types.json#/parameters/WorkspaceNameParameter" } ], "responses": { "200": { "description": "OK.", "schema": { "$ref": "#/definitions/LibraryListResponse" } }, "default": { "description": "An error response received from the Azure Synapse service.", "schema": { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "consumes": [], "produces": [ "application/json" ], "x-ms-examples": { "List libraries in a workspace": { "$ref": "./examples/Libraries_ListByWorkspace.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } } }, "parameters": { "LibraryNameParameter": { "name": "libraryName", "in": "path", "required": true, "type": "string", "description": "Library name", "x-ms-parameter-location": "method" } }, "definitions": { "LibraryListResponse": { "description": "A list of Library resources.", "type": "object", "required": [ "value" ], "properties": { "value": { "type": "array", "description": "List of Library.", "items": { "$ref": "#/definitions/LibraryResource" } }, "nextLink": { "description": "The link to the next page of results, if any remaining results exist.", "type": "string" } } }, "LibraryResource": { "description": "Library response details", "allOf": [ { "$ref": "#/definitions/SubResource" } ], "properties": { "properties": { "$ref": "../../../../../common/v1/types.json#/definitions/LibraryInfo", "description": "Library/package properties.", "x-ms-client-flatten": true } }, "required": [ "properties" ] }, "SubResource": { "description": "Azure Synapse nested resource, which belongs to a workspace.", "allOf": [ { "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" } ] } } }