@azure/digital-twins-core 1.1.1-alpha.20221017.1 → 2.0.0-alpha.20230111.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +7 -7
  2. package/dist/index.js +575 -610
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/constants.js +1 -1
  5. package/dist-esm/src/constants.js.map +1 -1
  6. package/dist-esm/src/digitalTwinsClient.js +69 -364
  7. package/dist-esm/src/digitalTwinsClient.js.map +1 -1
  8. package/dist-esm/src/generated/azureDigitalTwinsAPI.js +52 -13
  9. package/dist-esm/src/generated/azureDigitalTwinsAPI.js.map +1 -1
  10. package/dist-esm/src/generated/index.js +13 -0
  11. package/dist-esm/src/generated/index.js.map +1 -0
  12. package/dist-esm/src/generated/models/index.js.map +1 -1
  13. package/dist-esm/src/generated/models/mappers.js +35 -7
  14. package/dist-esm/src/generated/models/mappers.js.map +1 -1
  15. package/dist-esm/src/generated/models/parameters.js +45 -30
  16. package/dist-esm/src/generated/models/parameters.js.map +1 -1
  17. package/dist-esm/src/generated/operations/digitalTwinModels.js +87 -47
  18. package/dist-esm/src/generated/operations/digitalTwinModels.js.map +1 -1
  19. package/dist-esm/src/generated/operations/digitalTwins.js +190 -80
  20. package/dist-esm/src/generated/operations/digitalTwins.js.map +1 -1
  21. package/dist-esm/src/generated/operations/eventRoutes.js +79 -35
  22. package/dist-esm/src/generated/operations/eventRoutes.js.map +1 -1
  23. package/dist-esm/src/generated/operations/query.js +10 -12
  24. package/dist-esm/src/generated/operations/query.js.map +1 -1
  25. package/dist-esm/src/generated/operationsInterfaces/digitalTwinModels.js +9 -0
  26. package/dist-esm/src/generated/operationsInterfaces/digitalTwinModels.js.map +1 -0
  27. package/dist-esm/src/generated/operationsInterfaces/digitalTwins.js +9 -0
  28. package/dist-esm/src/generated/operationsInterfaces/digitalTwins.js.map +1 -0
  29. package/dist-esm/src/generated/operationsInterfaces/eventRoutes.js +9 -0
  30. package/dist-esm/src/generated/operationsInterfaces/eventRoutes.js.map +1 -0
  31. package/dist-esm/src/generated/operationsInterfaces/index.js +12 -0
  32. package/dist-esm/src/generated/operationsInterfaces/index.js.map +1 -0
  33. package/dist-esm/src/generated/operationsInterfaces/query.js +9 -0
  34. package/dist-esm/src/generated/operationsInterfaces/query.js.map +1 -0
  35. package/dist-esm/src/generated/pagingHelper.js +32 -0
  36. package/dist-esm/src/generated/pagingHelper.js.map +1 -0
  37. package/dist-esm/src/index.js +1 -1
  38. package/dist-esm/src/index.js.map +1 -1
  39. package/package.json +13 -11
  40. package/types/digital-twins-core.d.ts +196 -693
  41. package/dist-esm/src/generated/azureDigitalTwinsAPIContext.js +0 -35
  42. package/dist-esm/src/generated/azureDigitalTwinsAPIContext.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../src/generated/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,qBAAqB,GAA6B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,uBAAuB;QAClC,eAAe,EAAE;YACf,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF;YACD,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF;YACD,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc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AI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,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 * as coreHttp from \"@azure/core-http\";\n\nexport const DigitalTwinsModelData: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsModelData\",\n modelProperties: {\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n uploadTime: {\n serializedName: \"uploadTime\",\n type: {\n name: \"DateTime\"\n }\n },\n decommissioned: {\n serializedName: \"decommissioned\",\n type: {\n name: \"Boolean\"\n }\n },\n model: {\n serializedName: \"model\",\n type: {\n name: \"any\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"ErrorModel\" } }\n }\n },\n innererror: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"InnerError\"\n }\n }\n }\n }\n};\n\nexport const InnerError: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InnerError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n innererror: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"InnerError\"\n }\n }\n }\n }\n};\n\nexport const PagedDigitalTwinsModelDataCollection: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PagedDigitalTwinsModelDataCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"DigitalTwinsModelData\" }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const QuerySpecification: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QuerySpecification\",\n modelProperties: {\n query: {\n serializedName: \"query\",\n type: {\n name: \"String\"\n }\n },\n continuationToken: {\n serializedName: \"continuationToken\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const QueryResult: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QueryResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n },\n continuationToken: {\n serializedName: \"continuationToken\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const RelationshipCollection: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RelationshipCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const IncomingRelationshipCollection: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"IncomingRelationshipCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"IncomingRelationship\" }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const IncomingRelationship: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"IncomingRelationship\",\n modelProperties: {\n relationshipId: {\n serializedName: \"$relationshipId\",\n type: {\n name: \"String\"\n }\n },\n sourceId: {\n serializedName: \"$sourceId\",\n type: {\n name: \"String\"\n }\n },\n relationshipName: {\n serializedName: \"$relationshipName\",\n type: {\n name: \"String\"\n }\n },\n relationshipLink: {\n serializedName: \"$relationshipLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EventRouteCollection: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EventRouteCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EventRoute\" } }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EventRoute: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EventRoute\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n endpointName: {\n serializedName: \"endpointName\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n filter: {\n serializedName: \"filter\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const QueryQueryTwinsHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QueryQueryTwinsHeaders\",\n modelProperties: {\n queryCharge: {\n serializedName: \"query-charge\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsGetByIdHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsGetByIdHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsAddHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsAddHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsUpdateHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsUpdateHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsGetRelationshipByIdHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsGetRelationshipByIdHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsAddRelationshipHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsAddRelationshipHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsUpdateRelationshipHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsUpdateRelationshipHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsGetComponentHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsGetComponentHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsUpdateComponentHeaders: coreHttp.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsUpdateComponentHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":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ACF,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAA+B;IAC5E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oCAAoC;QAC/C,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAA+B;IAC/E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,uCAAuC;QAClD,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAA+B;IACzE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,iCAAiC;QAC5C,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAA+B;IAC5E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oCAAoC;QAC/C,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const DigitalTwinsModelData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsModelData\",\n modelProperties: {\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n uploadTime: {\n serializedName: \"uploadTime\",\n type: {\n name: \"DateTime\"\n }\n },\n decommissioned: {\n defaultValue: false,\n serializedName: \"decommissioned\",\n type: {\n name: \"Boolean\"\n }\n },\n model: {\n serializedName: \"model\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n }\n};\n\nexport const ErrorModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorModel\"\n }\n }\n }\n },\n innererror: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"InnerError\"\n }\n }\n }\n }\n};\n\nexport const InnerError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InnerError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n innererror: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"InnerError\"\n }\n }\n }\n }\n};\n\nexport const PagedDigitalTwinsModelDataCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PagedDigitalTwinsModelDataCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsModelData\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const QuerySpecification: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QuerySpecification\",\n modelProperties: {\n query: {\n serializedName: \"query\",\n type: {\n name: \"String\"\n }\n },\n continuationToken: {\n serializedName: \"continuationToken\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const QueryResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QueryResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n },\n continuationToken: {\n serializedName: \"continuationToken\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const RelationshipCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RelationshipCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const IncomingRelationshipCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"IncomingRelationshipCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"IncomingRelationship\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const IncomingRelationship: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"IncomingRelationship\",\n modelProperties: {\n relationshipId: {\n serializedName: \"$relationshipId\",\n type: {\n name: \"String\"\n }\n },\n sourceId: {\n serializedName: \"$sourceId\",\n type: {\n name: \"String\"\n }\n },\n relationshipName: {\n serializedName: \"$relationshipName\",\n type: {\n name: \"String\"\n }\n },\n relationshipLink: {\n serializedName: \"$relationshipLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EventRouteCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EventRouteCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"EventRoute\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EventRoute: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"EventRoute\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n endpointName: {\n serializedName: \"endpointName\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n filter: {\n serializedName: \"filter\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const QueryQueryTwinsHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"QueryQueryTwinsHeaders\",\n modelProperties: {\n queryCharge: {\n serializedName: \"query-charge\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsGetByIdHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsGetByIdHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsAddHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsAddHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsUpdateHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsUpdateHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsGetRelationshipByIdHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsGetRelationshipByIdHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsAddRelationshipHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsAddRelationshipHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsUpdateRelationshipHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsUpdateRelationshipHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsGetComponentHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsGetComponentHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsUpdateComponentHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsUpdateComponentHeaders\",\n modelProperties: {\n etag: {\n serializedName: \"etag\",\n type: {\n name: \"String\"\n }\n }\n }\n }\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 { QueryCollectionFormat } from "@azure/core-http";
9
8
  import { QuerySpecification as QuerySpecificationMapper, EventRoute as EventRouteMapper } from "../models/mappers";
10
9
  export const contentType = {
11
10
  parameterPath: ["options", "contentType"],
@@ -28,43 +27,41 @@ export const models = {
28
27
  serializedName: "models",
29
28
  type: {
30
29
  name: "Sequence",
31
- element: { type: { name: "any" } }
30
+ element: {
31
+ type: {
32
+ name: "Dictionary",
33
+ value: { type: { name: "any" } }
34
+ }
35
+ }
32
36
  }
33
37
  }
34
38
  };
35
- export const $host = {
36
- parameterPath: "$host",
37
- mapper: {
38
- serializedName: "$host",
39
- required: true,
40
- type: {
41
- name: "String"
42
- }
43
- },
44
- skipEncoding: true
45
- };
46
- export const traceparent = {
47
- parameterPath: ["options", "traceparent"],
39
+ export const accept = {
40
+ parameterPath: "accept",
48
41
  mapper: {
49
- serializedName: "traceparent",
42
+ defaultValue: "application/json",
43
+ isConstant: true,
44
+ serializedName: "Accept",
50
45
  type: {
51
46
  name: "String"
52
47
  }
53
48
  }
54
49
  };
55
- export const tracestate = {
56
- parameterPath: ["options", "tracestate"],
50
+ export const $host = {
51
+ parameterPath: "$host",
57
52
  mapper: {
58
- serializedName: "tracestate",
53
+ serializedName: "$host",
54
+ required: true,
59
55
  type: {
60
56
  name: "String"
61
57
  }
62
- }
58
+ },
59
+ skipEncoding: true
63
60
  };
64
61
  export const apiVersion = {
65
62
  parameterPath: "apiVersion",
66
63
  mapper: {
67
- defaultValue: "2022-05-31",
64
+ defaultValue: "2020-10-31",
68
65
  isConstant: true,
69
66
  serializedName: "api-version",
70
67
  type: {
@@ -78,22 +75,27 @@ export const dependenciesFor = {
78
75
  serializedName: "dependenciesFor",
79
76
  type: {
80
77
  name: "Sequence",
81
- element: { type: { name: "String" } }
78
+ element: {
79
+ type: {
80
+ name: "String"
81
+ }
82
+ }
82
83
  }
83
84
  },
84
- collectionFormat: QueryCollectionFormat.Csv
85
+ collectionFormat: "Multi"
85
86
  };
86
87
  export const includeModelDefinition = {
87
88
  parameterPath: ["options", "includeModelDefinition"],
88
89
  mapper: {
90
+ defaultValue: false,
89
91
  serializedName: "includeModelDefinition",
90
92
  type: {
91
93
  name: "Boolean"
92
94
  }
93
95
  }
94
96
  };
95
- export const maxItemsPerPage = {
96
- parameterPath: ["options", "maxItemsPerPage"],
97
+ export const resultsPerPage = {
98
+ parameterPath: ["options", "resultsPerPage"],
97
99
  mapper: {
98
100
  serializedName: "max-items-per-page",
99
101
  type: {
@@ -129,7 +131,12 @@ export const updateModel = {
129
131
  required: true,
130
132
  type: {
131
133
  name: "Sequence",
132
- element: { type: { name: "any" } }
134
+ element: {
135
+ type: {
136
+ name: "Dictionary",
137
+ value: { type: { name: "any" } }
138
+ }
139
+ }
133
140
  }
134
141
  }
135
142
  };
@@ -154,7 +161,8 @@ export const twin = {
154
161
  serializedName: "twin",
155
162
  required: true,
156
163
  type: {
157
- name: "any"
164
+ name: "Dictionary",
165
+ value: { type: { name: "any" } }
158
166
  }
159
167
  }
160
168
  };
@@ -183,7 +191,12 @@ export const patchDocument = {
183
191
  required: true,
184
192
  type: {
185
193
  name: "Sequence",
186
- element: { type: { name: "any" } }
194
+ element: {
195
+ type: {
196
+ name: "Dictionary",
197
+ value: { type: { name: "any" } }
198
+ }
199
+ }
187
200
  }
188
201
  }
189
202
  };
@@ -203,7 +216,8 @@ export const relationship = {
203
216
  serializedName: "relationship",
204
217
  required: true,
205
218
  type: {
206
- name: "any"
219
+ name: "Dictionary",
220
+ value: { type: { name: "any" } }
207
221
  }
208
222
  }
209
223
  };
@@ -222,7 +236,8 @@ export const telemetry = {
222
236
  serializedName: "telemetry",
223
237
  required: true,
224
238
  type: {
225
- name: "any"
239
+ name: "Dictionary",
240
+ value: { type: { name: "any" } }
226
241
  }
227
242
  }
228
243
  };
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAIL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,IAAI,wBAAwB,EAC9C,UAAU,IAAI,gBAAgB,EAC/B,M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AAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAuB;IACrD,aAAa,EAAE,CAAC,SAAS,EAAE,qBAAqB,CAAC;IACjD,MAAM,EAAE;QACN,cAAc,EAAE,uBAAuB;QACvC,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE;QACN,cAAc,EAAE,eAAe;QAC/B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;IACxC,MAAM,EAAE,gBAAgB;CACzB,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n QueryCollectionFormat\n} from \"@azure/core-http\";\nimport {\n QuerySpecification as QuerySpecificationMapper,\n EventRoute as EventRouteMapper\n} from \"../models/mappers\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const models: OperationParameter = {\n parameterPath: [\"options\", \"models\"],\n mapper: {\n constraints: {\n MinItems: 1,\n UniqueItems: true\n },\n serializedName: \"models\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const traceparent: OperationParameter = {\n parameterPath: [\"options\", \"traceparent\"],\n mapper: {\n serializedName: \"traceparent\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const tracestate: OperationParameter = {\n parameterPath: [\"options\", \"tracestate\"],\n mapper: {\n serializedName: \"tracestate\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2022-05-31\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const dependenciesFor: OperationQueryParameter = {\n parameterPath: [\"options\", \"dependenciesFor\"],\n mapper: {\n serializedName: \"dependenciesFor\",\n type: {\n name: \"Sequence\",\n element: { type: { name: \"String\" } }\n }\n },\n collectionFormat: QueryCollectionFormat.Csv\n};\n\nexport const includeModelDefinition: OperationQueryParameter = {\n parameterPath: [\"options\", \"includeModelDefinition\"],\n mapper: {\n serializedName: \"includeModelDefinition\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const maxItemsPerPage: OperationParameter = {\n parameterPath: [\"options\", \"maxItemsPerPage\"],\n mapper: {\n serializedName: \"max-items-per-page\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const id: OperationURLParameter = {\n parameterPath: \"id\",\n mapper: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const updateModel: OperationParameter = {\n parameterPath: \"updateModel\",\n mapper: {\n serializedName: \"updateModel\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const querySpecification: OperationParameter = {\n parameterPath: \"querySpecification\",\n mapper: QuerySpecificationMapper\n};\n\nexport const twin: OperationParameter = {\n parameterPath: \"twin\",\n mapper: {\n serializedName: \"twin\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const ifNoneMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifNoneMatch\"],\n mapper: {\n serializedName: \"If-None-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const ifMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifMatch\"],\n mapper: {\n serializedName: \"If-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const patchDocument: OperationParameter = {\n parameterPath: \"patchDocument\",\n mapper: {\n serializedName: \"patchDocument\",\n required: true,\n type: {\n name: \"Sequence\",\n element: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const relationshipId: OperationURLParameter = {\n parameterPath: \"relationshipId\",\n mapper: {\n serializedName: \"relationshipId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const relationship: OperationParameter = {\n parameterPath: \"relationship\",\n mapper: {\n serializedName: \"relationship\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const relationshipName: OperationQueryParameter = {\n parameterPath: [\"options\", \"relationshipName\"],\n mapper: {\n serializedName: \"relationshipName\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const telemetry: OperationParameter = {\n parameterPath: \"telemetry\",\n mapper: {\n serializedName: \"telemetry\",\n required: true,\n type: {\n name: \"any\"\n }\n }\n};\n\nexport const messageId: OperationParameter = {\n parameterPath: \"messageId\",\n mapper: {\n serializedName: \"Message-Id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const telemetrySourceTime: OperationParameter = {\n parameterPath: [\"options\", \"telemetrySourceTime\"],\n mapper: {\n serializedName: \"Telemetry-Source-Time\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const componentPath: OperationURLParameter = {\n parameterPath: \"componentPath\",\n mapper: {\n serializedName: \"componentPath\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const eventRoute: OperationParameter = {\n parameterPath: [\"options\", \"eventRoute\"],\n mapper: EventRouteMapper\n};\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,kBAAkB,IAAI,wBAAwB,EAC9C,UAAU,IAAI,gBAAgB,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IACpC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,QAAQ,EAAE,CAAC;YACX,WAAW,EAAE,IAAI;SAClB;QACD,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE;gBACP,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;iBACjC;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAA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AM,gBAAgB,GAA4B;IACvD,aAAa,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC;IAC9C,MAAM,EAAE;QACN,cAAc,EAAE,kBAAkB;QAClC,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAuB;IAC3C,aAAa,EAAE,WAAW;IAC1B,MAAM,EAAE;QACN,cAAc,EAAE,WAAW;QAC3B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;SACjC;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAuB;IAC3C,aAAa,EAAE,WAAW;IAC1B,MAAM,EAAE;QACN,cAAc,EAAE,YAAY;QAC5B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAuB;IACrD,aAAa,EAAE,CAAC,SAAS,EAAE,qBAAqB,CAAC;IACjD,MAAM,EAAE;QACN,cAAc,EAAE,uBAAuB;QACvC,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE;QACN,cAAc,EAAE,eAAe;QAC/B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;IACxC,MAAM,EAAE,gBAAgB;CACzB,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n QuerySpecification as QuerySpecificationMapper,\n EventRoute as EventRouteMapper\n} from \"../models/mappers\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const models: OperationParameter = {\n parameterPath: [\"options\", \"models\"],\n mapper: {\n constraints: {\n MinItems: 1,\n UniqueItems: true\n },\n serializedName: \"models\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2020-10-31\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const dependenciesFor: OperationQueryParameter = {\n parameterPath: [\"options\", \"dependenciesFor\"],\n mapper: {\n serializedName: \"dependenciesFor\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n collectionFormat: \"Multi\"\n};\n\nexport const includeModelDefinition: OperationQueryParameter = {\n parameterPath: [\"options\", \"includeModelDefinition\"],\n mapper: {\n defaultValue: false,\n serializedName: \"includeModelDefinition\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const resultsPerPage: OperationParameter = {\n parameterPath: [\"options\", \"resultsPerPage\"],\n mapper: {\n serializedName: \"max-items-per-page\",\n type: {\n name: \"Number\"\n }\n }\n};\n\nexport const id: OperationURLParameter = {\n parameterPath: \"id\",\n mapper: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const updateModel: OperationParameter = {\n parameterPath: \"updateModel\",\n mapper: {\n serializedName: \"updateModel\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const querySpecification: OperationParameter = {\n parameterPath: \"querySpecification\",\n mapper: QuerySpecificationMapper\n};\n\nexport const twin: OperationParameter = {\n parameterPath: \"twin\",\n mapper: {\n serializedName: \"twin\",\n required: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const ifNoneMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifNoneMatch\"],\n mapper: {\n serializedName: \"If-None-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const ifMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifMatch\"],\n mapper: {\n serializedName: \"If-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const patchDocument: OperationParameter = {\n parameterPath: \"patchDocument\",\n mapper: {\n serializedName: \"patchDocument\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const relationshipId: OperationURLParameter = {\n parameterPath: \"relationshipId\",\n mapper: {\n serializedName: \"relationshipId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const relationship: OperationParameter = {\n parameterPath: \"relationship\",\n mapper: {\n serializedName: \"relationship\",\n required: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const relationshipName: OperationQueryParameter = {\n parameterPath: [\"options\", \"relationshipName\"],\n mapper: {\n serializedName: \"relationshipName\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const telemetry: OperationParameter = {\n parameterPath: \"telemetry\",\n mapper: {\n serializedName: \"telemetry\",\n required: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n};\n\nexport const messageId: OperationParameter = {\n parameterPath: \"messageId\",\n mapper: {\n serializedName: \"Message-Id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const telemetrySourceTime: OperationParameter = {\n parameterPath: [\"options\", \"telemetrySourceTime\"],\n mapper: {\n serializedName: \"Telemetry-Source-Time\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const componentPath: OperationURLParameter = {\n parameterPath: \"componentPath\",\n mapper: {\n serializedName: \"componentPath\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const eventRoute: OperationParameter = {\n parameterPath: [\"options\", \"eventRoute\"],\n mapper: EventRouteMapper\n};\n"]}
@@ -5,13 +5,14 @@
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 * as coreHttp from "@azure/core-http";
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
9
11
  import * as Mappers from "../models/mappers";
10
12
  import * as Parameters from "../models/parameters";
11
- /**
12
- * Class representing a DigitalTwinModels.
13
- */
14
- export class DigitalTwinModels {
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing DigitalTwinModels operations. */
15
+ export class DigitalTwinModelsImpl {
15
16
  /**
16
17
  * Initialize a new instance of the class DigitalTwinModels class.
17
18
  * @param client Reference to the service client
@@ -19,6 +20,72 @@ export class DigitalTwinModels {
19
20
  constructor(client) {
20
21
  this.client = client;
21
22
  }
23
+ /**
24
+ * Retrieves model metadata and, optionally, model definitions.
25
+ * Status codes:
26
+ * * 200 OK
27
+ * * 400 Bad Request
28
+ * * InvalidArgument - The model id is invalid.
29
+ * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.
30
+ * * 404 Not Found
31
+ * * ModelNotFound - The model was not found.
32
+ * @param options The options parameters.
33
+ */
34
+ list(options) {
35
+ const iter = this.listPagingAll(options);
36
+ return {
37
+ next() {
38
+ return iter.next();
39
+ },
40
+ [Symbol.asyncIterator]() {
41
+ return this;
42
+ },
43
+ byPage: (settings) => {
44
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ throw new Error("maxPageSize is not supported by this operation.");
46
+ }
47
+ return this.listPagingPage(options, settings);
48
+ }
49
+ };
50
+ }
51
+ listPagingPage(options, settings) {
52
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
53
+ let result;
54
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
+ if (!continuationToken) {
56
+ result = yield __await(this._list(options));
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ setContinuationToken(page, continuationToken);
60
+ yield yield __await(page);
61
+ }
62
+ while (continuationToken) {
63
+ result = yield __await(this._listNext(continuationToken, options));
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ setContinuationToken(page, continuationToken);
67
+ yield yield __await(page);
68
+ }
69
+ });
70
+ }
71
+ listPagingAll(options) {
72
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
73
+ var e_1, _a;
74
+ try {
75
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
76
+ const page = _c.value;
77
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
88
+ }
22
89
  /**
23
90
  * Uploads one or more models. When any error occurs, no models are uploaded.
24
91
  * Status codes:
@@ -33,8 +100,7 @@ export class DigitalTwinModels {
33
100
  * @param options The options parameters.
34
101
  */
35
102
  add(options) {
36
- const operationOptions = coreHttp.operationOptionsToRequestOptionsBase(options || {});
37
- return this.client.sendOperationRequest({ options: operationOptions }, addOperationSpec);
103
+ return this.client.sendOperationRequest({ options }, addOperationSpec);
38
104
  }
39
105
  /**
40
106
  * Retrieves model metadata and, optionally, model definitions.
@@ -47,9 +113,8 @@ export class DigitalTwinModels {
47
113
  * * ModelNotFound - The model was not found.
48
114
  * @param options The options parameters.
49
115
  */
50
- list(options) {
51
- const operationOptions = coreHttp.operationOptionsToRequestOptionsBase(options || {});
52
- return this.client.sendOperationRequest({ options: operationOptions }, listOperationSpec);
116
+ _list(options) {
117
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
53
118
  }
54
119
  /**
55
120
  * Retrieves model metadata and optionally the model definition.
@@ -64,8 +129,7 @@ export class DigitalTwinModels {
64
129
  * @param options The options parameters.
65
130
  */
66
131
  getById(id, options) {
67
- const operationOptions = coreHttp.operationOptionsToRequestOptionsBase(options || {});
68
- return this.client.sendOperationRequest({ id, options: operationOptions }, getByIdOperationSpec);
132
+ return this.client.sendOperationRequest({ id, options }, getByIdOperationSpec);
69
133
  }
70
134
  /**
71
135
  * Updates the metadata for a model.
@@ -85,8 +149,7 @@ export class DigitalTwinModels {
85
149
  * @param options The options parameters.
86
150
  */
87
151
  update(id, updateModel, options) {
88
- const operationOptions = coreHttp.operationOptionsToRequestOptionsBase(options || {});
89
- return this.client.sendOperationRequest({ id, updateModel, options: operationOptions }, updateOperationSpec);
152
+ return this.client.sendOperationRequest({ id, updateModel, options }, updateOperationSpec);
90
153
  }
91
154
  /**
92
155
  * Deletes a model. A model can only be deleted if no other models reference it.
@@ -103,21 +166,19 @@ export class DigitalTwinModels {
103
166
  * @param options The options parameters.
104
167
  */
105
168
  delete(id, options) {
106
- const operationOptions = coreHttp.operationOptionsToRequestOptionsBase(options || {});
107
- return this.client.sendOperationRequest({ id, options: operationOptions }, deleteOperationSpec);
169
+ return this.client.sendOperationRequest({ id, options }, deleteOperationSpec);
108
170
  }
109
171
  /**
110
172
  * ListNext
111
173
  * @param nextLink The nextLink from the previous successful call to the List method.
112
174
  * @param options The options parameters.
113
175
  */
114
- listNext(nextLink, options) {
115
- const operationOptions = coreHttp.operationOptionsToRequestOptionsBase(options || {});
116
- return this.client.sendOperationRequest({ nextLink, options: operationOptions }, listNextOperationSpec);
176
+ _listNext(nextLink, options) {
177
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
117
178
  }
118
179
  }
119
180
  // Operation Specifications
120
- const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
181
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
121
182
  const addOperationSpec = {
122
183
  path: "/models",
123
184
  httpMethod: "POST",
@@ -139,11 +200,7 @@ const addOperationSpec = {
139
200
  requestBody: Parameters.models,
140
201
  queryParameters: [Parameters.apiVersion],
141
202
  urlParameters: [Parameters.$host],
142
- headerParameters: [
143
- Parameters.contentType,
144
- Parameters.traceparent,
145
- Parameters.tracestate
146
- ],
203
+ headerParameters: [Parameters.contentType, Parameters.accept],
147
204
  mediaType: "json",
148
205
  serializer
149
206
  };
@@ -164,11 +221,7 @@ const listOperationSpec = {
164
221
  Parameters.includeModelDefinition
165
222
  ],
166
223
  urlParameters: [Parameters.$host],
167
- headerParameters: [
168
- Parameters.traceparent,
169
- Parameters.tracestate,
170
- Parameters.maxItemsPerPage
171
- ],
224
+ headerParameters: [Parameters.accept, Parameters.resultsPerPage],
172
225
  serializer
173
226
  };
174
227
  const getByIdOperationSpec = {
@@ -184,7 +237,7 @@ const getByIdOperationSpec = {
184
237
  },
185
238
  queryParameters: [Parameters.apiVersion, Parameters.includeModelDefinition],
186
239
  urlParameters: [Parameters.$host, Parameters.id],
187
- headerParameters: [Parameters.traceparent, Parameters.tracestate],
240
+ headerParameters: [Parameters.accept],
188
241
  serializer
189
242
  };
190
243
  const updateOperationSpec = {
@@ -199,11 +252,7 @@ const updateOperationSpec = {
199
252
  requestBody: Parameters.updateModel,
200
253
  queryParameters: [Parameters.apiVersion],
201
254
  urlParameters: [Parameters.$host, Parameters.id],
202
- headerParameters: [
203
- Parameters.traceparent,
204
- Parameters.tracestate,
205
- Parameters.contentType1
206
- ],
255
+ headerParameters: [Parameters.accept, Parameters.contentType1],
207
256
  mediaType: "json",
208
257
  serializer
209
258
  };
@@ -218,7 +267,7 @@ const deleteOperationSpec = {
218
267
  },
219
268
  queryParameters: [Parameters.apiVersion],
220
269
  urlParameters: [Parameters.$host, Parameters.id],
221
- headerParameters: [Parameters.traceparent, Parameters.tracestate],
270
+ headerParameters: [Parameters.accept],
222
271
  serializer
223
272
  };
224
273
  const listNextOperationSpec = {
@@ -232,17 +281,8 @@ const listNextOperationSpec = {
232
281
  bodyMapper: Mappers.ErrorResponse
233
282
  }
234
283
  },
235
- queryParameters: [
236
- Parameters.apiVersion,
237
- Parameters.dependenciesFor,
238
- Parameters.includeModelDefinition
239
- ],
240
284
  urlParameters: [Parameters.$host, Parameters.nextLink],
241
- headerParameters: [
242
- Parameters.traceparent,
243
- Parameters.tracestate,
244
- Parameters.maxItemsPerPage
245
- ],
285
+ headerParameters: [Parameters.accept, Parameters.resultsPerPage],
246
286
  serializer
247
287
  };
248
288
  //# sourceMappingURL=digitalTwinModels.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"digitalTwinModels.js","sourceRoot":"","sources":["../../../../src/generated/operations/digitalTwinModels.ts"],"names":[],"mappings":"AAAA;;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B,UAAU,CAAC,eAAe;KAC3B;IACD,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 * as coreHttp from \"@azure/core-http\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI\";\nimport {\n DigitalTwinModelsAddOptionalParams,\n DigitalTwinModelsAddResponse,\n DigitalTwinModelsListOptionalParams,\n DigitalTwinModelsListResponse,\n DigitalTwinModelsGetByIdOptionalParams,\n DigitalTwinModelsGetByIdResponse,\n DigitalTwinModelsUpdateOptionalParams,\n DigitalTwinModelsDeleteOptionalParams,\n DigitalTwinModelsListNextOptionalParams,\n DigitalTwinModelsListNextResponse\n} from \"../models\";\n\n/**\n * Class representing a DigitalTwinModels.\n */\nexport class DigitalTwinModels {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class DigitalTwinModels class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Uploads one or more models. When any error occurs, no models are uploaded.\n * Status codes:\n * * 201 Created\n * * 400 Bad Request\n * * DTDLParserError - The models provided are not valid DTDL.\n * * InvalidArgument - The model id is invalid.\n * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * * ModelVersionNotSupported - The version of DTDL used is not supported.\n * * 409 Conflict\n * * ModelAlreadyExists - The model provided already exists.\n * @param options The options parameters.\n */\n add(\n options?: DigitalTwinModelsAddOptionalParams\n ): Promise<DigitalTwinModelsAddResponse> {\n const operationOptions: coreHttp.RequestOptionsBase = coreHttp.operationOptionsToRequestOptionsBase(\n options || {}\n );\n return this.client.sendOperationRequest(\n { options: operationOptions },\n addOperationSpec\n ) as Promise<DigitalTwinModelsAddResponse>;\n }\n\n /**\n * Retrieves model metadata and, optionally, model definitions.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * @param options The options parameters.\n */\n list(\n options?: DigitalTwinModelsListOptionalParams\n ): Promise<DigitalTwinModelsListResponse> {\n const operationOptions: coreHttp.RequestOptionsBase = coreHttp.operationOptionsToRequestOptionsBase(\n options || {}\n );\n return this.client.sendOperationRequest(\n { options: operationOptions },\n listOperationSpec\n ) as Promise<DigitalTwinModelsListResponse>;\n }\n\n /**\n * Retrieves model metadata and optionally the model definition.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: DigitalTwinModelsGetByIdOptionalParams\n ): Promise<DigitalTwinModelsGetByIdResponse> {\n const operationOptions: coreHttp.RequestOptionsBase = coreHttp.operationOptionsToRequestOptionsBase(\n options || {}\n );\n return this.client.sendOperationRequest(\n { id, options: operationOptions },\n getByIdOperationSpec\n ) as Promise<DigitalTwinModelsGetByIdResponse>;\n }\n\n /**\n * Updates the metadata for a model.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * * 409 Conflict\n * * ModelReferencesNotDecommissioned - The model refers to models that are not decommissioned.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param updateModel An update specification described by JSON Patch. Only the decommissioned property\n * can be replaced.\n * @param options The options parameters.\n */\n update(\n id: string,\n updateModel: any[],\n options?: DigitalTwinModelsUpdateOptionalParams\n ): Promise<coreHttp.RestResponse> {\n const operationOptions: coreHttp.RequestOptionsBase = coreHttp.operationOptionsToRequestOptionsBase(\n options || {}\n );\n return this.client.sendOperationRequest(\n { id, updateModel, options: operationOptions },\n updateOperationSpec\n ) as Promise<coreHttp.RestResponse>;\n }\n\n /**\n * Deletes a model. A model can only be deleted if no other models reference it.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * * 409 Conflict\n * * ModelReferencesNotDeleted - The model refers to models that are not deleted.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param options The options parameters.\n */\n delete(\n id: string,\n options?: DigitalTwinModelsDeleteOptionalParams\n ): Promise<coreHttp.RestResponse> {\n const operationOptions: coreHttp.RequestOptionsBase = coreHttp.operationOptionsToRequestOptionsBase(\n options || {}\n );\n return this.client.sendOperationRequest(\n { id, options: operationOptions },\n deleteOperationSpec\n ) as Promise<coreHttp.RestResponse>;\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 listNext(\n nextLink: string,\n options?: DigitalTwinModelsListNextOptionalParams\n ): Promise<DigitalTwinModelsListNextResponse> {\n const operationOptions: coreHttp.RequestOptionsBase = coreHttp.operationOptionsToRequestOptionsBase(\n options || {}\n );\n return this.client.sendOperationRequest(\n { nextLink, options: operationOptions },\n listNextOperationSpec\n ) as Promise<DigitalTwinModelsListNextResponse>;\n }\n}\n// Operation Specifications\n\nconst serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);\n\nconst addOperationSpec: coreHttp.OperationSpec = {\n path: \"/models\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"DigitalTwinsModelData\" }\n }\n }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.models,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [\n Parameters.contentType,\n Parameters.traceparent,\n Parameters.tracestate\n ],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreHttp.OperationSpec = {\n path: \"/models\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedDigitalTwinsModelDataCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.dependenciesFor,\n Parameters.includeModelDefinition\n ],\n urlParameters: [Parameters.$host],\n headerParameters: [\n Parameters.traceparent,\n Parameters.tracestate,\n Parameters.maxItemsPerPage\n ],\n serializer\n};\nconst getByIdOperationSpec: coreHttp.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsModelData\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeModelDefinition],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.traceparent, Parameters.tracestate],\n serializer\n};\nconst updateOperationSpec: coreHttp.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.updateModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [\n Parameters.traceparent,\n Parameters.tracestate,\n Parameters.contentType1\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreHttp.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.traceparent, Parameters.tracestate],\n serializer\n};\nconst listNextOperationSpec: coreHttp.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedDigitalTwinsModelDataCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.dependenciesFor,\n Parameters.includeModelDefinition\n ],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [\n Parameters.traceparent,\n Parameters.tracestate,\n Parameters.maxItemsPerPage\n ],\n serializer\n};\n"]}
1
+ {"version":3,"file":"digitalTwinModels.js","sourceRoot":"","sources":["../../../../src/generated/operations/digitalTwinModels.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAgBnD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACI,IAAI,CACT,OAA6C;QAE7C,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;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CA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AAc,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\";\nimport { DigitalTwinModels } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { AzureDigitalTwinsAPI } from \"../azureDigitalTwinsAPI\";\nimport {\n DigitalTwinsModelData,\n DigitalTwinModelsListNextOptionalParams,\n DigitalTwinModelsListOptionalParams,\n DigitalTwinModelsListResponse,\n DigitalTwinModelsAddOptionalParams,\n DigitalTwinModelsAddResponse,\n DigitalTwinModelsGetByIdOptionalParams,\n DigitalTwinModelsGetByIdResponse,\n DigitalTwinModelsUpdateOptionalParams,\n DigitalTwinModelsDeleteOptionalParams,\n DigitalTwinModelsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DigitalTwinModels operations. */\nexport class DigitalTwinModelsImpl implements DigitalTwinModels {\n private readonly client: AzureDigitalTwinsAPI;\n\n /**\n * Initialize a new instance of the class DigitalTwinModels class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsAPI) {\n this.client = client;\n }\n\n /**\n * Retrieves model metadata and, optionally, model definitions.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * @param options The options parameters.\n */\n public list(\n options?: DigitalTwinModelsListOptionalParams\n ): PagedAsyncIterableIterator<DigitalTwinsModelData> {\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?: DigitalTwinModelsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<DigitalTwinsModelData[]> {\n let result: DigitalTwinModelsListResponse;\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?: DigitalTwinModelsListOptionalParams\n ): AsyncIterableIterator<DigitalTwinsModelData> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Uploads one or more models. When any error occurs, no models are uploaded.\n * Status codes:\n * * 201 Created\n * * 400 Bad Request\n * * DTDLParserError - The models provided are not valid DTDL.\n * * InvalidArgument - The model id is invalid.\n * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * * ModelVersionNotSupported - The version of DTDL used is not supported.\n * * 409 Conflict\n * * ModelAlreadyExists - The model provided already exists.\n * @param options The options parameters.\n */\n add(\n options?: DigitalTwinModelsAddOptionalParams\n ): Promise<DigitalTwinModelsAddResponse> {\n return this.client.sendOperationRequest({ options }, addOperationSpec);\n }\n\n /**\n * Retrieves model metadata and, optionally, model definitions.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * @param options The options parameters.\n */\n private _list(\n options?: DigitalTwinModelsListOptionalParams\n ): Promise<DigitalTwinModelsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Retrieves model metadata and optionally the model definition.\n * Status codes:\n * * 200 OK\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param options The options parameters.\n */\n getById(\n id: string,\n options?: DigitalTwinModelsGetByIdOptionalParams\n ): Promise<DigitalTwinModelsGetByIdResponse> {\n return this.client.sendOperationRequest(\n { id, options },\n getByIdOperationSpec\n );\n }\n\n /**\n * Updates the metadata for a model.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * JsonPatchInvalid - The JSON Patch provided is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * * 409 Conflict\n * * ModelReferencesNotDecommissioned - The model refers to models that are not decommissioned.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param updateModel An update specification described by JSON Patch. Only the decommissioned property\n * can be replaced.\n * @param options The options parameters.\n */\n update(\n id: string,\n updateModel: Record<string, unknown>[],\n options?: DigitalTwinModelsUpdateOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { id, updateModel, options },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes a model. A model can only be deleted if no other models reference it.\n * Status codes:\n * * 204 No Content\n * * 400 Bad Request\n * * InvalidArgument - The model id is invalid.\n * * MissingArgument - The model id was not provided.\n * * 404 Not Found\n * * ModelNotFound - The model was not found.\n * * 409 Conflict\n * * ModelReferencesNotDeleted - The model refers to models that are not deleted.\n * @param id The id for the model. The id is globally unique and case sensitive.\n * @param options The options parameters.\n */\n delete(\n id: string,\n options?: DigitalTwinModelsDeleteOptionalParams\n ): 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?: DigitalTwinModelsListNextOptionalParams\n ): Promise<DigitalTwinModelsListNextResponse> {\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 addOperationSpec: coreClient.OperationSpec = {\n path: \"/models\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"DigitalTwinsModelData\" }\n }\n }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.models,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/models\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedDigitalTwinsModelDataCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.dependenciesFor,\n Parameters.includeModelDefinition\n ],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer\n};\nconst getByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsModelData\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.includeModelDefinition],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.updateModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.id],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/models/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\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.PagedDigitalTwinsModelDataCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept, Parameters.resultsPerPage],\n serializer\n};\n"]}