@azure/arm-deviceupdate 1.1.1-alpha.20231113.1 → 1.2.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 (95) hide show
  1. package/CHANGELOG.md +13 -11
  2. package/dist/index.js +204 -89
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/accountsCreateSample.js +14 -2
  7. package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -1
  8. package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/accountsGetSample.js +1 -1
  10. package/dist-esm/samples-dev/accountsHeadSample.js +1 -1
  11. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +1 -1
  12. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +1 -1
  13. package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
  14. package/dist-esm/samples-dev/checkNameAvailabilitySample.js +2 -2
  15. package/dist-esm/samples-dev/instancesCreateSample.js +1 -1
  16. package/dist-esm/samples-dev/instancesDeleteSample.js +1 -1
  17. package/dist-esm/samples-dev/instancesGetSample.js +1 -1
  18. package/dist-esm/samples-dev/instancesHeadSample.js +1 -1
  19. package/dist-esm/samples-dev/instancesListByAccountSample.js +1 -1
  20. package/dist-esm/samples-dev/instancesUpdateSample.js +1 -1
  21. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  22. package/dist-esm/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.js +1 -1
  23. package/dist-esm/samples-dev/privateEndpointConnectionProxiesDeleteSample.js +1 -1
  24. package/dist-esm/samples-dev/privateEndpointConnectionProxiesGetSample.js +1 -1
  25. package/dist-esm/samples-dev/privateEndpointConnectionProxiesListByAccountSample.js +1 -1
  26. package/dist-esm/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.js +1 -1
  27. package/dist-esm/samples-dev/privateEndpointConnectionProxiesValidateSample.js +1 -1
  28. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  29. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  30. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  31. package/dist-esm/samples-dev/privateEndpointConnectionsListByAccountSample.js +1 -1
  32. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
  33. package/dist-esm/samples-dev/privateLinkResourcesListByAccountSample.js +1 -1
  34. package/dist-esm/src/deviceUpdate.js +2 -2
  35. package/dist-esm/src/lroImpl.d.ts +6 -11
  36. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  37. package/dist-esm/src/lroImpl.js +12 -20
  38. package/dist-esm/src/lroImpl.js.map +1 -1
  39. package/dist-esm/src/models/index.d.ts +29 -0
  40. package/dist-esm/src/models/index.d.ts.map +1 -1
  41. package/dist-esm/src/models/index.js.map +1 -1
  42. package/dist-esm/src/models/mappers.d.ts +5 -0
  43. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  44. package/dist-esm/src/models/mappers.js +82 -0
  45. package/dist-esm/src/models/mappers.js.map +1 -1
  46. package/dist-esm/src/models/parameters.js +1 -1
  47. package/dist-esm/src/operations/accounts.d.ts +4 -4
  48. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  49. package/dist-esm/src/operations/accounts.js +29 -17
  50. package/dist-esm/src/operations/accounts.js.map +1 -1
  51. package/dist-esm/src/operations/instances.d.ts +3 -3
  52. package/dist-esm/src/operations/instances.d.ts.map +1 -1
  53. package/dist-esm/src/operations/instances.js +20 -12
  54. package/dist-esm/src/operations/instances.js.map +1 -1
  55. package/dist-esm/src/operations/privateEndpointConnectionProxies.d.ts +3 -3
  56. package/dist-esm/src/operations/privateEndpointConnectionProxies.d.ts.map +1 -1
  57. package/dist-esm/src/operations/privateEndpointConnectionProxies.js +31 -23
  58. package/dist-esm/src/operations/privateEndpointConnectionProxies.js.map +1 -1
  59. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  60. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  61. package/dist-esm/src/operations/privateEndpointConnections.js +31 -23
  62. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  63. package/dist-esm/src/operationsInterfaces/accounts.d.ts +4 -4
  64. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
  65. package/dist-esm/src/operationsInterfaces/instances.d.ts +3 -3
  66. package/dist-esm/src/operationsInterfaces/instances.d.ts.map +1 -1
  67. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.d.ts +3 -3
  68. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionProxies.d.ts.map +1 -1
  69. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  70. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  71. package/dist-esm/test/deviceupdate_operations_test.spec.d.ts +4 -0
  72. package/dist-esm/test/deviceupdate_operations_test.spec.d.ts.map +1 -0
  73. package/dist-esm/test/deviceupdate_operations_test.spec.js +113 -0
  74. package/dist-esm/test/deviceupdate_operations_test.spec.js.map +1 -0
  75. package/package.json +12 -10
  76. package/review/arm-deviceupdate.api.md +38 -11
  77. package/src/deviceUpdate.ts +2 -2
  78. package/src/lroImpl.ts +31 -23
  79. package/src/models/index.ts +59 -25
  80. package/src/models/mappers.ts +88 -0
  81. package/src/models/parameters.ts +1 -1
  82. package/src/operations/accounts.ts +44 -34
  83. package/src/operations/instances.ts +30 -23
  84. package/src/operations/privateEndpointConnectionProxies.ts +30 -25
  85. package/src/operations/privateEndpointConnections.ts +30 -23
  86. package/src/operationsInterfaces/accounts.ts +6 -6
  87. package/src/operationsInterfaces/instances.ts +4 -4
  88. package/src/operationsInterfaces/privateEndpointConnectionProxies.ts +4 -6
  89. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  90. package/types/arm-deviceupdate.d.ts +45 -11
  91. package/types/tsdoc-metadata.json +1 -1
  92. package/dist-esm/test/sampleTest.d.ts +0 -2
  93. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  94. package/dist-esm/test/sampleTest.js +0 -38
  95. package/dist-esm/test/sampleTest.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,15 +1,17 @@
1
1
  # Release History
2
+
3
+ ## 1.2.0 (2023-12-21)
4
+
5
+ **Features**
2
6
 
3
- ## 1.1.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
7
+ - Added Interface AccountsDeleteHeaders
8
+ - Added Interface Encryption
9
+ - Added Interface InstancesDeleteHeaders
10
+ - Added Interface PrivateEndpointConnectionProxiesDeleteHeaders
11
+ - Added Interface PrivateEndpointConnectionsDeleteHeaders
12
+ - Interface Account has a new optional parameter encryption
13
+
14
+
13
15
  ## 1.1.0 (2023-01-09)
14
16
 
15
17
  **Features**
@@ -19,4 +21,4 @@
19
21
 
20
22
  ## 1.0.0 (2022-08-18)
21
23
 
22
- The package of @azure/arm-deviceupdate is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
24
+ The package of @azure/arm-deviceupdate is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
package/dist/index.js CHANGED
@@ -498,6 +498,26 @@ const SystemData = {
498
498
  }
499
499
  }
500
500
  };
501
+ const Encryption = {
502
+ type: {
503
+ name: "Composite",
504
+ className: "Encryption",
505
+ modelProperties: {
506
+ keyVaultKeyUri: {
507
+ serializedName: "keyVaultKeyUri",
508
+ type: {
509
+ name: "String"
510
+ }
511
+ },
512
+ userAssignedIdentity: {
513
+ serializedName: "userAssignedIdentity",
514
+ type: {
515
+ name: "String"
516
+ }
517
+ }
518
+ }
519
+ }
520
+ };
501
521
  const Location = {
502
522
  type: {
503
523
  name: "Composite",
@@ -1374,6 +1394,12 @@ const Account = {
1374
1394
  type: {
1375
1395
  name: "String"
1376
1396
  }
1397
+ }, encryption: {
1398
+ serializedName: "properties.encryption",
1399
+ type: {
1400
+ name: "Composite",
1401
+ className: "Encryption"
1402
+ }
1377
1403
  }, locations: {
1378
1404
  serializedName: "properties.locations",
1379
1405
  readOnly: true,
@@ -1470,16 +1496,74 @@ const GroupInformation = {
1470
1496
  } })
1471
1497
  }
1472
1498
  };
1499
+ const AccountsDeleteHeaders = {
1500
+ type: {
1501
+ name: "Composite",
1502
+ className: "AccountsDeleteHeaders",
1503
+ modelProperties: {
1504
+ location: {
1505
+ serializedName: "location",
1506
+ type: {
1507
+ name: "String"
1508
+ }
1509
+ }
1510
+ }
1511
+ }
1512
+ };
1513
+ const InstancesDeleteHeaders = {
1514
+ type: {
1515
+ name: "Composite",
1516
+ className: "InstancesDeleteHeaders",
1517
+ modelProperties: {
1518
+ location: {
1519
+ serializedName: "location",
1520
+ type: {
1521
+ name: "String"
1522
+ }
1523
+ }
1524
+ }
1525
+ }
1526
+ };
1527
+ const PrivateEndpointConnectionsDeleteHeaders = {
1528
+ type: {
1529
+ name: "Composite",
1530
+ className: "PrivateEndpointConnectionsDeleteHeaders",
1531
+ modelProperties: {
1532
+ location: {
1533
+ serializedName: "location",
1534
+ type: {
1535
+ name: "String"
1536
+ }
1537
+ }
1538
+ }
1539
+ }
1540
+ };
1541
+ const PrivateEndpointConnectionProxiesDeleteHeaders = {
1542
+ type: {
1543
+ name: "Composite",
1544
+ className: "PrivateEndpointConnectionProxiesDeleteHeaders",
1545
+ modelProperties: {
1546
+ location: {
1547
+ serializedName: "location",
1548
+ type: {
1549
+ name: "String"
1550
+ }
1551
+ }
1552
+ }
1553
+ }
1554
+ };
1473
1555
 
1474
1556
  var Mappers = /*#__PURE__*/Object.freeze({
1475
1557
  __proto__: null,
1476
1558
  Account: Account,
1477
1559
  AccountList: AccountList,
1478
1560
  AccountUpdate: AccountUpdate,
1561
+ AccountsDeleteHeaders: AccountsDeleteHeaders,
1479
1562
  CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
1480
1563
  CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
1481
1564
  ConnectionDetails: ConnectionDetails,
1482
1565
  DiagnosticStorageProperties: DiagnosticStorageProperties,
1566
+ Encryption: Encryption,
1483
1567
  ErrorAdditionalInfo: ErrorAdditionalInfo,
1484
1568
  ErrorDetail: ErrorDetail,
1485
1569
  ErrorResponse: ErrorResponse,
@@ -1488,6 +1572,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
1488
1572
  GroupInformationProperties: GroupInformationProperties,
1489
1573
  Instance: Instance,
1490
1574
  InstanceList: InstanceList,
1575
+ InstancesDeleteHeaders: InstancesDeleteHeaders,
1491
1576
  IotHubSettings: IotHubSettings,
1492
1577
  Location: Location,
1493
1578
  ManagedServiceIdentity: ManagedServiceIdentity,
@@ -1497,9 +1582,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
1497
1582
  PrivateEndpoint: PrivateEndpoint,
1498
1583
  PrivateEndpointConnection: PrivateEndpointConnection,
1499
1584
  PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
1585
+ PrivateEndpointConnectionProxiesDeleteHeaders: PrivateEndpointConnectionProxiesDeleteHeaders,
1500
1586
  PrivateEndpointConnectionProxy: PrivateEndpointConnectionProxy,
1501
1587
  PrivateEndpointConnectionProxyListResult: PrivateEndpointConnectionProxyListResult,
1502
1588
  PrivateEndpointConnectionProxyProperties: PrivateEndpointConnectionProxyProperties,
1589
+ PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders,
1503
1590
  PrivateEndpointUpdate: PrivateEndpointUpdate,
1504
1591
  PrivateLinkResourceListResult: PrivateLinkResourceListResult,
1505
1592
  PrivateLinkResourceProperties: PrivateLinkResourceProperties,
@@ -1564,7 +1651,7 @@ const $host = {
1564
1651
  const apiVersion = {
1565
1652
  parameterPath: "apiVersion",
1566
1653
  mapper: {
1567
- defaultValue: "2022-10-01",
1654
+ defaultValue: "2023-07-01",
1568
1655
  isConstant: true,
1569
1656
  serializedName: "api-version",
1570
1657
  type: {
@@ -1699,25 +1786,17 @@ const privateEndpointUpdate = {
1699
1786
  * Code generated by Microsoft (R) AutoRest Code Generator.
1700
1787
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1701
1788
  */
1702
- class LroImpl {
1703
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1704
- this.sendOperationFn = sendOperationFn;
1705
- this.args = args;
1706
- this.spec = spec;
1707
- this.requestPath = requestPath;
1708
- this.requestMethod = requestMethod;
1709
- }
1710
- sendInitialRequest() {
1711
- return tslib.__awaiter(this, void 0, void 0, function* () {
1712
- return this.sendOperationFn(this.args, this.spec);
1713
- });
1714
- }
1715
- sendPollRequest(path) {
1716
- return tslib.__awaiter(this, void 0, void 0, function* () {
1717
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1718
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1719
- });
1720
- }
1789
+ function createLroSpec(inputs) {
1790
+ const { args, spec, sendOperationFn } = inputs;
1791
+ return {
1792
+ requestMethod: spec.httpMethod,
1793
+ requestPath: spec.path,
1794
+ sendInitialRequest: () => sendOperationFn(args, spec),
1795
+ sendPollRequest: (path, options) => {
1796
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
1797
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1798
+ }
1799
+ };
1721
1800
  }
1722
1801
 
1723
1802
  /*
@@ -1905,7 +1984,7 @@ class AccountsImpl {
1905
1984
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1906
1985
  return this.client.sendOperationRequest(args, spec);
1907
1986
  });
1908
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1987
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1909
1988
  var _a;
1910
1989
  let currentRawResponse = undefined;
1911
1990
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1924,11 +2003,15 @@ class AccountsImpl {
1924
2003
  }
1925
2004
  };
1926
2005
  });
1927
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, account, options }, createOperationSpec$1);
1928
- const poller = new coreLro.LroEngine(lro, {
1929
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2006
+ const lro = createLroSpec({
2007
+ sendOperationFn,
2008
+ args: { resourceGroupName, accountName, account, options },
2009
+ spec: createOperationSpec$1
2010
+ });
2011
+ const poller = yield coreLro.createHttpPoller(lro, {
2012
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1930
2013
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1931
- lroResourceLocationConfig: "azure-async-operation"
2014
+ resourceLocationConfig: "azure-async-operation"
1932
2015
  });
1933
2016
  yield poller.poll();
1934
2017
  return poller;
@@ -1958,7 +2041,7 @@ class AccountsImpl {
1958
2041
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1959
2042
  return this.client.sendOperationRequest(args, spec);
1960
2043
  });
1961
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2044
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1962
2045
  var _a;
1963
2046
  let currentRawResponse = undefined;
1964
2047
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1977,11 +2060,15 @@ class AccountsImpl {
1977
2060
  }
1978
2061
  };
1979
2062
  });
1980
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, deleteOperationSpec$3);
1981
- const poller = new coreLro.LroEngine(lro, {
1982
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2063
+ const lro = createLroSpec({
2064
+ sendOperationFn,
2065
+ args: { resourceGroupName, accountName, options },
2066
+ spec: deleteOperationSpec$3
2067
+ });
2068
+ const poller = yield coreLro.createHttpPoller(lro, {
2069
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1983
2070
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1984
- lroResourceLocationConfig: "location"
2071
+ resourceLocationConfig: "location"
1985
2072
  });
1986
2073
  yield poller.poll();
1987
2074
  return poller;
@@ -2011,7 +2098,7 @@ class AccountsImpl {
2011
2098
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2012
2099
  return this.client.sendOperationRequest(args, spec);
2013
2100
  });
2014
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2101
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2015
2102
  var _a;
2016
2103
  let currentRawResponse = undefined;
2017
2104
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2030,11 +2117,15 @@ class AccountsImpl {
2030
2117
  }
2031
2118
  };
2032
2119
  });
2033
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, accountUpdatePayload, options }, updateOperationSpec$1);
2034
- const poller = new coreLro.LroEngine(lro, {
2035
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2120
+ const lro = createLroSpec({
2121
+ sendOperationFn,
2122
+ args: { resourceGroupName, accountName, accountUpdatePayload, options },
2123
+ spec: updateOperationSpec$1
2124
+ });
2125
+ const poller = yield coreLro.createHttpPoller(lro, {
2126
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2036
2127
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2037
- lroResourceLocationConfig: "azure-async-operation"
2128
+ resourceLocationConfig: "azure-async-operation"
2038
2129
  });
2039
2130
  yield poller.poll();
2040
2131
  return poller;
@@ -2397,7 +2488,7 @@ class InstancesImpl {
2397
2488
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2398
2489
  return this.client.sendOperationRequest(args, spec);
2399
2490
  });
2400
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2491
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2401
2492
  var _a;
2402
2493
  let currentRawResponse = undefined;
2403
2494
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2416,11 +2507,15 @@ class InstancesImpl {
2416
2507
  }
2417
2508
  };
2418
2509
  });
2419
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, instanceName, instance, options }, createOperationSpec);
2420
- const poller = new coreLro.LroEngine(lro, {
2421
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2510
+ const lro = createLroSpec({
2511
+ sendOperationFn,
2512
+ args: { resourceGroupName, accountName, instanceName, instance, options },
2513
+ spec: createOperationSpec
2514
+ });
2515
+ const poller = yield coreLro.createHttpPoller(lro, {
2516
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2422
2517
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2423
- lroResourceLocationConfig: "azure-async-operation"
2518
+ resourceLocationConfig: "azure-async-operation"
2424
2519
  });
2425
2520
  yield poller.poll();
2426
2521
  return poller;
@@ -2452,7 +2547,7 @@ class InstancesImpl {
2452
2547
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2453
2548
  return this.client.sendOperationRequest(args, spec);
2454
2549
  });
2455
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2550
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2456
2551
  var _a;
2457
2552
  let currentRawResponse = undefined;
2458
2553
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2471,11 +2566,15 @@ class InstancesImpl {
2471
2566
  }
2472
2567
  };
2473
2568
  });
2474
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, instanceName, options }, deleteOperationSpec$2);
2475
- const poller = new coreLro.LroEngine(lro, {
2476
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2569
+ const lro = createLroSpec({
2570
+ sendOperationFn,
2571
+ args: { resourceGroupName, accountName, instanceName, options },
2572
+ spec: deleteOperationSpec$2
2573
+ });
2574
+ const poller = yield coreLro.createHttpPoller(lro, {
2575
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2477
2576
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2478
- lroResourceLocationConfig: "location"
2577
+ resourceLocationConfig: "location"
2479
2578
  });
2480
2579
  yield poller.poll();
2481
2580
  return poller;
@@ -2795,7 +2894,7 @@ class PrivateEndpointConnectionsImpl {
2795
2894
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2796
2895
  return this.client.sendOperationRequest(args, spec);
2797
2896
  });
2798
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2897
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2799
2898
  var _a;
2800
2899
  let currentRawResponse = undefined;
2801
2900
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2814,17 +2913,21 @@ class PrivateEndpointConnectionsImpl {
2814
2913
  }
2815
2914
  };
2816
2915
  });
2817
- const lro = new LroImpl(sendOperation, {
2818
- resourceGroupName,
2819
- accountName,
2820
- privateEndpointConnectionName,
2821
- privateEndpointConnection,
2822
- options
2823
- }, createOrUpdateOperationSpec$1);
2824
- const poller = new coreLro.LroEngine(lro, {
2825
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2916
+ const lro = createLroSpec({
2917
+ sendOperationFn,
2918
+ args: {
2919
+ resourceGroupName,
2920
+ accountName,
2921
+ privateEndpointConnectionName,
2922
+ privateEndpointConnection,
2923
+ options
2924
+ },
2925
+ spec: createOrUpdateOperationSpec$1
2926
+ });
2927
+ const poller = yield coreLro.createHttpPoller(lro, {
2928
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2826
2929
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2827
- lroResourceLocationConfig: "azure-async-operation"
2930
+ resourceLocationConfig: "azure-async-operation"
2828
2931
  });
2829
2932
  yield poller.poll();
2830
2933
  return poller;
@@ -2858,7 +2961,7 @@ class PrivateEndpointConnectionsImpl {
2858
2961
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2859
2962
  return this.client.sendOperationRequest(args, spec);
2860
2963
  });
2861
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2964
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2862
2965
  var _a;
2863
2966
  let currentRawResponse = undefined;
2864
2967
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2877,16 +2980,20 @@ class PrivateEndpointConnectionsImpl {
2877
2980
  }
2878
2981
  };
2879
2982
  });
2880
- const lro = new LroImpl(sendOperation, {
2881
- resourceGroupName,
2882
- accountName,
2883
- privateEndpointConnectionName,
2884
- options
2885
- }, deleteOperationSpec$1);
2886
- const poller = new coreLro.LroEngine(lro, {
2887
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2983
+ const lro = createLroSpec({
2984
+ sendOperationFn,
2985
+ args: {
2986
+ resourceGroupName,
2987
+ accountName,
2988
+ privateEndpointConnectionName,
2989
+ options
2990
+ },
2991
+ spec: deleteOperationSpec$1
2992
+ });
2993
+ const poller = yield coreLro.createHttpPoller(lro, {
2994
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2888
2995
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2889
- lroResourceLocationConfig: "location"
2996
+ resourceLocationConfig: "location"
2890
2997
  });
2891
2998
  yield poller.poll();
2892
2999
  return poller;
@@ -3285,7 +3392,7 @@ class PrivateEndpointConnectionProxiesImpl {
3285
3392
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3286
3393
  return this.client.sendOperationRequest(args, spec);
3287
3394
  });
3288
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3395
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3289
3396
  var _a;
3290
3397
  let currentRawResponse = undefined;
3291
3398
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -3304,17 +3411,21 @@ class PrivateEndpointConnectionProxiesImpl {
3304
3411
  }
3305
3412
  };
3306
3413
  });
3307
- const lro = new LroImpl(sendOperation, {
3308
- resourceGroupName,
3309
- accountName,
3310
- privateEndpointConnectionProxyId,
3311
- privateEndpointConnectionProxy,
3312
- options
3313
- }, createOrUpdateOperationSpec);
3314
- const poller = new coreLro.LroEngine(lro, {
3315
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3414
+ const lro = createLroSpec({
3415
+ sendOperationFn,
3416
+ args: {
3417
+ resourceGroupName,
3418
+ accountName,
3419
+ privateEndpointConnectionProxyId,
3420
+ privateEndpointConnectionProxy,
3421
+ options
3422
+ },
3423
+ spec: createOrUpdateOperationSpec
3424
+ });
3425
+ const poller = yield coreLro.createHttpPoller(lro, {
3426
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3316
3427
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3317
- lroResourceLocationConfig: "azure-async-operation"
3428
+ resourceLocationConfig: "azure-async-operation"
3318
3429
  });
3319
3430
  yield poller.poll();
3320
3431
  return poller;
@@ -3349,7 +3460,7 @@ class PrivateEndpointConnectionProxiesImpl {
3349
3460
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3350
3461
  return this.client.sendOperationRequest(args, spec);
3351
3462
  });
3352
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3463
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3353
3464
  var _a;
3354
3465
  let currentRawResponse = undefined;
3355
3466
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -3368,16 +3479,20 @@ class PrivateEndpointConnectionProxiesImpl {
3368
3479
  }
3369
3480
  };
3370
3481
  });
3371
- const lro = new LroImpl(sendOperation, {
3372
- resourceGroupName,
3373
- accountName,
3374
- privateEndpointConnectionProxyId,
3375
- options
3376
- }, deleteOperationSpec);
3377
- const poller = new coreLro.LroEngine(lro, {
3378
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3482
+ const lro = createLroSpec({
3483
+ sendOperationFn,
3484
+ args: {
3485
+ resourceGroupName,
3486
+ accountName,
3487
+ privateEndpointConnectionProxyId,
3488
+ options
3489
+ },
3490
+ spec: deleteOperationSpec
3491
+ });
3492
+ const poller = yield coreLro.createHttpPoller(lro, {
3493
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3379
3494
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3380
- lroResourceLocationConfig: "location"
3495
+ resourceLocationConfig: "location"
3381
3496
  });
3382
3497
  yield poller.poll();
3383
3498
  return poller;
@@ -3702,7 +3817,7 @@ class DeviceUpdate extends coreClient__namespace.ServiceClient {
3702
3817
  requestContentType: "application/json; charset=utf-8",
3703
3818
  credential: credentials
3704
3819
  };
3705
- const packageDetails = `azsdk-js-arm-deviceupdate/1.1.1`;
3820
+ const packageDetails = `azsdk-js-arm-deviceupdate/1.2.0`;
3706
3821
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3707
3822
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3708
3823
  : `${packageDetails}`;
@@ -3735,7 +3850,7 @@ class DeviceUpdate extends coreClient__namespace.ServiceClient {
3735
3850
  this.subscriptionId = subscriptionId;
3736
3851
  // Assigning values to Constant parameters
3737
3852
  this.$host = options.$host || "https://management.azure.com";
3738
- this.apiVersion = options.apiVersion || "2022-10-01";
3853
+ this.apiVersion = options.apiVersion || "2023-07-01";
3739
3854
  this.accounts = new AccountsImpl(this);
3740
3855
  this.instances = new InstancesImpl(this);
3741
3856
  this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);