@azure/arm-digitaltwins 3.2.1-alpha.20230303.1 → 3.3.0

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 (112) hide show
  1. package/CHANGELOG.md +14 -10
  2. package/LICENSE +1 -1
  3. package/dist/index.js +171 -101
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.js +11 -3
  8. package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.js.map +1 -1
  9. package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.js +22 -12
  10. package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.js.map +1 -1
  11. package/dist-esm/samples-dev/digitalTwinsDeleteSample.js +17 -8
  12. package/dist-esm/samples-dev/digitalTwinsDeleteSample.js.map +1 -1
  13. package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.js +22 -12
  14. package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.js +17 -8
  16. package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.js.map +1 -1
  17. package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.js +17 -8
  18. package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.js.map +1 -1
  19. package/dist-esm/samples-dev/digitalTwinsEndpointListSample.js +17 -8
  20. package/dist-esm/samples-dev/digitalTwinsEndpointListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/digitalTwinsGetSample.js +22 -12
  22. package/dist-esm/samples-dev/digitalTwinsGetSample.js.map +1 -1
  23. package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.js +12 -4
  24. package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.js.map +1 -1
  25. package/dist-esm/samples-dev/digitalTwinsListSample.js +11 -3
  26. package/dist-esm/samples-dev/digitalTwinsListSample.js.map +1 -1
  27. package/dist-esm/samples-dev/digitalTwinsUpdateSample.js +22 -12
  28. package/dist-esm/samples-dev/digitalTwinsUpdateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  30. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  31. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +12 -4
  32. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +12 -4
  34. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  35. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +12 -4
  36. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  37. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +12 -4
  38. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  39. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +12 -4
  40. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
  41. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +12 -4
  42. package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -1
  43. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.js +22 -10
  44. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.js.map +1 -1
  45. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.js +12 -4
  46. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.js.map +1 -1
  47. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.js +12 -4
  48. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.js.map +1 -1
  49. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.js +12 -4
  50. package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.js.map +1 -1
  51. package/dist-esm/src/azureDigitalTwinsManagementClient.js +2 -2
  52. package/dist-esm/src/lroImpl.d.ts +6 -11
  53. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  54. package/dist-esm/src/lroImpl.js +12 -20
  55. package/dist-esm/src/lroImpl.js.map +1 -1
  56. package/dist-esm/src/models/index.d.ts +41 -1
  57. package/dist-esm/src/models/index.d.ts.map +1 -1
  58. package/dist-esm/src/models/index.js +16 -0
  59. package/dist-esm/src/models/index.js.map +1 -1
  60. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  61. package/dist-esm/src/models/mappers.js +19 -0
  62. package/dist-esm/src/models/mappers.js.map +1 -1
  63. package/dist-esm/src/models/parameters.d.ts +1 -0
  64. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  65. package/dist-esm/src/models/parameters.js +10 -1
  66. package/dist-esm/src/models/parameters.js.map +1 -1
  67. package/dist-esm/src/operations/digitalTwins.d.ts +4 -4
  68. package/dist-esm/src/operations/digitalTwins.d.ts.map +1 -1
  69. package/dist-esm/src/operations/digitalTwins.js +31 -21
  70. package/dist-esm/src/operations/digitalTwins.js.map +1 -1
  71. package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts +3 -3
  72. package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts.map +1 -1
  73. package/dist-esm/src/operations/digitalTwinsEndpoint.js +24 -17
  74. package/dist-esm/src/operations/digitalTwinsEndpoint.js.map +1 -1
  75. package/dist-esm/src/operations/operations.js +0 -1
  76. package/dist-esm/src/operations/operations.js.map +1 -1
  77. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  78. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  79. package/dist-esm/src/operations/privateEndpointConnections.js +29 -21
  80. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  81. package/dist-esm/src/operations/timeSeriesDatabaseConnections.d.ts +3 -3
  82. package/dist-esm/src/operations/timeSeriesDatabaseConnections.d.ts.map +1 -1
  83. package/dist-esm/src/operations/timeSeriesDatabaseConnections.js +33 -23
  84. package/dist-esm/src/operations/timeSeriesDatabaseConnections.js.map +1 -1
  85. package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts +4 -4
  86. package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts.map +1 -1
  87. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts +3 -3
  88. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -1
  89. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  90. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  91. package/dist-esm/src/operationsInterfaces/timeSeriesDatabaseConnections.d.ts +3 -3
  92. package/dist-esm/src/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -1
  93. package/dist-esm/src/pagingHelper.d.ts +4 -4
  94. package/dist-esm/src/pagingHelper.js +4 -4
  95. package/package.json +9 -8
  96. package/review/arm-digitaltwins.api.md +33 -11
  97. package/src/azureDigitalTwinsManagementClient.ts +2 -2
  98. package/src/lroImpl.ts +31 -23
  99. package/src/models/index.ts +45 -1
  100. package/src/models/mappers.ts +22 -0
  101. package/src/models/parameters.ts +11 -1
  102. package/src/operations/digitalTwins.ts +45 -34
  103. package/src/operations/digitalTwinsEndpoint.ts +32 -23
  104. package/src/operations/operations.ts +0 -1
  105. package/src/operations/privateEndpointConnections.ts +28 -21
  106. package/src/operations/timeSeriesDatabaseConnections.ts +36 -24
  107. package/src/operationsInterfaces/digitalTwins.ts +7 -7
  108. package/src/operationsInterfaces/digitalTwinsEndpoint.ts +5 -5
  109. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  110. package/src/operationsInterfaces/timeSeriesDatabaseConnections.ts +5 -5
  111. package/src/pagingHelper.ts +4 -4
  112. package/types/arm-digitaltwins.d.ts +60 -16
package/CHANGELOG.md CHANGED
@@ -1,15 +1,19 @@
1
1
  # Release History
2
+
3
+ ## 3.3.0 (2023-03-01)
4
+
5
+ **Features**
2
6
 
3
- ## 3.2.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
7
+ - Added Type Alias CleanupConnectionArtifacts
8
+ - Added Type Alias RecordPropertyAndItemRemovals
9
+ - Interface AzureDataExplorerConnectionProperties has a new optional parameter adxRelationshipLifecycleEventsTableName
10
+ - Interface AzureDataExplorerConnectionProperties has a new optional parameter adxTwinLifecycleEventsTableName
11
+ - Interface AzureDataExplorerConnectionProperties has a new optional parameter recordPropertyAndItemRemovals
12
+ - Interface TimeSeriesDatabaseConnectionsDeleteOptionalParams has a new optional parameter cleanupConnectionArtifacts
13
+ - Added Enum KnownCleanupConnectionArtifacts
14
+ - Added Enum KnownRecordPropertyAndItemRemovals
15
+
16
+
13
17
  ## 3.2.0 (2022-11-30)
14
18
 
15
19
  **Features**
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Microsoft
3
+ Copyright (c) 2023 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -37,11 +37,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
37
37
  */
38
38
  const pageMap = new WeakMap();
39
39
  /**
40
- * Given a result page from a pageable operation, returns a
41
- * continuation token that can be used to begin paging from
40
+ * Given the last `.value` produced by the `byPage` iterator,
41
+ * returns a continuation token that can be used to begin paging from
42
42
  * that point later.
43
- * @param page A result object from calling .byPage() on a paged operation.
44
- * @returns The continuation token that can be passed into byPage().
43
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
+ * @returns The continuation token that can be passed into byPage() during future calls.
45
45
  */
46
46
  function getContinuationToken(page) {
47
47
  var _a;
@@ -245,6 +245,22 @@ exports.KnownTimeSeriesDatabaseConnectionState = void 0;
245
245
  /** Disabled */
246
246
  KnownTimeSeriesDatabaseConnectionState["Disabled"] = "Disabled";
247
247
  })(exports.KnownTimeSeriesDatabaseConnectionState || (exports.KnownTimeSeriesDatabaseConnectionState = {}));
248
+ /** Known values of {@link CleanupConnectionArtifacts} that the service accepts. */
249
+ exports.KnownCleanupConnectionArtifacts = void 0;
250
+ (function (KnownCleanupConnectionArtifacts) {
251
+ /** True */
252
+ KnownCleanupConnectionArtifacts["True"] = "true";
253
+ /** False */
254
+ KnownCleanupConnectionArtifacts["False"] = "false";
255
+ })(exports.KnownCleanupConnectionArtifacts || (exports.KnownCleanupConnectionArtifacts = {}));
256
+ /** Known values of {@link RecordPropertyAndItemRemovals} that the service accepts. */
257
+ exports.KnownRecordPropertyAndItemRemovals = void 0;
258
+ (function (KnownRecordPropertyAndItemRemovals) {
259
+ /** True */
260
+ KnownRecordPropertyAndItemRemovals["True"] = "true";
261
+ /** False */
262
+ KnownRecordPropertyAndItemRemovals["False"] = "false";
263
+ })(exports.KnownRecordPropertyAndItemRemovals || (exports.KnownRecordPropertyAndItemRemovals = {}));
248
264
 
249
265
  /*
250
266
  * Copyright (c) Microsoft Corporation.
@@ -1379,6 +1395,18 @@ const AzureDataExplorerConnectionProperties = {
1379
1395
  type: {
1380
1396
  name: "String"
1381
1397
  }
1398
+ }, adxTwinLifecycleEventsTableName: {
1399
+ serializedName: "adxTwinLifecycleEventsTableName",
1400
+ nullable: true,
1401
+ type: {
1402
+ name: "String"
1403
+ }
1404
+ }, adxRelationshipLifecycleEventsTableName: {
1405
+ serializedName: "adxRelationshipLifecycleEventsTableName",
1406
+ nullable: true,
1407
+ type: {
1408
+ name: "String"
1409
+ }
1382
1410
  }, eventHubEndpointUri: {
1383
1411
  serializedName: "eventHubEndpointUri",
1384
1412
  required: true,
@@ -1404,6 +1432,13 @@ const AzureDataExplorerConnectionProperties = {
1404
1432
  type: {
1405
1433
  name: "String"
1406
1434
  }
1435
+ }, recordPropertyAndItemRemovals: {
1436
+ defaultValue: "false",
1437
+ serializedName: "recordPropertyAndItemRemovals",
1438
+ nullable: true,
1439
+ type: {
1440
+ name: "String"
1441
+ }
1407
1442
  } })
1408
1443
  }
1409
1444
  };
@@ -1489,7 +1524,7 @@ const $host = {
1489
1524
  const apiVersion = {
1490
1525
  parameterPath: "apiVersion",
1491
1526
  mapper: {
1492
- defaultValue: "2022-10-31",
1527
+ defaultValue: "2023-01-31",
1493
1528
  isConstant: true,
1494
1529
  serializedName: "api-version",
1495
1530
  type: {
@@ -1645,6 +1680,15 @@ const timeSeriesDatabaseConnectionDescription = {
1645
1680
  parameterPath: "timeSeriesDatabaseConnectionDescription",
1646
1681
  mapper: TimeSeriesDatabaseConnection
1647
1682
  };
1683
+ const cleanupConnectionArtifacts = {
1684
+ parameterPath: ["options", "cleanupConnectionArtifacts"],
1685
+ mapper: {
1686
+ serializedName: "cleanupConnectionArtifacts",
1687
+ type: {
1688
+ name: "String"
1689
+ }
1690
+ }
1691
+ };
1648
1692
 
1649
1693
  /*
1650
1694
  * Copyright (c) Microsoft Corporation.
@@ -1653,25 +1697,17 @@ const timeSeriesDatabaseConnectionDescription = {
1653
1697
  * Code generated by Microsoft (R) AutoRest Code Generator.
1654
1698
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1655
1699
  */
1656
- class LroImpl {
1657
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1658
- this.sendOperationFn = sendOperationFn;
1659
- this.args = args;
1660
- this.spec = spec;
1661
- this.requestPath = requestPath;
1662
- this.requestMethod = requestMethod;
1663
- }
1664
- sendInitialRequest() {
1665
- return tslib.__awaiter(this, void 0, void 0, function* () {
1666
- return this.sendOperationFn(this.args, this.spec);
1667
- });
1668
- }
1669
- sendPollRequest(path) {
1670
- return tslib.__awaiter(this, void 0, void 0, function* () {
1671
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1672
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1673
- });
1674
- }
1700
+ function createLroSpec(inputs) {
1701
+ const { args, spec, sendOperationFn } = inputs;
1702
+ return {
1703
+ requestMethod: spec.httpMethod,
1704
+ requestPath: spec.path,
1705
+ sendInitialRequest: () => sendOperationFn(args, spec),
1706
+ sendPollRequest: (path, options) => {
1707
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
1708
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1709
+ }
1710
+ };
1675
1711
  }
1676
1712
 
1677
1713
  /*
@@ -1833,7 +1869,7 @@ class DigitalTwinsImpl {
1833
1869
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1834
1870
  return this.client.sendOperationRequest(args, spec);
1835
1871
  });
1836
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1872
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1837
1873
  var _a;
1838
1874
  let currentRawResponse = undefined;
1839
1875
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1852,9 +1888,13 @@ class DigitalTwinsImpl {
1852
1888
  }
1853
1889
  };
1854
1890
  });
1855
- const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, digitalTwinsCreate, options }, createOrUpdateOperationSpec$3);
1856
- const poller = new coreLro.LroEngine(lro, {
1857
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1891
+ const lro = createLroSpec({
1892
+ sendOperationFn,
1893
+ args: { resourceGroupName, resourceName, digitalTwinsCreate, options },
1894
+ spec: createOrUpdateOperationSpec$3
1895
+ });
1896
+ const poller = yield coreLro.createHttpPoller(lro, {
1897
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1858
1898
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1859
1899
  });
1860
1900
  yield poller.poll();
@@ -1888,7 +1928,7 @@ class DigitalTwinsImpl {
1888
1928
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1889
1929
  return this.client.sendOperationRequest(args, spec);
1890
1930
  });
1891
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1931
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1892
1932
  var _a;
1893
1933
  let currentRawResponse = undefined;
1894
1934
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1907,14 +1947,18 @@ class DigitalTwinsImpl {
1907
1947
  }
1908
1948
  };
1909
1949
  });
1910
- const lro = new LroImpl(sendOperation, {
1911
- resourceGroupName,
1912
- resourceName,
1913
- digitalTwinsPatchDescription,
1914
- options
1915
- }, updateOperationSpec);
1916
- const poller = new coreLro.LroEngine(lro, {
1917
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1950
+ const lro = createLroSpec({
1951
+ sendOperationFn,
1952
+ args: {
1953
+ resourceGroupName,
1954
+ resourceName,
1955
+ digitalTwinsPatchDescription,
1956
+ options
1957
+ },
1958
+ spec: updateOperationSpec
1959
+ });
1960
+ const poller = yield coreLro.createHttpPoller(lro, {
1961
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1918
1962
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1919
1963
  });
1920
1964
  yield poller.poll();
@@ -1945,7 +1989,7 @@ class DigitalTwinsImpl {
1945
1989
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1946
1990
  return this.client.sendOperationRequest(args, spec);
1947
1991
  });
1948
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1992
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1949
1993
  var _a;
1950
1994
  let currentRawResponse = undefined;
1951
1995
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1964,9 +2008,13 @@ class DigitalTwinsImpl {
1964
2008
  }
1965
2009
  };
1966
2010
  });
1967
- const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec$3);
1968
- const poller = new coreLro.LroEngine(lro, {
1969
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2011
+ const lro = createLroSpec({
2012
+ sendOperationFn,
2013
+ args: { resourceGroupName, resourceName, options },
2014
+ spec: deleteOperationSpec$3
2015
+ });
2016
+ const poller = yield coreLro.createHttpPoller(lro, {
2017
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1970
2018
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1971
2019
  });
1972
2020
  yield poller.poll();
@@ -2214,7 +2262,6 @@ const listNextOperationSpec$3 = {
2214
2262
  bodyMapper: ErrorResponse
2215
2263
  }
2216
2264
  },
2217
- queryParameters: [apiVersion],
2218
2265
  urlParameters: [
2219
2266
  $host,
2220
2267
  subscriptionId,
@@ -2234,7 +2281,6 @@ const listByResourceGroupNextOperationSpec = {
2234
2281
  bodyMapper: ErrorResponse
2235
2282
  }
2236
2283
  },
2237
- queryParameters: [apiVersion],
2238
2284
  urlParameters: [
2239
2285
  $host,
2240
2286
  subscriptionId,
@@ -2355,7 +2401,7 @@ class DigitalTwinsEndpointImpl {
2355
2401
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2356
2402
  return this.client.sendOperationRequest(args, spec);
2357
2403
  });
2358
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2404
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2359
2405
  var _a;
2360
2406
  let currentRawResponse = undefined;
2361
2407
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2374,15 +2420,19 @@ class DigitalTwinsEndpointImpl {
2374
2420
  }
2375
2421
  };
2376
2422
  });
2377
- const lro = new LroImpl(sendOperation, {
2378
- resourceGroupName,
2379
- resourceName,
2380
- endpointName,
2381
- endpointDescription,
2382
- options
2383
- }, createOrUpdateOperationSpec$2);
2384
- const poller = new coreLro.LroEngine(lro, {
2385
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2423
+ const lro = createLroSpec({
2424
+ sendOperationFn,
2425
+ args: {
2426
+ resourceGroupName,
2427
+ resourceName,
2428
+ endpointName,
2429
+ endpointDescription,
2430
+ options
2431
+ },
2432
+ spec: createOrUpdateOperationSpec$2
2433
+ });
2434
+ const poller = yield coreLro.createHttpPoller(lro, {
2435
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2386
2436
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2387
2437
  });
2388
2438
  yield poller.poll();
@@ -2415,7 +2465,7 @@ class DigitalTwinsEndpointImpl {
2415
2465
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2416
2466
  return this.client.sendOperationRequest(args, spec);
2417
2467
  });
2418
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2468
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2419
2469
  var _a;
2420
2470
  let currentRawResponse = undefined;
2421
2471
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2434,9 +2484,13 @@ class DigitalTwinsEndpointImpl {
2434
2484
  }
2435
2485
  };
2436
2486
  });
2437
- const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, endpointName, options }, deleteOperationSpec$2);
2438
- const poller = new coreLro.LroEngine(lro, {
2439
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2487
+ const lro = createLroSpec({
2488
+ sendOperationFn,
2489
+ args: { resourceGroupName, resourceName, endpointName, options },
2490
+ spec: deleteOperationSpec$2
2491
+ });
2492
+ const poller = yield coreLro.createHttpPoller(lro, {
2493
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2440
2494
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2441
2495
  });
2442
2496
  yield poller.poll();
@@ -2587,7 +2641,6 @@ const listNextOperationSpec$2 = {
2587
2641
  bodyMapper: ErrorResponse
2588
2642
  }
2589
2643
  },
2590
- queryParameters: [apiVersion],
2591
2644
  urlParameters: [
2592
2645
  $host,
2593
2646
  subscriptionId,
@@ -2720,7 +2773,6 @@ const listNextOperationSpec$1 = {
2720
2773
  bodyMapper: ErrorResponse
2721
2774
  }
2722
2775
  },
2723
- queryParameters: [apiVersion],
2724
2776
  urlParameters: [$host, nextLink],
2725
2777
  headerParameters: [accept],
2726
2778
  serializer: serializer$3
@@ -2860,7 +2912,7 @@ class PrivateEndpointConnectionsImpl {
2860
2912
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2861
2913
  return this.client.sendOperationRequest(args, spec);
2862
2914
  });
2863
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2915
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2864
2916
  var _a;
2865
2917
  let currentRawResponse = undefined;
2866
2918
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2879,14 +2931,18 @@ class PrivateEndpointConnectionsImpl {
2879
2931
  }
2880
2932
  };
2881
2933
  });
2882
- const lro = new LroImpl(sendOperation, {
2883
- resourceGroupName,
2884
- resourceName,
2885
- privateEndpointConnectionName,
2886
- options
2887
- }, deleteOperationSpec$1);
2888
- const poller = new coreLro.LroEngine(lro, {
2889
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2934
+ const lro = createLroSpec({
2935
+ sendOperationFn,
2936
+ args: {
2937
+ resourceGroupName,
2938
+ resourceName,
2939
+ privateEndpointConnectionName,
2940
+ options
2941
+ },
2942
+ spec: deleteOperationSpec$1
2943
+ });
2944
+ const poller = yield coreLro.createHttpPoller(lro, {
2945
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2890
2946
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2891
2947
  });
2892
2948
  yield poller.poll();
@@ -2919,7 +2975,7 @@ class PrivateEndpointConnectionsImpl {
2919
2975
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2920
2976
  return this.client.sendOperationRequest(args, spec);
2921
2977
  });
2922
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2978
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2923
2979
  var _a;
2924
2980
  let currentRawResponse = undefined;
2925
2981
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2938,15 +2994,19 @@ class PrivateEndpointConnectionsImpl {
2938
2994
  }
2939
2995
  };
2940
2996
  });
2941
- const lro = new LroImpl(sendOperation, {
2942
- resourceGroupName,
2943
- resourceName,
2944
- privateEndpointConnectionName,
2945
- privateEndpointConnection,
2946
- options
2947
- }, createOrUpdateOperationSpec$1);
2948
- const poller = new coreLro.LroEngine(lro, {
2949
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2997
+ const lro = createLroSpec({
2998
+ sendOperationFn,
2999
+ args: {
3000
+ resourceGroupName,
3001
+ resourceName,
3002
+ privateEndpointConnectionName,
3003
+ privateEndpointConnection,
3004
+ options
3005
+ },
3006
+ spec: createOrUpdateOperationSpec$1
3007
+ });
3008
+ const poller = yield coreLro.createHttpPoller(lro, {
3009
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2950
3010
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2951
3011
  });
2952
3012
  yield poller.poll();
@@ -3185,7 +3245,7 @@ class TimeSeriesDatabaseConnectionsImpl {
3185
3245
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3186
3246
  return this.client.sendOperationRequest(args, spec);
3187
3247
  });
3188
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3248
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3189
3249
  var _a;
3190
3250
  let currentRawResponse = undefined;
3191
3251
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -3204,15 +3264,19 @@ class TimeSeriesDatabaseConnectionsImpl {
3204
3264
  }
3205
3265
  };
3206
3266
  });
3207
- const lro = new LroImpl(sendOperation, {
3208
- resourceGroupName,
3209
- resourceName,
3210
- timeSeriesDatabaseConnectionName,
3211
- timeSeriesDatabaseConnectionDescription,
3212
- options
3213
- }, createOrUpdateOperationSpec);
3214
- const poller = new coreLro.LroEngine(lro, {
3215
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3267
+ const lro = createLroSpec({
3268
+ sendOperationFn,
3269
+ args: {
3270
+ resourceGroupName,
3271
+ resourceName,
3272
+ timeSeriesDatabaseConnectionName,
3273
+ timeSeriesDatabaseConnectionDescription,
3274
+ options
3275
+ },
3276
+ spec: createOrUpdateOperationSpec
3277
+ });
3278
+ const poller = yield coreLro.createHttpPoller(lro, {
3279
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3216
3280
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3217
3281
  });
3218
3282
  yield poller.poll();
@@ -3245,7 +3309,7 @@ class TimeSeriesDatabaseConnectionsImpl {
3245
3309
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3246
3310
  return this.client.sendOperationRequest(args, spec);
3247
3311
  });
3248
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3312
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3249
3313
  var _a;
3250
3314
  let currentRawResponse = undefined;
3251
3315
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -3264,14 +3328,18 @@ class TimeSeriesDatabaseConnectionsImpl {
3264
3328
  }
3265
3329
  };
3266
3330
  });
3267
- const lro = new LroImpl(sendOperation, {
3268
- resourceGroupName,
3269
- resourceName,
3270
- timeSeriesDatabaseConnectionName,
3271
- options
3272
- }, deleteOperationSpec);
3273
- const poller = new coreLro.LroEngine(lro, {
3274
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3331
+ const lro = createLroSpec({
3332
+ sendOperationFn,
3333
+ args: {
3334
+ resourceGroupName,
3335
+ resourceName,
3336
+ timeSeriesDatabaseConnectionName,
3337
+ options
3338
+ },
3339
+ spec: deleteOperationSpec
3340
+ });
3341
+ const poller = yield coreLro.createHttpPoller(lro, {
3342
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3275
3343
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3276
3344
  });
3277
3345
  yield poller.poll();
@@ -3400,7 +3468,10 @@ const deleteOperationSpec = {
3400
3468
  bodyMapper: ErrorResponse
3401
3469
  }
3402
3470
  },
3403
- queryParameters: [apiVersion],
3471
+ queryParameters: [
3472
+ apiVersion,
3473
+ cleanupConnectionArtifacts
3474
+ ],
3404
3475
  urlParameters: [
3405
3476
  $host,
3406
3477
  subscriptionId,
@@ -3422,7 +3493,6 @@ const listNextOperationSpec = {
3422
3493
  bodyMapper: ErrorResponse
3423
3494
  }
3424
3495
  },
3425
- queryParameters: [apiVersion],
3426
3496
  urlParameters: [
3427
3497
  $host,
3428
3498
  subscriptionId,
@@ -3464,7 +3534,7 @@ class AzureDigitalTwinsManagementClient extends coreClient__namespace.ServiceCli
3464
3534
  requestContentType: "application/json; charset=utf-8",
3465
3535
  credential: credentials
3466
3536
  };
3467
- const packageDetails = `azsdk-js-arm-digitaltwins/3.2.1`;
3537
+ const packageDetails = `azsdk-js-arm-digitaltwins/3.3.0`;
3468
3538
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3469
3539
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3470
3540
  : `${packageDetails}`;
@@ -3497,7 +3567,7 @@ class AzureDigitalTwinsManagementClient extends coreClient__namespace.ServiceCli
3497
3567
  this.subscriptionId = subscriptionId;
3498
3568
  // Assigning values to Constant parameters
3499
3569
  this.$host = options.$host || "https://management.azure.com";
3500
- this.apiVersion = options.apiVersion || "2022-10-31";
3570
+ this.apiVersion = options.apiVersion || "2023-01-31";
3501
3571
  this.digitalTwins = new DigitalTwinsImpl(this);
3502
3572
  this.digitalTwinsEndpoint = new DigitalTwinsEndpointImpl(this);
3503
3573
  this.operations = new OperationsImpl(this);