@azure/synapse-artifacts 1.0.0-alpha.20240115.1 → 1.0.0-alpha.20240117.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/index.js +3254 -6034
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/src/artifactsClient.js +5 -10
  4. package/dist-esm/src/artifactsClient.js.map +1 -1
  5. package/dist-esm/src/lroImpl.js +3 -7
  6. package/dist-esm/src/lroImpl.js.map +1 -1
  7. package/dist-esm/src/models/mappers.js +2329 -5135
  8. package/dist-esm/src/models/mappers.js.map +1 -1
  9. package/dist-esm/src/operations/bigDataPools.js +2 -2
  10. package/dist-esm/src/operations/bigDataPools.js.map +1 -1
  11. package/dist-esm/src/operations/dataFlowDebugSession.js +58 -50
  12. package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -1
  13. package/dist-esm/src/operations/dataFlowOperations.js +64 -61
  14. package/dist-esm/src/operations/dataFlowOperations.js.map +1 -1
  15. package/dist-esm/src/operations/datasetOperations.js +64 -61
  16. package/dist-esm/src/operations/datasetOperations.js.map +1 -1
  17. package/dist-esm/src/operations/integrationRuntimes.js +2 -2
  18. package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
  19. package/dist-esm/src/operations/kqlScriptOperations.js +22 -37
  20. package/dist-esm/src/operations/kqlScriptOperations.js.map +1 -1
  21. package/dist-esm/src/operations/kqlScripts.js +42 -24
  22. package/dist-esm/src/operations/kqlScripts.js.map +1 -1
  23. package/dist-esm/src/operations/library.js +66 -63
  24. package/dist-esm/src/operations/library.js.map +1 -1
  25. package/dist-esm/src/operations/linkConnectionOperations.js +54 -36
  26. package/dist-esm/src/operations/linkConnectionOperations.js.map +1 -1
  27. package/dist-esm/src/operations/linkedServiceOperations.js +64 -61
  28. package/dist-esm/src/operations/linkedServiceOperations.js.map +1 -1
  29. package/dist-esm/src/operations/metastore.js +4 -4
  30. package/dist-esm/src/operations/metastore.js.map +1 -1
  31. package/dist-esm/src/operations/notebookOperationResult.js +1 -1
  32. package/dist-esm/src/operations/notebookOperationResult.js.map +1 -1
  33. package/dist-esm/src/operations/notebookOperations.js +105 -85
  34. package/dist-esm/src/operations/notebookOperations.js.map +1 -1
  35. package/dist-esm/src/operations/pipelineOperations.js +65 -62
  36. package/dist-esm/src/operations/pipelineOperations.js.map +1 -1
  37. package/dist-esm/src/operations/pipelineRunOperations.js +4 -4
  38. package/dist-esm/src/operations/pipelineRunOperations.js.map +1 -1
  39. package/dist-esm/src/operations/runNotebook.js +10 -15
  40. package/dist-esm/src/operations/runNotebook.js.map +1 -1
  41. package/dist-esm/src/operations/sparkConfigurationOperations.js +64 -61
  42. package/dist-esm/src/operations/sparkConfigurationOperations.js.map +1 -1
  43. package/dist-esm/src/operations/sparkJobDefinitionOperations.js +78 -85
  44. package/dist-esm/src/operations/sparkJobDefinitionOperations.js.map +1 -1
  45. package/dist-esm/src/operations/sqlPools.js +2 -2
  46. package/dist-esm/src/operations/sqlPools.js.map +1 -1
  47. package/dist-esm/src/operations/sqlScriptOperations.js +64 -61
  48. package/dist-esm/src/operations/sqlScriptOperations.js.map +1 -1
  49. package/dist-esm/src/operations/triggerOperations.js +86 -98
  50. package/dist-esm/src/operations/triggerOperations.js.map +1 -1
  51. package/dist-esm/src/operations/triggerRunOperations.js +3 -3
  52. package/dist-esm/src/operations/triggerRunOperations.js.map +1 -1
  53. package/dist-esm/src/operations/workspaceGitRepoManagement.js +1 -1
  54. package/dist-esm/src/operations/workspaceGitRepoManagement.js.map +1 -1
  55. package/dist-esm/src/operations/workspaceOperations.js +1 -1
  56. package/dist-esm/src/operations/workspaceOperations.js.map +1 -1
  57. package/dist-esm/src/pagingHelper.js +4 -2
  58. package/dist-esm/src/pagingHelper.js.map +1 -1
  59. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"library.js","sourceRoot":"","sources":["../../../src/operations/library.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAE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AU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,0BAA0B;IAChC,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,OAAO;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,CAAC;IAC1D,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,gBAAgB,EAAE;QAChB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,2BAA2B;KACvC;IACD,SAAS,EAAE,QAAQ;IACnB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper\";\nimport { Library } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ArtifactsClient } from \"../artifactsClient\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl\";\nimport {\n LibraryResource,\n LibraryListNextOptionalParams,\n LibraryListOptionalParams,\n LibraryListOperationResponse,\n LibraryFlushOptionalParams,\n LibraryGetOperationResultOptionalParams,\n LibraryGetOperationResultResponse,\n LibraryDeleteOptionalParams,\n LibraryGetOptionalParams,\n LibraryGetResponse,\n LibraryCreateOptionalParams,\n LibraryAppendOptionalParams,\n LibraryListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Library operations. */\nexport class LibraryImpl implements Library {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class Library class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Lists Library.\n * @param options The options parameters.\n */\n public list(\n options?: LibraryListOptionalParams\n ): PagedAsyncIterableIterator<LibraryResource> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: LibraryListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LibraryResource[]> {\n let result: LibraryListOperationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: LibraryListOptionalParams\n ): AsyncIterableIterator<LibraryResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Library.\n * @param options The options parameters.\n */\n private async _list(\n options?: LibraryListOptionalParams\n ): Promise<LibraryListOperationResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._list\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listOperationSpec\n ) as Promise<LibraryListOperationResponse>;\n }\n );\n }\n\n /**\n * Flush Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginFlush(\n libraryName: string,\n options?: LibraryFlushOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginFlush\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { libraryName, options },\n spec: flushOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Flush Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginFlushAndWait(\n libraryName: string,\n options?: LibraryFlushOptionalParams\n ): Promise<void> {\n const poller = await this.beginFlush(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Operation result for Library\n * @param operationId operation id for which status is requested\n * @param options The options parameters.\n */\n async getOperationResult(\n operationId: string,\n options?: LibraryGetOperationResultOptionalParams\n ): Promise<LibraryGetOperationResultResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getOperationResult\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { operationId, options },\n getOperationResultOperationSpec\n ) as Promise<LibraryGetOperationResultResponse>;\n }\n );\n }\n\n /**\n * Delete Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginDelete(\n libraryName: string,\n options?: LibraryDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginDelete\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { libraryName, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n libraryName: string,\n options?: LibraryDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async get(\n libraryName: string,\n options?: LibraryGetOptionalParams\n ): Promise<LibraryGetResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.get\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { libraryName, options },\n getOperationSpec\n ) as Promise<LibraryGetResponse>;\n }\n );\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginCreate(\n libraryName: string,\n options?: LibraryCreateOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginCreate\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { libraryName, options },\n spec: createOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n libraryName: string,\n options?: LibraryCreateOptionalParams\n ): Promise<void> {\n const poller = await this.beginCreate(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Append the content to the library resource created using the create operation. The maximum content\n * size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param content Library file chunk.\n * @param options The options parameters.\n */\n async append(\n libraryName: string,\n content: coreRestPipeline.RequestBodyType,\n options?: LibraryAppendOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.append\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { libraryName, content, options },\n appendOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private async _listNext(\n nextLink: string,\n options?: LibraryListNextOptionalParams\n ): Promise<LibraryListNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n ) as Promise<LibraryListNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst flushOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}/flush\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path: \"/libraryOperationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource\n },\n 202: {\n bodyMapper: Mappers.OperationResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst appendOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.content,\n queryParameters: [Parameters.apiVersion5, Parameters.comp],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [\n Parameters.contentType1,\n Parameters.accept1,\n Parameters.blobConditionAppendPosition\n ],\n mediaType: \"binary\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"library.js","sourceRoot":"","sources":["../../../src/operations/library.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,OAAO,MAAM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C,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper\";\nimport { Library } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ArtifactsClient } from \"../artifactsClient\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl\";\nimport {\n LibraryResource,\n LibraryListNextOptionalParams,\n LibraryListOptionalParams,\n LibraryListOperationResponse,\n LibraryFlushOptionalParams,\n LibraryGetOperationResultOptionalParams,\n LibraryGetOperationResultResponse,\n LibraryDeleteOptionalParams,\n LibraryGetOptionalParams,\n LibraryGetResponse,\n LibraryCreateOptionalParams,\n LibraryAppendOptionalParams,\n LibraryListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Library operations. */\nexport class LibraryImpl implements Library {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class Library class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Lists Library.\n * @param options The options parameters.\n */\n public list(\n options?: LibraryListOptionalParams\n ): PagedAsyncIterableIterator<LibraryResource> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: LibraryListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LibraryResource[]> {\n let result: LibraryListOperationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: LibraryListOptionalParams\n ): AsyncIterableIterator<LibraryResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Library.\n * @param options The options parameters.\n */\n private async _list(\n options?: LibraryListOptionalParams\n ): Promise<LibraryListOperationResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._list\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listOperationSpec\n ) as Promise<LibraryListOperationResponse>;\n }\n );\n }\n\n /**\n * Flush Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginFlush(\n libraryName: string,\n options?: LibraryFlushOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginFlush\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { libraryName, options },\n spec: flushOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Flush Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginFlushAndWait(\n libraryName: string,\n options?: LibraryFlushOptionalParams\n ): Promise<void> {\n const poller = await this.beginFlush(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Operation result for Library\n * @param operationId operation id for which status is requested\n * @param options The options parameters.\n */\n async getOperationResult(\n operationId: string,\n options?: LibraryGetOperationResultOptionalParams\n ): Promise<LibraryGetOperationResultResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getOperationResult\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { operationId, options },\n getOperationResultOperationSpec\n ) as Promise<LibraryGetOperationResultResponse>;\n }\n );\n }\n\n /**\n * Delete Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginDelete(\n libraryName: string,\n options?: LibraryDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginDelete\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { libraryName, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n libraryName: string,\n options?: LibraryDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Library\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async get(\n libraryName: string,\n options?: LibraryGetOptionalParams\n ): Promise<LibraryGetResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.get\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { libraryName, options },\n getOperationSpec\n ) as Promise<LibraryGetResponse>;\n }\n );\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginCreate(\n libraryName: string,\n options?: LibraryCreateOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginCreate\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n }\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { libraryName, options },\n spec: createOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n libraryName: string,\n options?: LibraryCreateOptionalParams\n ): Promise<void> {\n const poller = await this.beginCreate(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Append the content to the library resource created using the create operation. The maximum content\n * size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks\n * @param libraryName file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param content Library file chunk.\n * @param options The options parameters.\n */\n async append(\n libraryName: string,\n content: coreRestPipeline.RequestBodyType,\n options?: LibraryAppendOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.append\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { libraryName, content, options },\n appendOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private async _listNext(\n nextLink: string,\n options?: LibraryListNextOptionalParams\n ): Promise<LibraryListNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n ) as Promise<LibraryListNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst flushOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}/flush\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path: \"/libraryOperationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource\n },\n 202: {\n bodyMapper: Mappers.OperationResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst appendOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.content,\n queryParameters: [Parameters.apiVersion5, Parameters.comp],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [\n Parameters.contentType1,\n Parameters.accept1,\n Parameters.blobConditionAppendPosition\n ],\n mediaType: \"binary\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,6 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
8
9
  import { tracingClient } from "../tracing";
9
10
  import { setContinuationToken } from "../pagingHelper";
10
11
  import * as coreClient from "@azure/core-client";
@@ -34,42 +35,59 @@ export class LinkConnectionOperationsImpl {
34
35
  return this;
35
36
  },
36
37
  byPage: (settings) => {
37
- if (settings?.maxPageSize) {
38
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
39
  throw new Error("maxPageSize is not supported by this operation.");
39
40
  }
40
41
  return this.listByWorkspacePagingPage(options, settings);
41
42
  }
42
43
  };
43
44
  }
44
- async *listByWorkspacePagingPage(options, settings) {
45
- let result;
46
- let continuationToken = settings?.continuationToken;
47
- if (!continuationToken) {
48
- result = await this._listByWorkspace(options);
49
- let page = result.value || [];
50
- continuationToken = result.nextLink;
51
- setContinuationToken(page, continuationToken);
52
- yield page;
53
- }
54
- while (continuationToken) {
55
- result = await this._listByWorkspaceNext(continuationToken, options);
56
- continuationToken = result.nextLink;
57
- let page = result.value || [];
58
- setContinuationToken(page, continuationToken);
59
- yield page;
60
- }
45
+ listByWorkspacePagingPage(options, settings) {
46
+ return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
47
+ let result;
48
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
+ if (!continuationToken) {
50
+ result = yield __await(this._listByWorkspace(options));
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield yield __await(page);
55
+ }
56
+ while (continuationToken) {
57
+ result = yield __await(this._listByWorkspaceNext(continuationToken, options));
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield yield __await(page);
62
+ }
63
+ });
61
64
  }
62
- async *listByWorkspacePagingAll(options) {
63
- for await (const page of this.listByWorkspacePagingPage(options)) {
64
- yield* page;
65
- }
65
+ listByWorkspacePagingAll(options) {
66
+ return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
67
+ var _a, e_1, _b, _c;
68
+ try {
69
+ for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
+ _c = _f.value;
71
+ _d = false;
72
+ const page = _c;
73
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
+ }
75
+ }
76
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
+ finally {
78
+ try {
79
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
80
+ }
81
+ finally { if (e_1) throw e_1.error; }
82
+ }
83
+ });
66
84
  }
67
85
  /**
68
86
  * List link connections
69
87
  * @param options The options parameters.
70
88
  */
71
89
  async _listByWorkspace(options) {
72
- return tracingClient.withSpan("ArtifactsClient._listByWorkspace", options ?? {}, async (options) => {
90
+ return tracingClient.withSpan("ArtifactsClient._listByWorkspace", options !== null && options !== void 0 ? options : {}, async (options) => {
73
91
  return this.client.sendOperationRequest({ options }, listByWorkspaceOperationSpec);
74
92
  });
75
93
  }
@@ -80,7 +98,7 @@ export class LinkConnectionOperationsImpl {
80
98
  * @param options The options parameters.
81
99
  */
82
100
  async createOrUpdate(linkConnectionName, linkConnection, options) {
83
- return tracingClient.withSpan("ArtifactsClient.createOrUpdate", options ?? {}, async (options) => {
101
+ return tracingClient.withSpan("ArtifactsClient.createOrUpdate", options !== null && options !== void 0 ? options : {}, async (options) => {
84
102
  return this.client.sendOperationRequest({ linkConnectionName, linkConnection, options }, createOrUpdateOperationSpec);
85
103
  });
86
104
  }
@@ -90,7 +108,7 @@ export class LinkConnectionOperationsImpl {
90
108
  * @param options The options parameters.
91
109
  */
92
110
  async get(linkConnectionName, options) {
93
- return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (options) => {
111
+ return tracingClient.withSpan("ArtifactsClient.get", options !== null && options !== void 0 ? options : {}, async (options) => {
94
112
  return this.client.sendOperationRequest({ linkConnectionName, options }, getOperationSpec);
95
113
  });
96
114
  }
@@ -100,7 +118,7 @@ export class LinkConnectionOperationsImpl {
100
118
  * @param options The options parameters.
101
119
  */
102
120
  async delete(linkConnectionName, options) {
103
- return tracingClient.withSpan("ArtifactsClient.delete", options ?? {}, async (options) => {
121
+ return tracingClient.withSpan("ArtifactsClient.delete", options !== null && options !== void 0 ? options : {}, async (options) => {
104
122
  return this.client.sendOperationRequest({ linkConnectionName, options }, deleteOperationSpec);
105
123
  });
106
124
  }
@@ -111,7 +129,7 @@ export class LinkConnectionOperationsImpl {
111
129
  * @param options The options parameters.
112
130
  */
113
131
  async editTables(linkConnectionName, editTablesRequest, options) {
114
- return tracingClient.withSpan("ArtifactsClient.editTables", options ?? {}, async (options) => {
132
+ return tracingClient.withSpan("ArtifactsClient.editTables", options !== null && options !== void 0 ? options : {}, async (options) => {
115
133
  return this.client.sendOperationRequest({ linkConnectionName, editTablesRequest, options }, editTablesOperationSpec);
116
134
  });
117
135
  }
@@ -122,7 +140,7 @@ export class LinkConnectionOperationsImpl {
122
140
  * @param options The options parameters.
123
141
  */
124
142
  async start(linkConnectionName, options) {
125
- return tracingClient.withSpan("ArtifactsClient.start", options ?? {}, async (options) => {
143
+ return tracingClient.withSpan("ArtifactsClient.start", options !== null && options !== void 0 ? options : {}, async (options) => {
126
144
  return this.client.sendOperationRequest({ linkConnectionName, options }, startOperationSpec);
127
145
  });
128
146
  }
@@ -133,7 +151,7 @@ export class LinkConnectionOperationsImpl {
133
151
  * @param options The options parameters.
134
152
  */
135
153
  async stop(linkConnectionName, options) {
136
- return tracingClient.withSpan("ArtifactsClient.stop", options ?? {}, async (options) => {
154
+ return tracingClient.withSpan("ArtifactsClient.stop", options !== null && options !== void 0 ? options : {}, async (options) => {
137
155
  return this.client.sendOperationRequest({ linkConnectionName, options }, stopOperationSpec);
138
156
  });
139
157
  }
@@ -143,7 +161,7 @@ export class LinkConnectionOperationsImpl {
143
161
  * @param options The options parameters.
144
162
  */
145
163
  async getDetailedStatus(linkConnectionName, options) {
146
- return tracingClient.withSpan("ArtifactsClient.getDetailedStatus", options ?? {}, async (options) => {
164
+ return tracingClient.withSpan("ArtifactsClient.getDetailedStatus", options !== null && options !== void 0 ? options : {}, async (options) => {
147
165
  return this.client.sendOperationRequest({ linkConnectionName, options }, getDetailedStatusOperationSpec);
148
166
  });
149
167
  }
@@ -153,7 +171,7 @@ export class LinkConnectionOperationsImpl {
153
171
  * @param options The options parameters.
154
172
  */
155
173
  async listLinkTables(linkConnectionName, options) {
156
- return tracingClient.withSpan("ArtifactsClient.listLinkTables", options ?? {}, async (options) => {
174
+ return tracingClient.withSpan("ArtifactsClient.listLinkTables", options !== null && options !== void 0 ? options : {}, async (options) => {
157
175
  return this.client.sendOperationRequest({ linkConnectionName, options }, listLinkTablesOperationSpec);
158
176
  });
159
177
  }
@@ -164,7 +182,7 @@ export class LinkConnectionOperationsImpl {
164
182
  * @param options The options parameters.
165
183
  */
166
184
  async queryTableStatus(linkConnectionName, queryTableStatusRequest, options) {
167
- return tracingClient.withSpan("ArtifactsClient.queryTableStatus", options ?? {}, async (options) => {
185
+ return tracingClient.withSpan("ArtifactsClient.queryTableStatus", options !== null && options !== void 0 ? options : {}, async (options) => {
168
186
  return this.client.sendOperationRequest({ linkConnectionName, queryTableStatusRequest, options }, queryTableStatusOperationSpec);
169
187
  });
170
188
  }
@@ -175,7 +193,7 @@ export class LinkConnectionOperationsImpl {
175
193
  * @param options The options parameters.
176
194
  */
177
195
  async updateLandingZoneCredential(linkConnectionName, updateLandingZoneCredentialRequest, options) {
178
- return tracingClient.withSpan("ArtifactsClient.updateLandingZoneCredential", options ?? {}, async (options) => {
196
+ return tracingClient.withSpan("ArtifactsClient.updateLandingZoneCredential", options !== null && options !== void 0 ? options : {}, async (options) => {
179
197
  return this.client.sendOperationRequest({ linkConnectionName, updateLandingZoneCredentialRequest, options }, updateLandingZoneCredentialOperationSpec);
180
198
  });
181
199
  }
@@ -186,7 +204,7 @@ export class LinkConnectionOperationsImpl {
186
204
  * @param options The options parameters.
187
205
  */
188
206
  async pause(linkConnectionName, options) {
189
- return tracingClient.withSpan("ArtifactsClient.pause", options ?? {}, async (options) => {
207
+ return tracingClient.withSpan("ArtifactsClient.pause", options !== null && options !== void 0 ? options : {}, async (options) => {
190
208
  return this.client.sendOperationRequest({ linkConnectionName, options }, pauseOperationSpec);
191
209
  });
192
210
  }
@@ -197,7 +215,7 @@ export class LinkConnectionOperationsImpl {
197
215
  * @param options The options parameters.
198
216
  */
199
217
  async resume(linkConnectionName, options) {
200
- return tracingClient.withSpan("ArtifactsClient.resume", options ?? {}, async (options) => {
218
+ return tracingClient.withSpan("ArtifactsClient.resume", options !== null && options !== void 0 ? options : {}, async (options) => {
201
219
  return this.client.sendOperationRequest({ linkConnectionName, options }, resumeOperationSpec);
202
220
  });
203
221
  }
@@ -207,7 +225,7 @@ export class LinkConnectionOperationsImpl {
207
225
  * @param options The options parameters.
208
226
  */
209
227
  async _listByWorkspaceNext(nextLink, options) {
210
- return tracingClient.withSpan("ArtifactsClient._listByWorkspaceNext", options ?? {}, async (options) => {
228
+ return tracingClient.withSpan("ArtifactsClient._listByWorkspaceNext", options !== null && options !== void 0 ? options : {}, async (options) => {
211
229
  return this.client.sendOperationRequest({ nextLink, options }, listByWorkspaceNextOperationSpec);
212
230
  });
213
231
  }
@@ -1 +1 @@
1
- {"version":3,"file":"linkConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/linkConnectionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,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D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,kBAAkB,GAA6B;IACnD,IAAI,EAAE,6CAA6C;IACnD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACnE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,8CAA8C;IACpD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACnE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper\";\nimport { LinkConnectionOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ArtifactsClient } from \"../artifactsClient\";\nimport {\n LinkConnectionResource,\n LinkConnectionListByWorkspaceNextOptionalParams,\n LinkConnectionListByWorkspaceOptionalParams,\n LinkConnectionListByWorkspaceResponse,\n LinkConnectionCreateOrUpdateOptionalParams,\n LinkConnectionCreateOrUpdateResponse,\n LinkConnectionGetOptionalParams,\n LinkConnectionGetResponse,\n LinkConnectionDeleteOptionalParams,\n EditTablesRequest,\n LinkConnectionEditTablesOptionalParams,\n LinkConnectionStartOptionalParams,\n LinkConnectionStopOptionalParams,\n LinkConnectionGetDetailedStatusOptionalParams,\n LinkConnectionGetDetailedStatusResponse,\n LinkConnectionListLinkTablesOptionalParams,\n LinkConnectionListLinkTablesResponse,\n QueryTableStatusRequest,\n LinkConnectionQueryTableStatusOptionalParams,\n LinkConnectionQueryTableStatusResponse,\n UpdateLandingZoneCredential,\n LinkConnectionUpdateLandingZoneCredentialOptionalParams,\n LinkConnectionPauseOptionalParams,\n LinkConnectionResumeOptionalParams,\n LinkConnectionListByWorkspaceNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LinkConnectionOperations operations. */\nexport class LinkConnectionOperationsImpl implements LinkConnectionOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class LinkConnectionOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List link connections\n * @param options The options parameters.\n */\n public listByWorkspace(\n options?: LinkConnectionListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<LinkConnectionResource> {\n const iter = this.listByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(options, settings);\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LinkConnectionResource[]> {\n let result: LinkConnectionListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n options?: LinkConnectionListByWorkspaceOptionalParams\n ): AsyncIterableIterator<LinkConnectionResource> {\n for await (const page of this.listByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List link connections\n * @param options The options parameters.\n */\n private async _listByWorkspace(\n options?: LinkConnectionListByWorkspaceOptionalParams\n ): Promise<LinkConnectionListByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listByWorkspace\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listByWorkspaceOperationSpec\n ) as Promise<LinkConnectionListByWorkspaceResponse>;\n }\n );\n }\n\n /**\n * Creates or updates a link connection\n * @param linkConnectionName The link connection name\n * @param linkConnection Link connection resource definition\n * @param options The options parameters.\n */\n async createOrUpdate(\n linkConnectionName: string,\n linkConnection: LinkConnectionResource,\n options?: LinkConnectionCreateOrUpdateOptionalParams\n ): Promise<LinkConnectionCreateOrUpdateResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.createOrUpdate\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, linkConnection, options },\n createOrUpdateOperationSpec\n ) as Promise<LinkConnectionCreateOrUpdateResponse>;\n }\n );\n }\n\n /**\n * Get a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async get(\n linkConnectionName: string,\n options?: LinkConnectionGetOptionalParams\n ): Promise<LinkConnectionGetResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.get\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n getOperationSpec\n ) as Promise<LinkConnectionGetResponse>;\n }\n );\n }\n\n /**\n * Delete a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async delete(\n linkConnectionName: string,\n options?: LinkConnectionDeleteOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.delete\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n deleteOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Edit tables for a link connection\n * @param linkConnectionName The link connection name\n * @param editTablesRequest Edit tables request\n * @param options The options parameters.\n */\n async editTables(\n linkConnectionName: string,\n editTablesRequest: EditTablesRequest,\n options?: LinkConnectionEditTablesOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.editTables\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, editTablesRequest, options },\n editTablesOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Start a link connection. It may take a few minutes from Starting to Running, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async start(\n linkConnectionName: string,\n options?: LinkConnectionStartOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.start\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n startOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Stop a link connection. It may take a few minutes from Stopping to stopped, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async stop(\n linkConnectionName: string,\n options?: LinkConnectionStopOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.stop\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n stopOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Get the detailed status of a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async getDetailedStatus(\n linkConnectionName: string,\n options?: LinkConnectionGetDetailedStatusOptionalParams\n ): Promise<LinkConnectionGetDetailedStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getDetailedStatus\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n getDetailedStatusOperationSpec\n ) as Promise<LinkConnectionGetDetailedStatusResponse>;\n }\n );\n }\n\n /**\n * List the link tables of a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async listLinkTables(\n linkConnectionName: string,\n options?: LinkConnectionListLinkTablesOptionalParams\n ): Promise<LinkConnectionListLinkTablesResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.listLinkTables\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n listLinkTablesOperationSpec\n ) as Promise<LinkConnectionListLinkTablesResponse>;\n }\n );\n }\n\n /**\n * Query the link table status of a link connection\n * @param linkConnectionName The link connection name\n * @param queryTableStatusRequest Query table status request\n * @param options The options parameters.\n */\n async queryTableStatus(\n linkConnectionName: string,\n queryTableStatusRequest: QueryTableStatusRequest,\n options?: LinkConnectionQueryTableStatusOptionalParams\n ): Promise<LinkConnectionQueryTableStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.queryTableStatus\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, queryTableStatusRequest, options },\n queryTableStatusOperationSpec\n ) as Promise<LinkConnectionQueryTableStatusResponse>;\n }\n );\n }\n\n /**\n * Update landing zone credential of a link connection\n * @param linkConnectionName The link connection name\n * @param updateLandingZoneCredentialRequest update landing zone credential request\n * @param options The options parameters.\n */\n async updateLandingZoneCredential(\n linkConnectionName: string,\n updateLandingZoneCredentialRequest: UpdateLandingZoneCredential,\n options?: LinkConnectionUpdateLandingZoneCredentialOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.updateLandingZoneCredential\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updateLandingZoneCredentialRequest, options },\n updateLandingZoneCredentialOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Pause a link connection. It may take a few minutes from Pausing to Paused, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async pause(\n linkConnectionName: string,\n options?: LinkConnectionPauseOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.pause\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n pauseOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Resume a link connection. It may take a few minutes from Resuming to Running, monitor the status\n * with LinkConnection_GetDetailedStatus.\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async resume(\n linkConnectionName: string,\n options?: LinkConnectionResumeOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.resume\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n resumeOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private async _listByWorkspaceNext(\n nextLink: string,\n options?: LinkConnectionListByWorkspaceNextOptionalParams\n ): Promise<LinkConnectionListByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listByWorkspaceNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listByWorkspaceNextOperationSpec\n ) as Promise<LinkConnectionListByWorkspaceNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.linkConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst editTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/edittables\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.editTablesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getDetailedStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/detailedstatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionDetailedStatus\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listLinkTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/linktables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkTableListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst queryTableStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/querytablestatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionQueryTableStatus\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.queryTableStatusRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateLandingZoneCredentialOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/updateLandingZoneCredential\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.updateLandingZoneCredentialRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst pauseOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/pause\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst resumeOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/resume\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"linkConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/linkConnectionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AA8BnD,4CAA4C;AAC5C,4DAA4D;AAC5D,MAAM,OAAO,4BAA4B;IAGvC;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,eAAe,CACpB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QACpD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC3D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,yBAAyB,CACtC,OAAqD,EACrD,QAAuB;;YAEvB,IAAI,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gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,8CAA8C;IACpD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACnE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper\";\nimport { LinkConnectionOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ArtifactsClient } from \"../artifactsClient\";\nimport {\n LinkConnectionResource,\n LinkConnectionListByWorkspaceNextOptionalParams,\n LinkConnectionListByWorkspaceOptionalParams,\n LinkConnectionListByWorkspaceResponse,\n LinkConnectionCreateOrUpdateOptionalParams,\n LinkConnectionCreateOrUpdateResponse,\n LinkConnectionGetOptionalParams,\n LinkConnectionGetResponse,\n LinkConnectionDeleteOptionalParams,\n EditTablesRequest,\n LinkConnectionEditTablesOptionalParams,\n LinkConnectionStartOptionalParams,\n LinkConnectionStopOptionalParams,\n LinkConnectionGetDetailedStatusOptionalParams,\n LinkConnectionGetDetailedStatusResponse,\n LinkConnectionListLinkTablesOptionalParams,\n LinkConnectionListLinkTablesResponse,\n QueryTableStatusRequest,\n LinkConnectionQueryTableStatusOptionalParams,\n LinkConnectionQueryTableStatusResponse,\n UpdateLandingZoneCredential,\n LinkConnectionUpdateLandingZoneCredentialOptionalParams,\n LinkConnectionPauseOptionalParams,\n LinkConnectionResumeOptionalParams,\n LinkConnectionListByWorkspaceNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LinkConnectionOperations operations. */\nexport class LinkConnectionOperationsImpl implements LinkConnectionOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class LinkConnectionOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List link connections\n * @param options The options parameters.\n */\n public listByWorkspace(\n options?: LinkConnectionListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<LinkConnectionResource> {\n const iter = this.listByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(options, settings);\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LinkConnectionResource[]> {\n let result: LinkConnectionListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n options?: LinkConnectionListByWorkspaceOptionalParams\n ): AsyncIterableIterator<LinkConnectionResource> {\n for await (const page of this.listByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List link connections\n * @param options The options parameters.\n */\n private async _listByWorkspace(\n options?: LinkConnectionListByWorkspaceOptionalParams\n ): Promise<LinkConnectionListByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listByWorkspace\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listByWorkspaceOperationSpec\n ) as Promise<LinkConnectionListByWorkspaceResponse>;\n }\n );\n }\n\n /**\n * Creates or updates a link connection\n * @param linkConnectionName The link connection name\n * @param linkConnection Link connection resource definition\n * @param options The options parameters.\n */\n async createOrUpdate(\n linkConnectionName: string,\n linkConnection: LinkConnectionResource,\n options?: LinkConnectionCreateOrUpdateOptionalParams\n ): Promise<LinkConnectionCreateOrUpdateResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.createOrUpdate\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, linkConnection, options },\n createOrUpdateOperationSpec\n ) as Promise<LinkConnectionCreateOrUpdateResponse>;\n }\n );\n }\n\n /**\n * Get a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async get(\n linkConnectionName: string,\n options?: LinkConnectionGetOptionalParams\n ): Promise<LinkConnectionGetResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.get\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n getOperationSpec\n ) as Promise<LinkConnectionGetResponse>;\n }\n );\n }\n\n /**\n * Delete a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async delete(\n linkConnectionName: string,\n options?: LinkConnectionDeleteOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.delete\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n deleteOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Edit tables for a link connection\n * @param linkConnectionName The link connection name\n * @param editTablesRequest Edit tables request\n * @param options The options parameters.\n */\n async editTables(\n linkConnectionName: string,\n editTablesRequest: EditTablesRequest,\n options?: LinkConnectionEditTablesOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.editTables\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, editTablesRequest, options },\n editTablesOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Start a link connection. It may take a few minutes from Starting to Running, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async start(\n linkConnectionName: string,\n options?: LinkConnectionStartOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.start\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n startOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Stop a link connection. It may take a few minutes from Stopping to stopped, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async stop(\n linkConnectionName: string,\n options?: LinkConnectionStopOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.stop\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n stopOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Get the detailed status of a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async getDetailedStatus(\n linkConnectionName: string,\n options?: LinkConnectionGetDetailedStatusOptionalParams\n ): Promise<LinkConnectionGetDetailedStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getDetailedStatus\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n getDetailedStatusOperationSpec\n ) as Promise<LinkConnectionGetDetailedStatusResponse>;\n }\n );\n }\n\n /**\n * List the link tables of a link connection\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async listLinkTables(\n linkConnectionName: string,\n options?: LinkConnectionListLinkTablesOptionalParams\n ): Promise<LinkConnectionListLinkTablesResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.listLinkTables\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n listLinkTablesOperationSpec\n ) as Promise<LinkConnectionListLinkTablesResponse>;\n }\n );\n }\n\n /**\n * Query the link table status of a link connection\n * @param linkConnectionName The link connection name\n * @param queryTableStatusRequest Query table status request\n * @param options The options parameters.\n */\n async queryTableStatus(\n linkConnectionName: string,\n queryTableStatusRequest: QueryTableStatusRequest,\n options?: LinkConnectionQueryTableStatusOptionalParams\n ): Promise<LinkConnectionQueryTableStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.queryTableStatus\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, queryTableStatusRequest, options },\n queryTableStatusOperationSpec\n ) as Promise<LinkConnectionQueryTableStatusResponse>;\n }\n );\n }\n\n /**\n * Update landing zone credential of a link connection\n * @param linkConnectionName The link connection name\n * @param updateLandingZoneCredentialRequest update landing zone credential request\n * @param options The options parameters.\n */\n async updateLandingZoneCredential(\n linkConnectionName: string,\n updateLandingZoneCredentialRequest: UpdateLandingZoneCredential,\n options?: LinkConnectionUpdateLandingZoneCredentialOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.updateLandingZoneCredential\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updateLandingZoneCredentialRequest, options },\n updateLandingZoneCredentialOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Pause a link connection. It may take a few minutes from Pausing to Paused, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async pause(\n linkConnectionName: string,\n options?: LinkConnectionPauseOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.pause\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n pauseOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Resume a link connection. It may take a few minutes from Resuming to Running, monitor the status\n * with LinkConnection_GetDetailedStatus.\n * @param linkConnectionName The link connection name\n * @param options The options parameters.\n */\n async resume(\n linkConnectionName: string,\n options?: LinkConnectionResumeOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.resume\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, options },\n resumeOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private async _listByWorkspaceNext(\n nextLink: string,\n options?: LinkConnectionListByWorkspaceNextOptionalParams\n ): Promise<LinkConnectionListByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listByWorkspaceNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listByWorkspaceNextOperationSpec\n ) as Promise<LinkConnectionListByWorkspaceNextResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.linkConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst editTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/edittables\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.editTablesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getDetailedStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/detailedstatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionDetailedStatus\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listLinkTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/linktables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkTableListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst queryTableStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/querytablestatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionQueryTableStatus\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.queryTableStatusRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateLandingZoneCredentialOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/updateLandingZoneCredential\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.updateLandingZoneCredentialRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst pauseOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/pause\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst resumeOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/resume\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}