@azure/arm-apicenter 1.0.1-alpha.20250718.1 → 1.0.1-alpha.20250730.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.
- package/dist/commonjs/azureAPICenter.js +22 -5
- package/dist/commonjs/azureAPICenter.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +52 -21
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/apiDefinitions.js +45 -51
- package/dist/commonjs/operations/apiDefinitions.js.map +1 -1
- package/dist/commonjs/operations/apiVersions.js +23 -39
- package/dist/commonjs/operations/apiVersions.js.map +1 -1
- package/dist/commonjs/operations/apis.js +23 -39
- package/dist/commonjs/operations/apis.js.map +1 -1
- package/dist/commonjs/operations/deployments.js +23 -39
- package/dist/commonjs/operations/deployments.js.map +1 -1
- package/dist/commonjs/operations/environments.js +23 -39
- package/dist/commonjs/operations/environments.js.map +1 -1
- package/dist/commonjs/operations/metadataSchemas.js +23 -39
- package/dist/commonjs/operations/metadataSchemas.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/services.js +56 -84
- package/dist/commonjs/operations/services.js.map +1 -1
- package/dist/commonjs/operations/workspaces.js +23 -39
- package/dist/commonjs/operations/workspaces.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/azureAPICenter.js +22 -5
- package/dist/esm/azureAPICenter.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +52 -21
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/apiDefinitions.js +45 -52
- package/dist/esm/operations/apiDefinitions.js.map +1 -1
- package/dist/esm/operations/apiVersions.js +23 -40
- package/dist/esm/operations/apiVersions.js.map +1 -1
- package/dist/esm/operations/apis.js +23 -40
- package/dist/esm/operations/apis.js.map +1 -1
- package/dist/esm/operations/deployments.js +23 -40
- package/dist/esm/operations/deployments.js.map +1 -1
- package/dist/esm/operations/environments.js +23 -40
- package/dist/esm/operations/environments.js.map +1 -1
- package/dist/esm/operations/metadataSchemas.js +23 -40
- package/dist/esm/operations/metadataSchemas.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/services.js +56 -85
- package/dist/esm/operations/services.js.map +1 -1
- package/dist/esm/operations/workspaces.js +23 -40
- package/dist/esm/operations/workspaces.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiDefinitions.js","sourceRoot":"","sources":["../../../src/operations/apiDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,aAAqB,EACrB,OAAe,EACf,WAAmB,EACnB,OAA0C;QAE1C,MAAM,IAAI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AAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApiDefinitions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureAPICenter } from \"../azureAPICenter.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ApiDefinition,\n ApiDefinitionsListNextOptionalParams,\n ApiDefinitionsListOptionalParams,\n ApiDefinitionsListResponse,\n ApiDefinitionsGetOptionalParams,\n ApiDefinitionsGetResponse,\n ApiDefinitionsCreateOrUpdateOptionalParams,\n ApiDefinitionsCreateOrUpdateResponse,\n ApiDefinitionsDeleteOptionalParams,\n ApiDefinitionsHeadOptionalParams,\n ApiDefinitionsHeadResponse,\n ApiDefinitionsExportSpecificationOptionalParams,\n ApiDefinitionsExportSpecificationResponse,\n ApiSpecImportRequest,\n ApiDefinitionsImportSpecificationOptionalParams,\n ApiDefinitionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApiDefinitions operations. */\nexport class ApiDefinitionsImpl implements ApiDefinitions {\n private readonly client: AzureAPICenter;\n\n /**\n * Initialize a new instance of the class ApiDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: AzureAPICenter) {\n this.client = client;\n }\n\n /**\n * Returns a collection of API definitions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiDefinitionsListOptionalParams,\n ): PagedAsyncIterableIterator<ApiDefinition> {\n const iter = this.listPagingAll(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiDefinitionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApiDefinition[]> {\n let result: ApiDefinitionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiDefinitionsListOptionalParams,\n ): AsyncIterableIterator<ApiDefinition> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a collection of API definitions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiDefinitionsListOptionalParams,\n ): Promise<ApiDefinitionsListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * Returns details of the API definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsGetOptionalParams,\n ): Promise<ApiDefinitionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates new or updates existing API definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n resource: ApiDefinition,\n options?: ApiDefinitionsCreateOrUpdateOptionalParams,\n ): Promise<ApiDefinitionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n resource,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes specified API definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Checks if specified API definition exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n head(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsHeadOptionalParams,\n ): Promise<ApiDefinitionsHeadResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n },\n headOperationSpec,\n );\n }\n\n /**\n * Exports the API specification.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n async beginExportSpecification(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsExportSpecificationOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ApiDefinitionsExportSpecificationResponse>,\n ApiDefinitionsExportSpecificationResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ApiDefinitionsExportSpecificationResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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: {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n },\n spec: exportSpecificationOperationSpec,\n });\n const poller = await createHttpPoller<\n ApiDefinitionsExportSpecificationResponse,\n OperationState<ApiDefinitionsExportSpecificationResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Exports the API specification.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n async beginExportSpecificationAndWait(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsExportSpecificationOptionalParams,\n ): Promise<ApiDefinitionsExportSpecificationResponse> {\n const poller = await this.beginExportSpecification(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Imports the API specification.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param body The content of the action request\n * @param options The options parameters.\n */\n async beginImportSpecification(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n body: ApiSpecImportRequest,\n options?: ApiDefinitionsImportSpecificationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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: {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n body,\n options,\n },\n spec: importSpecificationOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Imports the API specification.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param body The content of the action request\n * @param options The options parameters.\n */\n async beginImportSpecificationAndWait(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n body: ApiSpecImportRequest,\n options?: ApiDefinitionsImportSpecificationOptionalParams,\n ): Promise<void> {\n const poller = await this.beginImportSpecification(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n nextLink: string,\n options?: ApiDefinitionsListNextOptionalParams,\n ): Promise<ApiDefinitionsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiDefinitionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiDefinition,\n headersMapper: Mappers.ApiDefinitionsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiDefinition,\n headersMapper: Mappers.ApiDefinitionsCreateOrUpdateHeaders,\n },\n 201: {\n bodyMapper: Mappers.ApiDefinition,\n headersMapper: Mappers.ApiDefinitionsCreateOrUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst headOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst exportSpecificationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}/exportSpecification\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiSpecExportResult,\n },\n 201: {\n bodyMapper: Mappers.ApiSpecExportResult,\n },\n 202: {\n bodyMapper: Mappers.ApiSpecExportResult,\n },\n 204: {\n bodyMapper: Mappers.ApiSpecExportResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst importSpecificationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}/importSpecification\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiDefinitionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"apiDefinitions.js","sourceRoot":"","sources":["../../../src/operations/apiDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,aAAqB,EACrB,OAAe,EACf,WAAmB,EACnB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,EACP,WAAW,EACX,OAAO,CACR,CAAC;QACF,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAA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,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApiDefinitions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureAPICenter } from \"../azureAPICenter.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ApiDefinition,\n ApiDefinitionsListNextOptionalParams,\n ApiDefinitionsListOptionalParams,\n ApiDefinitionsListResponse,\n ApiDefinitionsGetOptionalParams,\n ApiDefinitionsGetResponse,\n ApiDefinitionsCreateOrUpdateOptionalParams,\n ApiDefinitionsCreateOrUpdateResponse,\n ApiDefinitionsDeleteOptionalParams,\n ApiDefinitionsHeadOptionalParams,\n ApiDefinitionsHeadResponse,\n ApiDefinitionsExportSpecificationOptionalParams,\n ApiDefinitionsExportSpecificationResponse,\n ApiSpecImportRequest,\n ApiDefinitionsImportSpecificationOptionalParams,\n ApiDefinitionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApiDefinitions operations. */\nexport class ApiDefinitionsImpl implements ApiDefinitions {\n private readonly client: AzureAPICenter;\n\n /**\n * Initialize a new instance of the class ApiDefinitions class.\n * @param client Reference to the service client\n */\n constructor(client: AzureAPICenter) {\n this.client = client;\n }\n\n /**\n * Returns a collection of API definitions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiDefinitionsListOptionalParams,\n ): PagedAsyncIterableIterator<ApiDefinition> {\n const iter = this.listPagingAll(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiDefinitionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApiDefinition[]> {\n let result: ApiDefinitionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiDefinitionsListOptionalParams,\n ): AsyncIterableIterator<ApiDefinition> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a collection of API definitions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiDefinitionsListOptionalParams,\n ): Promise<ApiDefinitionsListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n },\n listOperationSpec,\n );\n }\n\n /**\n * Returns details of the API definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsGetOptionalParams,\n ): Promise<ApiDefinitionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates new or updates existing API definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n resource: ApiDefinition,\n options?: ApiDefinitionsCreateOrUpdateOptionalParams,\n ): Promise<ApiDefinitionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n resource,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes specified API definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Checks if specified API definition exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n head(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsHeadOptionalParams,\n ): Promise<ApiDefinitionsHeadResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n },\n headOperationSpec,\n );\n }\n\n /**\n * Exports the API specification.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n async beginExportSpecification(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsExportSpecificationOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ApiDefinitionsExportSpecificationResponse>,\n ApiDefinitionsExportSpecificationResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ApiDefinitionsExportSpecificationResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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: {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n },\n spec: exportSpecificationOperationSpec,\n });\n const poller = await createHttpPoller<\n ApiDefinitionsExportSpecificationResponse,\n OperationState<ApiDefinitionsExportSpecificationResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Exports the API specification.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param options The options parameters.\n */\n async beginExportSpecificationAndWait(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n options?: ApiDefinitionsExportSpecificationOptionalParams,\n ): Promise<ApiDefinitionsExportSpecificationResponse> {\n const poller = await this.beginExportSpecification(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Imports the API specification.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param body The content of the action request\n * @param options The options parameters.\n */\n async beginImportSpecification(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n body: ApiSpecImportRequest,\n options?: ApiDefinitionsImportSpecificationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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: {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n body,\n options,\n },\n spec: importSpecificationOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Imports the API specification.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param definitionName The name of the API definition.\n * @param body The content of the action request\n * @param options The options parameters.\n */\n async beginImportSpecificationAndWait(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n definitionName: string,\n body: ApiSpecImportRequest,\n options?: ApiDefinitionsImportSpecificationOptionalParams,\n ): Promise<void> {\n const poller = await this.beginImportSpecification(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n definitionName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n nextLink: string,\n options?: ApiDefinitionsListNextOptionalParams,\n ): Promise<ApiDefinitionsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiDefinitionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiDefinition,\n headersMapper: Mappers.ApiDefinitionsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiDefinition,\n headersMapper: Mappers.ApiDefinitionsCreateOrUpdateHeaders,\n },\n 201: {\n bodyMapper: Mappers.ApiDefinition,\n headersMapper: Mappers.ApiDefinitionsCreateOrUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst headOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst exportSpecificationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}/exportSpecification\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiSpecExportResult,\n },\n 201: {\n bodyMapper: Mappers.ApiSpecExportResult,\n },\n 202: {\n bodyMapper: Mappers.ApiSpecExportResult,\n },\n 204: {\n bodyMapper: Mappers.ApiSpecExportResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst importSpecificationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}/definitions/{definitionName}/importSpecification\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n Parameters.definitionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiDefinitionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
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";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ApiVersions operations. */
|
|
15
14
|
export class ApiVersionsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ApiVersions class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class ApiVersionsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listPagingPage(resourceGroupName, serviceName, workspaceName, apiName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listPagingPage(resourceGroupName, serviceName, workspaceName, apiName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listPagingPage(resourceGroupName, serviceName, workspaceName, apiName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(resourceGroupName, serviceName, workspaceName, apiName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(resourceGroupName, serviceName, workspaceName, apiName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listPagingAll(resourceGroupName, serviceName, workspaceName, apiName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, serviceName, workspaceName, apiName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listPagingAll(resourceGroupName, serviceName, workspaceName, apiName, options) {
|
|
67
|
+
for await (const page of this.listPagingPage(resourceGroupName, serviceName, workspaceName, apiName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Returns a collection of API versions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiVersions.js","sourceRoot":"","sources":["../../../src/operations/apiVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,aAAqB,EACrB,OAAe,EACf,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACr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AC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,OAAO;KACnB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApiVersions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureAPICenter } from \"../azureAPICenter.js\";\nimport {\n ApiVersion,\n ApiVersionsListNextOptionalParams,\n ApiVersionsListOptionalParams,\n ApiVersionsListResponse,\n ApiVersionsGetOptionalParams,\n ApiVersionsGetResponse,\n ApiVersionsCreateOrUpdateOptionalParams,\n ApiVersionsCreateOrUpdateResponse,\n ApiVersionsDeleteOptionalParams,\n ApiVersionsHeadOptionalParams,\n ApiVersionsHeadResponse,\n ApiVersionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApiVersions operations. */\nexport class ApiVersionsImpl implements ApiVersions {\n private readonly client: AzureAPICenter;\n\n /**\n * Initialize a new instance of the class ApiVersions class.\n * @param client Reference to the service client\n */\n constructor(client: AzureAPICenter) {\n this.client = client;\n }\n\n /**\n * Returns a collection of API versions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApiVersionsListOptionalParams,\n ): PagedAsyncIterableIterator<ApiVersion> {\n const iter = this.listPagingAll(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApiVersionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApiVersion[]> {\n let result: ApiVersionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApiVersionsListOptionalParams,\n ): AsyncIterableIterator<ApiVersion> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a collection of API versions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApiVersionsListOptionalParams,\n ): Promise<ApiVersionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, apiName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Returns details of the API version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiVersionsGetOptionalParams,\n ): Promise<ApiVersionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates new or updates existing API version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n resource: ApiVersion,\n options?: ApiVersionsCreateOrUpdateOptionalParams,\n ): Promise<ApiVersionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n resource,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes specified API version\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiVersionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Checks if specified API version exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n head(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiVersionsHeadOptionalParams,\n ): Promise<ApiVersionsHeadResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n },\n headOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n nextLink: string,\n options?: ApiVersionsListNextOptionalParams,\n ): Promise<ApiVersionsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersion,\n headersMapper: Mappers.ApiVersionsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersion,\n headersMapper: Mappers.ApiVersionsCreateOrUpdateHeaders,\n },\n 201: {\n bodyMapper: Mappers.ApiVersion,\n headersMapper: Mappers.ApiVersionsCreateOrUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst headOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"apiVersions.js","sourceRoot":"","sources":["../../../src/operations/apiVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,aAAqB,EACrB,OAAe,EACf,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,CACR,CAAC;QACF,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,QAAQ,CACT,CAAC;YACJ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AiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,OAAO;KACnB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApiVersions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureAPICenter } from \"../azureAPICenter.js\";\nimport {\n ApiVersion,\n ApiVersionsListNextOptionalParams,\n ApiVersionsListOptionalParams,\n ApiVersionsListResponse,\n ApiVersionsGetOptionalParams,\n ApiVersionsGetResponse,\n ApiVersionsCreateOrUpdateOptionalParams,\n ApiVersionsCreateOrUpdateResponse,\n ApiVersionsDeleteOptionalParams,\n ApiVersionsHeadOptionalParams,\n ApiVersionsHeadResponse,\n ApiVersionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApiVersions operations. */\nexport class ApiVersionsImpl implements ApiVersions {\n private readonly client: AzureAPICenter;\n\n /**\n * Initialize a new instance of the class ApiVersions class.\n * @param client Reference to the service client\n */\n constructor(client: AzureAPICenter) {\n this.client = client;\n }\n\n /**\n * Returns a collection of API versions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApiVersionsListOptionalParams,\n ): PagedAsyncIterableIterator<ApiVersion> {\n const iter = this.listPagingAll(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApiVersionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApiVersion[]> {\n let result: ApiVersionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApiVersionsListOptionalParams,\n ): AsyncIterableIterator<ApiVersion> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a collection of API versions.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApiVersionsListOptionalParams,\n ): Promise<ApiVersionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, apiName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Returns details of the API version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiVersionsGetOptionalParams,\n ): Promise<ApiVersionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates new or updates existing API version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n resource: ApiVersion,\n options?: ApiVersionsCreateOrUpdateOptionalParams,\n ): Promise<ApiVersionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n resource,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes specified API version\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiVersionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Checks if specified API version exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param versionName The name of the API version.\n * @param options The options parameters.\n */\n head(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n versionName: string,\n options?: ApiVersionsHeadOptionalParams,\n ): Promise<ApiVersionsHeadResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n versionName,\n options,\n },\n headOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n nextLink: string,\n options?: ApiVersionsListNextOptionalParams,\n ): Promise<ApiVersionsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersion,\n headersMapper: Mappers.ApiVersionsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersion,\n headersMapper: Mappers.ApiVersionsCreateOrUpdateHeaders,\n },\n 201: {\n bodyMapper: Mappers.ApiVersion,\n headersMapper: Mappers.ApiVersionsCreateOrUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst headOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}/versions/{versionName}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
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";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing Apis operations. */
|
|
15
14
|
export class ApisImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class Apis class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class ApisImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listPagingPage(resourceGroupName, serviceName, workspaceName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listPagingPage(resourceGroupName, serviceName, workspaceName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listPagingPage(resourceGroupName, serviceName, workspaceName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._list(resourceGroupName, serviceName, workspaceName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listNext(resourceGroupName, serviceName, workspaceName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listPagingAll(resourceGroupName, serviceName, workspaceName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, serviceName, workspaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listPagingAll(resourceGroupName, serviceName, workspaceName, options) {
|
|
66
|
+
for await (const page of this.listPagingPage(resourceGroupName, serviceName, workspaceName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Returns a collection of APIs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../src/operations/apis.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB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Aa;QACxB,UAAU,CAAC,OAAO;KACnB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;KACzB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Apis } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureAPICenter } from \"../azureAPICenter.js\";\nimport {\n Api,\n ApisListNextOptionalParams,\n ApisListOptionalParams,\n ApisListResponse,\n ApisGetOptionalParams,\n ApisGetResponse,\n ApisCreateOrUpdateOptionalParams,\n ApisCreateOrUpdateResponse,\n ApisDeleteOptionalParams,\n ApisHeadOptionalParams,\n ApisHeadResponse,\n ApisListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Apis operations. */\nexport class ApisImpl implements Apis {\n private readonly client: AzureAPICenter;\n\n /**\n * Initialize a new instance of the class Apis class.\n * @param client Reference to the service client\n */\n constructor(client: AzureAPICenter) {\n this.client = client;\n }\n\n /**\n * Returns a collection of APIs.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n options?: ApisListOptionalParams,\n ): PagedAsyncIterableIterator<Api> {\n const iter = this.listPagingAll(\n resourceGroupName,\n serviceName,\n workspaceName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n options?: ApisListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Api[]> {\n let result: ApisListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n serviceName,\n workspaceName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n options?: ApisListOptionalParams,\n ): AsyncIterableIterator<Api> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n serviceName,\n workspaceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a collection of APIs.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n options?: ApisListOptionalParams,\n ): Promise<ApisListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Returns details of the API.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApisGetOptionalParams,\n ): Promise<ApisGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, apiName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates new or updates existing API.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n resource: Api,\n options?: ApisCreateOrUpdateOptionalParams,\n ): Promise<ApisCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n resource,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes specified API.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApisDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, apiName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Checks if specified API exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n head(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApisHeadOptionalParams,\n ): Promise<ApisHeadResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, apiName, options },\n headOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n nextLink: string,\n options?: ApisListNextOptionalParams,\n ): Promise<ApisListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Api,\n headersMapper: Mappers.ApisGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Api,\n headersMapper: Mappers.ApisCreateOrUpdateHeaders,\n },\n 201: {\n bodyMapper: Mappers.Api,\n headersMapper: Mappers.ApisCreateOrUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst headOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../src/operations/apis.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IACF,MAAM,CAAiB;IAExC;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,aAAqB,EACrB,OAAgC;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAA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UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;KACzB;IACD,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Apis } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureAPICenter } from \"../azureAPICenter.js\";\nimport {\n Api,\n ApisListNextOptionalParams,\n ApisListOptionalParams,\n ApisListResponse,\n ApisGetOptionalParams,\n ApisGetResponse,\n ApisCreateOrUpdateOptionalParams,\n ApisCreateOrUpdateResponse,\n ApisDeleteOptionalParams,\n ApisHeadOptionalParams,\n ApisHeadResponse,\n ApisListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Apis operations. */\nexport class ApisImpl implements Apis {\n private readonly client: AzureAPICenter;\n\n /**\n * Initialize a new instance of the class Apis class.\n * @param client Reference to the service client\n */\n constructor(client: AzureAPICenter) {\n this.client = client;\n }\n\n /**\n * Returns a collection of APIs.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n options?: ApisListOptionalParams,\n ): PagedAsyncIterableIterator<Api> {\n const iter = this.listPagingAll(\n resourceGroupName,\n serviceName,\n workspaceName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n options?: ApisListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Api[]> {\n let result: ApisListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n serviceName,\n workspaceName,\n options,\n );\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(\n resourceGroupName,\n serviceName,\n workspaceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n options?: ApisListOptionalParams,\n ): AsyncIterableIterator<Api> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n serviceName,\n workspaceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a collection of APIs.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n options?: ApisListOptionalParams,\n ): Promise<ApisListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Returns details of the API.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApisGetOptionalParams,\n ): Promise<ApisGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, apiName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates new or updates existing API.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n resource: Api,\n options?: ApisCreateOrUpdateOptionalParams,\n ): Promise<ApisCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n workspaceName,\n apiName,\n resource,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes specified API.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApisDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, apiName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Checks if specified API exists.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param apiName The name of the API.\n * @param options The options parameters.\n */\n head(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n apiName: string,\n options?: ApisHeadOptionalParams,\n ): Promise<ApisHeadResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, apiName, options },\n headOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of Azure API Center service.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n serviceName: string,\n workspaceName: string,\n nextLink: string,\n options?: ApisListNextOptionalParams,\n ): Promise<ApisListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, workspaceName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Api,\n headersMapper: Mappers.ApisGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Api,\n headersMapper: Mappers.ApisCreateOrUpdateHeaders,\n },\n 201: {\n bodyMapper: Mappers.Api,\n headersMapper: Mappers.ApisCreateOrUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst headOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}/workspaces/{workspaceName}/apis/{apiName}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n Parameters.apiName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serviceName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|