@azure/arm-databricks 3.0.0-beta.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/index.js +1271 -273
- 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 +17 -7
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js +14 -6
- 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 +18 -8
- 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 +18 -8
- 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 +17 -8
- 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 +17 -8
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +16 -7
- 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 -2
- package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureDatabricksManagementClient.js +22 -20
- package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.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 +252 -42
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +54 -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.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +25 -12
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts +1 -1
- package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js +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 +54 -33
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +25 -12
- 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 +49 -28
- 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 +75 -38
- 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/outboundNetworkDependenciesEndpoints.d.ts +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 +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/databricks_examples.d.ts.map +1 -1
- package/dist-esm/test/databricks_examples.js +22 -22
- package/dist-esm/test/databricks_examples.js.map +1 -1
- package/package.json +27 -26
- package/review/arm-databricks.api.md +175 -71
- package/src/azureDatabricksManagementClient.ts +32 -24
- package/src/index.ts +1 -0
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +244 -10
- 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 +21 -9
- package/src/operations/outboundNetworkDependenciesEndpoints.ts +1 -1
- package/src/operations/privateEndpointConnections.ts +54 -30
- package/src/operations/privateLinkResources.ts +26 -9
- package/src/operations/vNetPeering.ts +55 -35
- package/src/operations/workspaces.ts +87 -50
- package/src/operationsInterfaces/accessConnectors.ts +139 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +1 -1
- 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 +39 -0
- package/types/arm-databricks.d.ts +333 -21
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
package/dist/index.js
CHANGED
|
@@ -7,8 +7,7 @@ var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
|
7
7
|
var tslib = require('tslib');
|
|
8
8
|
var coreLro = require('@azure/core-lro');
|
|
9
9
|
|
|
10
|
-
function
|
|
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,44 @@ function _interopNamespace(e) {
|
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
|
-
n
|
|
23
|
+
n.default = e;
|
|
25
24
|
return Object.freeze(n);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
var coreClient__namespace = /*#__PURE__*/
|
|
29
|
-
var coreRestPipeline__namespace = /*#__PURE__*/
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
+
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) Microsoft Corporation.
|
|
32
|
+
* Licensed under the MIT License.
|
|
33
|
+
*
|
|
34
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
+
*/
|
|
37
|
+
const pageMap = new WeakMap();
|
|
38
|
+
/**
|
|
39
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
+
* returns a continuation token that can be used to begin paging from
|
|
41
|
+
* that point later.
|
|
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
|
+
*/
|
|
45
|
+
function getContinuationToken(page) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (typeof page !== "object" || page === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
+
}
|
|
52
|
+
function setContinuationToken(page, continuationToken) {
|
|
53
|
+
var _a;
|
|
54
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
+
pageInfo.continuationToken = continuationToken;
|
|
59
|
+
pageMap.set(page, pageInfo);
|
|
60
|
+
}
|
|
30
61
|
|
|
31
62
|
/*
|
|
32
63
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -38,89 +69,143 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
69
|
/** Known values of {@link CustomParameterType} that the service accepts. */
|
|
39
70
|
exports.KnownCustomParameterType = void 0;
|
|
40
71
|
(function (KnownCustomParameterType) {
|
|
72
|
+
/** Bool */
|
|
41
73
|
KnownCustomParameterType["Bool"] = "Bool";
|
|
74
|
+
/** Object */
|
|
42
75
|
KnownCustomParameterType["Object"] = "Object";
|
|
76
|
+
/** String */
|
|
43
77
|
KnownCustomParameterType["String"] = "String";
|
|
44
78
|
})(exports.KnownCustomParameterType || (exports.KnownCustomParameterType = {}));
|
|
45
79
|
/** Known values of {@link KeySource} that the service accepts. */
|
|
46
80
|
exports.KnownKeySource = void 0;
|
|
47
81
|
(function (KnownKeySource) {
|
|
82
|
+
/** Default */
|
|
48
83
|
KnownKeySource["Default"] = "Default";
|
|
84
|
+
/** MicrosoftKeyvault */
|
|
49
85
|
KnownKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
|
|
50
86
|
})(exports.KnownKeySource || (exports.KnownKeySource = {}));
|
|
51
87
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
52
88
|
exports.KnownProvisioningState = void 0;
|
|
53
89
|
(function (KnownProvisioningState) {
|
|
90
|
+
/** Accepted */
|
|
54
91
|
KnownProvisioningState["Accepted"] = "Accepted";
|
|
92
|
+
/** Running */
|
|
55
93
|
KnownProvisioningState["Running"] = "Running";
|
|
94
|
+
/** Ready */
|
|
56
95
|
KnownProvisioningState["Ready"] = "Ready";
|
|
96
|
+
/** Creating */
|
|
57
97
|
KnownProvisioningState["Creating"] = "Creating";
|
|
98
|
+
/** Created */
|
|
58
99
|
KnownProvisioningState["Created"] = "Created";
|
|
100
|
+
/** Deleting */
|
|
59
101
|
KnownProvisioningState["Deleting"] = "Deleting";
|
|
102
|
+
/** Deleted */
|
|
60
103
|
KnownProvisioningState["Deleted"] = "Deleted";
|
|
104
|
+
/** Canceled */
|
|
61
105
|
KnownProvisioningState["Canceled"] = "Canceled";
|
|
106
|
+
/** Failed */
|
|
62
107
|
KnownProvisioningState["Failed"] = "Failed";
|
|
108
|
+
/** Succeeded */
|
|
63
109
|
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
110
|
+
/** Updating */
|
|
64
111
|
KnownProvisioningState["Updating"] = "Updating";
|
|
65
112
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
66
113
|
/** Known values of {@link EncryptionKeySource} that the service accepts. */
|
|
67
114
|
exports.KnownEncryptionKeySource = void 0;
|
|
68
115
|
(function (KnownEncryptionKeySource) {
|
|
116
|
+
/** MicrosoftKeyvault */
|
|
69
117
|
KnownEncryptionKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
|
|
70
118
|
})(exports.KnownEncryptionKeySource || (exports.KnownEncryptionKeySource = {}));
|
|
71
119
|
/** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
|
|
72
120
|
exports.KnownPrivateLinkServiceConnectionStatus = void 0;
|
|
73
121
|
(function (KnownPrivateLinkServiceConnectionStatus) {
|
|
122
|
+
/** Pending */
|
|
74
123
|
KnownPrivateLinkServiceConnectionStatus["Pending"] = "Pending";
|
|
124
|
+
/** Approved */
|
|
75
125
|
KnownPrivateLinkServiceConnectionStatus["Approved"] = "Approved";
|
|
126
|
+
/** Rejected */
|
|
76
127
|
KnownPrivateLinkServiceConnectionStatus["Rejected"] = "Rejected";
|
|
128
|
+
/** Disconnected */
|
|
77
129
|
KnownPrivateLinkServiceConnectionStatus["Disconnected"] = "Disconnected";
|
|
78
130
|
})(exports.KnownPrivateLinkServiceConnectionStatus || (exports.KnownPrivateLinkServiceConnectionStatus = {}));
|
|
79
131
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
80
132
|
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
81
133
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
134
|
+
/** Succeeded */
|
|
82
135
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
136
|
+
/** Creating */
|
|
83
137
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
138
|
+
/** Updating */
|
|
84
139
|
KnownPrivateEndpointConnectionProvisioningState["Updating"] = "Updating";
|
|
140
|
+
/** Deleting */
|
|
85
141
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
142
|
+
/** Failed */
|
|
86
143
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
87
144
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
88
145
|
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
89
146
|
exports.KnownPublicNetworkAccess = void 0;
|
|
90
147
|
(function (KnownPublicNetworkAccess) {
|
|
148
|
+
/** Enabled */
|
|
91
149
|
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
150
|
+
/** Disabled */
|
|
92
151
|
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
93
152
|
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
94
153
|
/** Known values of {@link RequiredNsgRules} that the service accepts. */
|
|
95
154
|
exports.KnownRequiredNsgRules = void 0;
|
|
96
155
|
(function (KnownRequiredNsgRules) {
|
|
156
|
+
/** AllRules */
|
|
97
157
|
KnownRequiredNsgRules["AllRules"] = "AllRules";
|
|
158
|
+
/** NoAzureDatabricksRules */
|
|
98
159
|
KnownRequiredNsgRules["NoAzureDatabricksRules"] = "NoAzureDatabricksRules";
|
|
160
|
+
/** NoAzureServiceRules */
|
|
99
161
|
KnownRequiredNsgRules["NoAzureServiceRules"] = "NoAzureServiceRules";
|
|
100
162
|
})(exports.KnownRequiredNsgRules || (exports.KnownRequiredNsgRules = {}));
|
|
101
163
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
102
164
|
exports.KnownCreatedByType = void 0;
|
|
103
165
|
(function (KnownCreatedByType) {
|
|
166
|
+
/** User */
|
|
104
167
|
KnownCreatedByType["User"] = "User";
|
|
168
|
+
/** Application */
|
|
105
169
|
KnownCreatedByType["Application"] = "Application";
|
|
170
|
+
/** ManagedIdentity */
|
|
106
171
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
172
|
+
/** Key */
|
|
107
173
|
KnownCreatedByType["Key"] = "Key";
|
|
108
174
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
109
175
|
/** Known values of {@link PeeringState} that the service accepts. */
|
|
110
176
|
exports.KnownPeeringState = void 0;
|
|
111
177
|
(function (KnownPeeringState) {
|
|
178
|
+
/** Initiated */
|
|
112
179
|
KnownPeeringState["Initiated"] = "Initiated";
|
|
180
|
+
/** Connected */
|
|
113
181
|
KnownPeeringState["Connected"] = "Connected";
|
|
182
|
+
/** Disconnected */
|
|
114
183
|
KnownPeeringState["Disconnected"] = "Disconnected";
|
|
115
184
|
})(exports.KnownPeeringState || (exports.KnownPeeringState = {}));
|
|
116
185
|
/** Known values of {@link PeeringProvisioningState} that the service accepts. */
|
|
117
186
|
exports.KnownPeeringProvisioningState = void 0;
|
|
118
187
|
(function (KnownPeeringProvisioningState) {
|
|
188
|
+
/** Succeeded */
|
|
119
189
|
KnownPeeringProvisioningState["Succeeded"] = "Succeeded";
|
|
190
|
+
/** Updating */
|
|
120
191
|
KnownPeeringProvisioningState["Updating"] = "Updating";
|
|
192
|
+
/** Deleting */
|
|
121
193
|
KnownPeeringProvisioningState["Deleting"] = "Deleting";
|
|
194
|
+
/** Failed */
|
|
122
195
|
KnownPeeringProvisioningState["Failed"] = "Failed";
|
|
123
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 = {}));
|
|
124
209
|
|
|
125
210
|
/*
|
|
126
211
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -477,6 +562,13 @@ const EncryptionEntitiesDefinition = {
|
|
|
477
562
|
name: "Composite",
|
|
478
563
|
className: "EncryptionV2"
|
|
479
564
|
}
|
|
565
|
+
},
|
|
566
|
+
managedDisk: {
|
|
567
|
+
serializedName: "managedDisk",
|
|
568
|
+
type: {
|
|
569
|
+
name: "Composite",
|
|
570
|
+
className: "ManagedDiskEncryption"
|
|
571
|
+
}
|
|
480
572
|
}
|
|
481
573
|
}
|
|
482
574
|
}
|
|
@@ -532,6 +624,63 @@ const EncryptionV2KeyVaultProperties = {
|
|
|
532
624
|
}
|
|
533
625
|
}
|
|
534
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
|
+
};
|
|
535
684
|
const PrivateEndpointConnection = {
|
|
536
685
|
type: {
|
|
537
686
|
name: "Composite",
|
|
@@ -580,6 +729,17 @@ const PrivateEndpointConnectionProperties = {
|
|
|
580
729
|
className: "PrivateEndpoint"
|
|
581
730
|
}
|
|
582
731
|
},
|
|
732
|
+
groupIds: {
|
|
733
|
+
serializedName: "groupIds",
|
|
734
|
+
type: {
|
|
735
|
+
name: "Sequence",
|
|
736
|
+
element: {
|
|
737
|
+
type: {
|
|
738
|
+
name: "String"
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
},
|
|
583
743
|
privateLinkServiceConnectionState: {
|
|
584
744
|
serializedName: "privateLinkServiceConnectionState",
|
|
585
745
|
type: {
|
|
@@ -630,8 +790,8 @@ const PrivateLinkServiceConnectionState = {
|
|
|
630
790
|
name: "String"
|
|
631
791
|
}
|
|
632
792
|
},
|
|
633
|
-
|
|
634
|
-
serializedName: "
|
|
793
|
+
actionsRequired: {
|
|
794
|
+
serializedName: "actionsRequired",
|
|
635
795
|
type: {
|
|
636
796
|
name: "String"
|
|
637
797
|
}
|
|
@@ -926,6 +1086,12 @@ const OperationDisplay = {
|
|
|
926
1086
|
type: {
|
|
927
1087
|
name: "String"
|
|
928
1088
|
}
|
|
1089
|
+
},
|
|
1090
|
+
description: {
|
|
1091
|
+
serializedName: "description",
|
|
1092
|
+
type: {
|
|
1093
|
+
name: "String"
|
|
1094
|
+
}
|
|
929
1095
|
}
|
|
930
1096
|
}
|
|
931
1097
|
}
|
|
@@ -1270,6 +1436,129 @@ const VirtualNetworkPeeringList = {
|
|
|
1270
1436
|
}
|
|
1271
1437
|
}
|
|
1272
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
|
+
};
|
|
1273
1562
|
const TrackedResource = {
|
|
1274
1563
|
type: {
|
|
1275
1564
|
name: "Composite",
|
|
@@ -1388,6 +1677,18 @@ const Workspace = {
|
|
|
1388
1677
|
name: "Composite",
|
|
1389
1678
|
className: "ManagedIdentityConfiguration"
|
|
1390
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
|
+
}
|
|
1391
1692
|
}, encryption: {
|
|
1392
1693
|
serializedName: "properties.encryption",
|
|
1393
1694
|
type: {
|
|
@@ -1419,51 +1720,84 @@ const Workspace = {
|
|
|
1419
1720
|
} })
|
|
1420
1721
|
}
|
|
1421
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
|
+
};
|
|
1422
1748
|
|
|
1423
1749
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1424
1750
|
__proto__: null,
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
WorkspaceCustomObjectParameter: WorkspaceCustomObjectParameter,
|
|
1431
|
-
WorkspaceProviderAuthorization: WorkspaceProviderAuthorization,
|
|
1751
|
+
AccessConnector: AccessConnector,
|
|
1752
|
+
AccessConnectorListResult: AccessConnectorListResult,
|
|
1753
|
+
AccessConnectorProperties: AccessConnectorProperties,
|
|
1754
|
+
AccessConnectorUpdate: AccessConnectorUpdate,
|
|
1755
|
+
AddressSpace: AddressSpace,
|
|
1432
1756
|
CreatedBy: CreatedBy,
|
|
1433
|
-
|
|
1434
|
-
WorkspacePropertiesEncryption: WorkspacePropertiesEncryption,
|
|
1757
|
+
Encryption: Encryption,
|
|
1435
1758
|
EncryptionEntitiesDefinition: EncryptionEntitiesDefinition,
|
|
1436
1759
|
EncryptionV2: EncryptionV2,
|
|
1437
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,
|
|
1438
1777
|
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1439
1778
|
PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
|
|
1440
|
-
|
|
1779
|
+
PrivateEndpointConnectionsList: PrivateEndpointConnectionsList,
|
|
1780
|
+
PrivateLinkResourcesList: PrivateLinkResourcesList,
|
|
1441
1781
|
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1782
|
+
Resource: Resource,
|
|
1442
1783
|
Sku: Sku,
|
|
1443
1784
|
SystemData: SystemData,
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
ErrorInfo: ErrorInfo,
|
|
1447
|
-
ErrorDetail: ErrorDetail,
|
|
1448
|
-
WorkspaceUpdate: WorkspaceUpdate,
|
|
1449
|
-
WorkspaceListResult: WorkspaceListResult,
|
|
1450
|
-
OperationListResult: OperationListResult,
|
|
1451
|
-
Operation: Operation,
|
|
1452
|
-
OperationDisplay: OperationDisplay,
|
|
1453
|
-
PrivateLinkResourcesList: PrivateLinkResourcesList,
|
|
1454
|
-
GroupIdInformationProperties: GroupIdInformationProperties,
|
|
1455
|
-
PrivateEndpointConnectionsList: PrivateEndpointConnectionsList,
|
|
1456
|
-
OutboundEnvironmentEndpoint: OutboundEnvironmentEndpoint,
|
|
1457
|
-
EndpointDependency: EndpointDependency,
|
|
1458
|
-
EndpointDetail: EndpointDetail,
|
|
1785
|
+
TrackedResource: TrackedResource,
|
|
1786
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
1459
1787
|
VirtualNetworkPeering: VirtualNetworkPeering,
|
|
1788
|
+
VirtualNetworkPeeringList: VirtualNetworkPeeringList,
|
|
1460
1789
|
VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork: VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork,
|
|
1461
|
-
AddressSpace: AddressSpace,
|
|
1462
1790
|
VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork: VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork,
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
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
|
|
1467
1801
|
});
|
|
1468
1802
|
|
|
1469
1803
|
/*
|
|
@@ -1527,7 +1861,7 @@ const workspaceName = {
|
|
|
1527
1861
|
const apiVersion = {
|
|
1528
1862
|
parameterPath: "apiVersion",
|
|
1529
1863
|
mapper: {
|
|
1530
|
-
defaultValue: "
|
|
1864
|
+
defaultValue: "2023-02-01",
|
|
1531
1865
|
isConstant: true,
|
|
1532
1866
|
serializedName: "api-version",
|
|
1533
1867
|
type: {
|
|
@@ -1613,6 +1947,39 @@ const virtualNetworkPeeringParameters = {
|
|
|
1613
1947
|
parameterPath: "virtualNetworkPeeringParameters",
|
|
1614
1948
|
mapper: VirtualNetworkPeering
|
|
1615
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
|
+
};
|
|
1616
1983
|
|
|
1617
1984
|
/*
|
|
1618
1985
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -1621,25 +1988,17 @@ const virtualNetworkPeeringParameters = {
|
|
|
1621
1988
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1622
1989
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1623
1990
|
*/
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
});
|
|
1636
|
-
}
|
|
1637
|
-
sendPollRequest(path) {
|
|
1638
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1639
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1640
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1641
|
-
});
|
|
1642
|
-
}
|
|
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
|
+
};
|
|
1643
2002
|
}
|
|
1644
2003
|
|
|
1645
2004
|
/*
|
|
@@ -1673,36 +2032,49 @@ class WorkspacesImpl {
|
|
|
1673
2032
|
[Symbol.asyncIterator]() {
|
|
1674
2033
|
return this;
|
|
1675
2034
|
},
|
|
1676
|
-
byPage: () => {
|
|
1677
|
-
|
|
2035
|
+
byPage: (settings) => {
|
|
2036
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2037
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2038
|
+
}
|
|
2039
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1678
2040
|
}
|
|
1679
2041
|
};
|
|
1680
2042
|
}
|
|
1681
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2043
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1682
2044
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1683
|
-
let result
|
|
1684
|
-
|
|
1685
|
-
|
|
2045
|
+
let result;
|
|
2046
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2047
|
+
if (!continuationToken) {
|
|
2048
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2049
|
+
let page = result.value || [];
|
|
2050
|
+
continuationToken = result.nextLink;
|
|
2051
|
+
setContinuationToken(page, continuationToken);
|
|
2052
|
+
yield yield tslib.__await(page);
|
|
2053
|
+
}
|
|
1686
2054
|
while (continuationToken) {
|
|
1687
2055
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1688
2056
|
continuationToken = result.nextLink;
|
|
1689
|
-
|
|
2057
|
+
let page = result.value || [];
|
|
2058
|
+
setContinuationToken(page, continuationToken);
|
|
2059
|
+
yield yield tslib.__await(page);
|
|
1690
2060
|
}
|
|
1691
2061
|
});
|
|
1692
2062
|
}
|
|
1693
2063
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1694
2064
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1695
|
-
var e_1,
|
|
2065
|
+
var _a, e_1, _b, _c;
|
|
1696
2066
|
try {
|
|
1697
|
-
for (var
|
|
1698
|
-
|
|
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;
|
|
1699
2071
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1700
2072
|
}
|
|
1701
2073
|
}
|
|
1702
2074
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1703
2075
|
finally {
|
|
1704
2076
|
try {
|
|
1705
|
-
if (
|
|
2077
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1706
2078
|
}
|
|
1707
2079
|
finally { if (e_1) throw e_1.error; }
|
|
1708
2080
|
}
|
|
@@ -1721,36 +2093,49 @@ class WorkspacesImpl {
|
|
|
1721
2093
|
[Symbol.asyncIterator]() {
|
|
1722
2094
|
return this;
|
|
1723
2095
|
},
|
|
1724
|
-
byPage: () => {
|
|
1725
|
-
|
|
2096
|
+
byPage: (settings) => {
|
|
2097
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2098
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2099
|
+
}
|
|
2100
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1726
2101
|
}
|
|
1727
2102
|
};
|
|
1728
2103
|
}
|
|
1729
|
-
listBySubscriptionPagingPage(options) {
|
|
2104
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1730
2105
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1731
|
-
let result
|
|
1732
|
-
|
|
1733
|
-
|
|
2106
|
+
let result;
|
|
2107
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2108
|
+
if (!continuationToken) {
|
|
2109
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
2110
|
+
let page = result.value || [];
|
|
2111
|
+
continuationToken = result.nextLink;
|
|
2112
|
+
setContinuationToken(page, continuationToken);
|
|
2113
|
+
yield yield tslib.__await(page);
|
|
2114
|
+
}
|
|
1734
2115
|
while (continuationToken) {
|
|
1735
2116
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1736
2117
|
continuationToken = result.nextLink;
|
|
1737
|
-
|
|
2118
|
+
let page = result.value || [];
|
|
2119
|
+
setContinuationToken(page, continuationToken);
|
|
2120
|
+
yield yield tslib.__await(page);
|
|
1738
2121
|
}
|
|
1739
2122
|
});
|
|
1740
2123
|
}
|
|
1741
2124
|
listBySubscriptionPagingAll(options) {
|
|
1742
2125
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1743
|
-
var e_2,
|
|
2126
|
+
var _a, e_2, _b, _c;
|
|
1744
2127
|
try {
|
|
1745
|
-
for (var
|
|
1746
|
-
|
|
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;
|
|
1747
2132
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1748
2133
|
}
|
|
1749
2134
|
}
|
|
1750
2135
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1751
2136
|
finally {
|
|
1752
2137
|
try {
|
|
1753
|
-
if (
|
|
2138
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1754
2139
|
}
|
|
1755
2140
|
finally { if (e_2) throw e_2.error; }
|
|
1756
2141
|
}
|
|
@@ -1763,7 +2148,7 @@ class WorkspacesImpl {
|
|
|
1763
2148
|
* @param options The options parameters.
|
|
1764
2149
|
*/
|
|
1765
2150
|
get(resourceGroupName, workspaceName, options) {
|
|
1766
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$
|
|
2151
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$4);
|
|
1767
2152
|
}
|
|
1768
2153
|
/**
|
|
1769
2154
|
* Deletes the workspace.
|
|
@@ -1776,7 +2161,7 @@ class WorkspacesImpl {
|
|
|
1776
2161
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1777
2162
|
return this.client.sendOperationRequest(args, spec);
|
|
1778
2163
|
});
|
|
1779
|
-
const
|
|
2164
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1780
2165
|
var _a;
|
|
1781
2166
|
let currentRawResponse = undefined;
|
|
1782
2167
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1795,9 +2180,13 @@ class WorkspacesImpl {
|
|
|
1795
2180
|
}
|
|
1796
2181
|
};
|
|
1797
2182
|
});
|
|
1798
|
-
const lro =
|
|
1799
|
-
|
|
1800
|
-
|
|
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,
|
|
1801
2190
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1802
2191
|
});
|
|
1803
2192
|
yield poller.poll();
|
|
@@ -1828,7 +2217,7 @@ class WorkspacesImpl {
|
|
|
1828
2217
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1829
2218
|
return this.client.sendOperationRequest(args, spec);
|
|
1830
2219
|
});
|
|
1831
|
-
const
|
|
2220
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1832
2221
|
var _a;
|
|
1833
2222
|
let currentRawResponse = undefined;
|
|
1834
2223
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1847,9 +2236,13 @@ class WorkspacesImpl {
|
|
|
1847
2236
|
}
|
|
1848
2237
|
};
|
|
1849
2238
|
});
|
|
1850
|
-
const lro =
|
|
1851
|
-
|
|
1852
|
-
|
|
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,
|
|
1853
2246
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1854
2247
|
});
|
|
1855
2248
|
yield poller.poll();
|
|
@@ -1881,7 +2274,7 @@ class WorkspacesImpl {
|
|
|
1881
2274
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1882
2275
|
return this.client.sendOperationRequest(args, spec);
|
|
1883
2276
|
});
|
|
1884
|
-
const
|
|
2277
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1885
2278
|
var _a;
|
|
1886
2279
|
let currentRawResponse = undefined;
|
|
1887
2280
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1900,9 +2293,13 @@ class WorkspacesImpl {
|
|
|
1900
2293
|
}
|
|
1901
2294
|
};
|
|
1902
2295
|
});
|
|
1903
|
-
const lro =
|
|
1904
|
-
|
|
1905
|
-
|
|
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,
|
|
1906
2303
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1907
2304
|
});
|
|
1908
2305
|
yield poller.poll();
|
|
@@ -1928,14 +2325,14 @@ class WorkspacesImpl {
|
|
|
1928
2325
|
* @param options The options parameters.
|
|
1929
2326
|
*/
|
|
1930
2327
|
_listByResourceGroup(resourceGroupName, options) {
|
|
1931
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2328
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
1932
2329
|
}
|
|
1933
2330
|
/**
|
|
1934
2331
|
* Gets all the workspaces within a subscription.
|
|
1935
2332
|
* @param options The options parameters.
|
|
1936
2333
|
*/
|
|
1937
2334
|
_listBySubscription(options) {
|
|
1938
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
2335
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
|
|
1939
2336
|
}
|
|
1940
2337
|
/**
|
|
1941
2338
|
* ListByResourceGroupNext
|
|
@@ -1944,7 +2341,7 @@ class WorkspacesImpl {
|
|
|
1944
2341
|
* @param options The options parameters.
|
|
1945
2342
|
*/
|
|
1946
2343
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1947
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2344
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
1948
2345
|
}
|
|
1949
2346
|
/**
|
|
1950
2347
|
* ListBySubscriptionNext
|
|
@@ -1952,12 +2349,12 @@ class WorkspacesImpl {
|
|
|
1952
2349
|
* @param options The options parameters.
|
|
1953
2350
|
*/
|
|
1954
2351
|
_listBySubscriptionNext(nextLink, options) {
|
|
1955
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
2352
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
|
|
1956
2353
|
}
|
|
1957
2354
|
}
|
|
1958
2355
|
// Operation Specifications
|
|
1959
|
-
const serializer$
|
|
1960
|
-
const getOperationSpec$
|
|
2356
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2357
|
+
const getOperationSpec$4 = {
|
|
1961
2358
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
1962
2359
|
httpMethod: "GET",
|
|
1963
2360
|
responses: {
|
|
@@ -1976,9 +2373,9 @@ const getOperationSpec$3 = {
|
|
|
1976
2373
|
subscriptionId
|
|
1977
2374
|
],
|
|
1978
2375
|
headerParameters: [accept],
|
|
1979
|
-
serializer: serializer$
|
|
2376
|
+
serializer: serializer$6
|
|
1980
2377
|
};
|
|
1981
|
-
const deleteOperationSpec$
|
|
2378
|
+
const deleteOperationSpec$3 = {
|
|
1982
2379
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
1983
2380
|
httpMethod: "DELETE",
|
|
1984
2381
|
responses: {
|
|
@@ -1998,9 +2395,9 @@ const deleteOperationSpec$2 = {
|
|
|
1998
2395
|
subscriptionId
|
|
1999
2396
|
],
|
|
2000
2397
|
headerParameters: [accept],
|
|
2001
|
-
serializer: serializer$
|
|
2398
|
+
serializer: serializer$6
|
|
2002
2399
|
};
|
|
2003
|
-
const createOrUpdateOperationSpec$
|
|
2400
|
+
const createOrUpdateOperationSpec$2 = {
|
|
2004
2401
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
2005
2402
|
httpMethod: "PUT",
|
|
2006
2403
|
responses: {
|
|
@@ -2030,9 +2427,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
2030
2427
|
],
|
|
2031
2428
|
headerParameters: [accept, contentType],
|
|
2032
2429
|
mediaType: "json",
|
|
2033
|
-
serializer: serializer$
|
|
2430
|
+
serializer: serializer$6
|
|
2034
2431
|
};
|
|
2035
|
-
const updateOperationSpec = {
|
|
2432
|
+
const updateOperationSpec$1 = {
|
|
2036
2433
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
2037
2434
|
httpMethod: "PATCH",
|
|
2038
2435
|
responses: {
|
|
@@ -2062,9 +2459,9 @@ const updateOperationSpec = {
|
|
|
2062
2459
|
],
|
|
2063
2460
|
headerParameters: [accept, contentType],
|
|
2064
2461
|
mediaType: "json",
|
|
2065
|
-
serializer: serializer$
|
|
2462
|
+
serializer: serializer$6
|
|
2066
2463
|
};
|
|
2067
|
-
const listByResourceGroupOperationSpec = {
|
|
2464
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
2068
2465
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
|
|
2069
2466
|
httpMethod: "GET",
|
|
2070
2467
|
responses: {
|
|
@@ -2082,9 +2479,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
2082
2479
|
subscriptionId
|
|
2083
2480
|
],
|
|
2084
2481
|
headerParameters: [accept],
|
|
2085
|
-
serializer: serializer$
|
|
2482
|
+
serializer: serializer$6
|
|
2086
2483
|
};
|
|
2087
|
-
const listBySubscriptionOperationSpec = {
|
|
2484
|
+
const listBySubscriptionOperationSpec$1 = {
|
|
2088
2485
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
|
|
2089
2486
|
httpMethod: "GET",
|
|
2090
2487
|
responses: {
|
|
@@ -2098,9 +2495,9 @@ const listBySubscriptionOperationSpec = {
|
|
|
2098
2495
|
queryParameters: [apiVersion],
|
|
2099
2496
|
urlParameters: [$host, subscriptionId],
|
|
2100
2497
|
headerParameters: [accept],
|
|
2101
|
-
serializer: serializer$
|
|
2498
|
+
serializer: serializer$6
|
|
2102
2499
|
};
|
|
2103
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2500
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
|
2104
2501
|
path: "{nextLink}",
|
|
2105
2502
|
httpMethod: "GET",
|
|
2106
2503
|
responses: {
|
|
@@ -2111,7 +2508,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2111
2508
|
bodyMapper: ErrorResponse
|
|
2112
2509
|
}
|
|
2113
2510
|
},
|
|
2114
|
-
queryParameters: [apiVersion],
|
|
2115
2511
|
urlParameters: [
|
|
2116
2512
|
$host,
|
|
2117
2513
|
resourceGroupName,
|
|
@@ -2119,9 +2515,9 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2119
2515
|
nextLink
|
|
2120
2516
|
],
|
|
2121
2517
|
headerParameters: [accept],
|
|
2122
|
-
serializer: serializer$
|
|
2518
|
+
serializer: serializer$6
|
|
2123
2519
|
};
|
|
2124
|
-
const listBySubscriptionNextOperationSpec = {
|
|
2520
|
+
const listBySubscriptionNextOperationSpec$1 = {
|
|
2125
2521
|
path: "{nextLink}",
|
|
2126
2522
|
httpMethod: "GET",
|
|
2127
2523
|
responses: {
|
|
@@ -2132,14 +2528,13 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
2132
2528
|
bodyMapper: ErrorResponse
|
|
2133
2529
|
}
|
|
2134
2530
|
},
|
|
2135
|
-
queryParameters: [apiVersion],
|
|
2136
2531
|
urlParameters: [
|
|
2137
2532
|
$host,
|
|
2138
2533
|
subscriptionId,
|
|
2139
2534
|
nextLink
|
|
2140
2535
|
],
|
|
2141
2536
|
headerParameters: [accept],
|
|
2142
|
-
serializer: serializer$
|
|
2537
|
+
serializer: serializer$6
|
|
2143
2538
|
};
|
|
2144
2539
|
|
|
2145
2540
|
/*
|
|
@@ -2172,36 +2567,49 @@ class OperationsImpl {
|
|
|
2172
2567
|
[Symbol.asyncIterator]() {
|
|
2173
2568
|
return this;
|
|
2174
2569
|
},
|
|
2175
|
-
byPage: () => {
|
|
2176
|
-
|
|
2570
|
+
byPage: (settings) => {
|
|
2571
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2572
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2573
|
+
}
|
|
2574
|
+
return this.listPagingPage(options, settings);
|
|
2177
2575
|
}
|
|
2178
2576
|
};
|
|
2179
2577
|
}
|
|
2180
|
-
listPagingPage(options) {
|
|
2578
|
+
listPagingPage(options, settings) {
|
|
2181
2579
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2182
|
-
let result
|
|
2183
|
-
|
|
2184
|
-
|
|
2580
|
+
let result;
|
|
2581
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2582
|
+
if (!continuationToken) {
|
|
2583
|
+
result = yield tslib.__await(this._list(options));
|
|
2584
|
+
let page = result.value || [];
|
|
2585
|
+
continuationToken = result.nextLink;
|
|
2586
|
+
setContinuationToken(page, continuationToken);
|
|
2587
|
+
yield yield tslib.__await(page);
|
|
2588
|
+
}
|
|
2185
2589
|
while (continuationToken) {
|
|
2186
2590
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2187
2591
|
continuationToken = result.nextLink;
|
|
2188
|
-
|
|
2592
|
+
let page = result.value || [];
|
|
2593
|
+
setContinuationToken(page, continuationToken);
|
|
2594
|
+
yield yield tslib.__await(page);
|
|
2189
2595
|
}
|
|
2190
2596
|
});
|
|
2191
2597
|
}
|
|
2192
2598
|
listPagingAll(options) {
|
|
2193
2599
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2194
|
-
var e_1,
|
|
2600
|
+
var _a, e_1, _b, _c;
|
|
2195
2601
|
try {
|
|
2196
|
-
for (var
|
|
2197
|
-
|
|
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;
|
|
2198
2606
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2199
2607
|
}
|
|
2200
2608
|
}
|
|
2201
2609
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2202
2610
|
finally {
|
|
2203
2611
|
try {
|
|
2204
|
-
if (
|
|
2612
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2205
2613
|
}
|
|
2206
2614
|
finally { if (e_1) throw e_1.error; }
|
|
2207
2615
|
}
|
|
@@ -2224,7 +2632,7 @@ class OperationsImpl {
|
|
|
2224
2632
|
}
|
|
2225
2633
|
}
|
|
2226
2634
|
// Operation Specifications
|
|
2227
|
-
const serializer$
|
|
2635
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2228
2636
|
const listOperationSpec$3 = {
|
|
2229
2637
|
path: "/providers/Microsoft.Databricks/operations",
|
|
2230
2638
|
httpMethod: "GET",
|
|
@@ -2239,7 +2647,7 @@ const listOperationSpec$3 = {
|
|
|
2239
2647
|
queryParameters: [apiVersion],
|
|
2240
2648
|
urlParameters: [$host],
|
|
2241
2649
|
headerParameters: [accept],
|
|
2242
|
-
serializer: serializer$
|
|
2650
|
+
serializer: serializer$5
|
|
2243
2651
|
};
|
|
2244
2652
|
const listNextOperationSpec$2 = {
|
|
2245
2653
|
path: "{nextLink}",
|
|
@@ -2252,10 +2660,9 @@ const listNextOperationSpec$2 = {
|
|
|
2252
2660
|
bodyMapper: ErrorResponse
|
|
2253
2661
|
}
|
|
2254
2662
|
},
|
|
2255
|
-
queryParameters: [apiVersion],
|
|
2256
2663
|
urlParameters: [$host, nextLink],
|
|
2257
2664
|
headerParameters: [accept],
|
|
2258
|
-
serializer: serializer$
|
|
2665
|
+
serializer: serializer$5
|
|
2259
2666
|
};
|
|
2260
2667
|
|
|
2261
2668
|
/*
|
|
@@ -2290,36 +2697,49 @@ class PrivateLinkResourcesImpl {
|
|
|
2290
2697
|
[Symbol.asyncIterator]() {
|
|
2291
2698
|
return this;
|
|
2292
2699
|
},
|
|
2293
|
-
byPage: () => {
|
|
2294
|
-
|
|
2700
|
+
byPage: (settings) => {
|
|
2701
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2702
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2703
|
+
}
|
|
2704
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
2295
2705
|
}
|
|
2296
2706
|
};
|
|
2297
2707
|
}
|
|
2298
|
-
listPagingPage(resourceGroupName, workspaceName, options) {
|
|
2708
|
+
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
2299
2709
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2300
|
-
let result
|
|
2301
|
-
|
|
2302
|
-
|
|
2710
|
+
let result;
|
|
2711
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2712
|
+
if (!continuationToken) {
|
|
2713
|
+
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
2714
|
+
let page = result.value || [];
|
|
2715
|
+
continuationToken = result.nextLink;
|
|
2716
|
+
setContinuationToken(page, continuationToken);
|
|
2717
|
+
yield yield tslib.__await(page);
|
|
2718
|
+
}
|
|
2303
2719
|
while (continuationToken) {
|
|
2304
2720
|
result = yield tslib.__await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
2305
2721
|
continuationToken = result.nextLink;
|
|
2306
|
-
|
|
2722
|
+
let page = result.value || [];
|
|
2723
|
+
setContinuationToken(page, continuationToken);
|
|
2724
|
+
yield yield tslib.__await(page);
|
|
2307
2725
|
}
|
|
2308
2726
|
});
|
|
2309
2727
|
}
|
|
2310
2728
|
listPagingAll(resourceGroupName, workspaceName, options) {
|
|
2311
2729
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2312
|
-
var e_1,
|
|
2730
|
+
var _a, e_1, _b, _c;
|
|
2313
2731
|
try {
|
|
2314
|
-
for (var
|
|
2315
|
-
|
|
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;
|
|
2316
2736
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2317
2737
|
}
|
|
2318
2738
|
}
|
|
2319
2739
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2320
2740
|
finally {
|
|
2321
2741
|
try {
|
|
2322
|
-
if (
|
|
2742
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2323
2743
|
}
|
|
2324
2744
|
finally { if (e_1) throw e_1.error; }
|
|
2325
2745
|
}
|
|
@@ -2342,7 +2762,7 @@ class PrivateLinkResourcesImpl {
|
|
|
2342
2762
|
* @param options The options parameters.
|
|
2343
2763
|
*/
|
|
2344
2764
|
get(resourceGroupName, workspaceName, groupId, options) {
|
|
2345
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$
|
|
2765
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$3);
|
|
2346
2766
|
}
|
|
2347
2767
|
/**
|
|
2348
2768
|
* ListNext
|
|
@@ -2356,7 +2776,7 @@ class PrivateLinkResourcesImpl {
|
|
|
2356
2776
|
}
|
|
2357
2777
|
}
|
|
2358
2778
|
// Operation Specifications
|
|
2359
|
-
const serializer$
|
|
2779
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2360
2780
|
const listOperationSpec$2 = {
|
|
2361
2781
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
|
|
2362
2782
|
httpMethod: "GET",
|
|
@@ -2376,9 +2796,9 @@ const listOperationSpec$2 = {
|
|
|
2376
2796
|
subscriptionId
|
|
2377
2797
|
],
|
|
2378
2798
|
headerParameters: [accept],
|
|
2379
|
-
serializer: serializer$
|
|
2799
|
+
serializer: serializer$4
|
|
2380
2800
|
};
|
|
2381
|
-
const getOperationSpec$
|
|
2801
|
+
const getOperationSpec$3 = {
|
|
2382
2802
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
|
|
2383
2803
|
httpMethod: "GET",
|
|
2384
2804
|
responses: {
|
|
@@ -2398,7 +2818,7 @@ const getOperationSpec$2 = {
|
|
|
2398
2818
|
groupId
|
|
2399
2819
|
],
|
|
2400
2820
|
headerParameters: [accept],
|
|
2401
|
-
serializer: serializer$
|
|
2821
|
+
serializer: serializer$4
|
|
2402
2822
|
};
|
|
2403
2823
|
const listNextOperationSpec$1 = {
|
|
2404
2824
|
path: "{nextLink}",
|
|
@@ -2411,7 +2831,6 @@ const listNextOperationSpec$1 = {
|
|
|
2411
2831
|
bodyMapper: ErrorResponse
|
|
2412
2832
|
}
|
|
2413
2833
|
},
|
|
2414
|
-
queryParameters: [apiVersion],
|
|
2415
2834
|
urlParameters: [
|
|
2416
2835
|
$host,
|
|
2417
2836
|
resourceGroupName,
|
|
@@ -2420,7 +2839,7 @@ const listNextOperationSpec$1 = {
|
|
|
2420
2839
|
nextLink
|
|
2421
2840
|
],
|
|
2422
2841
|
headerParameters: [accept],
|
|
2423
|
-
serializer: serializer$
|
|
2842
|
+
serializer: serializer$4
|
|
2424
2843
|
};
|
|
2425
2844
|
|
|
2426
2845
|
/*
|
|
@@ -2455,36 +2874,49 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2455
2874
|
[Symbol.asyncIterator]() {
|
|
2456
2875
|
return this;
|
|
2457
2876
|
},
|
|
2458
|
-
byPage: () => {
|
|
2459
|
-
|
|
2877
|
+
byPage: (settings) => {
|
|
2878
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2879
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2880
|
+
}
|
|
2881
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
2460
2882
|
}
|
|
2461
2883
|
};
|
|
2462
2884
|
}
|
|
2463
|
-
listPagingPage(resourceGroupName, workspaceName, options) {
|
|
2885
|
+
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
2464
2886
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2465
|
-
let result
|
|
2466
|
-
|
|
2467
|
-
|
|
2887
|
+
let result;
|
|
2888
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2889
|
+
if (!continuationToken) {
|
|
2890
|
+
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
2891
|
+
let page = result.value || [];
|
|
2892
|
+
continuationToken = result.nextLink;
|
|
2893
|
+
setContinuationToken(page, continuationToken);
|
|
2894
|
+
yield yield tslib.__await(page);
|
|
2895
|
+
}
|
|
2468
2896
|
while (continuationToken) {
|
|
2469
2897
|
result = yield tslib.__await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
2470
2898
|
continuationToken = result.nextLink;
|
|
2471
|
-
|
|
2899
|
+
let page = result.value || [];
|
|
2900
|
+
setContinuationToken(page, continuationToken);
|
|
2901
|
+
yield yield tslib.__await(page);
|
|
2472
2902
|
}
|
|
2473
2903
|
});
|
|
2474
2904
|
}
|
|
2475
2905
|
listPagingAll(resourceGroupName, workspaceName, options) {
|
|
2476
2906
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2477
|
-
var e_1,
|
|
2907
|
+
var _a, e_1, _b, _c;
|
|
2478
2908
|
try {
|
|
2479
|
-
for (var
|
|
2480
|
-
|
|
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;
|
|
2481
2913
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2482
2914
|
}
|
|
2483
2915
|
}
|
|
2484
2916
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2485
2917
|
finally {
|
|
2486
2918
|
try {
|
|
2487
|
-
if (
|
|
2919
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2488
2920
|
}
|
|
2489
2921
|
finally { if (e_1) throw e_1.error; }
|
|
2490
2922
|
}
|
|
@@ -2512,7 +2944,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2512
2944
|
workspaceName,
|
|
2513
2945
|
privateEndpointConnectionName,
|
|
2514
2946
|
options
|
|
2515
|
-
}, getOperationSpec$
|
|
2947
|
+
}, getOperationSpec$2);
|
|
2516
2948
|
}
|
|
2517
2949
|
/**
|
|
2518
2950
|
* Update the status of a private endpoint connection with the specified name
|
|
@@ -2527,7 +2959,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2527
2959
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2528
2960
|
return this.client.sendOperationRequest(args, spec);
|
|
2529
2961
|
});
|
|
2530
|
-
const
|
|
2962
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2531
2963
|
var _a;
|
|
2532
2964
|
let currentRawResponse = undefined;
|
|
2533
2965
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2546,15 +2978,19 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2546
2978
|
}
|
|
2547
2979
|
};
|
|
2548
2980
|
});
|
|
2549
|
-
const lro =
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
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,
|
|
2558
2994
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2559
2995
|
});
|
|
2560
2996
|
yield poller.poll();
|
|
@@ -2587,7 +3023,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2587
3023
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2588
3024
|
return this.client.sendOperationRequest(args, spec);
|
|
2589
3025
|
});
|
|
2590
|
-
const
|
|
3026
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2591
3027
|
var _a;
|
|
2592
3028
|
let currentRawResponse = undefined;
|
|
2593
3029
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2606,14 +3042,18 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2606
3042
|
}
|
|
2607
3043
|
};
|
|
2608
3044
|
});
|
|
2609
|
-
const lro =
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
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,
|
|
2617
3057
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2618
3058
|
});
|
|
2619
3059
|
yield poller.poll();
|
|
@@ -2645,7 +3085,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2645
3085
|
}
|
|
2646
3086
|
}
|
|
2647
3087
|
// Operation Specifications
|
|
2648
|
-
const serializer$
|
|
3088
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2649
3089
|
const listOperationSpec$1 = {
|
|
2650
3090
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections",
|
|
2651
3091
|
httpMethod: "GET",
|
|
@@ -2665,9 +3105,9 @@ const listOperationSpec$1 = {
|
|
|
2665
3105
|
subscriptionId
|
|
2666
3106
|
],
|
|
2667
3107
|
headerParameters: [accept],
|
|
2668
|
-
serializer: serializer$
|
|
3108
|
+
serializer: serializer$3
|
|
2669
3109
|
};
|
|
2670
|
-
const getOperationSpec$
|
|
3110
|
+
const getOperationSpec$2 = {
|
|
2671
3111
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2672
3112
|
httpMethod: "GET",
|
|
2673
3113
|
responses: {
|
|
@@ -2687,7 +3127,7 @@ const getOperationSpec$1 = {
|
|
|
2687
3127
|
privateEndpointConnectionName
|
|
2688
3128
|
],
|
|
2689
3129
|
headerParameters: [accept],
|
|
2690
|
-
serializer: serializer$
|
|
3130
|
+
serializer: serializer$3
|
|
2691
3131
|
};
|
|
2692
3132
|
const createOperationSpec = {
|
|
2693
3133
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -2720,9 +3160,9 @@ const createOperationSpec = {
|
|
|
2720
3160
|
],
|
|
2721
3161
|
headerParameters: [accept, contentType],
|
|
2722
3162
|
mediaType: "json",
|
|
2723
|
-
serializer: serializer$
|
|
3163
|
+
serializer: serializer$3
|
|
2724
3164
|
};
|
|
2725
|
-
const deleteOperationSpec$
|
|
3165
|
+
const deleteOperationSpec$2 = {
|
|
2726
3166
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2727
3167
|
httpMethod: "DELETE",
|
|
2728
3168
|
responses: {
|
|
@@ -2743,7 +3183,7 @@ const deleteOperationSpec$1 = {
|
|
|
2743
3183
|
privateEndpointConnectionName
|
|
2744
3184
|
],
|
|
2745
3185
|
headerParameters: [accept],
|
|
2746
|
-
serializer: serializer$
|
|
3186
|
+
serializer: serializer$3
|
|
2747
3187
|
};
|
|
2748
3188
|
const listNextOperationSpec = {
|
|
2749
3189
|
path: "{nextLink}",
|
|
@@ -2756,7 +3196,6 @@ const listNextOperationSpec = {
|
|
|
2756
3196
|
bodyMapper: ErrorResponse
|
|
2757
3197
|
}
|
|
2758
3198
|
},
|
|
2759
|
-
queryParameters: [apiVersion],
|
|
2760
3199
|
urlParameters: [
|
|
2761
3200
|
$host,
|
|
2762
3201
|
resourceGroupName,
|
|
@@ -2765,7 +3204,7 @@ const listNextOperationSpec = {
|
|
|
2765
3204
|
nextLink
|
|
2766
3205
|
],
|
|
2767
3206
|
headerParameters: [accept],
|
|
2768
|
-
serializer: serializer$
|
|
3207
|
+
serializer: serializer$3
|
|
2769
3208
|
};
|
|
2770
3209
|
|
|
2771
3210
|
/*
|
|
@@ -2787,7 +3226,7 @@ class OutboundNetworkDependenciesEndpointsImpl {
|
|
|
2787
3226
|
/**
|
|
2788
3227
|
* Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You
|
|
2789
3228
|
* must configure outbound access with these endpoints. For more information, see
|
|
2790
|
-
* https://docs.microsoft.com/
|
|
3229
|
+
* https://docs.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/udr
|
|
2791
3230
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2792
3231
|
* @param workspaceName The name of the workspace.
|
|
2793
3232
|
* @param options The options parameters.
|
|
@@ -2797,7 +3236,7 @@ class OutboundNetworkDependenciesEndpointsImpl {
|
|
|
2797
3236
|
}
|
|
2798
3237
|
}
|
|
2799
3238
|
// Operation Specifications
|
|
2800
|
-
const serializer$
|
|
3239
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2801
3240
|
const listOperationSpec = {
|
|
2802
3241
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints",
|
|
2803
3242
|
httpMethod: "GET",
|
|
@@ -2827,7 +3266,7 @@ const listOperationSpec = {
|
|
|
2827
3266
|
subscriptionId
|
|
2828
3267
|
],
|
|
2829
3268
|
headerParameters: [accept],
|
|
2830
|
-
serializer: serializer$
|
|
3269
|
+
serializer: serializer$2
|
|
2831
3270
|
};
|
|
2832
3271
|
|
|
2833
3272
|
/*
|
|
@@ -2862,36 +3301,49 @@ class VNetPeeringImpl {
|
|
|
2862
3301
|
[Symbol.asyncIterator]() {
|
|
2863
3302
|
return this;
|
|
2864
3303
|
},
|
|
2865
|
-
byPage: () => {
|
|
2866
|
-
|
|
3304
|
+
byPage: (settings) => {
|
|
3305
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3306
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3307
|
+
}
|
|
3308
|
+
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
|
2867
3309
|
}
|
|
2868
3310
|
};
|
|
2869
3311
|
}
|
|
2870
|
-
listByWorkspacePagingPage(resourceGroupName, workspaceName, options) {
|
|
3312
|
+
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
2871
3313
|
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
|
2872
|
-
let result
|
|
2873
|
-
|
|
2874
|
-
|
|
3314
|
+
let result;
|
|
3315
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3316
|
+
if (!continuationToken) {
|
|
3317
|
+
result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
|
3318
|
+
let page = result.value || [];
|
|
3319
|
+
continuationToken = result.nextLink;
|
|
3320
|
+
setContinuationToken(page, continuationToken);
|
|
3321
|
+
yield yield tslib.__await(page);
|
|
3322
|
+
}
|
|
2875
3323
|
while (continuationToken) {
|
|
2876
3324
|
result = yield tslib.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
2877
3325
|
continuationToken = result.nextLink;
|
|
2878
|
-
|
|
3326
|
+
let page = result.value || [];
|
|
3327
|
+
setContinuationToken(page, continuationToken);
|
|
3328
|
+
yield yield tslib.__await(page);
|
|
2879
3329
|
}
|
|
2880
3330
|
});
|
|
2881
3331
|
}
|
|
2882
3332
|
listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
|
2883
3333
|
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
|
|
2884
|
-
var e_1,
|
|
3334
|
+
var _a, e_1, _b, _c;
|
|
2885
3335
|
try {
|
|
2886
|
-
for (var
|
|
2887
|
-
|
|
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;
|
|
2888
3340
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2889
3341
|
}
|
|
2890
3342
|
}
|
|
2891
3343
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2892
3344
|
finally {
|
|
2893
3345
|
try {
|
|
2894
|
-
if (
|
|
3346
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2895
3347
|
}
|
|
2896
3348
|
finally { if (e_1) throw e_1.error; }
|
|
2897
3349
|
}
|
|
@@ -2905,7 +3357,7 @@ class VNetPeeringImpl {
|
|
|
2905
3357
|
* @param options The options parameters.
|
|
2906
3358
|
*/
|
|
2907
3359
|
get(resourceGroupName, workspaceName, peeringName, options) {
|
|
2908
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec);
|
|
3360
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec$1);
|
|
2909
3361
|
}
|
|
2910
3362
|
/**
|
|
2911
3363
|
* Deletes the workspace vNetPeering.
|
|
@@ -2919,7 +3371,7 @@ class VNetPeeringImpl {
|
|
|
2919
3371
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2920
3372
|
return this.client.sendOperationRequest(args, spec);
|
|
2921
3373
|
});
|
|
2922
|
-
const
|
|
3374
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2923
3375
|
var _a;
|
|
2924
3376
|
let currentRawResponse = undefined;
|
|
2925
3377
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2938,9 +3390,13 @@ class VNetPeeringImpl {
|
|
|
2938
3390
|
}
|
|
2939
3391
|
};
|
|
2940
3392
|
});
|
|
2941
|
-
const lro =
|
|
2942
|
-
|
|
2943
|
-
|
|
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,
|
|
2944
3400
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2945
3401
|
});
|
|
2946
3402
|
yield poller.poll();
|
|
@@ -2973,7 +3429,7 @@ class VNetPeeringImpl {
|
|
|
2973
3429
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2974
3430
|
return this.client.sendOperationRequest(args, spec);
|
|
2975
3431
|
});
|
|
2976
|
-
const
|
|
3432
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2977
3433
|
var _a;
|
|
2978
3434
|
let currentRawResponse = undefined;
|
|
2979
3435
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2992,15 +3448,19 @@ class VNetPeeringImpl {
|
|
|
2992
3448
|
}
|
|
2993
3449
|
};
|
|
2994
3450
|
});
|
|
2995
|
-
const lro =
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
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,
|
|
3004
3464
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3005
3465
|
});
|
|
3006
3466
|
yield poller.poll();
|
|
@@ -3042,8 +3502,8 @@ class VNetPeeringImpl {
|
|
|
3042
3502
|
}
|
|
3043
3503
|
}
|
|
3044
3504
|
// Operation Specifications
|
|
3045
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3046
|
-
const getOperationSpec = {
|
|
3505
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3506
|
+
const getOperationSpec$1 = {
|
|
3047
3507
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3048
3508
|
httpMethod: "GET",
|
|
3049
3509
|
responses: {
|
|
@@ -3064,9 +3524,9 @@ const getOperationSpec = {
|
|
|
3064
3524
|
peeringName
|
|
3065
3525
|
],
|
|
3066
3526
|
headerParameters: [accept],
|
|
3067
|
-
serializer
|
|
3527
|
+
serializer: serializer$1
|
|
3068
3528
|
};
|
|
3069
|
-
const deleteOperationSpec = {
|
|
3529
|
+
const deleteOperationSpec$1 = {
|
|
3070
3530
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3071
3531
|
httpMethod: "DELETE",
|
|
3072
3532
|
responses: {
|
|
@@ -3087,9 +3547,9 @@ const deleteOperationSpec = {
|
|
|
3087
3547
|
peeringName
|
|
3088
3548
|
],
|
|
3089
3549
|
headerParameters: [accept],
|
|
3090
|
-
serializer
|
|
3550
|
+
serializer: serializer$1
|
|
3091
3551
|
};
|
|
3092
|
-
const createOrUpdateOperationSpec = {
|
|
3552
|
+
const createOrUpdateOperationSpec$1 = {
|
|
3093
3553
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3094
3554
|
httpMethod: "PUT",
|
|
3095
3555
|
responses: {
|
|
@@ -3120,7 +3580,7 @@ const createOrUpdateOperationSpec = {
|
|
|
3120
3580
|
],
|
|
3121
3581
|
headerParameters: [accept, contentType],
|
|
3122
3582
|
mediaType: "json",
|
|
3123
|
-
serializer
|
|
3583
|
+
serializer: serializer$1
|
|
3124
3584
|
};
|
|
3125
3585
|
const listByWorkspaceOperationSpec = {
|
|
3126
3586
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings",
|
|
@@ -3141,7 +3601,7 @@ const listByWorkspaceOperationSpec = {
|
|
|
3141
3601
|
subscriptionId
|
|
3142
3602
|
],
|
|
3143
3603
|
headerParameters: [accept],
|
|
3144
|
-
serializer
|
|
3604
|
+
serializer: serializer$1
|
|
3145
3605
|
};
|
|
3146
3606
|
const listByWorkspaceNextOperationSpec = {
|
|
3147
3607
|
path: "{nextLink}",
|
|
@@ -3154,7 +3614,6 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3154
3614
|
bodyMapper: ErrorResponse
|
|
3155
3615
|
}
|
|
3156
3616
|
},
|
|
3157
|
-
queryParameters: [apiVersion],
|
|
3158
3617
|
urlParameters: [
|
|
3159
3618
|
$host,
|
|
3160
3619
|
resourceGroupName,
|
|
@@ -3163,7 +3622,7 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3163
3622
|
nextLink
|
|
3164
3623
|
],
|
|
3165
3624
|
headerParameters: [accept],
|
|
3166
|
-
serializer
|
|
3625
|
+
serializer: serializer$1
|
|
3167
3626
|
};
|
|
3168
3627
|
|
|
3169
3628
|
/*
|
|
@@ -3173,69 +3632,608 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3173
3632
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3174
3633
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3175
3634
|
*/
|
|
3176
|
-
|
|
3635
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3636
|
+
/** Class containing AccessConnectors operations. */
|
|
3637
|
+
class AccessConnectorsImpl {
|
|
3177
3638
|
/**
|
|
3178
|
-
*
|
|
3179
|
-
* @param
|
|
3180
|
-
* @param subscriptionId The ID of the target subscription.
|
|
3181
|
-
* @param options The parameter options
|
|
3639
|
+
* Initialize a new instance of the class AccessConnectors class.
|
|
3640
|
+
* @param client Reference to the service client
|
|
3182
3641
|
*/
|
|
3183
|
-
constructor(
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
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
|
+
}
|
|
3198
3665
|
};
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
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)));
|
|
3696
|
+
}
|
|
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);
|
|
3725
|
+
}
|
|
3726
|
+
};
|
|
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
|
+
}
|
|
3224
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
|
+
}));
|
|
3225
4222
|
}
|
|
3226
4223
|
// Parameter assignments
|
|
3227
4224
|
this.subscriptionId = subscriptionId;
|
|
3228
4225
|
// Assigning values to Constant parameters
|
|
3229
4226
|
this.$host = options.$host || "https://management.azure.com";
|
|
3230
|
-
this.apiVersion = options.apiVersion || "2021-04-01-preview";
|
|
3231
4227
|
this.workspaces = new WorkspacesImpl(this);
|
|
3232
4228
|
this.operations = new OperationsImpl(this);
|
|
3233
4229
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
3234
4230
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
3235
4231
|
this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl(this);
|
|
3236
4232
|
this.vNetPeering = new VNetPeeringImpl(this);
|
|
4233
|
+
this.accessConnectors = new AccessConnectorsImpl(this);
|
|
3237
4234
|
}
|
|
3238
4235
|
}
|
|
3239
4236
|
|
|
3240
4237
|
exports.AzureDatabricksManagementClient = AzureDatabricksManagementClient;
|
|
4238
|
+
exports.getContinuationToken = getContinuationToken;
|
|
3241
4239
|
//# sourceMappingURL=index.js.map
|