@azure/arm-databricks 3.0.0-beta.4 → 3.0.1-alpha.20231124.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/CHANGELOG.md +14 -4
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/index.js +1101 -274
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.js +58 -0
  11. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/accessConnectorsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/accessConnectorsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/accessConnectorsDeleteSample.js +38 -0
  15. package/dist-esm/samples-dev/accessConnectorsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/accessConnectorsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/accessConnectorsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/accessConnectorsGetSample.js +38 -0
  19. package/dist-esm/samples-dev/accessConnectorsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.js +53 -0
  23. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.js +52 -0
  27. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.js.map +1 -0
  28. package/dist-esm/samples-dev/accessConnectorsUpdateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/accessConnectorsUpdateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/accessConnectorsUpdateSample.js +39 -0
  31. package/dist-esm/samples-dev/accessConnectorsUpdateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/operationsListSample.js +17 -7
  33. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  34. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js +12 -4
  35. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js.map +1 -1
  36. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +12 -4
  37. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
  38. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +12 -4
  39. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  40. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +12 -4
  41. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  42. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +18 -8
  43. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  44. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +12 -4
  45. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
  46. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +18 -8
  47. package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -1
  48. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js +11 -4
  49. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js.map +1 -1
  50. package/dist-esm/samples-dev/vNetPeeringDeleteSample.js +11 -4
  51. package/dist-esm/samples-dev/vNetPeeringDeleteSample.js.map +1 -1
  52. package/dist-esm/samples-dev/vNetPeeringGetSample.js +11 -4
  53. package/dist-esm/samples-dev/vNetPeeringGetSample.js.map +1 -1
  54. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js +17 -8
  55. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js.map +1 -1
  56. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +98 -20
  57. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
  58. package/dist-esm/samples-dev/workspacesDeleteSample.js +11 -4
  59. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -1
  60. package/dist-esm/samples-dev/workspacesGetSample.js +33 -8
  61. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -1
  62. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +17 -8
  63. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
  64. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +16 -7
  65. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
  66. package/dist-esm/samples-dev/workspacesUpdateSample.js +11 -4
  67. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
  68. package/dist-esm/src/azureDatabricksManagementClient.d.ts +2 -4
  69. package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -1
  70. package/dist-esm/src/azureDatabricksManagementClient.js +3 -32
  71. package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -1
  72. package/dist-esm/src/lroImpl.d.ts +6 -11
  73. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  74. package/dist-esm/src/lroImpl.js +12 -20
  75. package/dist-esm/src/lroImpl.js.map +1 -1
  76. package/dist-esm/src/models/index.d.ts +204 -36
  77. package/dist-esm/src/models/index.d.ts.map +1 -1
  78. package/dist-esm/src/models/index.js +12 -0
  79. package/dist-esm/src/models/index.js.map +1 -1
  80. package/dist-esm/src/models/mappers.d.ts +8 -0
  81. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  82. package/dist-esm/src/models/mappers.js +243 -2
  83. package/dist-esm/src/models/mappers.js.map +1 -1
  84. package/dist-esm/src/models/parameters.d.ts +4 -0
  85. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  86. package/dist-esm/src/models/parameters.js +35 -2
  87. package/dist-esm/src/models/parameters.js.map +1 -1
  88. package/dist-esm/src/operations/accessConnectors.d.ts +107 -0
  89. package/dist-esm/src/operations/accessConnectors.d.ts.map +1 -0
  90. package/dist-esm/src/operations/accessConnectors.js +543 -0
  91. package/dist-esm/src/operations/accessConnectors.js.map +1 -0
  92. package/dist-esm/src/operations/index.d.ts +1 -0
  93. package/dist-esm/src/operations/index.d.ts.map +1 -1
  94. package/dist-esm/src/operations/index.js +1 -0
  95. package/dist-esm/src/operations/index.js.map +1 -1
  96. package/dist-esm/src/operations/operations.js +6 -5
  97. package/dist-esm/src/operations/operations.js.map +1 -1
  98. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  99. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  100. package/dist-esm/src/operations/privateEndpointConnections.js +35 -26
  101. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  102. package/dist-esm/src/operations/privateLinkResources.js +6 -5
  103. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  104. package/dist-esm/src/operations/vNetPeering.d.ts +3 -3
  105. package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -1
  106. package/dist-esm/src/operations/vNetPeering.js +30 -21
  107. package/dist-esm/src/operations/vNetPeering.js.map +1 -1
  108. package/dist-esm/src/operations/workspaces.d.ts +4 -4
  109. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  110. package/dist-esm/src/operations/workspaces.js +38 -24
  111. package/dist-esm/src/operations/workspaces.js.map +1 -1
  112. package/dist-esm/src/operationsInterfaces/accessConnectors.d.ts +71 -0
  113. package/dist-esm/src/operationsInterfaces/accessConnectors.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/accessConnectors.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/accessConnectors.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  117. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  118. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  119. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  120. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  121. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  122. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts +3 -3
  123. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +4 -4
  125. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -1
  126. package/dist-esm/src/pagingHelper.d.ts +4 -4
  127. package/dist-esm/src/pagingHelper.js +4 -4
  128. package/dist-esm/test/databricks_examples.js +6 -4
  129. package/dist-esm/test/databricks_examples.js.map +1 -1
  130. package/package.json +21 -24
  131. package/review/arm-databricks.api.md +155 -12
  132. package/src/azureDatabricksManagementClient.ts +7 -39
  133. package/src/lroImpl.ts +31 -23
  134. package/src/models/index.ts +196 -4
  135. package/src/models/mappers.ts +258 -2
  136. package/src/models/parameters.ts +41 -2
  137. package/src/operations/accessConnectors.ts +717 -0
  138. package/src/operations/index.ts +1 -0
  139. package/src/operations/operations.ts +0 -1
  140. package/src/operations/privateEndpointConnections.ts +28 -22
  141. package/src/operations/privateLinkResources.ts +0 -1
  142. package/src/operations/vNetPeering.ts +28 -22
  143. package/src/operations/workspaces.ts +41 -33
  144. package/src/operationsInterfaces/accessConnectors.ts +139 -0
  145. package/src/operationsInterfaces/index.ts +1 -0
  146. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  147. package/src/operationsInterfaces/vNetPeering.ts +4 -4
  148. package/src/operationsInterfaces/workspaces.ts +6 -6
  149. package/src/pagingHelper.ts +4 -4
  150. package/types/arm-databricks.d.ts +279 -20
  151. package/types/tsdoc-metadata.json +1 -1
  152. package/rollup.config.js +0 -122
package/dist/index.js CHANGED
@@ -2,13 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var coreClient = require('@azure/core-client');
7
6
  var coreRestPipeline = require('@azure/core-rest-pipeline');
7
+ var tslib = require('tslib');
8
8
  var coreLro = require('@azure/core-lro');
9
9
 
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
10
+ function _interopNamespaceDefault(e) {
12
11
  var n = Object.create(null);
13
12
  if (e) {
14
13
  Object.keys(e).forEach(function (k) {
@@ -21,12 +20,12 @@ function _interopNamespace(e) {
21
20
  }
22
21
  });
23
22
  }
24
- n["default"] = e;
23
+ n.default = e;
25
24
  return Object.freeze(n);
26
25
  }
27
26
 
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
27
+ var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
30
29
 
31
30
  /*
32
31
  * Copyright (c) Microsoft Corporation.
@@ -37,11 +36,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
37
36
  */
38
37
  const pageMap = new WeakMap();
39
38
  /**
40
- * Given a result page from a pageable operation, returns a
41
- * continuation token that can be used to begin paging from
39
+ * Given the last `.value` produced by the `byPage` iterator,
40
+ * returns a continuation token that can be used to begin paging from
42
41
  * 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().
42
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
+ * @returns The continuation token that can be passed into byPage() during future calls.
45
44
  */
46
45
  function getContinuationToken(page) {
47
46
  var _a;
@@ -195,6 +194,18 @@ exports.KnownPeeringProvisioningState = void 0;
195
194
  /** Failed */
196
195
  KnownPeeringProvisioningState["Failed"] = "Failed";
197
196
  })(exports.KnownPeeringProvisioningState || (exports.KnownPeeringProvisioningState = {}));
197
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
198
+ exports.KnownManagedServiceIdentityType = void 0;
199
+ (function (KnownManagedServiceIdentityType) {
200
+ /** None */
201
+ KnownManagedServiceIdentityType["None"] = "None";
202
+ /** SystemAssigned */
203
+ KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
204
+ /** UserAssigned */
205
+ KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
206
+ /** SystemAssignedUserAssigned */
207
+ KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
208
+ })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
198
209
 
199
210
  /*
200
211
  * Copyright (c) Microsoft Corporation.
@@ -551,6 +562,13 @@ const EncryptionEntitiesDefinition = {
551
562
  name: "Composite",
552
563
  className: "EncryptionV2"
553
564
  }
565
+ },
566
+ managedDisk: {
567
+ serializedName: "managedDisk",
568
+ type: {
569
+ name: "Composite",
570
+ className: "ManagedDiskEncryption"
571
+ }
554
572
  }
555
573
  }
556
574
  }
@@ -606,6 +624,63 @@ const EncryptionV2KeyVaultProperties = {
606
624
  }
607
625
  }
608
626
  };
627
+ const ManagedDiskEncryption = {
628
+ type: {
629
+ name: "Composite",
630
+ className: "ManagedDiskEncryption",
631
+ modelProperties: {
632
+ keySource: {
633
+ serializedName: "keySource",
634
+ required: true,
635
+ type: {
636
+ name: "String"
637
+ }
638
+ },
639
+ keyVaultProperties: {
640
+ serializedName: "keyVaultProperties",
641
+ type: {
642
+ name: "Composite",
643
+ className: "ManagedDiskEncryptionKeyVaultProperties"
644
+ }
645
+ },
646
+ rotationToLatestKeyVersionEnabled: {
647
+ serializedName: "rotationToLatestKeyVersionEnabled",
648
+ type: {
649
+ name: "Boolean"
650
+ }
651
+ }
652
+ }
653
+ }
654
+ };
655
+ const ManagedDiskEncryptionKeyVaultProperties = {
656
+ type: {
657
+ name: "Composite",
658
+ className: "ManagedDiskEncryptionKeyVaultProperties",
659
+ modelProperties: {
660
+ keyVaultUri: {
661
+ serializedName: "keyVaultUri",
662
+ required: true,
663
+ type: {
664
+ name: "String"
665
+ }
666
+ },
667
+ keyName: {
668
+ serializedName: "keyName",
669
+ required: true,
670
+ type: {
671
+ name: "String"
672
+ }
673
+ },
674
+ keyVersion: {
675
+ serializedName: "keyVersion",
676
+ required: true,
677
+ type: {
678
+ name: "String"
679
+ }
680
+ }
681
+ }
682
+ }
683
+ };
609
684
  const PrivateEndpointConnection = {
610
685
  type: {
611
686
  name: "Composite",
@@ -654,6 +729,17 @@ const PrivateEndpointConnectionProperties = {
654
729
  className: "PrivateEndpoint"
655
730
  }
656
731
  },
732
+ groupIds: {
733
+ serializedName: "groupIds",
734
+ type: {
735
+ name: "Sequence",
736
+ element: {
737
+ type: {
738
+ name: "String"
739
+ }
740
+ }
741
+ }
742
+ },
657
743
  privateLinkServiceConnectionState: {
658
744
  serializedName: "privateLinkServiceConnectionState",
659
745
  type: {
@@ -704,8 +790,8 @@ const PrivateLinkServiceConnectionState = {
704
790
  name: "String"
705
791
  }
706
792
  },
707
- actionRequired: {
708
- serializedName: "actionRequired",
793
+ actionsRequired: {
794
+ serializedName: "actionsRequired",
709
795
  type: {
710
796
  name: "String"
711
797
  }
@@ -1000,6 +1086,12 @@ const OperationDisplay = {
1000
1086
  type: {
1001
1087
  name: "String"
1002
1088
  }
1089
+ },
1090
+ description: {
1091
+ serializedName: "description",
1092
+ type: {
1093
+ name: "String"
1094
+ }
1003
1095
  }
1004
1096
  }
1005
1097
  }
@@ -1344,6 +1436,129 @@ const VirtualNetworkPeeringList = {
1344
1436
  }
1345
1437
  }
1346
1438
  };
1439
+ const ManagedServiceIdentity = {
1440
+ type: {
1441
+ name: "Composite",
1442
+ className: "ManagedServiceIdentity",
1443
+ modelProperties: {
1444
+ principalId: {
1445
+ serializedName: "principalId",
1446
+ readOnly: true,
1447
+ type: {
1448
+ name: "Uuid"
1449
+ }
1450
+ },
1451
+ tenantId: {
1452
+ serializedName: "tenantId",
1453
+ readOnly: true,
1454
+ type: {
1455
+ name: "Uuid"
1456
+ }
1457
+ },
1458
+ type: {
1459
+ serializedName: "type",
1460
+ required: true,
1461
+ type: {
1462
+ name: "String"
1463
+ }
1464
+ },
1465
+ userAssignedIdentities: {
1466
+ serializedName: "userAssignedIdentities",
1467
+ type: {
1468
+ name: "Dictionary",
1469
+ value: {
1470
+ type: { name: "Composite", className: "UserAssignedIdentity" }
1471
+ }
1472
+ }
1473
+ }
1474
+ }
1475
+ }
1476
+ };
1477
+ const UserAssignedIdentity = {
1478
+ type: {
1479
+ name: "Composite",
1480
+ className: "UserAssignedIdentity",
1481
+ modelProperties: {
1482
+ principalId: {
1483
+ serializedName: "principalId",
1484
+ readOnly: true,
1485
+ type: {
1486
+ name: "Uuid"
1487
+ }
1488
+ },
1489
+ clientId: {
1490
+ serializedName: "clientId",
1491
+ readOnly: true,
1492
+ type: {
1493
+ name: "Uuid"
1494
+ }
1495
+ }
1496
+ }
1497
+ }
1498
+ };
1499
+ const AccessConnectorProperties = {
1500
+ type: {
1501
+ name: "Composite",
1502
+ className: "AccessConnectorProperties",
1503
+ modelProperties: {
1504
+ provisioningState: {
1505
+ serializedName: "provisioningState",
1506
+ readOnly: true,
1507
+ type: {
1508
+ name: "String"
1509
+ }
1510
+ }
1511
+ }
1512
+ }
1513
+ };
1514
+ const AccessConnectorUpdate = {
1515
+ type: {
1516
+ name: "Composite",
1517
+ className: "AccessConnectorUpdate",
1518
+ modelProperties: {
1519
+ tags: {
1520
+ serializedName: "tags",
1521
+ type: {
1522
+ name: "Dictionary",
1523
+ value: { type: { name: "String" } }
1524
+ }
1525
+ },
1526
+ identity: {
1527
+ serializedName: "identity",
1528
+ type: {
1529
+ name: "Composite",
1530
+ className: "ManagedServiceIdentity"
1531
+ }
1532
+ }
1533
+ }
1534
+ }
1535
+ };
1536
+ const AccessConnectorListResult = {
1537
+ type: {
1538
+ name: "Composite",
1539
+ className: "AccessConnectorListResult",
1540
+ modelProperties: {
1541
+ value: {
1542
+ serializedName: "value",
1543
+ type: {
1544
+ name: "Sequence",
1545
+ element: {
1546
+ type: {
1547
+ name: "Composite",
1548
+ className: "AccessConnector"
1549
+ }
1550
+ }
1551
+ }
1552
+ },
1553
+ nextLink: {
1554
+ serializedName: "nextLink",
1555
+ type: {
1556
+ name: "String"
1557
+ }
1558
+ }
1559
+ }
1560
+ }
1561
+ };
1347
1562
  const TrackedResource = {
1348
1563
  type: {
1349
1564
  name: "Composite",
@@ -1462,6 +1677,18 @@ const Workspace = {
1462
1677
  name: "Composite",
1463
1678
  className: "ManagedIdentityConfiguration"
1464
1679
  }
1680
+ }, managedDiskIdentity: {
1681
+ serializedName: "properties.managedDiskIdentity",
1682
+ type: {
1683
+ name: "Composite",
1684
+ className: "ManagedIdentityConfiguration"
1685
+ }
1686
+ }, diskEncryptionSetId: {
1687
+ serializedName: "properties.diskEncryptionSetId",
1688
+ readOnly: true,
1689
+ type: {
1690
+ name: "String"
1691
+ }
1465
1692
  }, encryption: {
1466
1693
  serializedName: "properties.encryption",
1467
1694
  type: {
@@ -1493,51 +1720,84 @@ const Workspace = {
1493
1720
  } })
1494
1721
  }
1495
1722
  };
1723
+ const AccessConnector = {
1724
+ type: {
1725
+ name: "Composite",
1726
+ className: "AccessConnector",
1727
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
1728
+ serializedName: "identity",
1729
+ type: {
1730
+ name: "Composite",
1731
+ className: "ManagedServiceIdentity"
1732
+ }
1733
+ }, systemData: {
1734
+ serializedName: "systemData",
1735
+ type: {
1736
+ name: "Composite",
1737
+ className: "SystemData"
1738
+ }
1739
+ }, properties: {
1740
+ serializedName: "properties",
1741
+ type: {
1742
+ name: "Composite",
1743
+ className: "AccessConnectorProperties"
1744
+ }
1745
+ } })
1746
+ }
1747
+ };
1496
1748
 
1497
1749
  var Mappers = /*#__PURE__*/Object.freeze({
1498
1750
  __proto__: null,
1499
- WorkspaceCustomParameters: WorkspaceCustomParameters,
1500
- WorkspaceCustomStringParameter: WorkspaceCustomStringParameter,
1501
- WorkspaceCustomBooleanParameter: WorkspaceCustomBooleanParameter,
1502
- WorkspaceEncryptionParameter: WorkspaceEncryptionParameter,
1503
- Encryption: Encryption,
1504
- WorkspaceCustomObjectParameter: WorkspaceCustomObjectParameter,
1505
- WorkspaceProviderAuthorization: WorkspaceProviderAuthorization,
1751
+ AccessConnector: AccessConnector,
1752
+ AccessConnectorListResult: AccessConnectorListResult,
1753
+ AccessConnectorProperties: AccessConnectorProperties,
1754
+ AccessConnectorUpdate: AccessConnectorUpdate,
1755
+ AddressSpace: AddressSpace,
1506
1756
  CreatedBy: CreatedBy,
1507
- ManagedIdentityConfiguration: ManagedIdentityConfiguration,
1508
- WorkspacePropertiesEncryption: WorkspacePropertiesEncryption,
1757
+ Encryption: Encryption,
1509
1758
  EncryptionEntitiesDefinition: EncryptionEntitiesDefinition,
1510
1759
  EncryptionV2: EncryptionV2,
1511
1760
  EncryptionV2KeyVaultProperties: EncryptionV2KeyVaultProperties,
1761
+ EndpointDependency: EndpointDependency,
1762
+ EndpointDetail: EndpointDetail,
1763
+ ErrorDetail: ErrorDetail,
1764
+ ErrorInfo: ErrorInfo,
1765
+ ErrorResponse: ErrorResponse,
1766
+ GroupIdInformation: GroupIdInformation,
1767
+ GroupIdInformationProperties: GroupIdInformationProperties,
1768
+ ManagedDiskEncryption: ManagedDiskEncryption,
1769
+ ManagedDiskEncryptionKeyVaultProperties: ManagedDiskEncryptionKeyVaultProperties,
1770
+ ManagedIdentityConfiguration: ManagedIdentityConfiguration,
1771
+ ManagedServiceIdentity: ManagedServiceIdentity,
1772
+ Operation: Operation,
1773
+ OperationDisplay: OperationDisplay,
1774
+ OperationListResult: OperationListResult,
1775
+ OutboundEnvironmentEndpoint: OutboundEnvironmentEndpoint,
1776
+ PrivateEndpoint: PrivateEndpoint,
1512
1777
  PrivateEndpointConnection: PrivateEndpointConnection,
1513
1778
  PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
1514
- PrivateEndpoint: PrivateEndpoint,
1779
+ PrivateEndpointConnectionsList: PrivateEndpointConnectionsList,
1780
+ PrivateLinkResourcesList: PrivateLinkResourcesList,
1515
1781
  PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1782
+ Resource: Resource,
1516
1783
  Sku: Sku,
1517
1784
  SystemData: SystemData,
1518
- Resource: Resource,
1519
- ErrorResponse: ErrorResponse,
1520
- ErrorInfo: ErrorInfo,
1521
- ErrorDetail: ErrorDetail,
1522
- WorkspaceUpdate: WorkspaceUpdate,
1523
- WorkspaceListResult: WorkspaceListResult,
1524
- OperationListResult: OperationListResult,
1525
- Operation: Operation,
1526
- OperationDisplay: OperationDisplay,
1527
- PrivateLinkResourcesList: PrivateLinkResourcesList,
1528
- GroupIdInformationProperties: GroupIdInformationProperties,
1529
- PrivateEndpointConnectionsList: PrivateEndpointConnectionsList,
1530
- OutboundEnvironmentEndpoint: OutboundEnvironmentEndpoint,
1531
- EndpointDependency: EndpointDependency,
1532
- EndpointDetail: EndpointDetail,
1785
+ TrackedResource: TrackedResource,
1786
+ UserAssignedIdentity: UserAssignedIdentity,
1533
1787
  VirtualNetworkPeering: VirtualNetworkPeering,
1788
+ VirtualNetworkPeeringList: VirtualNetworkPeeringList,
1534
1789
  VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork: VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork,
1535
- AddressSpace: AddressSpace,
1536
1790
  VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork: VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork,
1537
- VirtualNetworkPeeringList: VirtualNetworkPeeringList,
1538
- TrackedResource: TrackedResource,
1539
- GroupIdInformation: GroupIdInformation,
1540
- Workspace: Workspace
1791
+ Workspace: Workspace,
1792
+ WorkspaceCustomBooleanParameter: WorkspaceCustomBooleanParameter,
1793
+ WorkspaceCustomObjectParameter: WorkspaceCustomObjectParameter,
1794
+ WorkspaceCustomParameters: WorkspaceCustomParameters,
1795
+ WorkspaceCustomStringParameter: WorkspaceCustomStringParameter,
1796
+ WorkspaceEncryptionParameter: WorkspaceEncryptionParameter,
1797
+ WorkspaceListResult: WorkspaceListResult,
1798
+ WorkspacePropertiesEncryption: WorkspacePropertiesEncryption,
1799
+ WorkspaceProviderAuthorization: WorkspaceProviderAuthorization,
1800
+ WorkspaceUpdate: WorkspaceUpdate
1541
1801
  });
1542
1802
 
1543
1803
  /*
@@ -1601,7 +1861,7 @@ const workspaceName = {
1601
1861
  const apiVersion = {
1602
1862
  parameterPath: "apiVersion",
1603
1863
  mapper: {
1604
- defaultValue: "2021-04-01-preview",
1864
+ defaultValue: "2023-02-01",
1605
1865
  isConstant: true,
1606
1866
  serializedName: "api-version",
1607
1867
  type: {
@@ -1687,6 +1947,39 @@ const virtualNetworkPeeringParameters = {
1687
1947
  parameterPath: "virtualNetworkPeeringParameters",
1688
1948
  mapper: VirtualNetworkPeering
1689
1949
  };
1950
+ const connectorName = {
1951
+ parameterPath: "connectorName",
1952
+ mapper: {
1953
+ constraints: {
1954
+ MaxLength: 64,
1955
+ MinLength: 3
1956
+ },
1957
+ serializedName: "connectorName",
1958
+ required: true,
1959
+ type: {
1960
+ name: "String"
1961
+ }
1962
+ }
1963
+ };
1964
+ const apiVersion1 = {
1965
+ parameterPath: "apiVersion",
1966
+ mapper: {
1967
+ defaultValue: "2023-05-01",
1968
+ isConstant: true,
1969
+ serializedName: "api-version",
1970
+ type: {
1971
+ name: "String"
1972
+ }
1973
+ }
1974
+ };
1975
+ const parameters2 = {
1976
+ parameterPath: "parameters",
1977
+ mapper: AccessConnector
1978
+ };
1979
+ const parameters3 = {
1980
+ parameterPath: "parameters",
1981
+ mapper: AccessConnectorUpdate
1982
+ };
1690
1983
 
1691
1984
  /*
1692
1985
  * Copyright (c) Microsoft Corporation.
@@ -1695,25 +1988,17 @@ const virtualNetworkPeeringParameters = {
1695
1988
  * Code generated by Microsoft (R) AutoRest Code Generator.
1696
1989
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1697
1990
  */
1698
- class LroImpl {
1699
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1700
- this.sendOperationFn = sendOperationFn;
1701
- this.args = args;
1702
- this.spec = spec;
1703
- this.requestPath = requestPath;
1704
- this.requestMethod = requestMethod;
1705
- }
1706
- sendInitialRequest() {
1707
- return tslib.__awaiter(this, void 0, void 0, function* () {
1708
- return this.sendOperationFn(this.args, this.spec);
1709
- });
1710
- }
1711
- sendPollRequest(path) {
1712
- return tslib.__awaiter(this, void 0, void 0, function* () {
1713
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1714
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1715
- });
1716
- }
1991
+ function createLroSpec(inputs) {
1992
+ const { args, spec, sendOperationFn } = inputs;
1993
+ return {
1994
+ requestMethod: spec.httpMethod,
1995
+ requestPath: spec.path,
1996
+ sendInitialRequest: () => sendOperationFn(args, spec),
1997
+ sendPollRequest: (path, options) => {
1998
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
1999
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2000
+ }
2001
+ };
1717
2002
  }
1718
2003
 
1719
2004
  /*
@@ -1777,17 +2062,19 @@ class WorkspacesImpl {
1777
2062
  }
1778
2063
  listByResourceGroupPagingAll(resourceGroupName, options) {
1779
2064
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1780
- var e_1, _a;
2065
+ var _a, e_1, _b, _c;
1781
2066
  try {
1782
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1783
- const page = _c.value;
2067
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2068
+ _c = _f.value;
2069
+ _d = false;
2070
+ const page = _c;
1784
2071
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1785
2072
  }
1786
2073
  }
1787
2074
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
1788
2075
  finally {
1789
2076
  try {
1790
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2077
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1791
2078
  }
1792
2079
  finally { if (e_1) throw e_1.error; }
1793
2080
  }
@@ -1836,17 +2123,19 @@ class WorkspacesImpl {
1836
2123
  }
1837
2124
  listBySubscriptionPagingAll(options) {
1838
2125
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1839
- var e_2, _a;
2126
+ var _a, e_2, _b, _c;
1840
2127
  try {
1841
- for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1842
- const page = _c.value;
2128
+ for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2129
+ _c = _f.value;
2130
+ _d = false;
2131
+ const page = _c;
1843
2132
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1844
2133
  }
1845
2134
  }
1846
2135
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
1847
2136
  finally {
1848
2137
  try {
1849
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2138
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1850
2139
  }
1851
2140
  finally { if (e_2) throw e_2.error; }
1852
2141
  }
@@ -1859,7 +2148,7 @@ class WorkspacesImpl {
1859
2148
  * @param options The options parameters.
1860
2149
  */
1861
2150
  get(resourceGroupName, workspaceName, options) {
1862
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$3);
2151
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$4);
1863
2152
  }
1864
2153
  /**
1865
2154
  * Deletes the workspace.
@@ -1872,7 +2161,7 @@ class WorkspacesImpl {
1872
2161
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1873
2162
  return this.client.sendOperationRequest(args, spec);
1874
2163
  });
1875
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2164
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1876
2165
  var _a;
1877
2166
  let currentRawResponse = undefined;
1878
2167
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1891,9 +2180,13 @@ class WorkspacesImpl {
1891
2180
  }
1892
2181
  };
1893
2182
  });
1894
- const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec$2);
1895
- const poller = new coreLro.LroEngine(lro, {
1896
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2183
+ const lro = createLroSpec({
2184
+ sendOperationFn,
2185
+ args: { resourceGroupName, workspaceName, options },
2186
+ spec: deleteOperationSpec$3
2187
+ });
2188
+ const poller = yield coreLro.createHttpPoller(lro, {
2189
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1897
2190
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1898
2191
  });
1899
2192
  yield poller.poll();
@@ -1924,7 +2217,7 @@ class WorkspacesImpl {
1924
2217
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1925
2218
  return this.client.sendOperationRequest(args, spec);
1926
2219
  });
1927
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2220
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1928
2221
  var _a;
1929
2222
  let currentRawResponse = undefined;
1930
2223
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1943,9 +2236,13 @@ class WorkspacesImpl {
1943
2236
  }
1944
2237
  };
1945
2238
  });
1946
- const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec$1);
1947
- const poller = new coreLro.LroEngine(lro, {
1948
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2239
+ const lro = createLroSpec({
2240
+ sendOperationFn,
2241
+ args: { resourceGroupName, workspaceName, parameters, options },
2242
+ spec: createOrUpdateOperationSpec$2
2243
+ });
2244
+ const poller = yield coreLro.createHttpPoller(lro, {
2245
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1949
2246
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1950
2247
  });
1951
2248
  yield poller.poll();
@@ -1977,7 +2274,7 @@ class WorkspacesImpl {
1977
2274
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1978
2275
  return this.client.sendOperationRequest(args, spec);
1979
2276
  });
1980
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2277
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1981
2278
  var _a;
1982
2279
  let currentRawResponse = undefined;
1983
2280
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1996,9 +2293,13 @@ class WorkspacesImpl {
1996
2293
  }
1997
2294
  };
1998
2295
  });
1999
- const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
2000
- const poller = new coreLro.LroEngine(lro, {
2001
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2296
+ const lro = createLroSpec({
2297
+ sendOperationFn,
2298
+ args: { resourceGroupName, workspaceName, parameters, options },
2299
+ spec: updateOperationSpec$1
2300
+ });
2301
+ const poller = yield coreLro.createHttpPoller(lro, {
2302
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2002
2303
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2003
2304
  });
2004
2305
  yield poller.poll();
@@ -2024,14 +2325,14 @@ class WorkspacesImpl {
2024
2325
  * @param options The options parameters.
2025
2326
  */
2026
2327
  _listByResourceGroup(resourceGroupName, options) {
2027
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2328
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
2028
2329
  }
2029
2330
  /**
2030
2331
  * Gets all the workspaces within a subscription.
2031
2332
  * @param options The options parameters.
2032
2333
  */
2033
2334
  _listBySubscription(options) {
2034
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
2335
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
2035
2336
  }
2036
2337
  /**
2037
2338
  * ListByResourceGroupNext
@@ -2040,7 +2341,7 @@ class WorkspacesImpl {
2040
2341
  * @param options The options parameters.
2041
2342
  */
2042
2343
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2043
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2344
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
2044
2345
  }
2045
2346
  /**
2046
2347
  * ListBySubscriptionNext
@@ -2048,12 +2349,12 @@ class WorkspacesImpl {
2048
2349
  * @param options The options parameters.
2049
2350
  */
2050
2351
  _listBySubscriptionNext(nextLink, options) {
2051
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
2352
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
2052
2353
  }
2053
2354
  }
2054
2355
  // Operation Specifications
2055
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2056
- const getOperationSpec$3 = {
2356
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2357
+ const getOperationSpec$4 = {
2057
2358
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
2058
2359
  httpMethod: "GET",
2059
2360
  responses: {
@@ -2072,9 +2373,9 @@ const getOperationSpec$3 = {
2072
2373
  subscriptionId
2073
2374
  ],
2074
2375
  headerParameters: [accept],
2075
- serializer: serializer$5
2376
+ serializer: serializer$6
2076
2377
  };
2077
- const deleteOperationSpec$2 = {
2378
+ const deleteOperationSpec$3 = {
2078
2379
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
2079
2380
  httpMethod: "DELETE",
2080
2381
  responses: {
@@ -2094,9 +2395,9 @@ const deleteOperationSpec$2 = {
2094
2395
  subscriptionId
2095
2396
  ],
2096
2397
  headerParameters: [accept],
2097
- serializer: serializer$5
2398
+ serializer: serializer$6
2098
2399
  };
2099
- const createOrUpdateOperationSpec$1 = {
2400
+ const createOrUpdateOperationSpec$2 = {
2100
2401
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
2101
2402
  httpMethod: "PUT",
2102
2403
  responses: {
@@ -2126,9 +2427,9 @@ const createOrUpdateOperationSpec$1 = {
2126
2427
  ],
2127
2428
  headerParameters: [accept, contentType],
2128
2429
  mediaType: "json",
2129
- serializer: serializer$5
2430
+ serializer: serializer$6
2130
2431
  };
2131
- const updateOperationSpec = {
2432
+ const updateOperationSpec$1 = {
2132
2433
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
2133
2434
  httpMethod: "PATCH",
2134
2435
  responses: {
@@ -2158,9 +2459,9 @@ const updateOperationSpec = {
2158
2459
  ],
2159
2460
  headerParameters: [accept, contentType],
2160
2461
  mediaType: "json",
2161
- serializer: serializer$5
2462
+ serializer: serializer$6
2162
2463
  };
2163
- const listByResourceGroupOperationSpec = {
2464
+ const listByResourceGroupOperationSpec$1 = {
2164
2465
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
2165
2466
  httpMethod: "GET",
2166
2467
  responses: {
@@ -2178,9 +2479,9 @@ const listByResourceGroupOperationSpec = {
2178
2479
  subscriptionId
2179
2480
  ],
2180
2481
  headerParameters: [accept],
2181
- serializer: serializer$5
2482
+ serializer: serializer$6
2182
2483
  };
2183
- const listBySubscriptionOperationSpec = {
2484
+ const listBySubscriptionOperationSpec$1 = {
2184
2485
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
2185
2486
  httpMethod: "GET",
2186
2487
  responses: {
@@ -2194,9 +2495,9 @@ const listBySubscriptionOperationSpec = {
2194
2495
  queryParameters: [apiVersion],
2195
2496
  urlParameters: [$host, subscriptionId],
2196
2497
  headerParameters: [accept],
2197
- serializer: serializer$5
2498
+ serializer: serializer$6
2198
2499
  };
2199
- const listByResourceGroupNextOperationSpec = {
2500
+ const listByResourceGroupNextOperationSpec$1 = {
2200
2501
  path: "{nextLink}",
2201
2502
  httpMethod: "GET",
2202
2503
  responses: {
@@ -2207,7 +2508,6 @@ const listByResourceGroupNextOperationSpec = {
2207
2508
  bodyMapper: ErrorResponse
2208
2509
  }
2209
2510
  },
2210
- queryParameters: [apiVersion],
2211
2511
  urlParameters: [
2212
2512
  $host,
2213
2513
  resourceGroupName,
@@ -2215,9 +2515,9 @@ const listByResourceGroupNextOperationSpec = {
2215
2515
  nextLink
2216
2516
  ],
2217
2517
  headerParameters: [accept],
2218
- serializer: serializer$5
2518
+ serializer: serializer$6
2219
2519
  };
2220
- const listBySubscriptionNextOperationSpec = {
2520
+ const listBySubscriptionNextOperationSpec$1 = {
2221
2521
  path: "{nextLink}",
2222
2522
  httpMethod: "GET",
2223
2523
  responses: {
@@ -2228,14 +2528,13 @@ const listBySubscriptionNextOperationSpec = {
2228
2528
  bodyMapper: ErrorResponse
2229
2529
  }
2230
2530
  },
2231
- queryParameters: [apiVersion],
2232
2531
  urlParameters: [
2233
2532
  $host,
2234
2533
  subscriptionId,
2235
2534
  nextLink
2236
2535
  ],
2237
2536
  headerParameters: [accept],
2238
- serializer: serializer$5
2537
+ serializer: serializer$6
2239
2538
  };
2240
2539
 
2241
2540
  /*
@@ -2298,17 +2597,19 @@ class OperationsImpl {
2298
2597
  }
2299
2598
  listPagingAll(options) {
2300
2599
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2301
- var e_1, _a;
2600
+ var _a, e_1, _b, _c;
2302
2601
  try {
2303
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2304
- const page = _c.value;
2602
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2603
+ _c = _f.value;
2604
+ _d = false;
2605
+ const page = _c;
2305
2606
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2306
2607
  }
2307
2608
  }
2308
2609
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2309
2610
  finally {
2310
2611
  try {
2311
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2612
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2312
2613
  }
2313
2614
  finally { if (e_1) throw e_1.error; }
2314
2615
  }
@@ -2331,7 +2632,7 @@ class OperationsImpl {
2331
2632
  }
2332
2633
  }
2333
2634
  // Operation Specifications
2334
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2635
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2335
2636
  const listOperationSpec$3 = {
2336
2637
  path: "/providers/Microsoft.Databricks/operations",
2337
2638
  httpMethod: "GET",
@@ -2346,7 +2647,7 @@ const listOperationSpec$3 = {
2346
2647
  queryParameters: [apiVersion],
2347
2648
  urlParameters: [$host],
2348
2649
  headerParameters: [accept],
2349
- serializer: serializer$4
2650
+ serializer: serializer$5
2350
2651
  };
2351
2652
  const listNextOperationSpec$2 = {
2352
2653
  path: "{nextLink}",
@@ -2359,10 +2660,9 @@ const listNextOperationSpec$2 = {
2359
2660
  bodyMapper: ErrorResponse
2360
2661
  }
2361
2662
  },
2362
- queryParameters: [apiVersion],
2363
2663
  urlParameters: [$host, nextLink],
2364
2664
  headerParameters: [accept],
2365
- serializer: serializer$4
2665
+ serializer: serializer$5
2366
2666
  };
2367
2667
 
2368
2668
  /*
@@ -2427,17 +2727,19 @@ class PrivateLinkResourcesImpl {
2427
2727
  }
2428
2728
  listPagingAll(resourceGroupName, workspaceName, options) {
2429
2729
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2430
- var e_1, _a;
2730
+ var _a, e_1, _b, _c;
2431
2731
  try {
2432
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2433
- const page = _c.value;
2732
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2733
+ _c = _f.value;
2734
+ _d = false;
2735
+ const page = _c;
2434
2736
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2435
2737
  }
2436
2738
  }
2437
2739
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2438
2740
  finally {
2439
2741
  try {
2440
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2742
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2441
2743
  }
2442
2744
  finally { if (e_1) throw e_1.error; }
2443
2745
  }
@@ -2460,7 +2762,7 @@ class PrivateLinkResourcesImpl {
2460
2762
  * @param options The options parameters.
2461
2763
  */
2462
2764
  get(resourceGroupName, workspaceName, groupId, options) {
2463
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$2);
2765
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$3);
2464
2766
  }
2465
2767
  /**
2466
2768
  * ListNext
@@ -2474,7 +2776,7 @@ class PrivateLinkResourcesImpl {
2474
2776
  }
2475
2777
  }
2476
2778
  // Operation Specifications
2477
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2779
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2478
2780
  const listOperationSpec$2 = {
2479
2781
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
2480
2782
  httpMethod: "GET",
@@ -2494,9 +2796,9 @@ const listOperationSpec$2 = {
2494
2796
  subscriptionId
2495
2797
  ],
2496
2798
  headerParameters: [accept],
2497
- serializer: serializer$3
2799
+ serializer: serializer$4
2498
2800
  };
2499
- const getOperationSpec$2 = {
2801
+ const getOperationSpec$3 = {
2500
2802
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
2501
2803
  httpMethod: "GET",
2502
2804
  responses: {
@@ -2516,7 +2818,7 @@ const getOperationSpec$2 = {
2516
2818
  groupId
2517
2819
  ],
2518
2820
  headerParameters: [accept],
2519
- serializer: serializer$3
2821
+ serializer: serializer$4
2520
2822
  };
2521
2823
  const listNextOperationSpec$1 = {
2522
2824
  path: "{nextLink}",
@@ -2529,7 +2831,6 @@ const listNextOperationSpec$1 = {
2529
2831
  bodyMapper: ErrorResponse
2530
2832
  }
2531
2833
  },
2532
- queryParameters: [apiVersion],
2533
2834
  urlParameters: [
2534
2835
  $host,
2535
2836
  resourceGroupName,
@@ -2538,7 +2839,7 @@ const listNextOperationSpec$1 = {
2538
2839
  nextLink
2539
2840
  ],
2540
2841
  headerParameters: [accept],
2541
- serializer: serializer$3
2842
+ serializer: serializer$4
2542
2843
  };
2543
2844
 
2544
2845
  /*
@@ -2603,17 +2904,19 @@ class PrivateEndpointConnectionsImpl {
2603
2904
  }
2604
2905
  listPagingAll(resourceGroupName, workspaceName, options) {
2605
2906
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2606
- var e_1, _a;
2907
+ var _a, e_1, _b, _c;
2607
2908
  try {
2608
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2609
- const page = _c.value;
2909
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2910
+ _c = _f.value;
2911
+ _d = false;
2912
+ const page = _c;
2610
2913
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2611
2914
  }
2612
2915
  }
2613
2916
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2614
2917
  finally {
2615
2918
  try {
2616
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2919
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2617
2920
  }
2618
2921
  finally { if (e_1) throw e_1.error; }
2619
2922
  }
@@ -2641,7 +2944,7 @@ class PrivateEndpointConnectionsImpl {
2641
2944
  workspaceName,
2642
2945
  privateEndpointConnectionName,
2643
2946
  options
2644
- }, getOperationSpec$1);
2947
+ }, getOperationSpec$2);
2645
2948
  }
2646
2949
  /**
2647
2950
  * Update the status of a private endpoint connection with the specified name
@@ -2656,7 +2959,7 @@ class PrivateEndpointConnectionsImpl {
2656
2959
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2657
2960
  return this.client.sendOperationRequest(args, spec);
2658
2961
  });
2659
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2962
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2660
2963
  var _a;
2661
2964
  let currentRawResponse = undefined;
2662
2965
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2675,15 +2978,19 @@ class PrivateEndpointConnectionsImpl {
2675
2978
  }
2676
2979
  };
2677
2980
  });
2678
- const lro = new LroImpl(sendOperation, {
2679
- resourceGroupName,
2680
- workspaceName,
2681
- privateEndpointConnectionName,
2682
- privateEndpointConnection,
2683
- options
2684
- }, createOperationSpec);
2685
- const poller = new coreLro.LroEngine(lro, {
2686
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2981
+ const lro = createLroSpec({
2982
+ sendOperationFn,
2983
+ args: {
2984
+ resourceGroupName,
2985
+ workspaceName,
2986
+ privateEndpointConnectionName,
2987
+ privateEndpointConnection,
2988
+ options
2989
+ },
2990
+ spec: createOperationSpec
2991
+ });
2992
+ const poller = yield coreLro.createHttpPoller(lro, {
2993
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2687
2994
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2688
2995
  });
2689
2996
  yield poller.poll();
@@ -2716,7 +3023,7 @@ class PrivateEndpointConnectionsImpl {
2716
3023
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2717
3024
  return this.client.sendOperationRequest(args, spec);
2718
3025
  });
2719
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3026
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2720
3027
  var _a;
2721
3028
  let currentRawResponse = undefined;
2722
3029
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2735,14 +3042,18 @@ class PrivateEndpointConnectionsImpl {
2735
3042
  }
2736
3043
  };
2737
3044
  });
2738
- const lro = new LroImpl(sendOperation, {
2739
- resourceGroupName,
2740
- workspaceName,
2741
- privateEndpointConnectionName,
2742
- options
2743
- }, deleteOperationSpec$1);
2744
- const poller = new coreLro.LroEngine(lro, {
2745
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3045
+ const lro = createLroSpec({
3046
+ sendOperationFn,
3047
+ args: {
3048
+ resourceGroupName,
3049
+ workspaceName,
3050
+ privateEndpointConnectionName,
3051
+ options
3052
+ },
3053
+ spec: deleteOperationSpec$2
3054
+ });
3055
+ const poller = yield coreLro.createHttpPoller(lro, {
3056
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2746
3057
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2747
3058
  });
2748
3059
  yield poller.poll();
@@ -2774,7 +3085,7 @@ class PrivateEndpointConnectionsImpl {
2774
3085
  }
2775
3086
  }
2776
3087
  // Operation Specifications
2777
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3088
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2778
3089
  const listOperationSpec$1 = {
2779
3090
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections",
2780
3091
  httpMethod: "GET",
@@ -2794,9 +3105,9 @@ const listOperationSpec$1 = {
2794
3105
  subscriptionId
2795
3106
  ],
2796
3107
  headerParameters: [accept],
2797
- serializer: serializer$2
3108
+ serializer: serializer$3
2798
3109
  };
2799
- const getOperationSpec$1 = {
3110
+ const getOperationSpec$2 = {
2800
3111
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2801
3112
  httpMethod: "GET",
2802
3113
  responses: {
@@ -2816,7 +3127,7 @@ const getOperationSpec$1 = {
2816
3127
  privateEndpointConnectionName
2817
3128
  ],
2818
3129
  headerParameters: [accept],
2819
- serializer: serializer$2
3130
+ serializer: serializer$3
2820
3131
  };
2821
3132
  const createOperationSpec = {
2822
3133
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
@@ -2849,9 +3160,9 @@ const createOperationSpec = {
2849
3160
  ],
2850
3161
  headerParameters: [accept, contentType],
2851
3162
  mediaType: "json",
2852
- serializer: serializer$2
3163
+ serializer: serializer$3
2853
3164
  };
2854
- const deleteOperationSpec$1 = {
3165
+ const deleteOperationSpec$2 = {
2855
3166
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2856
3167
  httpMethod: "DELETE",
2857
3168
  responses: {
@@ -2872,7 +3183,7 @@ const deleteOperationSpec$1 = {
2872
3183
  privateEndpointConnectionName
2873
3184
  ],
2874
3185
  headerParameters: [accept],
2875
- serializer: serializer$2
3186
+ serializer: serializer$3
2876
3187
  };
2877
3188
  const listNextOperationSpec = {
2878
3189
  path: "{nextLink}",
@@ -2885,7 +3196,6 @@ const listNextOperationSpec = {
2885
3196
  bodyMapper: ErrorResponse
2886
3197
  }
2887
3198
  },
2888
- queryParameters: [apiVersion],
2889
3199
  urlParameters: [
2890
3200
  $host,
2891
3201
  resourceGroupName,
@@ -2894,7 +3204,7 @@ const listNextOperationSpec = {
2894
3204
  nextLink
2895
3205
  ],
2896
3206
  headerParameters: [accept],
2897
- serializer: serializer$2
3207
+ serializer: serializer$3
2898
3208
  };
2899
3209
 
2900
3210
  /*
@@ -2926,7 +3236,7 @@ class OutboundNetworkDependenciesEndpointsImpl {
2926
3236
  }
2927
3237
  }
2928
3238
  // Operation Specifications
2929
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3239
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2930
3240
  const listOperationSpec = {
2931
3241
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints",
2932
3242
  httpMethod: "GET",
@@ -2956,7 +3266,7 @@ const listOperationSpec = {
2956
3266
  subscriptionId
2957
3267
  ],
2958
3268
  headerParameters: [accept],
2959
- serializer: serializer$1
3269
+ serializer: serializer$2
2960
3270
  };
2961
3271
 
2962
3272
  /*
@@ -3021,17 +3331,19 @@ class VNetPeeringImpl {
3021
3331
  }
3022
3332
  listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
3023
3333
  return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
3024
- var e_1, _a;
3334
+ var _a, e_1, _b, _c;
3025
3335
  try {
3026
- for (var _b = tslib.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3027
- const page = _c.value;
3336
+ for (var _d = true, _e = tslib.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3337
+ _c = _f.value;
3338
+ _d = false;
3339
+ const page = _c;
3028
3340
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3029
3341
  }
3030
3342
  }
3031
3343
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
3032
3344
  finally {
3033
3345
  try {
3034
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3346
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3035
3347
  }
3036
3348
  finally { if (e_1) throw e_1.error; }
3037
3349
  }
@@ -3045,7 +3357,7 @@ class VNetPeeringImpl {
3045
3357
  * @param options The options parameters.
3046
3358
  */
3047
3359
  get(resourceGroupName, workspaceName, peeringName, options) {
3048
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec);
3360
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec$1);
3049
3361
  }
3050
3362
  /**
3051
3363
  * Deletes the workspace vNetPeering.
@@ -3059,7 +3371,7 @@ class VNetPeeringImpl {
3059
3371
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3060
3372
  return this.client.sendOperationRequest(args, spec);
3061
3373
  });
3062
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3374
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3063
3375
  var _a;
3064
3376
  let currentRawResponse = undefined;
3065
3377
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -3078,9 +3390,13 @@ class VNetPeeringImpl {
3078
3390
  }
3079
3391
  };
3080
3392
  });
3081
- const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, peeringName, options }, deleteOperationSpec);
3082
- const poller = new coreLro.LroEngine(lro, {
3083
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3393
+ const lro = createLroSpec({
3394
+ sendOperationFn,
3395
+ args: { resourceGroupName, workspaceName, peeringName, options },
3396
+ spec: deleteOperationSpec$1
3397
+ });
3398
+ const poller = yield coreLro.createHttpPoller(lro, {
3399
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3084
3400
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3085
3401
  });
3086
3402
  yield poller.poll();
@@ -3113,7 +3429,7 @@ class VNetPeeringImpl {
3113
3429
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3114
3430
  return this.client.sendOperationRequest(args, spec);
3115
3431
  });
3116
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3432
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3117
3433
  var _a;
3118
3434
  let currentRawResponse = undefined;
3119
3435
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -3132,15 +3448,19 @@ class VNetPeeringImpl {
3132
3448
  }
3133
3449
  };
3134
3450
  });
3135
- const lro = new LroImpl(sendOperation, {
3136
- resourceGroupName,
3137
- workspaceName,
3138
- peeringName,
3139
- virtualNetworkPeeringParameters,
3140
- options
3141
- }, createOrUpdateOperationSpec);
3142
- const poller = new coreLro.LroEngine(lro, {
3143
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3451
+ const lro = createLroSpec({
3452
+ sendOperationFn,
3453
+ args: {
3454
+ resourceGroupName,
3455
+ workspaceName,
3456
+ peeringName,
3457
+ virtualNetworkPeeringParameters,
3458
+ options
3459
+ },
3460
+ spec: createOrUpdateOperationSpec$1
3461
+ });
3462
+ const poller = yield coreLro.createHttpPoller(lro, {
3463
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3144
3464
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3145
3465
  });
3146
3466
  yield poller.poll();
@@ -3182,8 +3502,8 @@ class VNetPeeringImpl {
3182
3502
  }
3183
3503
  }
3184
3504
  // Operation Specifications
3185
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3186
- const getOperationSpec = {
3505
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3506
+ const getOperationSpec$1 = {
3187
3507
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
3188
3508
  httpMethod: "GET",
3189
3509
  responses: {
@@ -3204,9 +3524,9 @@ const getOperationSpec = {
3204
3524
  peeringName
3205
3525
  ],
3206
3526
  headerParameters: [accept],
3207
- serializer
3527
+ serializer: serializer$1
3208
3528
  };
3209
- const deleteOperationSpec = {
3529
+ const deleteOperationSpec$1 = {
3210
3530
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
3211
3531
  httpMethod: "DELETE",
3212
3532
  responses: {
@@ -3227,9 +3547,9 @@ const deleteOperationSpec = {
3227
3547
  peeringName
3228
3548
  ],
3229
3549
  headerParameters: [accept],
3230
- serializer
3550
+ serializer: serializer$1
3231
3551
  };
3232
- const createOrUpdateOperationSpec = {
3552
+ const createOrUpdateOperationSpec$1 = {
3233
3553
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
3234
3554
  httpMethod: "PUT",
3235
3555
  responses: {
@@ -3260,7 +3580,7 @@ const createOrUpdateOperationSpec = {
3260
3580
  ],
3261
3581
  headerParameters: [accept, contentType],
3262
3582
  mediaType: "json",
3263
- serializer
3583
+ serializer: serializer$1
3264
3584
  };
3265
3585
  const listByWorkspaceOperationSpec = {
3266
3586
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings",
@@ -3281,7 +3601,7 @@ const listByWorkspaceOperationSpec = {
3281
3601
  subscriptionId
3282
3602
  ],
3283
3603
  headerParameters: [accept],
3284
- serializer
3604
+ serializer: serializer$1
3285
3605
  };
3286
3606
  const listByWorkspaceNextOperationSpec = {
3287
3607
  path: "{nextLink}",
@@ -3294,7 +3614,6 @@ const listByWorkspaceNextOperationSpec = {
3294
3614
  bodyMapper: ErrorResponse
3295
3615
  }
3296
3616
  },
3297
- queryParameters: [apiVersion],
3298
3617
  urlParameters: [
3299
3618
  $host,
3300
3619
  resourceGroupName,
@@ -3303,7 +3622,7 @@ const listByWorkspaceNextOperationSpec = {
3303
3622
  nextLink
3304
3623
  ],
3305
3624
  headerParameters: [accept],
3306
- serializer
3625
+ serializer: serializer$1
3307
3626
  };
3308
3627
 
3309
3628
  /*
@@ -3313,97 +3632,605 @@ const listByWorkspaceNextOperationSpec = {
3313
3632
  * Code generated by Microsoft (R) AutoRest Code Generator.
3314
3633
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3315
3634
  */
3316
- class AzureDatabricksManagementClient extends coreClient__namespace.ServiceClient {
3635
+ /// <reference lib="esnext.asynciterable" />
3636
+ /** Class containing AccessConnectors operations. */
3637
+ class AccessConnectorsImpl {
3317
3638
  /**
3318
- * Initializes a new instance of the AzureDatabricksManagementClient class.
3319
- * @param credentials Subscription credentials which uniquely identify client subscription.
3320
- * @param subscriptionId The ID of the target subscription.
3321
- * @param options The parameter options
3639
+ * Initialize a new instance of the class AccessConnectors class.
3640
+ * @param client Reference to the service client
3322
3641
  */
3323
- constructor(credentials, subscriptionId, options) {
3324
- var _a, _b, _c;
3325
- if (credentials === undefined) {
3326
- throw new Error("'credentials' cannot be null");
3327
- }
3328
- if (subscriptionId === undefined) {
3329
- throw new Error("'subscriptionId' cannot be null");
3330
- }
3331
- // Initializing default values for options
3332
- if (!options) {
3333
- options = {};
3334
- }
3335
- const defaults = {
3336
- requestContentType: "application/json; charset=utf-8",
3337
- credential: credentials
3642
+ constructor(client) {
3643
+ this.client = client;
3644
+ }
3645
+ /**
3646
+ * Gets all the azure databricks accessConnectors within a resource group.
3647
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3648
+ * @param options The options parameters.
3649
+ */
3650
+ listByResourceGroup(resourceGroupName, options) {
3651
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
3652
+ return {
3653
+ next() {
3654
+ return iter.next();
3655
+ },
3656
+ [Symbol.asyncIterator]() {
3657
+ return this;
3658
+ },
3659
+ byPage: (settings) => {
3660
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3661
+ throw new Error("maxPageSize is not supported by this operation.");
3662
+ }
3663
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
3664
+ }
3338
3665
  };
3339
- const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.4`;
3340
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3341
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3342
- : `${packageDetails}`;
3343
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3344
- userAgentPrefix
3345
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3346
- super(optionsWithDefaults);
3347
- let bearerTokenAuthenticationPolicyFound = false;
3348
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3349
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3350
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3351
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3352
- }
3353
- if (!options ||
3354
- !options.pipeline ||
3355
- options.pipeline.getOrderedPolicies().length == 0 ||
3356
- !bearerTokenAuthenticationPolicyFound) {
3357
- this.pipeline.removePolicy({
3358
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3359
- });
3360
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3361
- credential: credentials,
3362
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3363
- challengeCallbacks: {
3364
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3666
+ }
3667
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3668
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3669
+ let result;
3670
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3671
+ if (!continuationToken) {
3672
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3673
+ let page = result.value || [];
3674
+ continuationToken = result.nextLink;
3675
+ setContinuationToken(page, continuationToken);
3676
+ yield yield tslib.__await(page);
3677
+ }
3678
+ while (continuationToken) {
3679
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
3680
+ continuationToken = result.nextLink;
3681
+ let page = result.value || [];
3682
+ setContinuationToken(page, continuationToken);
3683
+ yield yield tslib.__await(page);
3684
+ }
3685
+ });
3686
+ }
3687
+ listByResourceGroupPagingAll(resourceGroupName, options) {
3688
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
3689
+ var _a, e_1, _b, _c;
3690
+ try {
3691
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3692
+ _c = _f.value;
3693
+ _d = false;
3694
+ const page = _c;
3695
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3365
3696
  }
3366
- }));
3367
- }
3368
- // Parameter assignments
3369
- this.subscriptionId = subscriptionId;
3370
- // Assigning values to Constant parameters
3371
- this.$host = options.$host || "https://management.azure.com";
3372
- this.apiVersion = options.apiVersion || "2021-04-01-preview";
3373
- this.workspaces = new WorkspacesImpl(this);
3374
- this.operations = new OperationsImpl(this);
3375
- this.privateLinkResources = new PrivateLinkResourcesImpl(this);
3376
- this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
3377
- this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl(this);
3378
- this.vNetPeering = new VNetPeeringImpl(this);
3379
- this.addCustomApiVersionPolicy(options.apiVersion);
3380
- }
3381
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
3382
- addCustomApiVersionPolicy(apiVersion) {
3383
- if (!apiVersion) {
3384
- return;
3385
- }
3386
- const apiVersionPolicy = {
3387
- name: "CustomApiVersionPolicy",
3388
- sendRequest(request, next) {
3389
- return tslib.__awaiter(this, void 0, void 0, function* () {
3390
- const param = request.url.split("?");
3391
- if (param.length > 1) {
3392
- const newParams = param[1].split("&").map((item) => {
3393
- if (item.indexOf("api-version") > -1) {
3394
- return "api-version=" + apiVersion;
3395
- }
3396
- else {
3397
- return item;
3398
- }
3399
- });
3400
- request.url = param[0] + "?" + newParams.join("&");
3401
- }
3402
- return next(request);
3403
- });
3697
+ }
3698
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3699
+ finally {
3700
+ try {
3701
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3702
+ }
3703
+ finally { if (e_1) throw e_1.error; }
3704
+ }
3705
+ });
3706
+ }
3707
+ /**
3708
+ * Gets all the azure databricks accessConnectors within a subscription.
3709
+ * @param options The options parameters.
3710
+ */
3711
+ listBySubscription(options) {
3712
+ const iter = this.listBySubscriptionPagingAll(options);
3713
+ return {
3714
+ next() {
3715
+ return iter.next();
3716
+ },
3717
+ [Symbol.asyncIterator]() {
3718
+ return this;
3719
+ },
3720
+ byPage: (settings) => {
3721
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3722
+ throw new Error("maxPageSize is not supported by this operation.");
3723
+ }
3724
+ return this.listBySubscriptionPagingPage(options, settings);
3404
3725
  }
3405
3726
  };
3406
- this.pipeline.addPolicy(apiVersionPolicy);
3727
+ }
3728
+ listBySubscriptionPagingPage(options, settings) {
3729
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
3730
+ let result;
3731
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3732
+ if (!continuationToken) {
3733
+ result = yield tslib.__await(this._listBySubscription(options));
3734
+ let page = result.value || [];
3735
+ continuationToken = result.nextLink;
3736
+ setContinuationToken(page, continuationToken);
3737
+ yield yield tslib.__await(page);
3738
+ }
3739
+ while (continuationToken) {
3740
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
3741
+ continuationToken = result.nextLink;
3742
+ let page = result.value || [];
3743
+ setContinuationToken(page, continuationToken);
3744
+ yield yield tslib.__await(page);
3745
+ }
3746
+ });
3747
+ }
3748
+ listBySubscriptionPagingAll(options) {
3749
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
3750
+ var _a, e_2, _b, _c;
3751
+ try {
3752
+ for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3753
+ _c = _f.value;
3754
+ _d = false;
3755
+ const page = _c;
3756
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3757
+ }
3758
+ }
3759
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
3760
+ finally {
3761
+ try {
3762
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3763
+ }
3764
+ finally { if (e_2) throw e_2.error; }
3765
+ }
3766
+ });
3767
+ }
3768
+ /**
3769
+ * Gets an azure databricks accessConnector.
3770
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3771
+ * @param connectorName The name of the azure databricks accessConnector.
3772
+ * @param options The options parameters.
3773
+ */
3774
+ get(resourceGroupName, connectorName, options) {
3775
+ return this.client.sendOperationRequest({ resourceGroupName, connectorName, options }, getOperationSpec);
3776
+ }
3777
+ /**
3778
+ * Deletes the azure databricks accessConnector.
3779
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3780
+ * @param connectorName The name of the azure databricks accessConnector.
3781
+ * @param options The options parameters.
3782
+ */
3783
+ beginDelete(resourceGroupName, connectorName, options) {
3784
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3785
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3786
+ return this.client.sendOperationRequest(args, spec);
3787
+ });
3788
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3789
+ var _a;
3790
+ let currentRawResponse = undefined;
3791
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3792
+ const callback = (rawResponse, flatResponse) => {
3793
+ currentRawResponse = rawResponse;
3794
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3795
+ };
3796
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3797
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3798
+ return {
3799
+ flatResponse,
3800
+ rawResponse: {
3801
+ statusCode: currentRawResponse.status,
3802
+ body: currentRawResponse.parsedBody,
3803
+ headers: currentRawResponse.headers.toJSON()
3804
+ }
3805
+ };
3806
+ });
3807
+ const lro = createLroSpec({
3808
+ sendOperationFn,
3809
+ args: { resourceGroupName, connectorName, options },
3810
+ spec: deleteOperationSpec
3811
+ });
3812
+ const poller = yield coreLro.createHttpPoller(lro, {
3813
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3814
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3815
+ });
3816
+ yield poller.poll();
3817
+ return poller;
3818
+ });
3819
+ }
3820
+ /**
3821
+ * Deletes the azure databricks accessConnector.
3822
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3823
+ * @param connectorName The name of the azure databricks accessConnector.
3824
+ * @param options The options parameters.
3825
+ */
3826
+ beginDeleteAndWait(resourceGroupName, connectorName, options) {
3827
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3828
+ const poller = yield this.beginDelete(resourceGroupName, connectorName, options);
3829
+ return poller.pollUntilDone();
3830
+ });
3831
+ }
3832
+ /**
3833
+ * Creates or updates azure databricks accessConnector.
3834
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3835
+ * @param connectorName The name of the azure databricks accessConnector.
3836
+ * @param parameters Parameters supplied to the create or update an azure databricks accessConnector.
3837
+ * @param options The options parameters.
3838
+ */
3839
+ beginCreateOrUpdate(resourceGroupName, connectorName, parameters, options) {
3840
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3841
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3842
+ return this.client.sendOperationRequest(args, spec);
3843
+ });
3844
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3845
+ var _a;
3846
+ let currentRawResponse = undefined;
3847
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3848
+ const callback = (rawResponse, flatResponse) => {
3849
+ currentRawResponse = rawResponse;
3850
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3851
+ };
3852
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3853
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3854
+ return {
3855
+ flatResponse,
3856
+ rawResponse: {
3857
+ statusCode: currentRawResponse.status,
3858
+ body: currentRawResponse.parsedBody,
3859
+ headers: currentRawResponse.headers.toJSON()
3860
+ }
3861
+ };
3862
+ });
3863
+ const lro = createLroSpec({
3864
+ sendOperationFn,
3865
+ args: { resourceGroupName, connectorName, parameters, options },
3866
+ spec: createOrUpdateOperationSpec
3867
+ });
3868
+ const poller = yield coreLro.createHttpPoller(lro, {
3869
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3870
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3871
+ });
3872
+ yield poller.poll();
3873
+ return poller;
3874
+ });
3875
+ }
3876
+ /**
3877
+ * Creates or updates azure databricks accessConnector.
3878
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3879
+ * @param connectorName The name of the azure databricks accessConnector.
3880
+ * @param parameters Parameters supplied to the create or update an azure databricks accessConnector.
3881
+ * @param options The options parameters.
3882
+ */
3883
+ beginCreateOrUpdateAndWait(resourceGroupName, connectorName, parameters, options) {
3884
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3885
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, connectorName, parameters, options);
3886
+ return poller.pollUntilDone();
3887
+ });
3888
+ }
3889
+ /**
3890
+ * Updates an azure databricks accessConnector.
3891
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3892
+ * @param connectorName The name of the azure databricks accessConnector.
3893
+ * @param parameters The update to the azure databricks accessConnector.
3894
+ * @param options The options parameters.
3895
+ */
3896
+ beginUpdate(resourceGroupName, connectorName, parameters, options) {
3897
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3898
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3899
+ return this.client.sendOperationRequest(args, spec);
3900
+ });
3901
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3902
+ var _a;
3903
+ let currentRawResponse = undefined;
3904
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3905
+ const callback = (rawResponse, flatResponse) => {
3906
+ currentRawResponse = rawResponse;
3907
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3908
+ };
3909
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3910
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3911
+ return {
3912
+ flatResponse,
3913
+ rawResponse: {
3914
+ statusCode: currentRawResponse.status,
3915
+ body: currentRawResponse.parsedBody,
3916
+ headers: currentRawResponse.headers.toJSON()
3917
+ }
3918
+ };
3919
+ });
3920
+ const lro = createLroSpec({
3921
+ sendOperationFn,
3922
+ args: { resourceGroupName, connectorName, parameters, options },
3923
+ spec: updateOperationSpec
3924
+ });
3925
+ const poller = yield coreLro.createHttpPoller(lro, {
3926
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3927
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3928
+ });
3929
+ yield poller.poll();
3930
+ return poller;
3931
+ });
3932
+ }
3933
+ /**
3934
+ * Updates an azure databricks accessConnector.
3935
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3936
+ * @param connectorName The name of the azure databricks accessConnector.
3937
+ * @param parameters The update to the azure databricks accessConnector.
3938
+ * @param options The options parameters.
3939
+ */
3940
+ beginUpdateAndWait(resourceGroupName, connectorName, parameters, options) {
3941
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3942
+ const poller = yield this.beginUpdate(resourceGroupName, connectorName, parameters, options);
3943
+ return poller.pollUntilDone();
3944
+ });
3945
+ }
3946
+ /**
3947
+ * Gets all the azure databricks accessConnectors within a resource group.
3948
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3949
+ * @param options The options parameters.
3950
+ */
3951
+ _listByResourceGroup(resourceGroupName, options) {
3952
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
3953
+ }
3954
+ /**
3955
+ * Gets all the azure databricks accessConnectors within a subscription.
3956
+ * @param options The options parameters.
3957
+ */
3958
+ _listBySubscription(options) {
3959
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
3960
+ }
3961
+ /**
3962
+ * ListByResourceGroupNext
3963
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3964
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3965
+ * @param options The options parameters.
3966
+ */
3967
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
3968
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3969
+ }
3970
+ /**
3971
+ * ListBySubscriptionNext
3972
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
3973
+ * @param options The options parameters.
3974
+ */
3975
+ _listBySubscriptionNext(nextLink, options) {
3976
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
3977
+ }
3978
+ }
3979
+ // Operation Specifications
3980
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3981
+ const getOperationSpec = {
3982
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
3983
+ httpMethod: "GET",
3984
+ responses: {
3985
+ 200: {
3986
+ bodyMapper: AccessConnector
3987
+ },
3988
+ default: {
3989
+ bodyMapper: ErrorResponse
3990
+ }
3991
+ },
3992
+ queryParameters: [apiVersion1],
3993
+ urlParameters: [
3994
+ $host,
3995
+ resourceGroupName,
3996
+ subscriptionId,
3997
+ connectorName
3998
+ ],
3999
+ headerParameters: [accept],
4000
+ serializer
4001
+ };
4002
+ const deleteOperationSpec = {
4003
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
4004
+ httpMethod: "DELETE",
4005
+ responses: {
4006
+ 200: {},
4007
+ 201: {},
4008
+ 202: {},
4009
+ 204: {},
4010
+ default: {
4011
+ bodyMapper: ErrorResponse
4012
+ }
4013
+ },
4014
+ queryParameters: [apiVersion1],
4015
+ urlParameters: [
4016
+ $host,
4017
+ resourceGroupName,
4018
+ subscriptionId,
4019
+ connectorName
4020
+ ],
4021
+ headerParameters: [accept],
4022
+ serializer
4023
+ };
4024
+ const createOrUpdateOperationSpec = {
4025
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
4026
+ httpMethod: "PUT",
4027
+ responses: {
4028
+ 200: {
4029
+ bodyMapper: AccessConnector
4030
+ },
4031
+ 201: {
4032
+ bodyMapper: AccessConnector
4033
+ },
4034
+ 202: {
4035
+ bodyMapper: AccessConnector
4036
+ },
4037
+ 204: {
4038
+ bodyMapper: AccessConnector
4039
+ },
4040
+ default: {
4041
+ bodyMapper: ErrorResponse
4042
+ }
4043
+ },
4044
+ requestBody: parameters2,
4045
+ queryParameters: [apiVersion1],
4046
+ urlParameters: [
4047
+ $host,
4048
+ resourceGroupName,
4049
+ subscriptionId,
4050
+ connectorName
4051
+ ],
4052
+ headerParameters: [accept, contentType],
4053
+ mediaType: "json",
4054
+ serializer
4055
+ };
4056
+ const updateOperationSpec = {
4057
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
4058
+ httpMethod: "PATCH",
4059
+ responses: {
4060
+ 200: {
4061
+ bodyMapper: AccessConnector
4062
+ },
4063
+ 201: {
4064
+ bodyMapper: AccessConnector
4065
+ },
4066
+ 202: {
4067
+ bodyMapper: AccessConnector
4068
+ },
4069
+ 204: {
4070
+ bodyMapper: AccessConnector
4071
+ },
4072
+ default: {
4073
+ bodyMapper: ErrorResponse
4074
+ }
4075
+ },
4076
+ requestBody: parameters3,
4077
+ queryParameters: [apiVersion1],
4078
+ urlParameters: [
4079
+ $host,
4080
+ resourceGroupName,
4081
+ subscriptionId,
4082
+ connectorName
4083
+ ],
4084
+ headerParameters: [accept, contentType],
4085
+ mediaType: "json",
4086
+ serializer
4087
+ };
4088
+ const listByResourceGroupOperationSpec = {
4089
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors",
4090
+ httpMethod: "GET",
4091
+ responses: {
4092
+ 200: {
4093
+ bodyMapper: AccessConnectorListResult
4094
+ },
4095
+ default: {
4096
+ bodyMapper: ErrorResponse
4097
+ }
4098
+ },
4099
+ queryParameters: [apiVersion1],
4100
+ urlParameters: [
4101
+ $host,
4102
+ resourceGroupName,
4103
+ subscriptionId
4104
+ ],
4105
+ headerParameters: [accept],
4106
+ serializer
4107
+ };
4108
+ const listBySubscriptionOperationSpec = {
4109
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/accessConnectors",
4110
+ httpMethod: "GET",
4111
+ responses: {
4112
+ 200: {
4113
+ bodyMapper: AccessConnectorListResult
4114
+ },
4115
+ default: {
4116
+ bodyMapper: ErrorResponse
4117
+ }
4118
+ },
4119
+ queryParameters: [apiVersion1],
4120
+ urlParameters: [$host, subscriptionId],
4121
+ headerParameters: [accept],
4122
+ serializer
4123
+ };
4124
+ const listByResourceGroupNextOperationSpec = {
4125
+ path: "{nextLink}",
4126
+ httpMethod: "GET",
4127
+ responses: {
4128
+ 200: {
4129
+ bodyMapper: AccessConnectorListResult
4130
+ },
4131
+ default: {
4132
+ bodyMapper: ErrorResponse
4133
+ }
4134
+ },
4135
+ urlParameters: [
4136
+ $host,
4137
+ resourceGroupName,
4138
+ subscriptionId,
4139
+ nextLink
4140
+ ],
4141
+ headerParameters: [accept],
4142
+ serializer
4143
+ };
4144
+ const listBySubscriptionNextOperationSpec = {
4145
+ path: "{nextLink}",
4146
+ httpMethod: "GET",
4147
+ responses: {
4148
+ 200: {
4149
+ bodyMapper: AccessConnectorListResult
4150
+ },
4151
+ default: {
4152
+ bodyMapper: ErrorResponse
4153
+ }
4154
+ },
4155
+ urlParameters: [
4156
+ $host,
4157
+ subscriptionId,
4158
+ nextLink
4159
+ ],
4160
+ headerParameters: [accept],
4161
+ serializer
4162
+ };
4163
+
4164
+ /*
4165
+ * Copyright (c) Microsoft Corporation.
4166
+ * Licensed under the MIT License.
4167
+ *
4168
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4169
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4170
+ */
4171
+ class AzureDatabricksManagementClient extends coreClient__namespace.ServiceClient {
4172
+ /**
4173
+ * Initializes a new instance of the AzureDatabricksManagementClient class.
4174
+ * @param credentials Subscription credentials which uniquely identify client subscription.
4175
+ * @param subscriptionId The ID of the target subscription.
4176
+ * @param options The parameter options
4177
+ */
4178
+ constructor(credentials, subscriptionId, options) {
4179
+ var _a, _b, _c;
4180
+ if (credentials === undefined) {
4181
+ throw new Error("'credentials' cannot be null");
4182
+ }
4183
+ if (subscriptionId === undefined) {
4184
+ throw new Error("'subscriptionId' cannot be null");
4185
+ }
4186
+ // Initializing default values for options
4187
+ if (!options) {
4188
+ options = {};
4189
+ }
4190
+ const defaults = {
4191
+ requestContentType: "application/json; charset=utf-8",
4192
+ credential: credentials
4193
+ };
4194
+ const packageDetails = `azsdk-js-arm-databricks/3.0.1`;
4195
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4196
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4197
+ : `${packageDetails}`;
4198
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4199
+ userAgentPrefix
4200
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4201
+ super(optionsWithDefaults);
4202
+ let bearerTokenAuthenticationPolicyFound = false;
4203
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4204
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
4205
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4206
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
4207
+ }
4208
+ if (!options ||
4209
+ !options.pipeline ||
4210
+ options.pipeline.getOrderedPolicies().length == 0 ||
4211
+ !bearerTokenAuthenticationPolicyFound) {
4212
+ this.pipeline.removePolicy({
4213
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
4214
+ });
4215
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4216
+ credential: credentials,
4217
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4218
+ challengeCallbacks: {
4219
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4220
+ }
4221
+ }));
4222
+ }
4223
+ // Parameter assignments
4224
+ this.subscriptionId = subscriptionId;
4225
+ // Assigning values to Constant parameters
4226
+ this.$host = options.$host || "https://management.azure.com";
4227
+ this.workspaces = new WorkspacesImpl(this);
4228
+ this.operations = new OperationsImpl(this);
4229
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
4230
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
4231
+ this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl(this);
4232
+ this.vNetPeering = new VNetPeeringImpl(this);
4233
+ this.accessConnectors = new AccessConnectorsImpl(this);
3407
4234
  }
3408
4235
  }
3409
4236