@azure/digital-twins-core 2.0.0-alpha.20250619.1 → 2.0.0-alpha.20250721.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/browser/digitalTwinsClient.js +53 -46
- package/dist/browser/digitalTwinsClient.js.map +1 -1
- package/dist/browser/generated/azureDigitalTwinsAPI.js +17 -3
- package/dist/browser/generated/azureDigitalTwinsAPI.js.map +1 -1
- package/dist/browser/generated/lroImpl.js +7 -3
- package/dist/browser/generated/lroImpl.js.map +1 -1
- package/dist/browser/generated/operations/deleteJobs.js +34 -46
- package/dist/browser/generated/operations/deleteJobs.js.map +1 -1
- package/dist/browser/generated/operations/digitalTwinModels.js +23 -40
- package/dist/browser/generated/operations/digitalTwinModels.js.map +1 -1
- package/dist/browser/generated/operations/digitalTwins.js +45 -79
- package/dist/browser/generated/operations/digitalTwins.js.map +1 -1
- package/dist/browser/generated/operations/eventRoutes.js +23 -40
- package/dist/browser/generated/operations/eventRoutes.js.map +1 -1
- package/dist/browser/generated/operations/importJobs.js +23 -40
- package/dist/browser/generated/operations/importJobs.js.map +1 -1
- package/dist/browser/generated/operations/query.js +1 -0
- package/dist/browser/generated/operations/query.js.map +1 -1
- package/dist/browser/generated/pagingHelper.js +2 -4
- package/dist/browser/generated/pagingHelper.js.map +1 -1
- package/dist/commonjs/digitalTwinsClient.js +53 -46
- package/dist/commonjs/digitalTwinsClient.js.map +1 -1
- package/dist/commonjs/generated/azureDigitalTwinsAPI.js +17 -3
- package/dist/commonjs/generated/azureDigitalTwinsAPI.js.map +1 -1
- package/dist/commonjs/generated/lroImpl.js +7 -3
- package/dist/commonjs/generated/lroImpl.js.map +1 -1
- package/dist/commonjs/generated/operations/deleteJobs.js +34 -45
- package/dist/commonjs/generated/operations/deleteJobs.js.map +1 -1
- package/dist/commonjs/generated/operations/digitalTwinModels.js +23 -39
- package/dist/commonjs/generated/operations/digitalTwinModels.js.map +1 -1
- package/dist/commonjs/generated/operations/digitalTwins.js +45 -78
- package/dist/commonjs/generated/operations/digitalTwins.js.map +1 -1
- package/dist/commonjs/generated/operations/eventRoutes.js +23 -39
- package/dist/commonjs/generated/operations/eventRoutes.js.map +1 -1
- package/dist/commonjs/generated/operations/importJobs.js +23 -39
- package/dist/commonjs/generated/operations/importJobs.js.map +1 -1
- package/dist/commonjs/generated/operations/query.js +1 -0
- package/dist/commonjs/generated/operations/query.js.map +1 -1
- package/dist/commonjs/generated/pagingHelper.js +2 -4
- package/dist/commonjs/generated/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/digitalTwinsClient.js +53 -46
- package/dist/esm/digitalTwinsClient.js.map +1 -1
- package/dist/esm/generated/azureDigitalTwinsAPI.js +17 -3
- package/dist/esm/generated/azureDigitalTwinsAPI.js.map +1 -1
- package/dist/esm/generated/lroImpl.js +7 -3
- package/dist/esm/generated/lroImpl.js.map +1 -1
- package/dist/esm/generated/operations/deleteJobs.js +34 -46
- package/dist/esm/generated/operations/deleteJobs.js.map +1 -1
- package/dist/esm/generated/operations/digitalTwinModels.js +23 -40
- package/dist/esm/generated/operations/digitalTwinModels.js.map +1 -1
- package/dist/esm/generated/operations/digitalTwins.js +45 -79
- package/dist/esm/generated/operations/digitalTwins.js.map +1 -1
- package/dist/esm/generated/operations/eventRoutes.js +23 -40
- package/dist/esm/generated/operations/eventRoutes.js.map +1 -1
- package/dist/esm/generated/operations/importJobs.js +23 -40
- package/dist/esm/generated/operations/importJobs.js.map +1 -1
- package/dist/esm/generated/operations/query.js +1 -0
- package/dist/esm/generated/operations/query.js.map +1 -1
- package/dist/esm/generated/pagingHelper.js +2 -4
- package/dist/esm/generated/pagingHelper.js.map +1 -1
- package/dist/react-native/digitalTwinsClient.js +53 -46
- package/dist/react-native/digitalTwinsClient.js.map +1 -1
- package/dist/react-native/generated/azureDigitalTwinsAPI.js +17 -3
- package/dist/react-native/generated/azureDigitalTwinsAPI.js.map +1 -1
- package/dist/react-native/generated/lroImpl.js +7 -3
- package/dist/react-native/generated/lroImpl.js.map +1 -1
- package/dist/react-native/generated/operations/deleteJobs.js +34 -46
- package/dist/react-native/generated/operations/deleteJobs.js.map +1 -1
- package/dist/react-native/generated/operations/digitalTwinModels.js +23 -40
- package/dist/react-native/generated/operations/digitalTwinModels.js.map +1 -1
- package/dist/react-native/generated/operations/digitalTwins.js +45 -79
- package/dist/react-native/generated/operations/digitalTwins.js.map +1 -1
- package/dist/react-native/generated/operations/eventRoutes.js +23 -40
- package/dist/react-native/generated/operations/eventRoutes.js.map +1 -1
- package/dist/react-native/generated/operations/importJobs.js +23 -40
- package/dist/react-native/generated/operations/importJobs.js.map +1 -1
- package/dist/react-native/generated/operations/query.js +1 -0
- package/dist/react-native/generated/operations/query.js.map +1 -1
- package/dist/react-native/generated/pagingHelper.js +2 -4
- package/dist/react-native/generated/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digitalTwins.js","sourceRoot":"","sources":["../../../../src/generated/operations/digitalTwins.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;AAkCtD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACI,iBAAiB,CACtB,EAAU,EACV,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,0BAA0B,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAA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CAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,aAAa,EAAE,OAAO,CAAC,iDAAiD;SACzE;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC;IACrE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0CAA0C,GAA6B;IAC3E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,aAAa,EACX,OAAO,CAAC,yDAAyD;SACpE;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC;IACrE,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 { DigitalTwins } 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 { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n DigitalTwinsListRelationshipsNextOptionalParams,\n DigitalTwinsListRelationshipsOptionalParams,\n DigitalTwinsListRelationshipsResponse,\n IncomingRelationship,\n DigitalTwinsListIncomingRelationshipsNextOptionalParams,\n DigitalTwinsListIncomingRelationshipsOptionalParams,\n DigitalTwinsListIncomingRelationshipsResponse,\n DigitalTwinsGetByIdOptionalParams,\n DigitalTwinsGetByIdResponse,\n DigitalTwinsAddOptionalParams,\n DigitalTwinsAddResponse,\n DigitalTwinsDeleteOptionalParams,\n DigitalTwinsUpdateOptionalParams,\n DigitalTwinsUpdateResponse,\n DigitalTwinsGetRelationshipByIdOptionalParams,\n DigitalTwinsGetRelationshipByIdResponse,\n DigitalTwinsAddRelationshipOptionalParams,\n DigitalTwinsAddRelationshipResponse,\n DigitalTwinsDeleteRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipResponse,\n DigitalTwinsSendTelemetryOptionalParams,\n DigitalTwinsSendComponentTelemetryOptionalParams,\n DigitalTwinsGetComponentOptionalParams,\n DigitalTwinsGetComponentResponse,\n DigitalTwinsUpdateComponentOptionalParams,\n DigitalTwinsUpdateComponentResponse,\n DigitalTwinsListRelationshipsNextResponse,\n DigitalTwinsListIncomingRelationshipsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DigitalTwins operations. */\nexport class DigitalTwinsImpl implements DigitalTwins {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class DigitalTwins class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves the relationships from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n public listRelationships(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n ): PagedAsyncIterableIterator<Record<string, unknown>> {\n const iter = this.listRelationshipsPagingAll(id, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listRelationshipsPagingPage(id, options, settings);\n },\n };\n }\n\n private async *listRelationshipsPagingPage(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Record<string, unknown>[]> {\n let result: DigitalTwinsListRelationshipsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listRelationships(id, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listRelationshipsNext(\n id,\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 *listRelationshipsPagingAll(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n ): AsyncIterableIterator<Record<string, unknown>> {\n for await (const page of this.listRelationshipsPagingPage(id, options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all incoming relationship for a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n public listIncomingRelationships(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n ): PagedAsyncIterableIterator<IncomingRelationship> {\n const iter = this.listIncomingRelationshipsPagingAll(id, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listIncomingRelationshipsPagingPage(id, options, settings);\n },\n };\n }\n\n private async *listIncomingRelationshipsPagingPage(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<IncomingRelationship[]> {\n let result: DigitalTwinsListIncomingRelationshipsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listIncomingRelationships(id, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listIncomingRelationshipsNext(\n id,\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 *listIncomingRelationshipsPagingAll(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n ): AsyncIterableIterator<IncomingRelationship> {\n for await (const page of this.listIncomingRelationshipsPagingPage(\n id,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: DigitalTwinsGetByIdOptionalParams,\n ): Promise<DigitalTwinsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec,\n );\n }\n\n /**\n * Adds or replaces a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or payload is invalid.\n * * ModelDecommissioned - The model for the digital twin is decommissioned.\n * * TwinLimitReached - The maximum number of digital twins allowed has been reached.\n * * ValidationFailed - The digital twin payload is not valid.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param twin The digital twin instance being added. If provided, the $dtId property is ignored.\n * @param options The options parameters.\n */\n add(\n id: string,\n twin: Record<string, unknown>,\n options?: DigitalTwinsAddOptionalParams,\n ): Promise<DigitalTwinsAddResponse> {\n return this.client.sendOperationRequest(\n { id, twin, options },\n addOperationSpec,\n );\n }\n\n /**\n * Deletes a digital twin. All relationships referencing the digital twin must already be deleted.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * RelationshipsNotDeleted - The digital twin contains relationships.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n delete(\n id: string,\n options?: DigitalTwinsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Updates a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or payload is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - Applying the patch results in an invalid digital twin.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param patchDocument An update specification described by JSON Patch. Updates to property values and\n * $model elements may happen in the same request. Operations are limited to add, replace and remove.\n * @param options The options parameters.\n */\n update(\n id: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateOptionalParams,\n ): Promise<DigitalTwinsUpdateResponse> {\n return this.client.sendOperationRequest(\n { id, patchDocument, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Retrieves a relationship between two digital twins.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param options The options parameters.\n */\n getRelationshipById(\n id: string,\n relationshipId: string,\n options?: DigitalTwinsGetRelationshipByIdOptionalParams,\n ): Promise<DigitalTwinsGetRelationshipByIdResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, options },\n getRelationshipByIdOperationSpec,\n );\n }\n\n /**\n * Adds a relationship between two digital twins.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, relationship id, or payload is invalid.\n * * InvalidRelationship - The relationship is invalid.\n * * OperationNotAllowed - The relationship cannot connect to the same digital twin.\n * * ValidationFailed - The relationship content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * TargetTwinNotFound - The digital twin target of the relationship was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param relationship The data for the relationship.\n * @param options The options parameters.\n */\n addRelationship(\n id: string,\n relationshipId: string,\n relationship: Record<string, unknown>,\n options?: DigitalTwinsAddRelationshipOptionalParams,\n ): Promise<DigitalTwinsAddRelationshipResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, relationship, options },\n addRelationshipOperationSpec,\n );\n }\n\n /**\n * Deletes a relationship between two digital twins.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param options The options parameters.\n */\n deleteRelationship(\n id: string,\n relationshipId: string,\n options?: DigitalTwinsDeleteRelationshipOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, relationshipId, options },\n deleteRelationshipOperationSpec,\n );\n }\n\n /**\n * Updates the properties on a relationship between two digital twins.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * InvalidRelationship - The relationship is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - The relationship content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * * 409 Conflict\n * * RelationshipAlreadyExists - The relationship already exists.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param patchDocument JSON Patch description of the update to the relationship properties.\n * @param options The options parameters.\n */\n updateRelationship(\n id: string,\n relationshipId: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateRelationshipOptionalParams,\n ): Promise<DigitalTwinsUpdateRelationshipResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, patchDocument, options },\n updateRelationshipOperationSpec,\n );\n }\n\n /**\n * Retrieves the relationships from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n private _listRelationships(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n ): Promise<DigitalTwinsListRelationshipsResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n listRelationshipsOperationSpec,\n );\n }\n\n /**\n * Retrieves all incoming relationship for a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n private _listIncomingRelationships(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n ): Promise<DigitalTwinsListIncomingRelationshipsResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n listIncomingRelationshipsOperationSpec,\n );\n }\n\n /**\n * Sends telemetry on behalf of a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or message id is invalid.\n * * ValidationFailed - The telemetry content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly\n * used for de-duplicating messages.\n * @param telemetry The telemetry measurements to send from the digital twin.\n * @param options The options parameters.\n */\n sendTelemetry(\n id: string,\n messageId: string,\n telemetry: Record<string, unknown>,\n options?: DigitalTwinsSendTelemetryOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, messageId, telemetry, options },\n sendTelemetryOperationSpec,\n );\n }\n\n /**\n * Sends telemetry on behalf of a component in a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, message id, or component path is invalid.\n * * ValidationFailed - The telemetry content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * ComponentNotFound - The component path was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly\n * used for de-duplicating messages.\n * @param telemetry The telemetry measurements to send from the digital twin's component.\n * @param options The options parameters.\n */\n sendComponentTelemetry(\n id: string,\n componentPath: string,\n messageId: string,\n telemetry: Record<string, unknown>,\n options?: DigitalTwinsSendComponentTelemetryOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, componentPath, messageId, telemetry, options },\n sendComponentTelemetryOperationSpec,\n );\n }\n\n /**\n * Retrieves a component from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or component path is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * ComponentNotFound - The component path was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param options The options parameters.\n */\n getComponent(\n id: string,\n componentPath: string,\n options?: DigitalTwinsGetComponentOptionalParams,\n ): Promise<DigitalTwinsGetComponentResponse> {\n return this.client.sendOperationRequest(\n { id, componentPath, options },\n getComponentOperationSpec,\n );\n }\n\n /**\n * Updates a component on a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, component path, or payload is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - Applying the patch results in an invalid digital twin.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param patchDocument An update specification described by JSON Patch. Updates to property values and\n * $model elements may happen in the same request. Operations are limited to add, replace and remove.\n * @param options The options parameters.\n */\n updateComponent(\n id: string,\n componentPath: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateComponentOptionalParams,\n ): Promise<DigitalTwinsUpdateComponentResponse> {\n return this.client.sendOperationRequest(\n { id, componentPath, patchDocument, options },\n updateComponentOperationSpec,\n );\n }\n\n /**\n * ListRelationshipsNext\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param nextLink The nextLink from the previous successful call to the ListRelationships method.\n * @param options The options parameters.\n */\n private _listRelationshipsNext(\n id: string,\n nextLink: string,\n options?: DigitalTwinsListRelationshipsNextOptionalParams,\n ): Promise<DigitalTwinsListRelationshipsNextResponse> {\n return this.client.sendOperationRequest(\n { id, nextLink, options },\n listRelationshipsNextOperationSpec,\n );\n }\n\n /**\n * ListIncomingRelationshipsNext\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param nextLink The nextLink from the previous successful call to the ListIncomingRelationships\n * method.\n * @param options The options parameters.\n */\n private _listIncomingRelationshipsNext(\n id: string,\n nextLink: string,\n options?: DigitalTwinsListIncomingRelationshipsNextOptionalParams,\n ): Promise<DigitalTwinsListIncomingRelationshipsNextResponse> {\n return this.client.sendOperationRequest(\n { id, nextLink, options },\n listIncomingRelationshipsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsGetByIdHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsGetByIdExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsAddHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsAddExceptionHeaders,\n },\n },\n requestBody: Parameters.twin,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsDeleteExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsUpdateExceptionHeaders,\n },\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getRelationshipByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsGetRelationshipByIdHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsGetRelationshipByIdExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsAddRelationshipHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsAddRelationshipExceptionHeaders,\n },\n },\n requestBody: Parameters.relationship,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsDeleteRelationshipExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst updateRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateRelationshipHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsUpdateRelationshipExceptionHeaders,\n },\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listRelationshipsOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationshipCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsListRelationshipsExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.relationshipName],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listIncomingRelationshipsOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/incomingrelationships\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncomingRelationshipCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper:\n Mappers.DigitalTwinsListIncomingRelationshipsExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendTelemetryOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/telemetry\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsSendTelemetryExceptionHeaders,\n },\n },\n requestBody: Parameters.telemetry,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.messageId,\n Parameters.telemetrySourceTime,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst sendComponentTelemetryOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}/telemetry\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsSendComponentTelemetryExceptionHeaders,\n },\n },\n requestBody: Parameters.telemetry,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.messageId,\n Parameters.telemetrySourceTime,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getComponentOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsGetComponentHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsGetComponentExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateComponentOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateComponentHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsUpdateComponentExceptionHeaders,\n },\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listRelationshipsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationshipCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsListRelationshipsNextExceptionHeaders,\n },\n },\n urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listIncomingRelationshipsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncomingRelationshipCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper:\n Mappers.DigitalTwinsListIncomingRelationshipsNextExceptionHeaders,\n },\n },\n urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"digitalTwins.js","sourceRoot":"","sources":["../../../../src/generated/operations/digitalTwins.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;AAkCtD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IACV,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACI,iBAAiB,CACtB,EAAU,EACV,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,0BAA0B,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1D,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,2BAA2B,CAAC,EAAE,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACjE,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,2BAA2B,CACxC,EAAU,EACV,OAAqD,EACrD,QAAuB;QAEvB,IAAI,MAA6C,CAAC;QAClD,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,C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* 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 { DigitalTwins } 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 { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n DigitalTwinsListRelationshipsNextOptionalParams,\n DigitalTwinsListRelationshipsOptionalParams,\n DigitalTwinsListRelationshipsResponse,\n IncomingRelationship,\n DigitalTwinsListIncomingRelationshipsNextOptionalParams,\n DigitalTwinsListIncomingRelationshipsOptionalParams,\n DigitalTwinsListIncomingRelationshipsResponse,\n DigitalTwinsGetByIdOptionalParams,\n DigitalTwinsGetByIdResponse,\n DigitalTwinsAddOptionalParams,\n DigitalTwinsAddResponse,\n DigitalTwinsDeleteOptionalParams,\n DigitalTwinsUpdateOptionalParams,\n DigitalTwinsUpdateResponse,\n DigitalTwinsGetRelationshipByIdOptionalParams,\n DigitalTwinsGetRelationshipByIdResponse,\n DigitalTwinsAddRelationshipOptionalParams,\n DigitalTwinsAddRelationshipResponse,\n DigitalTwinsDeleteRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipOptionalParams,\n DigitalTwinsUpdateRelationshipResponse,\n DigitalTwinsSendTelemetryOptionalParams,\n DigitalTwinsSendComponentTelemetryOptionalParams,\n DigitalTwinsGetComponentOptionalParams,\n DigitalTwinsGetComponentResponse,\n DigitalTwinsUpdateComponentOptionalParams,\n DigitalTwinsUpdateComponentResponse,\n DigitalTwinsListRelationshipsNextResponse,\n DigitalTwinsListIncomingRelationshipsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DigitalTwins operations. */\nexport class DigitalTwinsImpl implements DigitalTwins {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class DigitalTwins class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves the relationships from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n public listRelationships(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n ): PagedAsyncIterableIterator<Record<string, unknown>> {\n const iter = this.listRelationshipsPagingAll(id, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listRelationshipsPagingPage(id, options, settings);\n },\n };\n }\n\n private async *listRelationshipsPagingPage(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Record<string, unknown>[]> {\n let result: DigitalTwinsListRelationshipsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listRelationships(id, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listRelationshipsNext(\n id,\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 *listRelationshipsPagingAll(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n ): AsyncIterableIterator<Record<string, unknown>> {\n for await (const page of this.listRelationshipsPagingPage(id, options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all incoming relationship for a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n public listIncomingRelationships(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n ): PagedAsyncIterableIterator<IncomingRelationship> {\n const iter = this.listIncomingRelationshipsPagingAll(id, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listIncomingRelationshipsPagingPage(id, options, settings);\n },\n };\n }\n\n private async *listIncomingRelationshipsPagingPage(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<IncomingRelationship[]> {\n let result: DigitalTwinsListIncomingRelationshipsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listIncomingRelationships(id, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listIncomingRelationshipsNext(\n id,\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 *listIncomingRelationshipsPagingAll(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n ): AsyncIterableIterator<IncomingRelationship> {\n for await (const page of this.listIncomingRelationshipsPagingPage(\n id,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: DigitalTwinsGetByIdOptionalParams,\n ): Promise<DigitalTwinsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec,\n );\n }\n\n /**\n * Adds or replaces a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or payload is invalid.\n * * ModelDecommissioned - The model for the digital twin is decommissioned.\n * * TwinLimitReached - The maximum number of digital twins allowed has been reached.\n * * ValidationFailed - The digital twin payload is not valid.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param twin The digital twin instance being added. If provided, the $dtId property is ignored.\n * @param options The options parameters.\n */\n add(\n id: string,\n twin: Record<string, unknown>,\n options?: DigitalTwinsAddOptionalParams,\n ): Promise<DigitalTwinsAddResponse> {\n return this.client.sendOperationRequest(\n { id, twin, options },\n addOperationSpec,\n );\n }\n\n /**\n * Deletes a digital twin. All relationships referencing the digital twin must already be deleted.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * RelationshipsNotDeleted - The digital twin contains relationships.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n delete(\n id: string,\n options?: DigitalTwinsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Updates a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or payload is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - Applying the patch results in an invalid digital twin.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param patchDocument An update specification described by JSON Patch. Updates to property values and\n * $model elements may happen in the same request. Operations are limited to add, replace and remove.\n * @param options The options parameters.\n */\n update(\n id: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateOptionalParams,\n ): Promise<DigitalTwinsUpdateResponse> {\n return this.client.sendOperationRequest(\n { id, patchDocument, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Retrieves a relationship between two digital twins.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param options The options parameters.\n */\n getRelationshipById(\n id: string,\n relationshipId: string,\n options?: DigitalTwinsGetRelationshipByIdOptionalParams,\n ): Promise<DigitalTwinsGetRelationshipByIdResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, options },\n getRelationshipByIdOperationSpec,\n );\n }\n\n /**\n * Adds a relationship between two digital twins.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, relationship id, or payload is invalid.\n * * InvalidRelationship - The relationship is invalid.\n * * OperationNotAllowed - The relationship cannot connect to the same digital twin.\n * * ValidationFailed - The relationship content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * TargetTwinNotFound - The digital twin target of the relationship was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param relationship The data for the relationship.\n * @param options The options parameters.\n */\n addRelationship(\n id: string,\n relationshipId: string,\n relationship: Record<string, unknown>,\n options?: DigitalTwinsAddRelationshipOptionalParams,\n ): Promise<DigitalTwinsAddRelationshipResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, relationship, options },\n addRelationshipOperationSpec,\n );\n }\n\n /**\n * Deletes a relationship between two digital twins.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param options The options parameters.\n */\n deleteRelationship(\n id: string,\n relationshipId: string,\n options?: DigitalTwinsDeleteRelationshipOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, relationshipId, options },\n deleteRelationshipOperationSpec,\n );\n }\n\n /**\n * Updates the properties on a relationship between two digital twins.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or relationship id is invalid.\n * * InvalidRelationship - The relationship is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - The relationship content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * RelationshipNotFound - The relationship was not found.\n * * 409 Conflict\n * * RelationshipAlreadyExists - The relationship already exists.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param relationshipId The id of the relationship. The id is unique within the digital twin and case\n * sensitive.\n * @param patchDocument JSON Patch description of the update to the relationship properties.\n * @param options The options parameters.\n */\n updateRelationship(\n id: string,\n relationshipId: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateRelationshipOptionalParams,\n ): Promise<DigitalTwinsUpdateRelationshipResponse> {\n return this.client.sendOperationRequest(\n { id, relationshipId, patchDocument, options },\n updateRelationshipOperationSpec,\n );\n }\n\n /**\n * Retrieves the relationships from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n private _listRelationships(\n id: string,\n options?: DigitalTwinsListRelationshipsOptionalParams,\n ): Promise<DigitalTwinsListRelationshipsResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n listRelationshipsOperationSpec,\n );\n }\n\n /**\n * Retrieves all incoming relationship for a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n private _listIncomingRelationships(\n id: string,\n options?: DigitalTwinsListIncomingRelationshipsOptionalParams,\n ): Promise<DigitalTwinsListIncomingRelationshipsResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n listIncomingRelationshipsOperationSpec,\n );\n }\n\n /**\n * Sends telemetry on behalf of a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or message id is invalid.\n * * ValidationFailed - The telemetry content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly\n * used for de-duplicating messages.\n * @param telemetry The telemetry measurements to send from the digital twin.\n * @param options The options parameters.\n */\n sendTelemetry(\n id: string,\n messageId: string,\n telemetry: Record<string, unknown>,\n options?: DigitalTwinsSendTelemetryOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, messageId, telemetry, options },\n sendTelemetryOperationSpec,\n );\n }\n\n /**\n * Sends telemetry on behalf of a component in a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, message id, or component path is invalid.\n * * ValidationFailed - The telemetry content is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * ComponentNotFound - The component path was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param messageId A unique message identifier (in the scope of the digital twin id) that is commonly\n * used for de-duplicating messages.\n * @param telemetry The telemetry measurements to send from the digital twin's component.\n * @param options The options parameters.\n */\n sendComponentTelemetry(\n id: string,\n componentPath: string,\n messageId: string,\n telemetry: Record<string, unknown>,\n options?: DigitalTwinsSendComponentTelemetryOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, componentPath, messageId, telemetry, options },\n sendComponentTelemetryOperationSpec,\n );\n }\n\n /**\n * Retrieves a component from a digital twin.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id or component path is invalid.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * ComponentNotFound - The component path was not found.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param options The options parameters.\n */\n getComponent(\n id: string,\n componentPath: string,\n options?: DigitalTwinsGetComponentOptionalParams,\n ): Promise<DigitalTwinsGetComponentResponse> {\n return this.client.sendOperationRequest(\n { id, componentPath, options },\n getComponentOperationSpec,\n );\n }\n\n /**\n * Updates a component on a digital twin.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The digital twin id, component path, or payload is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * ValidationFailed - Applying the patch results in an invalid digital twin.\n * * 404 Not Found\n * * DigitalTwinNotFound - The digital twin was not found.\n * * 412 Precondition Failed\n * * PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param componentPath The name of the DTDL component.\n * @param patchDocument An update specification described by JSON Patch. Updates to property values and\n * $model elements may happen in the same request. Operations are limited to add, replace and remove.\n * @param options The options parameters.\n */\n updateComponent(\n id: string,\n componentPath: string,\n patchDocument: Record<string, unknown>[],\n options?: DigitalTwinsUpdateComponentOptionalParams,\n ): Promise<DigitalTwinsUpdateComponentResponse> {\n return this.client.sendOperationRequest(\n { id, componentPath, patchDocument, options },\n updateComponentOperationSpec,\n );\n }\n\n /**\n * ListRelationshipsNext\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param nextLink The nextLink from the previous successful call to the ListRelationships method.\n * @param options The options parameters.\n */\n private _listRelationshipsNext(\n id: string,\n nextLink: string,\n options?: DigitalTwinsListRelationshipsNextOptionalParams,\n ): Promise<DigitalTwinsListRelationshipsNextResponse> {\n return this.client.sendOperationRequest(\n { id, nextLink, options },\n listRelationshipsNextOperationSpec,\n );\n }\n\n /**\n * ListIncomingRelationshipsNext\n * @param id The id of the digital twin. The id is unique within the service and case sensitive.\n * @param nextLink The nextLink from the previous successful call to the ListIncomingRelationships\n * method.\n * @param options The options parameters.\n */\n private _listIncomingRelationshipsNext(\n id: string,\n nextLink: string,\n options?: DigitalTwinsListIncomingRelationshipsNextOptionalParams,\n ): Promise<DigitalTwinsListIncomingRelationshipsNextResponse> {\n return this.client.sendOperationRequest(\n { id, nextLink, options },\n listIncomingRelationshipsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsGetByIdHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsGetByIdExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsAddHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsAddExceptionHeaders,\n },\n },\n requestBody: Parameters.twin,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsDeleteExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsUpdateExceptionHeaders,\n },\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getRelationshipByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsGetRelationshipByIdHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsGetRelationshipByIdExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsAddRelationshipHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsAddRelationshipExceptionHeaders,\n },\n },\n requestBody: Parameters.relationship,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsDeleteRelationshipExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst updateRelationshipOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships/{relationshipId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateRelationshipHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsUpdateRelationshipExceptionHeaders,\n },\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.relationshipId],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listRelationshipsOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/relationships\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationshipCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsListRelationshipsExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.relationshipName],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listIncomingRelationshipsOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/incomingrelationships\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncomingRelationshipCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper:\n Mappers.DigitalTwinsListIncomingRelationshipsExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendTelemetryOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/telemetry\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsSendTelemetryExceptionHeaders,\n },\n },\n requestBody: Parameters.telemetry,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.messageId,\n Parameters.telemetrySourceTime,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst sendComponentTelemetryOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}/telemetry\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsSendComponentTelemetryExceptionHeaders,\n },\n },\n requestBody: Parameters.telemetry,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.messageId,\n Parameters.telemetrySourceTime,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getComponentOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n headersMapper: Mappers.DigitalTwinsGetComponentHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsGetComponentExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateComponentOperationSpec: coreClient.OperationSpec = {\n path: \"/digitaltwins/{id}/components/{componentPath}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {\n headersMapper: Mappers.DigitalTwinsUpdateComponentHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsUpdateComponentExceptionHeaders,\n },\n },\n requestBody: Parameters.patchDocument,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id, Parameters.componentPath],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType1,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listRelationshipsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RelationshipCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.DigitalTwinsListRelationshipsNextExceptionHeaders,\n },\n },\n urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listIncomingRelationshipsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IncomingRelationshipCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper:\n Mappers.DigitalTwinsListIncomingRelationshipsNextExceptionHeaders,\n },\n },\n urlParameters: [Parameters.$host, Parameters.id, Parameters.nextLink],\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 EventRoutes operations. */
|
|
15
14
|
export class EventRoutesImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class EventRoutes class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class EventRoutesImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listPagingAll(options) {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Retrieves all event routes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventRoutes.js","sourceRoot":"","sources":["../../../../src/generated/operations/eventRoutes.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;AActD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAuC,EACvC,QAAuB;;YAEvB,IAAI,MAA+B,CAAC;YACpC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBA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AChD,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;YACjC,aAAa,EAAE,OAAO,CAAC,mCAAmC;SAC3D;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,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 { EventRoutes } 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 { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n EventRoute,\n EventRoutesListNextOptionalParams,\n EventRoutesListOptionalParams,\n EventRoutesListResponse,\n EventRoutesGetByIdOptionalParams,\n EventRoutesGetByIdResponse,\n EventRoutesAddOptionalParams,\n EventRoutesDeleteOptionalParams,\n EventRoutesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EventRoutes operations. */\nexport class EventRoutesImpl implements EventRoutes {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class EventRoutes class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves all event routes.\n * Status codes:\n * * 200 OK\n * @param options The options parameters.\n */\n public list(\n options?: EventRoutesListOptionalParams,\n ): PagedAsyncIterableIterator<EventRoute> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: EventRoutesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EventRoute[]> {\n let result: EventRoutesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: EventRoutesListOptionalParams,\n ): AsyncIterableIterator<EventRoute> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all event routes.\n * Status codes:\n * * 200 OK\n * @param options The options parameters.\n */\n private _list(\n options?: EventRoutesListOptionalParams,\n ): Promise<EventRoutesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Retrieves an event route.\n * Status codes:\n * * 200 OK\n * * 404 Not Found\n * * EventRouteNotFound - The event route was not found.\n * @param id The id for an event route. The id is unique within event routes and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: EventRoutesGetByIdOptionalParams,\n ): Promise<EventRoutesGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec,\n );\n }\n\n /**\n * Adds or replaces an event route.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * EventRouteEndpointInvalid - The endpoint provided does not exist or is not active.\n * * EventRouteFilterInvalid - The event route filter is invalid.\n * * EventRouteIdInvalid - The event route id is invalid.\n * * LimitExceeded - The maximum number of event routes allowed has been reached.\n * @param id The id for an event route. The id is unique within event routes and case sensitive.\n * @param eventRoute The event route data\n * @param options The options parameters.\n */\n add(\n id: string,\n eventRoute: EventRoute,\n options?: EventRoutesAddOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, eventRoute, options },\n addOperationSpec,\n );\n }\n\n /**\n * Deletes an event route.\n * Status codes:\n * * 204 No Content\n * * 404 Not Found\n * * EventRouteNotFound - The event route was not found.\n * @param id The id for an event route. The id is unique within event routes and case sensitive.\n * @param options The options parameters.\n */\n delete(id: string, options?: EventRoutesDeleteOptionalParams): Promise<void> {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: EventRoutesListNextOptionalParams,\n ): Promise<EventRoutesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/eventroutes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventRouteCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesListExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer,\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/eventroutes/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventRoute,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesGetByIdExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/eventroutes/{id}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesAddExceptionHeaders,\n },\n },\n requestBody: Parameters.eventRoute,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/eventroutes/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesDeleteExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventRouteCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesListNextExceptionHeaders,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"eventRoutes.js","sourceRoot":"","sources":["../../../../src/generated/operations/eventRoutes.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,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a,EAAE,OAAO,CAAC,8BAA8B;SACtD;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC;IAChD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,mBAAmB;IACzB,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,aAAa,EAAE,OAAO,CAAC,iCAAiC;SACzD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC;IAChD,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;YACjC,aAAa,EAAE,OAAO,CAAC,mCAAmC;SAC3D;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,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 { EventRoutes } 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 { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n EventRoute,\n EventRoutesListNextOptionalParams,\n EventRoutesListOptionalParams,\n EventRoutesListResponse,\n EventRoutesGetByIdOptionalParams,\n EventRoutesGetByIdResponse,\n EventRoutesAddOptionalParams,\n EventRoutesDeleteOptionalParams,\n EventRoutesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EventRoutes operations. */\nexport class EventRoutesImpl implements EventRoutes {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class EventRoutes class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves all event routes.\n * Status codes:\n * * 200 OK\n * @param options The options parameters.\n */\n public list(\n options?: EventRoutesListOptionalParams,\n ): PagedAsyncIterableIterator<EventRoute> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: EventRoutesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EventRoute[]> {\n let result: EventRoutesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: EventRoutesListOptionalParams,\n ): AsyncIterableIterator<EventRoute> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all event routes.\n * Status codes:\n * * 200 OK\n * @param options The options parameters.\n */\n private _list(\n options?: EventRoutesListOptionalParams,\n ): Promise<EventRoutesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Retrieves an event route.\n * Status codes:\n * * 200 OK\n * * 404 Not Found\n * * EventRouteNotFound - The event route was not found.\n * @param id The id for an event route. The id is unique within event routes and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: EventRoutesGetByIdOptionalParams,\n ): Promise<EventRoutesGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec,\n );\n }\n\n /**\n * Adds or replaces an event route.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * EventRouteEndpointInvalid - The endpoint provided does not exist or is not active.\n * * EventRouteFilterInvalid - The event route filter is invalid.\n * * EventRouteIdInvalid - The event route id is invalid.\n * * LimitExceeded - The maximum number of event routes allowed has been reached.\n * @param id The id for an event route. The id is unique within event routes and case sensitive.\n * @param eventRoute The event route data\n * @param options The options parameters.\n */\n add(\n id: string,\n eventRoute: EventRoute,\n options?: EventRoutesAddOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, eventRoute, options },\n addOperationSpec,\n );\n }\n\n /**\n * Deletes an event route.\n * Status codes:\n * * 204 No Content\n * * 404 Not Found\n * * EventRouteNotFound - The event route was not found.\n * @param id The id for an event route. The id is unique within event routes and case sensitive.\n * @param options The options parameters.\n */\n delete(id: string, options?: EventRoutesDeleteOptionalParams): Promise<void> {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: EventRoutesListNextOptionalParams,\n ): Promise<EventRoutesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/eventroutes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventRouteCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesListExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer,\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/eventroutes/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventRoute,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesGetByIdExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/eventroutes/{id}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesAddExceptionHeaders,\n },\n },\n requestBody: Parameters.eventRoute,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/eventroutes/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesDeleteExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventRouteCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.EventRoutesListNextExceptionHeaders,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\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 ImportJobs operations. */
|
|
15
14
|
export class ImportJobsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ImportJobs class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class ImportJobsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listPagingAll(options) {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Retrieves all import jobs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importJobs.js","sourceRoot":"","sources":["../../../../src/generated/operations/importJobs.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,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC,EACtC,QAAuB;;YAEvB,IAAI,MAA8B,CAAC;YACnC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC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AAC,aAAa;YACjC,aAAa,EAAE,OAAO,CAAC,gCAAgC;SACxD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC;IAChD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,aAAa,EAAE,OAAO,CAAC,gCAAgC;SACxD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC;IAChD,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,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,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 { ImportJobs } 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 { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n ImportJob,\n ImportJobsListNextOptionalParams,\n ImportJobsListOptionalParams,\n ImportJobsListResponse,\n ImportJobsAddOptionalParams,\n ImportJobsAddResponse,\n ImportJobsGetByIdOptionalParams,\n ImportJobsGetByIdResponse,\n ImportJobsDeleteOptionalParams,\n ImportJobsCancelOptionalParams,\n ImportJobsCancelResponse,\n ImportJobsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ImportJobs operations. */\nexport class ImportJobsImpl implements ImportJobs {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class ImportJobs class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves all import jobs.\n * Status codes:\n * * 200 OK\n * @param options The options parameters.\n */\n public list(\n options?: ImportJobsListOptionalParams,\n ): PagedAsyncIterableIterator<ImportJob> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ImportJobsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ImportJob[]> {\n let result: ImportJobsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ImportJobsListOptionalParams,\n ): AsyncIterableIterator<ImportJob> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all import jobs.\n * Status codes:\n * * 200 OK\n * @param options The options parameters.\n */\n private _list(\n options?: ImportJobsListOptionalParams,\n ): Promise<ImportJobsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Creates an import job.\n * Status codes:\n * * 201 Created\n * * 400 Bad Request\n * * JobLimitReached - The maximum number of import jobs allowed has been reached.\n * * ValidationFailed - The import job request is not valid.\n * @param id The id for the import job. The id is unique within the service and case sensitive.\n * @param importJob The import job being added.\n * @param options The options parameters.\n */\n add(\n id: string,\n importJob: ImportJob,\n options?: ImportJobsAddOptionalParams,\n ): Promise<ImportJobsAddResponse> {\n return this.client.sendOperationRequest(\n { id, importJob, options },\n addOperationSpec,\n );\n }\n\n /**\n * Retrieves an import job.\n * Status codes:\n * * 200 OK\n * * 404 Not Found\n * * ImportJobNotFound - The import job was not found.\n * @param id The id for the import job. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: ImportJobsGetByIdOptionalParams,\n ): Promise<ImportJobsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec,\n );\n }\n\n /**\n * Deletes an import job. This is simply used to remove a job id, so it may be reused later. It can not\n * be used to stop entities from being imported.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * ValidationFailed - The import job request is not valid.\n * @param id The id for the import job. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n delete(id: string, options?: ImportJobsDeleteOptionalParams): Promise<void> {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Cancels an import job that is currently running. Service will stop any import operations triggered\n * by the current import job that are in progress, and go to a cancelled state. Please note that this\n * will leave your instance in an unknown state as there won't be any rollback operation.\n * Status codes:\n * * 200 Request Accepted\n * * 400 Bad Request\n * * ValidationFailed - The import job request is not valid.\n * @param id The id for the import job. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n cancel(\n id: string,\n options?: ImportJobsCancelOptionalParams,\n ): Promise<ImportJobsCancelResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n cancelOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ImportJobsListNextOptionalParams,\n ): Promise<ImportJobsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJobCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsListExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports/{id}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsAddExceptionHeaders,\n },\n },\n requestBody: Parameters.importJob,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsGetByIdExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsDeleteExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports/{id}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsCancelExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJobCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsListNextExceptionHeaders,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"importJobs.js","sourceRoot":"","sources":["../../../../src/generated/operations/importJobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,O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,OAAO,CAAC,gCAAgC;SACxD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC;IAChD,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,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,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 { ImportJobs } 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 { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n ImportJob,\n ImportJobsListNextOptionalParams,\n ImportJobsListOptionalParams,\n ImportJobsListResponse,\n ImportJobsAddOptionalParams,\n ImportJobsAddResponse,\n ImportJobsGetByIdOptionalParams,\n ImportJobsGetByIdResponse,\n ImportJobsDeleteOptionalParams,\n ImportJobsCancelOptionalParams,\n ImportJobsCancelResponse,\n ImportJobsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ImportJobs operations. */\nexport class ImportJobsImpl implements ImportJobs {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class ImportJobs class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves all import jobs.\n * Status codes:\n * * 200 OK\n * @param options The options parameters.\n */\n public list(\n options?: ImportJobsListOptionalParams,\n ): PagedAsyncIterableIterator<ImportJob> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ImportJobsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ImportJob[]> {\n let result: ImportJobsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ImportJobsListOptionalParams,\n ): AsyncIterableIterator<ImportJob> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves all import jobs.\n * Status codes:\n * * 200 OK\n * @param options The options parameters.\n */\n private _list(\n options?: ImportJobsListOptionalParams,\n ): Promise<ImportJobsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Creates an import job.\n * Status codes:\n * * 201 Created\n * * 400 Bad Request\n * * JobLimitReached - The maximum number of import jobs allowed has been reached.\n * * ValidationFailed - The import job request is not valid.\n * @param id The id for the import job. The id is unique within the service and case sensitive.\n * @param importJob The import job being added.\n * @param options The options parameters.\n */\n add(\n id: string,\n importJob: ImportJob,\n options?: ImportJobsAddOptionalParams,\n ): Promise<ImportJobsAddResponse> {\n return this.client.sendOperationRequest(\n { id, importJob, options },\n addOperationSpec,\n );\n }\n\n /**\n * Retrieves an import job.\n * Status codes:\n * * 200 OK\n * * 404 Not Found\n * * ImportJobNotFound - The import job was not found.\n * @param id The id for the import job. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: ImportJobsGetByIdOptionalParams,\n ): Promise<ImportJobsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec,\n );\n }\n\n /**\n * Deletes an import job. This is simply used to remove a job id, so it may be reused later. It can not\n * be used to stop entities from being imported.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * ValidationFailed - The import job request is not valid.\n * @param id The id for the import job. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n delete(id: string, options?: ImportJobsDeleteOptionalParams): Promise<void> {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Cancels an import job that is currently running. Service will stop any import operations triggered\n * by the current import job that are in progress, and go to a cancelled state. Please note that this\n * will leave your instance in an unknown state as there won't be any rollback operation.\n * Status codes:\n * * 200 Request Accepted\n * * 400 Bad Request\n * * ValidationFailed - The import job request is not valid.\n * @param id The id for the import job. The id is unique within the service and case sensitive.\n * @param options The options parameters.\n */\n cancel(\n id: string,\n options?: ImportJobsCancelOptionalParams,\n ): Promise<ImportJobsCancelResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n cancelOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ImportJobsListNextOptionalParams,\n ): Promise<ImportJobsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJobCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsListExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports/{id}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsAddExceptionHeaders,\n },\n },\n requestBody: Parameters.importJob,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsGetByIdExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsDeleteExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/jobs/imports/{id}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsCancelExceptionHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJobCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.ImportJobsListNextExceptionHeaders,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer,\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Query operations. */
|
|
12
12
|
export class QueryImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Query class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/generated/operations/query.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,yCAAyC;AACzC,MAAM,OAAO,SAAS;
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/generated/operations/query.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,UAAU,CACR,kBAAsC,EACtC,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAC/B,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;YAC/B,aAAa,EAAE,OAAO,CAAC,sBAAsB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,aAAa,EAAE,OAAO,CAAC,+BAA+B;SACvD;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE;QAChB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,cAAc;KAC1B;IACD,SAAS,EAAE,MAAM;IACjB,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 { Query } 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 { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI.js\";\nimport {\n QuerySpecification,\n QueryQueryTwinsOptionalParams,\n QueryQueryTwinsResponse,\n} from \"../models/index.js\";\n\n/** Class containing Query operations. */\nexport class QueryImpl implements Query {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class Query class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Executes a query that allows traversing relationships and filtering by property values.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * BadRequest - The continuation token is invalid.\n * * SqlQueryError - The query contains some errors.\n * * TimeoutError - The query execution timed out after 60 seconds. Try simplifying the query or\n * adding conditions to reduce the result size.\n * * 429 Too Many Requests\n * * QuotaReachedError - The maximum query rate limit has been reached.\n * @param querySpecification The query specification to execute.\n * @param options The options parameters.\n */\n queryTwins(\n querySpecification: QuerySpecification,\n options?: QueryQueryTwinsOptionalParams,\n ): Promise<QueryQueryTwinsResponse> {\n return this.client.sendOperationRequest(\n { querySpecification, options },\n queryTwinsOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst queryTwinsOperationSpec: coreClient.OperationSpec = {\n path: \"/query\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryResult,\n headersMapper: Mappers.QueryQueryTwinsHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n headersMapper: Mappers.QueryQueryTwinsExceptionHeaders,\n },\n },\n requestBody: Parameters.querySpecification,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.resultsPerPage,\n ],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|