@azure/arm-databricks 3.0.0-alpha.20231114.1 → 3.0.0-alpha.20231121.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -13
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +1031 -215
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.js +58 -0
- package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessConnectorsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsDeleteSample.js +38 -0
- package/dist-esm/samples-dev/accessConnectorsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessConnectorsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsGetSample.js +38 -0
- package/dist-esm/samples-dev/accessConnectorsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.js +53 -0
- package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.js +52 -0
- package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accessConnectorsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessConnectorsUpdateSample.js +39 -0
- package/dist-esm/samples-dev/accessConnectorsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js +12 -4
- package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +12 -4
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +12 -4
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -1
- package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/vNetPeeringDeleteSample.js +11 -4
- package/dist-esm/samples-dev/vNetPeeringDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/vNetPeeringGetSample.js +11 -4
- package/dist-esm/samples-dev/vNetPeeringGetSample.js.map +1 -1
- package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js +11 -4
- package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +98 -20
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesGetSample.js +33 -8
- package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +10 -3
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
- package/dist-esm/src/azureDatabricksManagementClient.d.ts +2 -4
- package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureDatabricksManagementClient.js +3 -32
- package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +172 -4
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +12 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +8 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +243 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +35 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accessConnectors.d.ts +107 -0
- package/dist-esm/src/operations/accessConnectors.d.ts.map +1 -0
- package/dist-esm/src/operations/accessConnectors.js +543 -0
- package/dist-esm/src/operations/accessConnectors.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +0 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +29 -22
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +0 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/vNetPeering.d.ts +3 -3
- package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -1
- package/dist-esm/src/operations/vNetPeering.js +24 -17
- package/dist-esm/src/operations/vNetPeering.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts +4 -4
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +26 -16
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/accessConnectors.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/accessConnectors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accessConnectors.js +9 -0
- package/dist-esm/src/operationsInterfaces/accessConnectors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/package.json +12 -9
- package/review/arm-databricks.api.md +155 -12
- package/src/azureDatabricksManagementClient.ts +7 -39
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +196 -4
- package/src/models/mappers.ts +258 -2
- package/src/models/parameters.ts +41 -2
- package/src/operations/accessConnectors.ts +717 -0
- package/src/operations/index.ts +1 -0
- package/src/operations/operations.ts +0 -1
- package/src/operations/privateEndpointConnections.ts +28 -22
- package/src/operations/privateLinkResources.ts +0 -1
- package/src/operations/vNetPeering.ts +28 -22
- package/src/operations/workspaces.ts +41 -33
- package/src/operationsInterfaces/accessConnectors.ts +139 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
- package/src/operationsInterfaces/vNetPeering.ts +4 -4
- package/src/operationsInterfaces/workspaces.ts +6 -6
- package/src/pagingHelper.ts +4 -4
- package/types/arm-databricks.d.ts +279 -20
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
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
10
|
function _interopNamespaceDefault(e) {
|
|
@@ -36,11 +36,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRest
|
|
|
36
36
|
*/
|
|
37
37
|
const pageMap = new WeakMap();
|
|
38
38
|
/**
|
|
39
|
-
* Given
|
|
40
|
-
* 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
|
|
41
41
|
* that point later.
|
|
42
|
-
* @param page
|
|
43
|
-
* @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.
|
|
44
44
|
*/
|
|
45
45
|
function getContinuationToken(page) {
|
|
46
46
|
var _a;
|
|
@@ -194,6 +194,18 @@ exports.KnownPeeringProvisioningState = void 0;
|
|
|
194
194
|
/** Failed */
|
|
195
195
|
KnownPeeringProvisioningState["Failed"] = "Failed";
|
|
196
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 = {}));
|
|
197
209
|
|
|
198
210
|
/*
|
|
199
211
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -550,6 +562,13 @@ const EncryptionEntitiesDefinition = {
|
|
|
550
562
|
name: "Composite",
|
|
551
563
|
className: "EncryptionV2"
|
|
552
564
|
}
|
|
565
|
+
},
|
|
566
|
+
managedDisk: {
|
|
567
|
+
serializedName: "managedDisk",
|
|
568
|
+
type: {
|
|
569
|
+
name: "Composite",
|
|
570
|
+
className: "ManagedDiskEncryption"
|
|
571
|
+
}
|
|
553
572
|
}
|
|
554
573
|
}
|
|
555
574
|
}
|
|
@@ -605,6 +624,63 @@ const EncryptionV2KeyVaultProperties = {
|
|
|
605
624
|
}
|
|
606
625
|
}
|
|
607
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
|
+
};
|
|
608
684
|
const PrivateEndpointConnection = {
|
|
609
685
|
type: {
|
|
610
686
|
name: "Composite",
|
|
@@ -653,6 +729,17 @@ const PrivateEndpointConnectionProperties = {
|
|
|
653
729
|
className: "PrivateEndpoint"
|
|
654
730
|
}
|
|
655
731
|
},
|
|
732
|
+
groupIds: {
|
|
733
|
+
serializedName: "groupIds",
|
|
734
|
+
type: {
|
|
735
|
+
name: "Sequence",
|
|
736
|
+
element: {
|
|
737
|
+
type: {
|
|
738
|
+
name: "String"
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
},
|
|
656
743
|
privateLinkServiceConnectionState: {
|
|
657
744
|
serializedName: "privateLinkServiceConnectionState",
|
|
658
745
|
type: {
|
|
@@ -703,8 +790,8 @@ const PrivateLinkServiceConnectionState = {
|
|
|
703
790
|
name: "String"
|
|
704
791
|
}
|
|
705
792
|
},
|
|
706
|
-
|
|
707
|
-
serializedName: "
|
|
793
|
+
actionsRequired: {
|
|
794
|
+
serializedName: "actionsRequired",
|
|
708
795
|
type: {
|
|
709
796
|
name: "String"
|
|
710
797
|
}
|
|
@@ -999,6 +1086,12 @@ const OperationDisplay = {
|
|
|
999
1086
|
type: {
|
|
1000
1087
|
name: "String"
|
|
1001
1088
|
}
|
|
1089
|
+
},
|
|
1090
|
+
description: {
|
|
1091
|
+
serializedName: "description",
|
|
1092
|
+
type: {
|
|
1093
|
+
name: "String"
|
|
1094
|
+
}
|
|
1002
1095
|
}
|
|
1003
1096
|
}
|
|
1004
1097
|
}
|
|
@@ -1343,6 +1436,129 @@ const VirtualNetworkPeeringList = {
|
|
|
1343
1436
|
}
|
|
1344
1437
|
}
|
|
1345
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
|
+
};
|
|
1346
1562
|
const TrackedResource = {
|
|
1347
1563
|
type: {
|
|
1348
1564
|
name: "Composite",
|
|
@@ -1461,6 +1677,18 @@ const Workspace = {
|
|
|
1461
1677
|
name: "Composite",
|
|
1462
1678
|
className: "ManagedIdentityConfiguration"
|
|
1463
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
|
+
}
|
|
1464
1692
|
}, encryption: {
|
|
1465
1693
|
serializedName: "properties.encryption",
|
|
1466
1694
|
type: {
|
|
@@ -1492,9 +1720,38 @@ const Workspace = {
|
|
|
1492
1720
|
} })
|
|
1493
1721
|
}
|
|
1494
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
|
+
};
|
|
1495
1748
|
|
|
1496
1749
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1497
1750
|
__proto__: null,
|
|
1751
|
+
AccessConnector: AccessConnector,
|
|
1752
|
+
AccessConnectorListResult: AccessConnectorListResult,
|
|
1753
|
+
AccessConnectorProperties: AccessConnectorProperties,
|
|
1754
|
+
AccessConnectorUpdate: AccessConnectorUpdate,
|
|
1498
1755
|
AddressSpace: AddressSpace,
|
|
1499
1756
|
CreatedBy: CreatedBy,
|
|
1500
1757
|
Encryption: Encryption,
|
|
@@ -1508,7 +1765,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1508
1765
|
ErrorResponse: ErrorResponse,
|
|
1509
1766
|
GroupIdInformation: GroupIdInformation,
|
|
1510
1767
|
GroupIdInformationProperties: GroupIdInformationProperties,
|
|
1768
|
+
ManagedDiskEncryption: ManagedDiskEncryption,
|
|
1769
|
+
ManagedDiskEncryptionKeyVaultProperties: ManagedDiskEncryptionKeyVaultProperties,
|
|
1511
1770
|
ManagedIdentityConfiguration: ManagedIdentityConfiguration,
|
|
1771
|
+
ManagedServiceIdentity: ManagedServiceIdentity,
|
|
1512
1772
|
Operation: Operation,
|
|
1513
1773
|
OperationDisplay: OperationDisplay,
|
|
1514
1774
|
OperationListResult: OperationListResult,
|
|
@@ -1523,6 +1783,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1523
1783
|
Sku: Sku,
|
|
1524
1784
|
SystemData: SystemData,
|
|
1525
1785
|
TrackedResource: TrackedResource,
|
|
1786
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
1526
1787
|
VirtualNetworkPeering: VirtualNetworkPeering,
|
|
1527
1788
|
VirtualNetworkPeeringList: VirtualNetworkPeeringList,
|
|
1528
1789
|
VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork: VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork,
|
|
@@ -1600,7 +1861,7 @@ const workspaceName = {
|
|
|
1600
1861
|
const apiVersion = {
|
|
1601
1862
|
parameterPath: "apiVersion",
|
|
1602
1863
|
mapper: {
|
|
1603
|
-
defaultValue: "
|
|
1864
|
+
defaultValue: "2023-02-01",
|
|
1604
1865
|
isConstant: true,
|
|
1605
1866
|
serializedName: "api-version",
|
|
1606
1867
|
type: {
|
|
@@ -1686,6 +1947,39 @@ const virtualNetworkPeeringParameters = {
|
|
|
1686
1947
|
parameterPath: "virtualNetworkPeeringParameters",
|
|
1687
1948
|
mapper: VirtualNetworkPeering
|
|
1688
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
|
+
};
|
|
1689
1983
|
|
|
1690
1984
|
/*
|
|
1691
1985
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -1694,25 +1988,17 @@ const virtualNetworkPeeringParameters = {
|
|
|
1694
1988
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1695
1989
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1696
1990
|
*/
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
});
|
|
1709
|
-
}
|
|
1710
|
-
sendPollRequest(path) {
|
|
1711
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1712
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1713
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
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
|
+
};
|
|
1716
2002
|
}
|
|
1717
2003
|
|
|
1718
2004
|
/*
|
|
@@ -1862,7 +2148,7 @@ class WorkspacesImpl {
|
|
|
1862
2148
|
* @param options The options parameters.
|
|
1863
2149
|
*/
|
|
1864
2150
|
get(resourceGroupName, workspaceName, options) {
|
|
1865
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$
|
|
2151
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$4);
|
|
1866
2152
|
}
|
|
1867
2153
|
/**
|
|
1868
2154
|
* Deletes the workspace.
|
|
@@ -1875,7 +2161,7 @@ class WorkspacesImpl {
|
|
|
1875
2161
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1876
2162
|
return this.client.sendOperationRequest(args, spec);
|
|
1877
2163
|
});
|
|
1878
|
-
const
|
|
2164
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1879
2165
|
var _a;
|
|
1880
2166
|
let currentRawResponse = undefined;
|
|
1881
2167
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1894,9 +2180,13 @@ class WorkspacesImpl {
|
|
|
1894
2180
|
}
|
|
1895
2181
|
};
|
|
1896
2182
|
});
|
|
1897
|
-
const lro =
|
|
1898
|
-
|
|
1899
|
-
|
|
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,
|
|
1900
2190
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1901
2191
|
});
|
|
1902
2192
|
yield poller.poll();
|
|
@@ -1927,7 +2217,7 @@ class WorkspacesImpl {
|
|
|
1927
2217
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1928
2218
|
return this.client.sendOperationRequest(args, spec);
|
|
1929
2219
|
});
|
|
1930
|
-
const
|
|
2220
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1931
2221
|
var _a;
|
|
1932
2222
|
let currentRawResponse = undefined;
|
|
1933
2223
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1946,9 +2236,13 @@ class WorkspacesImpl {
|
|
|
1946
2236
|
}
|
|
1947
2237
|
};
|
|
1948
2238
|
});
|
|
1949
|
-
const lro =
|
|
1950
|
-
|
|
1951
|
-
|
|
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,
|
|
1952
2246
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1953
2247
|
});
|
|
1954
2248
|
yield poller.poll();
|
|
@@ -1980,7 +2274,7 @@ class WorkspacesImpl {
|
|
|
1980
2274
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1981
2275
|
return this.client.sendOperationRequest(args, spec);
|
|
1982
2276
|
});
|
|
1983
|
-
const
|
|
2277
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1984
2278
|
var _a;
|
|
1985
2279
|
let currentRawResponse = undefined;
|
|
1986
2280
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1999,9 +2293,13 @@ class WorkspacesImpl {
|
|
|
1999
2293
|
}
|
|
2000
2294
|
};
|
|
2001
2295
|
});
|
|
2002
|
-
const lro =
|
|
2003
|
-
|
|
2004
|
-
|
|
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,
|
|
2005
2303
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2006
2304
|
});
|
|
2007
2305
|
yield poller.poll();
|
|
@@ -2027,14 +2325,14 @@ class WorkspacesImpl {
|
|
|
2027
2325
|
* @param options The options parameters.
|
|
2028
2326
|
*/
|
|
2029
2327
|
_listByResourceGroup(resourceGroupName, options) {
|
|
2030
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2328
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
2031
2329
|
}
|
|
2032
2330
|
/**
|
|
2033
2331
|
* Gets all the workspaces within a subscription.
|
|
2034
2332
|
* @param options The options parameters.
|
|
2035
2333
|
*/
|
|
2036
2334
|
_listBySubscription(options) {
|
|
2037
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
2335
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
|
|
2038
2336
|
}
|
|
2039
2337
|
/**
|
|
2040
2338
|
* ListByResourceGroupNext
|
|
@@ -2043,7 +2341,7 @@ class WorkspacesImpl {
|
|
|
2043
2341
|
* @param options The options parameters.
|
|
2044
2342
|
*/
|
|
2045
2343
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2046
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2344
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
2047
2345
|
}
|
|
2048
2346
|
/**
|
|
2049
2347
|
* ListBySubscriptionNext
|
|
@@ -2051,12 +2349,12 @@ class WorkspacesImpl {
|
|
|
2051
2349
|
* @param options The options parameters.
|
|
2052
2350
|
*/
|
|
2053
2351
|
_listBySubscriptionNext(nextLink, options) {
|
|
2054
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
2352
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
|
|
2055
2353
|
}
|
|
2056
2354
|
}
|
|
2057
2355
|
// Operation Specifications
|
|
2058
|
-
const serializer$
|
|
2059
|
-
const getOperationSpec$
|
|
2356
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2357
|
+
const getOperationSpec$4 = {
|
|
2060
2358
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
2061
2359
|
httpMethod: "GET",
|
|
2062
2360
|
responses: {
|
|
@@ -2075,9 +2373,9 @@ const getOperationSpec$3 = {
|
|
|
2075
2373
|
subscriptionId
|
|
2076
2374
|
],
|
|
2077
2375
|
headerParameters: [accept],
|
|
2078
|
-
serializer: serializer$
|
|
2376
|
+
serializer: serializer$6
|
|
2079
2377
|
};
|
|
2080
|
-
const deleteOperationSpec$
|
|
2378
|
+
const deleteOperationSpec$3 = {
|
|
2081
2379
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
2082
2380
|
httpMethod: "DELETE",
|
|
2083
2381
|
responses: {
|
|
@@ -2097,9 +2395,9 @@ const deleteOperationSpec$2 = {
|
|
|
2097
2395
|
subscriptionId
|
|
2098
2396
|
],
|
|
2099
2397
|
headerParameters: [accept],
|
|
2100
|
-
serializer: serializer$
|
|
2398
|
+
serializer: serializer$6
|
|
2101
2399
|
};
|
|
2102
|
-
const createOrUpdateOperationSpec$
|
|
2400
|
+
const createOrUpdateOperationSpec$2 = {
|
|
2103
2401
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
2104
2402
|
httpMethod: "PUT",
|
|
2105
2403
|
responses: {
|
|
@@ -2129,9 +2427,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
2129
2427
|
],
|
|
2130
2428
|
headerParameters: [accept, contentType],
|
|
2131
2429
|
mediaType: "json",
|
|
2132
|
-
serializer: serializer$
|
|
2430
|
+
serializer: serializer$6
|
|
2133
2431
|
};
|
|
2134
|
-
const updateOperationSpec = {
|
|
2432
|
+
const updateOperationSpec$1 = {
|
|
2135
2433
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
2136
2434
|
httpMethod: "PATCH",
|
|
2137
2435
|
responses: {
|
|
@@ -2161,9 +2459,9 @@ const updateOperationSpec = {
|
|
|
2161
2459
|
],
|
|
2162
2460
|
headerParameters: [accept, contentType],
|
|
2163
2461
|
mediaType: "json",
|
|
2164
|
-
serializer: serializer$
|
|
2462
|
+
serializer: serializer$6
|
|
2165
2463
|
};
|
|
2166
|
-
const listByResourceGroupOperationSpec = {
|
|
2464
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
2167
2465
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
|
|
2168
2466
|
httpMethod: "GET",
|
|
2169
2467
|
responses: {
|
|
@@ -2181,9 +2479,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
2181
2479
|
subscriptionId
|
|
2182
2480
|
],
|
|
2183
2481
|
headerParameters: [accept],
|
|
2184
|
-
serializer: serializer$
|
|
2482
|
+
serializer: serializer$6
|
|
2185
2483
|
};
|
|
2186
|
-
const listBySubscriptionOperationSpec = {
|
|
2484
|
+
const listBySubscriptionOperationSpec$1 = {
|
|
2187
2485
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
|
|
2188
2486
|
httpMethod: "GET",
|
|
2189
2487
|
responses: {
|
|
@@ -2197,9 +2495,9 @@ const listBySubscriptionOperationSpec = {
|
|
|
2197
2495
|
queryParameters: [apiVersion],
|
|
2198
2496
|
urlParameters: [$host, subscriptionId],
|
|
2199
2497
|
headerParameters: [accept],
|
|
2200
|
-
serializer: serializer$
|
|
2498
|
+
serializer: serializer$6
|
|
2201
2499
|
};
|
|
2202
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2500
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
|
2203
2501
|
path: "{nextLink}",
|
|
2204
2502
|
httpMethod: "GET",
|
|
2205
2503
|
responses: {
|
|
@@ -2210,7 +2508,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2210
2508
|
bodyMapper: ErrorResponse
|
|
2211
2509
|
}
|
|
2212
2510
|
},
|
|
2213
|
-
queryParameters: [apiVersion],
|
|
2214
2511
|
urlParameters: [
|
|
2215
2512
|
$host,
|
|
2216
2513
|
resourceGroupName,
|
|
@@ -2218,9 +2515,9 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2218
2515
|
nextLink
|
|
2219
2516
|
],
|
|
2220
2517
|
headerParameters: [accept],
|
|
2221
|
-
serializer: serializer$
|
|
2518
|
+
serializer: serializer$6
|
|
2222
2519
|
};
|
|
2223
|
-
const listBySubscriptionNextOperationSpec = {
|
|
2520
|
+
const listBySubscriptionNextOperationSpec$1 = {
|
|
2224
2521
|
path: "{nextLink}",
|
|
2225
2522
|
httpMethod: "GET",
|
|
2226
2523
|
responses: {
|
|
@@ -2231,14 +2528,13 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
2231
2528
|
bodyMapper: ErrorResponse
|
|
2232
2529
|
}
|
|
2233
2530
|
},
|
|
2234
|
-
queryParameters: [apiVersion],
|
|
2235
2531
|
urlParameters: [
|
|
2236
2532
|
$host,
|
|
2237
2533
|
subscriptionId,
|
|
2238
2534
|
nextLink
|
|
2239
2535
|
],
|
|
2240
2536
|
headerParameters: [accept],
|
|
2241
|
-
serializer: serializer$
|
|
2537
|
+
serializer: serializer$6
|
|
2242
2538
|
};
|
|
2243
2539
|
|
|
2244
2540
|
/*
|
|
@@ -2336,7 +2632,7 @@ class OperationsImpl {
|
|
|
2336
2632
|
}
|
|
2337
2633
|
}
|
|
2338
2634
|
// Operation Specifications
|
|
2339
|
-
const serializer$
|
|
2635
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2340
2636
|
const listOperationSpec$3 = {
|
|
2341
2637
|
path: "/providers/Microsoft.Databricks/operations",
|
|
2342
2638
|
httpMethod: "GET",
|
|
@@ -2351,7 +2647,7 @@ const listOperationSpec$3 = {
|
|
|
2351
2647
|
queryParameters: [apiVersion],
|
|
2352
2648
|
urlParameters: [$host],
|
|
2353
2649
|
headerParameters: [accept],
|
|
2354
|
-
serializer: serializer$
|
|
2650
|
+
serializer: serializer$5
|
|
2355
2651
|
};
|
|
2356
2652
|
const listNextOperationSpec$2 = {
|
|
2357
2653
|
path: "{nextLink}",
|
|
@@ -2364,10 +2660,9 @@ const listNextOperationSpec$2 = {
|
|
|
2364
2660
|
bodyMapper: ErrorResponse
|
|
2365
2661
|
}
|
|
2366
2662
|
},
|
|
2367
|
-
queryParameters: [apiVersion],
|
|
2368
2663
|
urlParameters: [$host, nextLink],
|
|
2369
2664
|
headerParameters: [accept],
|
|
2370
|
-
serializer: serializer$
|
|
2665
|
+
serializer: serializer$5
|
|
2371
2666
|
};
|
|
2372
2667
|
|
|
2373
2668
|
/*
|
|
@@ -2467,7 +2762,7 @@ class PrivateLinkResourcesImpl {
|
|
|
2467
2762
|
* @param options The options parameters.
|
|
2468
2763
|
*/
|
|
2469
2764
|
get(resourceGroupName, workspaceName, groupId, options) {
|
|
2470
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$
|
|
2765
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$3);
|
|
2471
2766
|
}
|
|
2472
2767
|
/**
|
|
2473
2768
|
* ListNext
|
|
@@ -2481,7 +2776,7 @@ class PrivateLinkResourcesImpl {
|
|
|
2481
2776
|
}
|
|
2482
2777
|
}
|
|
2483
2778
|
// Operation Specifications
|
|
2484
|
-
const serializer$
|
|
2779
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2485
2780
|
const listOperationSpec$2 = {
|
|
2486
2781
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
|
|
2487
2782
|
httpMethod: "GET",
|
|
@@ -2501,9 +2796,9 @@ const listOperationSpec$2 = {
|
|
|
2501
2796
|
subscriptionId
|
|
2502
2797
|
],
|
|
2503
2798
|
headerParameters: [accept],
|
|
2504
|
-
serializer: serializer$
|
|
2799
|
+
serializer: serializer$4
|
|
2505
2800
|
};
|
|
2506
|
-
const getOperationSpec$
|
|
2801
|
+
const getOperationSpec$3 = {
|
|
2507
2802
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
|
|
2508
2803
|
httpMethod: "GET",
|
|
2509
2804
|
responses: {
|
|
@@ -2523,7 +2818,7 @@ const getOperationSpec$2 = {
|
|
|
2523
2818
|
groupId
|
|
2524
2819
|
],
|
|
2525
2820
|
headerParameters: [accept],
|
|
2526
|
-
serializer: serializer$
|
|
2821
|
+
serializer: serializer$4
|
|
2527
2822
|
};
|
|
2528
2823
|
const listNextOperationSpec$1 = {
|
|
2529
2824
|
path: "{nextLink}",
|
|
@@ -2536,7 +2831,6 @@ const listNextOperationSpec$1 = {
|
|
|
2536
2831
|
bodyMapper: ErrorResponse
|
|
2537
2832
|
}
|
|
2538
2833
|
},
|
|
2539
|
-
queryParameters: [apiVersion],
|
|
2540
2834
|
urlParameters: [
|
|
2541
2835
|
$host,
|
|
2542
2836
|
resourceGroupName,
|
|
@@ -2545,7 +2839,7 @@ const listNextOperationSpec$1 = {
|
|
|
2545
2839
|
nextLink
|
|
2546
2840
|
],
|
|
2547
2841
|
headerParameters: [accept],
|
|
2548
|
-
serializer: serializer$
|
|
2842
|
+
serializer: serializer$4
|
|
2549
2843
|
};
|
|
2550
2844
|
|
|
2551
2845
|
/*
|
|
@@ -2650,7 +2944,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2650
2944
|
workspaceName,
|
|
2651
2945
|
privateEndpointConnectionName,
|
|
2652
2946
|
options
|
|
2653
|
-
}, getOperationSpec$
|
|
2947
|
+
}, getOperationSpec$2);
|
|
2654
2948
|
}
|
|
2655
2949
|
/**
|
|
2656
2950
|
* Update the status of a private endpoint connection with the specified name
|
|
@@ -2665,7 +2959,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2665
2959
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2666
2960
|
return this.client.sendOperationRequest(args, spec);
|
|
2667
2961
|
});
|
|
2668
|
-
const
|
|
2962
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2669
2963
|
var _a;
|
|
2670
2964
|
let currentRawResponse = undefined;
|
|
2671
2965
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2684,15 +2978,19 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2684
2978
|
}
|
|
2685
2979
|
};
|
|
2686
2980
|
});
|
|
2687
|
-
const lro =
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
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,
|
|
2696
2994
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2697
2995
|
});
|
|
2698
2996
|
yield poller.poll();
|
|
@@ -2725,7 +3023,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2725
3023
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2726
3024
|
return this.client.sendOperationRequest(args, spec);
|
|
2727
3025
|
});
|
|
2728
|
-
const
|
|
3026
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2729
3027
|
var _a;
|
|
2730
3028
|
let currentRawResponse = undefined;
|
|
2731
3029
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2744,14 +3042,18 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2744
3042
|
}
|
|
2745
3043
|
};
|
|
2746
3044
|
});
|
|
2747
|
-
const lro =
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
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,
|
|
2755
3057
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2756
3058
|
});
|
|
2757
3059
|
yield poller.poll();
|
|
@@ -2783,7 +3085,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2783
3085
|
}
|
|
2784
3086
|
}
|
|
2785
3087
|
// Operation Specifications
|
|
2786
|
-
const serializer$
|
|
3088
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2787
3089
|
const listOperationSpec$1 = {
|
|
2788
3090
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections",
|
|
2789
3091
|
httpMethod: "GET",
|
|
@@ -2803,9 +3105,9 @@ const listOperationSpec$1 = {
|
|
|
2803
3105
|
subscriptionId
|
|
2804
3106
|
],
|
|
2805
3107
|
headerParameters: [accept],
|
|
2806
|
-
serializer: serializer$
|
|
3108
|
+
serializer: serializer$3
|
|
2807
3109
|
};
|
|
2808
|
-
const getOperationSpec$
|
|
3110
|
+
const getOperationSpec$2 = {
|
|
2809
3111
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2810
3112
|
httpMethod: "GET",
|
|
2811
3113
|
responses: {
|
|
@@ -2825,7 +3127,7 @@ const getOperationSpec$1 = {
|
|
|
2825
3127
|
privateEndpointConnectionName
|
|
2826
3128
|
],
|
|
2827
3129
|
headerParameters: [accept],
|
|
2828
|
-
serializer: serializer$
|
|
3130
|
+
serializer: serializer$3
|
|
2829
3131
|
};
|
|
2830
3132
|
const createOperationSpec = {
|
|
2831
3133
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -2858,9 +3160,9 @@ const createOperationSpec = {
|
|
|
2858
3160
|
],
|
|
2859
3161
|
headerParameters: [accept, contentType],
|
|
2860
3162
|
mediaType: "json",
|
|
2861
|
-
serializer: serializer$
|
|
3163
|
+
serializer: serializer$3
|
|
2862
3164
|
};
|
|
2863
|
-
const deleteOperationSpec$
|
|
3165
|
+
const deleteOperationSpec$2 = {
|
|
2864
3166
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2865
3167
|
httpMethod: "DELETE",
|
|
2866
3168
|
responses: {
|
|
@@ -2881,7 +3183,7 @@ const deleteOperationSpec$1 = {
|
|
|
2881
3183
|
privateEndpointConnectionName
|
|
2882
3184
|
],
|
|
2883
3185
|
headerParameters: [accept],
|
|
2884
|
-
serializer: serializer$
|
|
3186
|
+
serializer: serializer$3
|
|
2885
3187
|
};
|
|
2886
3188
|
const listNextOperationSpec = {
|
|
2887
3189
|
path: "{nextLink}",
|
|
@@ -2894,7 +3196,6 @@ const listNextOperationSpec = {
|
|
|
2894
3196
|
bodyMapper: ErrorResponse
|
|
2895
3197
|
}
|
|
2896
3198
|
},
|
|
2897
|
-
queryParameters: [apiVersion],
|
|
2898
3199
|
urlParameters: [
|
|
2899
3200
|
$host,
|
|
2900
3201
|
resourceGroupName,
|
|
@@ -2903,7 +3204,7 @@ const listNextOperationSpec = {
|
|
|
2903
3204
|
nextLink
|
|
2904
3205
|
],
|
|
2905
3206
|
headerParameters: [accept],
|
|
2906
|
-
serializer: serializer$
|
|
3207
|
+
serializer: serializer$3
|
|
2907
3208
|
};
|
|
2908
3209
|
|
|
2909
3210
|
/*
|
|
@@ -2935,7 +3236,7 @@ class OutboundNetworkDependenciesEndpointsImpl {
|
|
|
2935
3236
|
}
|
|
2936
3237
|
}
|
|
2937
3238
|
// Operation Specifications
|
|
2938
|
-
const serializer$
|
|
3239
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2939
3240
|
const listOperationSpec = {
|
|
2940
3241
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints",
|
|
2941
3242
|
httpMethod: "GET",
|
|
@@ -2965,7 +3266,7 @@ const listOperationSpec = {
|
|
|
2965
3266
|
subscriptionId
|
|
2966
3267
|
],
|
|
2967
3268
|
headerParameters: [accept],
|
|
2968
|
-
serializer: serializer$
|
|
3269
|
+
serializer: serializer$2
|
|
2969
3270
|
};
|
|
2970
3271
|
|
|
2971
3272
|
/*
|
|
@@ -3056,7 +3357,7 @@ class VNetPeeringImpl {
|
|
|
3056
3357
|
* @param options The options parameters.
|
|
3057
3358
|
*/
|
|
3058
3359
|
get(resourceGroupName, workspaceName, peeringName, options) {
|
|
3059
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec);
|
|
3360
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec$1);
|
|
3060
3361
|
}
|
|
3061
3362
|
/**
|
|
3062
3363
|
* Deletes the workspace vNetPeering.
|
|
@@ -3070,7 +3371,7 @@ class VNetPeeringImpl {
|
|
|
3070
3371
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3071
3372
|
return this.client.sendOperationRequest(args, spec);
|
|
3072
3373
|
});
|
|
3073
|
-
const
|
|
3374
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3074
3375
|
var _a;
|
|
3075
3376
|
let currentRawResponse = undefined;
|
|
3076
3377
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3089,9 +3390,13 @@ class VNetPeeringImpl {
|
|
|
3089
3390
|
}
|
|
3090
3391
|
};
|
|
3091
3392
|
});
|
|
3092
|
-
const lro =
|
|
3093
|
-
|
|
3094
|
-
|
|
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,
|
|
3095
3400
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3096
3401
|
});
|
|
3097
3402
|
yield poller.poll();
|
|
@@ -3124,7 +3429,7 @@ class VNetPeeringImpl {
|
|
|
3124
3429
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3125
3430
|
return this.client.sendOperationRequest(args, spec);
|
|
3126
3431
|
});
|
|
3127
|
-
const
|
|
3432
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3128
3433
|
var _a;
|
|
3129
3434
|
let currentRawResponse = undefined;
|
|
3130
3435
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3143,15 +3448,19 @@ class VNetPeeringImpl {
|
|
|
3143
3448
|
}
|
|
3144
3449
|
};
|
|
3145
3450
|
});
|
|
3146
|
-
const lro =
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
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,
|
|
3155
3464
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3156
3465
|
});
|
|
3157
3466
|
yield poller.poll();
|
|
@@ -3193,8 +3502,8 @@ class VNetPeeringImpl {
|
|
|
3193
3502
|
}
|
|
3194
3503
|
}
|
|
3195
3504
|
// Operation Specifications
|
|
3196
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3197
|
-
const getOperationSpec = {
|
|
3505
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3506
|
+
const getOperationSpec$1 = {
|
|
3198
3507
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3199
3508
|
httpMethod: "GET",
|
|
3200
3509
|
responses: {
|
|
@@ -3215,9 +3524,9 @@ const getOperationSpec = {
|
|
|
3215
3524
|
peeringName
|
|
3216
3525
|
],
|
|
3217
3526
|
headerParameters: [accept],
|
|
3218
|
-
serializer
|
|
3527
|
+
serializer: serializer$1
|
|
3219
3528
|
};
|
|
3220
|
-
const deleteOperationSpec = {
|
|
3529
|
+
const deleteOperationSpec$1 = {
|
|
3221
3530
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3222
3531
|
httpMethod: "DELETE",
|
|
3223
3532
|
responses: {
|
|
@@ -3238,9 +3547,9 @@ const deleteOperationSpec = {
|
|
|
3238
3547
|
peeringName
|
|
3239
3548
|
],
|
|
3240
3549
|
headerParameters: [accept],
|
|
3241
|
-
serializer
|
|
3550
|
+
serializer: serializer$1
|
|
3242
3551
|
};
|
|
3243
|
-
const createOrUpdateOperationSpec = {
|
|
3552
|
+
const createOrUpdateOperationSpec$1 = {
|
|
3244
3553
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3245
3554
|
httpMethod: "PUT",
|
|
3246
3555
|
responses: {
|
|
@@ -3271,7 +3580,7 @@ const createOrUpdateOperationSpec = {
|
|
|
3271
3580
|
],
|
|
3272
3581
|
headerParameters: [accept, contentType],
|
|
3273
3582
|
mediaType: "json",
|
|
3274
|
-
serializer
|
|
3583
|
+
serializer: serializer$1
|
|
3275
3584
|
};
|
|
3276
3585
|
const listByWorkspaceOperationSpec = {
|
|
3277
3586
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings",
|
|
@@ -3292,7 +3601,7 @@ const listByWorkspaceOperationSpec = {
|
|
|
3292
3601
|
subscriptionId
|
|
3293
3602
|
],
|
|
3294
3603
|
headerParameters: [accept],
|
|
3295
|
-
serializer
|
|
3604
|
+
serializer: serializer$1
|
|
3296
3605
|
};
|
|
3297
3606
|
const listByWorkspaceNextOperationSpec = {
|
|
3298
3607
|
path: "{nextLink}",
|
|
@@ -3305,7 +3614,6 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3305
3614
|
bodyMapper: ErrorResponse
|
|
3306
3615
|
}
|
|
3307
3616
|
},
|
|
3308
|
-
queryParameters: [apiVersion],
|
|
3309
3617
|
urlParameters: [
|
|
3310
3618
|
$host,
|
|
3311
3619
|
resourceGroupName,
|
|
@@ -3314,7 +3622,7 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3314
3622
|
nextLink
|
|
3315
3623
|
],
|
|
3316
3624
|
headerParameters: [accept],
|
|
3317
|
-
serializer
|
|
3625
|
+
serializer: serializer$1
|
|
3318
3626
|
};
|
|
3319
3627
|
|
|
3320
3628
|
/*
|
|
@@ -3324,97 +3632,605 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3324
3632
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3325
3633
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3326
3634
|
*/
|
|
3327
|
-
|
|
3635
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3636
|
+
/** Class containing AccessConnectors operations. */
|
|
3637
|
+
class AccessConnectorsImpl {
|
|
3328
3638
|
/**
|
|
3329
|
-
*
|
|
3330
|
-
* @param
|
|
3331
|
-
* @param subscriptionId The ID of the target subscription.
|
|
3332
|
-
* @param options The parameter options
|
|
3639
|
+
* Initialize a new instance of the class AccessConnectors class.
|
|
3640
|
+
* @param client Reference to the service client
|
|
3333
3641
|
*/
|
|
3334
|
-
constructor(
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
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
|
+
}
|
|
3349
3665
|
};
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
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)));
|
|
3376
3696
|
}
|
|
3377
|
-
}
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
return "api-version=" + apiVersion;
|
|
3406
|
-
}
|
|
3407
|
-
else {
|
|
3408
|
-
return item;
|
|
3409
|
-
}
|
|
3410
|
-
});
|
|
3411
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
3412
|
-
}
|
|
3413
|
-
return next(request);
|
|
3414
|
-
});
|
|
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);
|
|
3415
3725
|
}
|
|
3416
3726
|
};
|
|
3417
|
-
|
|
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.0`;
|
|
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);
|
|
3418
4234
|
}
|
|
3419
4235
|
}
|
|
3420
4236
|
|