@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
|
@@ -6,20 +6,27 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Workspaces } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
13
14
|
import * as Parameters from "../models/parameters";
|
|
14
15
|
import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient";
|
|
15
|
-
import {
|
|
16
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
17
22
|
import {
|
|
18
23
|
Workspace,
|
|
19
24
|
WorkspacesListByResourceGroupNextOptionalParams,
|
|
20
25
|
WorkspacesListByResourceGroupOptionalParams,
|
|
26
|
+
WorkspacesListByResourceGroupResponse,
|
|
21
27
|
WorkspacesListBySubscriptionNextOptionalParams,
|
|
22
28
|
WorkspacesListBySubscriptionOptionalParams,
|
|
29
|
+
WorkspacesListBySubscriptionResponse,
|
|
23
30
|
WorkspacesGetOptionalParams,
|
|
24
31
|
WorkspacesGetResponse,
|
|
25
32
|
WorkspacesDeleteOptionalParams,
|
|
@@ -28,8 +35,6 @@ import {
|
|
|
28
35
|
WorkspaceUpdate,
|
|
29
36
|
WorkspacesUpdateOptionalParams,
|
|
30
37
|
WorkspacesUpdateResponse,
|
|
31
|
-
WorkspacesListByResourceGroupResponse,
|
|
32
|
-
WorkspacesListBySubscriptionResponse,
|
|
33
38
|
WorkspacesListByResourceGroupNextResponse,
|
|
34
39
|
WorkspacesListBySubscriptionNextResponse
|
|
35
40
|
} from "../models";
|
|
@@ -64,19 +69,33 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
64
69
|
[Symbol.asyncIterator]() {
|
|
65
70
|
return this;
|
|
66
71
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
-
|
|
72
|
+
byPage: (settings?: PageSettings) => {
|
|
73
|
+
if (settings?.maxPageSize) {
|
|
74
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
75
|
+
}
|
|
76
|
+
return this.listByResourceGroupPagingPage(
|
|
77
|
+
resourceGroupName,
|
|
78
|
+
options,
|
|
79
|
+
settings
|
|
80
|
+
);
|
|
69
81
|
}
|
|
70
82
|
};
|
|
71
83
|
}
|
|
72
84
|
|
|
73
85
|
private async *listByResourceGroupPagingPage(
|
|
74
86
|
resourceGroupName: string,
|
|
75
|
-
options?: WorkspacesListByResourceGroupOptionalParams
|
|
87
|
+
options?: WorkspacesListByResourceGroupOptionalParams,
|
|
88
|
+
settings?: PageSettings
|
|
76
89
|
): AsyncIterableIterator<Workspace[]> {
|
|
77
|
-
let result
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
let result: WorkspacesListByResourceGroupResponse;
|
|
91
|
+
let continuationToken = settings?.continuationToken;
|
|
92
|
+
if (!continuationToken) {
|
|
93
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
80
99
|
while (continuationToken) {
|
|
81
100
|
result = await this._listByResourceGroupNext(
|
|
82
101
|
resourceGroupName,
|
|
@@ -84,7 +103,9 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
84
103
|
options
|
|
85
104
|
);
|
|
86
105
|
continuationToken = result.nextLink;
|
|
87
|
-
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
88
109
|
}
|
|
89
110
|
}
|
|
90
111
|
|
|
@@ -115,22 +136,34 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
115
136
|
[Symbol.asyncIterator]() {
|
|
116
137
|
return this;
|
|
117
138
|
},
|
|
118
|
-
byPage: () => {
|
|
119
|
-
|
|
139
|
+
byPage: (settings?: PageSettings) => {
|
|
140
|
+
if (settings?.maxPageSize) {
|
|
141
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
142
|
+
}
|
|
143
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
120
144
|
}
|
|
121
145
|
};
|
|
122
146
|
}
|
|
123
147
|
|
|
124
148
|
private async *listBySubscriptionPagingPage(
|
|
125
|
-
options?: WorkspacesListBySubscriptionOptionalParams
|
|
149
|
+
options?: WorkspacesListBySubscriptionOptionalParams,
|
|
150
|
+
settings?: PageSettings
|
|
126
151
|
): AsyncIterableIterator<Workspace[]> {
|
|
127
|
-
let result
|
|
128
|
-
|
|
129
|
-
|
|
152
|
+
let result: WorkspacesListBySubscriptionResponse;
|
|
153
|
+
let continuationToken = settings?.continuationToken;
|
|
154
|
+
if (!continuationToken) {
|
|
155
|
+
result = await this._listBySubscription(options);
|
|
156
|
+
let page = result.value || [];
|
|
157
|
+
continuationToken = result.nextLink;
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
160
|
+
}
|
|
130
161
|
while (continuationToken) {
|
|
131
162
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
132
163
|
continuationToken = result.nextLink;
|
|
133
|
-
|
|
164
|
+
let page = result.value || [];
|
|
165
|
+
setContinuationToken(page, continuationToken);
|
|
166
|
+
yield page;
|
|
134
167
|
}
|
|
135
168
|
}
|
|
136
169
|
|
|
@@ -169,14 +202,14 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
169
202
|
resourceGroupName: string,
|
|
170
203
|
workspaceName: string,
|
|
171
204
|
options?: WorkspacesDeleteOptionalParams
|
|
172
|
-
): Promise<
|
|
205
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
173
206
|
const directSendOperation = async (
|
|
174
207
|
args: coreClient.OperationArguments,
|
|
175
208
|
spec: coreClient.OperationSpec
|
|
176
209
|
): Promise<void> => {
|
|
177
210
|
return this.client.sendOperationRequest(args, spec);
|
|
178
211
|
};
|
|
179
|
-
const
|
|
212
|
+
const sendOperationFn = async (
|
|
180
213
|
args: coreClient.OperationArguments,
|
|
181
214
|
spec: coreClient.OperationSpec
|
|
182
215
|
) => {
|
|
@@ -209,13 +242,13 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
209
242
|
};
|
|
210
243
|
};
|
|
211
244
|
|
|
212
|
-
const lro =
|
|
213
|
-
|
|
214
|
-
{ resourceGroupName, workspaceName, options },
|
|
215
|
-
deleteOperationSpec
|
|
216
|
-
);
|
|
217
|
-
const poller =
|
|
218
|
-
|
|
245
|
+
const lro = createLroSpec({
|
|
246
|
+
sendOperationFn,
|
|
247
|
+
args: { resourceGroupName, workspaceName, options },
|
|
248
|
+
spec: deleteOperationSpec
|
|
249
|
+
});
|
|
250
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
251
|
+
restoreFrom: options?.resumeFrom,
|
|
219
252
|
intervalInMs: options?.updateIntervalInMs
|
|
220
253
|
});
|
|
221
254
|
await poller.poll();
|
|
@@ -254,8 +287,8 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
254
287
|
parameters: Workspace,
|
|
255
288
|
options?: WorkspacesCreateOrUpdateOptionalParams
|
|
256
289
|
): Promise<
|
|
257
|
-
|
|
258
|
-
|
|
290
|
+
SimplePollerLike<
|
|
291
|
+
OperationState<WorkspacesCreateOrUpdateResponse>,
|
|
259
292
|
WorkspacesCreateOrUpdateResponse
|
|
260
293
|
>
|
|
261
294
|
> {
|
|
@@ -265,7 +298,7 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
265
298
|
): Promise<WorkspacesCreateOrUpdateResponse> => {
|
|
266
299
|
return this.client.sendOperationRequest(args, spec);
|
|
267
300
|
};
|
|
268
|
-
const
|
|
301
|
+
const sendOperationFn = async (
|
|
269
302
|
args: coreClient.OperationArguments,
|
|
270
303
|
spec: coreClient.OperationSpec
|
|
271
304
|
) => {
|
|
@@ -298,13 +331,16 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
298
331
|
};
|
|
299
332
|
};
|
|
300
333
|
|
|
301
|
-
const lro =
|
|
302
|
-
|
|
303
|
-
{ resourceGroupName, workspaceName, parameters, options },
|
|
304
|
-
createOrUpdateOperationSpec
|
|
305
|
-
);
|
|
306
|
-
const poller =
|
|
307
|
-
|
|
334
|
+
const lro = createLroSpec({
|
|
335
|
+
sendOperationFn,
|
|
336
|
+
args: { resourceGroupName, workspaceName, parameters, options },
|
|
337
|
+
spec: createOrUpdateOperationSpec
|
|
338
|
+
});
|
|
339
|
+
const poller = await createHttpPoller<
|
|
340
|
+
WorkspacesCreateOrUpdateResponse,
|
|
341
|
+
OperationState<WorkspacesCreateOrUpdateResponse>
|
|
342
|
+
>(lro, {
|
|
343
|
+
restoreFrom: options?.resumeFrom,
|
|
308
344
|
intervalInMs: options?.updateIntervalInMs
|
|
309
345
|
});
|
|
310
346
|
await poller.poll();
|
|
@@ -346,8 +382,8 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
346
382
|
parameters: WorkspaceUpdate,
|
|
347
383
|
options?: WorkspacesUpdateOptionalParams
|
|
348
384
|
): Promise<
|
|
349
|
-
|
|
350
|
-
|
|
385
|
+
SimplePollerLike<
|
|
386
|
+
OperationState<WorkspacesUpdateResponse>,
|
|
351
387
|
WorkspacesUpdateResponse
|
|
352
388
|
>
|
|
353
389
|
> {
|
|
@@ -357,7 +393,7 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
357
393
|
): Promise<WorkspacesUpdateResponse> => {
|
|
358
394
|
return this.client.sendOperationRequest(args, spec);
|
|
359
395
|
};
|
|
360
|
-
const
|
|
396
|
+
const sendOperationFn = async (
|
|
361
397
|
args: coreClient.OperationArguments,
|
|
362
398
|
spec: coreClient.OperationSpec
|
|
363
399
|
) => {
|
|
@@ -390,13 +426,16 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
390
426
|
};
|
|
391
427
|
};
|
|
392
428
|
|
|
393
|
-
const lro =
|
|
394
|
-
|
|
395
|
-
{ resourceGroupName, workspaceName, parameters, options },
|
|
396
|
-
updateOperationSpec
|
|
397
|
-
);
|
|
398
|
-
const poller =
|
|
399
|
-
|
|
429
|
+
const lro = createLroSpec({
|
|
430
|
+
sendOperationFn,
|
|
431
|
+
args: { resourceGroupName, workspaceName, parameters, options },
|
|
432
|
+
spec: updateOperationSpec
|
|
433
|
+
});
|
|
434
|
+
const poller = await createHttpPoller<
|
|
435
|
+
WorkspacesUpdateResponse,
|
|
436
|
+
OperationState<WorkspacesUpdateResponse>
|
|
437
|
+
>(lro, {
|
|
438
|
+
restoreFrom: options?.resumeFrom,
|
|
400
439
|
intervalInMs: options?.updateIntervalInMs
|
|
401
440
|
});
|
|
402
441
|
await poller.poll();
|
|
@@ -648,7 +687,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
648
687
|
bodyMapper: Mappers.ErrorResponse
|
|
649
688
|
}
|
|
650
689
|
},
|
|
651
|
-
queryParameters: [Parameters.apiVersion],
|
|
652
690
|
urlParameters: [
|
|
653
691
|
Parameters.$host,
|
|
654
692
|
Parameters.resourceGroupName,
|
|
@@ -669,7 +707,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
669
707
|
bodyMapper: Mappers.ErrorResponse
|
|
670
708
|
}
|
|
671
709
|
},
|
|
672
|
-
queryParameters: [Parameters.apiVersion],
|
|
673
710
|
urlParameters: [
|
|
674
711
|
Parameters.$host,
|
|
675
712
|
Parameters.subscriptionId,
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
AccessConnector,
|
|
13
|
+
AccessConnectorsListByResourceGroupOptionalParams,
|
|
14
|
+
AccessConnectorsListBySubscriptionOptionalParams,
|
|
15
|
+
AccessConnectorsGetOptionalParams,
|
|
16
|
+
AccessConnectorsGetResponse,
|
|
17
|
+
AccessConnectorsDeleteOptionalParams,
|
|
18
|
+
AccessConnectorsCreateOrUpdateOptionalParams,
|
|
19
|
+
AccessConnectorsCreateOrUpdateResponse,
|
|
20
|
+
AccessConnectorUpdate,
|
|
21
|
+
AccessConnectorsUpdateOptionalParams,
|
|
22
|
+
AccessConnectorsUpdateResponse
|
|
23
|
+
} from "../models";
|
|
24
|
+
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Interface representing a AccessConnectors. */
|
|
27
|
+
export interface AccessConnectors {
|
|
28
|
+
/**
|
|
29
|
+
* Gets all the azure databricks accessConnectors within a resource group.
|
|
30
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
listByResourceGroup(
|
|
34
|
+
resourceGroupName: string,
|
|
35
|
+
options?: AccessConnectorsListByResourceGroupOptionalParams
|
|
36
|
+
): PagedAsyncIterableIterator<AccessConnector>;
|
|
37
|
+
/**
|
|
38
|
+
* Gets all the azure databricks accessConnectors within a subscription.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
listBySubscription(
|
|
42
|
+
options?: AccessConnectorsListBySubscriptionOptionalParams
|
|
43
|
+
): PagedAsyncIterableIterator<AccessConnector>;
|
|
44
|
+
/**
|
|
45
|
+
* Gets an azure databricks accessConnector.
|
|
46
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
47
|
+
* @param connectorName The name of the azure databricks accessConnector.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
get(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
connectorName: string,
|
|
53
|
+
options?: AccessConnectorsGetOptionalParams
|
|
54
|
+
): Promise<AccessConnectorsGetResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Deletes the azure databricks accessConnector.
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
|
+
* @param connectorName The name of the azure databricks accessConnector.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
beginDelete(
|
|
62
|
+
resourceGroupName: string,
|
|
63
|
+
connectorName: string,
|
|
64
|
+
options?: AccessConnectorsDeleteOptionalParams
|
|
65
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
66
|
+
/**
|
|
67
|
+
* Deletes the azure databricks accessConnector.
|
|
68
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
69
|
+
* @param connectorName The name of the azure databricks accessConnector.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
beginDeleteAndWait(
|
|
73
|
+
resourceGroupName: string,
|
|
74
|
+
connectorName: string,
|
|
75
|
+
options?: AccessConnectorsDeleteOptionalParams
|
|
76
|
+
): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Creates or updates azure databricks accessConnector.
|
|
79
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
80
|
+
* @param connectorName The name of the azure databricks accessConnector.
|
|
81
|
+
* @param parameters Parameters supplied to the create or update an azure databricks accessConnector.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
beginCreateOrUpdate(
|
|
85
|
+
resourceGroupName: string,
|
|
86
|
+
connectorName: string,
|
|
87
|
+
parameters: AccessConnector,
|
|
88
|
+
options?: AccessConnectorsCreateOrUpdateOptionalParams
|
|
89
|
+
): Promise<
|
|
90
|
+
SimplePollerLike<
|
|
91
|
+
OperationState<AccessConnectorsCreateOrUpdateResponse>,
|
|
92
|
+
AccessConnectorsCreateOrUpdateResponse
|
|
93
|
+
>
|
|
94
|
+
>;
|
|
95
|
+
/**
|
|
96
|
+
* Creates or updates azure databricks accessConnector.
|
|
97
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
98
|
+
* @param connectorName The name of the azure databricks accessConnector.
|
|
99
|
+
* @param parameters Parameters supplied to the create or update an azure databricks accessConnector.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
beginCreateOrUpdateAndWait(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
connectorName: string,
|
|
105
|
+
parameters: AccessConnector,
|
|
106
|
+
options?: AccessConnectorsCreateOrUpdateOptionalParams
|
|
107
|
+
): Promise<AccessConnectorsCreateOrUpdateResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* Updates an azure databricks accessConnector.
|
|
110
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
111
|
+
* @param connectorName The name of the azure databricks accessConnector.
|
|
112
|
+
* @param parameters The update to the azure databricks accessConnector.
|
|
113
|
+
* @param options The options parameters.
|
|
114
|
+
*/
|
|
115
|
+
beginUpdate(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
connectorName: string,
|
|
118
|
+
parameters: AccessConnectorUpdate,
|
|
119
|
+
options?: AccessConnectorsUpdateOptionalParams
|
|
120
|
+
): Promise<
|
|
121
|
+
SimplePollerLike<
|
|
122
|
+
OperationState<AccessConnectorsUpdateResponse>,
|
|
123
|
+
AccessConnectorsUpdateResponse
|
|
124
|
+
>
|
|
125
|
+
>;
|
|
126
|
+
/**
|
|
127
|
+
* Updates an azure databricks accessConnector.
|
|
128
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
129
|
+
* @param connectorName The name of the azure databricks accessConnector.
|
|
130
|
+
* @param parameters The update to the azure databricks accessConnector.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
beginUpdateAndWait(
|
|
134
|
+
resourceGroupName: string,
|
|
135
|
+
connectorName: string,
|
|
136
|
+
parameters: AccessConnectorUpdate,
|
|
137
|
+
options?: AccessConnectorsUpdateOptionalParams
|
|
138
|
+
): Promise<AccessConnectorsUpdateResponse>;
|
|
139
|
+
}
|
|
@@ -16,7 +16,7 @@ export interface OutboundNetworkDependenciesEndpoints {
|
|
|
16
16
|
/**
|
|
17
17
|
* Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You
|
|
18
18
|
* must configure outbound access with these endpoints. For more information, see
|
|
19
|
-
* https://docs.microsoft.com/
|
|
19
|
+
* https://docs.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/udr
|
|
20
20
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
21
21
|
* @param workspaceName The name of the workspace.
|
|
22
22
|
* @param options The options parameters.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
PrivateEndpointConnection,
|
|
13
13
|
PrivateEndpointConnectionsListOptionalParams,
|
|
@@ -60,8 +60,8 @@ export interface PrivateEndpointConnections {
|
|
|
60
60
|
privateEndpointConnection: PrivateEndpointConnection,
|
|
61
61
|
options?: PrivateEndpointConnectionsCreateOptionalParams
|
|
62
62
|
): Promise<
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
SimplePollerLike<
|
|
64
|
+
OperationState<PrivateEndpointConnectionsCreateResponse>,
|
|
65
65
|
PrivateEndpointConnectionsCreateResponse
|
|
66
66
|
>
|
|
67
67
|
>;
|
|
@@ -92,7 +92,7 @@ export interface PrivateEndpointConnections {
|
|
|
92
92
|
workspaceName: string,
|
|
93
93
|
privateEndpointConnectionName: string,
|
|
94
94
|
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
95
|
-
): Promise<
|
|
95
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
96
96
|
/**
|
|
97
97
|
* Remove private endpoint connection with the specified name
|
|
98
98
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
VirtualNetworkPeering,
|
|
13
13
|
VNetPeeringListByWorkspaceOptionalParams,
|
|
@@ -57,7 +57,7 @@ export interface VNetPeering {
|
|
|
57
57
|
workspaceName: string,
|
|
58
58
|
peeringName: string,
|
|
59
59
|
options?: VNetPeeringDeleteOptionalParams
|
|
60
|
-
): Promise<
|
|
60
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
61
61
|
/**
|
|
62
62
|
* Deletes the workspace vNetPeering.
|
|
63
63
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -86,8 +86,8 @@ export interface VNetPeering {
|
|
|
86
86
|
virtualNetworkPeeringParameters: VirtualNetworkPeering,
|
|
87
87
|
options?: VNetPeeringCreateOrUpdateOptionalParams
|
|
88
88
|
): Promise<
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
SimplePollerLike<
|
|
90
|
+
OperationState<VNetPeeringCreateOrUpdateResponse>,
|
|
91
91
|
VNetPeeringCreateOrUpdateResponse
|
|
92
92
|
>
|
|
93
93
|
>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
Workspace,
|
|
13
13
|
WorkspacesListByResourceGroupOptionalParams,
|
|
@@ -62,7 +62,7 @@ export interface Workspaces {
|
|
|
62
62
|
resourceGroupName: string,
|
|
63
63
|
workspaceName: string,
|
|
64
64
|
options?: WorkspacesDeleteOptionalParams
|
|
65
|
-
): Promise<
|
|
65
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
66
66
|
/**
|
|
67
67
|
* Deletes the workspace.
|
|
68
68
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -87,8 +87,8 @@ export interface Workspaces {
|
|
|
87
87
|
parameters: Workspace,
|
|
88
88
|
options?: WorkspacesCreateOrUpdateOptionalParams
|
|
89
89
|
): Promise<
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
SimplePollerLike<
|
|
91
|
+
OperationState<WorkspacesCreateOrUpdateResponse>,
|
|
92
92
|
WorkspacesCreateOrUpdateResponse
|
|
93
93
|
>
|
|
94
94
|
>;
|
|
@@ -118,8 +118,8 @@ export interface Workspaces {
|
|
|
118
118
|
parameters: WorkspaceUpdate,
|
|
119
119
|
options?: WorkspacesUpdateOptionalParams
|
|
120
120
|
): Promise<
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
SimplePollerLike<
|
|
122
|
+
OperationState<WorkspacesUpdateResponse>,
|
|
123
123
|
WorkspacesUpdateResponse
|
|
124
124
|
>
|
|
125
125
|
>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|