@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.
Files changed (167) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/LICENSE +1 -1
  3. package/README.md +3 -3
  4. package/dist/index.js +1271 -273
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.js +58 -0
  11. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/accessConnectorsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/accessConnectorsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/accessConnectorsDeleteSample.js +38 -0
  15. package/dist-esm/samples-dev/accessConnectorsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/accessConnectorsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/accessConnectorsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/accessConnectorsGetSample.js +38 -0
  19. package/dist-esm/samples-dev/accessConnectorsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.js +53 -0
  23. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.js +52 -0
  27. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.js.map +1 -0
  28. package/dist-esm/samples-dev/accessConnectorsUpdateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/accessConnectorsUpdateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/accessConnectorsUpdateSample.js +39 -0
  31. package/dist-esm/samples-dev/accessConnectorsUpdateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/operationsListSample.js +17 -7
  33. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  34. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js +14 -6
  35. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js.map +1 -1
  36. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +12 -4
  37. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
  38. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +12 -4
  39. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  40. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +12 -4
  41. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  42. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +18 -8
  43. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  44. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +12 -4
  45. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
  46. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +18 -8
  47. package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -1
  48. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js +11 -4
  49. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js.map +1 -1
  50. package/dist-esm/samples-dev/vNetPeeringDeleteSample.js +11 -4
  51. package/dist-esm/samples-dev/vNetPeeringDeleteSample.js.map +1 -1
  52. package/dist-esm/samples-dev/vNetPeeringGetSample.js +11 -4
  53. package/dist-esm/samples-dev/vNetPeeringGetSample.js.map +1 -1
  54. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js +17 -8
  55. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js.map +1 -1
  56. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +98 -20
  57. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -1
  58. package/dist-esm/samples-dev/workspacesDeleteSample.js +11 -4
  59. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -1
  60. package/dist-esm/samples-dev/workspacesGetSample.js +33 -8
  61. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -1
  62. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +17 -8
  63. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
  64. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +16 -7
  65. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
  66. package/dist-esm/samples-dev/workspacesUpdateSample.js +11 -4
  67. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
  68. package/dist-esm/src/azureDatabricksManagementClient.d.ts +2 -2
  69. package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -1
  70. package/dist-esm/src/azureDatabricksManagementClient.js +22 -20
  71. package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -1
  72. package/dist-esm/src/index.d.ts +1 -0
  73. package/dist-esm/src/index.d.ts.map +1 -1
  74. package/dist-esm/src/index.js +1 -0
  75. package/dist-esm/src/index.js.map +1 -1
  76. package/dist-esm/src/lroImpl.d.ts +6 -11
  77. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  78. package/dist-esm/src/lroImpl.js +12 -20
  79. package/dist-esm/src/lroImpl.js.map +1 -1
  80. package/dist-esm/src/models/index.d.ts +252 -42
  81. package/dist-esm/src/models/index.d.ts.map +1 -1
  82. package/dist-esm/src/models/index.js +54 -0
  83. package/dist-esm/src/models/index.js.map +1 -1
  84. package/dist-esm/src/models/mappers.d.ts +8 -0
  85. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  86. package/dist-esm/src/models/mappers.js +243 -2
  87. package/dist-esm/src/models/mappers.js.map +1 -1
  88. package/dist-esm/src/models/parameters.d.ts +4 -0
  89. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  90. package/dist-esm/src/models/parameters.js +35 -2
  91. package/dist-esm/src/models/parameters.js.map +1 -1
  92. package/dist-esm/src/operations/accessConnectors.d.ts +107 -0
  93. package/dist-esm/src/operations/accessConnectors.d.ts.map +1 -0
  94. package/dist-esm/src/operations/accessConnectors.js +543 -0
  95. package/dist-esm/src/operations/accessConnectors.js.map +1 -0
  96. package/dist-esm/src/operations/index.d.ts +1 -0
  97. package/dist-esm/src/operations/index.d.ts.map +1 -1
  98. package/dist-esm/src/operations/index.js +1 -0
  99. package/dist-esm/src/operations/index.js.map +1 -1
  100. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  101. package/dist-esm/src/operations/operations.js +25 -12
  102. package/dist-esm/src/operations/operations.js.map +1 -1
  103. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts +1 -1
  104. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js +1 -1
  105. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  106. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  107. package/dist-esm/src/operations/privateEndpointConnections.js +54 -33
  108. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  109. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  110. package/dist-esm/src/operations/privateLinkResources.js +25 -12
  111. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  112. package/dist-esm/src/operations/vNetPeering.d.ts +3 -3
  113. package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -1
  114. package/dist-esm/src/operations/vNetPeering.js +49 -28
  115. package/dist-esm/src/operations/vNetPeering.js.map +1 -1
  116. package/dist-esm/src/operations/workspaces.d.ts +4 -4
  117. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  118. package/dist-esm/src/operations/workspaces.js +75 -38
  119. package/dist-esm/src/operations/workspaces.js.map +1 -1
  120. package/dist-esm/src/operationsInterfaces/accessConnectors.d.ts +71 -0
  121. package/dist-esm/src/operationsInterfaces/accessConnectors.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/accessConnectors.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/accessConnectors.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  125. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  126. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  127. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  128. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +1 -1
  129. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  130. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  131. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts +3 -3
  132. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts.map +1 -1
  133. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +4 -4
  134. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -1
  135. package/dist-esm/src/pagingHelper.d.ts +13 -0
  136. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  137. package/dist-esm/src/pagingHelper.js +32 -0
  138. package/dist-esm/src/pagingHelper.js.map +1 -0
  139. package/dist-esm/test/databricks_examples.d.ts.map +1 -1
  140. package/dist-esm/test/databricks_examples.js +22 -22
  141. package/dist-esm/test/databricks_examples.js.map +1 -1
  142. package/package.json +27 -26
  143. package/review/arm-databricks.api.md +175 -71
  144. package/src/azureDatabricksManagementClient.ts +32 -24
  145. package/src/index.ts +1 -0
  146. package/src/lroImpl.ts +31 -23
  147. package/src/models/index.ts +244 -10
  148. package/src/models/mappers.ts +258 -2
  149. package/src/models/parameters.ts +41 -2
  150. package/src/operations/accessConnectors.ts +717 -0
  151. package/src/operations/index.ts +1 -0
  152. package/src/operations/operations.ts +21 -9
  153. package/src/operations/outboundNetworkDependenciesEndpoints.ts +1 -1
  154. package/src/operations/privateEndpointConnections.ts +54 -30
  155. package/src/operations/privateLinkResources.ts +26 -9
  156. package/src/operations/vNetPeering.ts +55 -35
  157. package/src/operations/workspaces.ts +87 -50
  158. package/src/operationsInterfaces/accessConnectors.ts +139 -0
  159. package/src/operationsInterfaces/index.ts +1 -0
  160. package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +1 -1
  161. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  162. package/src/operationsInterfaces/vNetPeering.ts +4 -4
  163. package/src/operationsInterfaces/workspaces.ts +6 -6
  164. package/src/pagingHelper.ts +39 -0
  165. package/types/arm-databricks.d.ts +333 -21
  166. package/types/tsdoc-metadata.json +1 -1
  167. 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
- import { LroImpl } from "../lroImpl";
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
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
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 = await this._listByResourceGroup(resourceGroupName, options);
78
- yield result.value || [];
79
- let continuationToken = result.nextLink;
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
- yield result.value || [];
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
- return this.listBySubscriptionPagingPage(options);
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 = await this._listBySubscription(options);
128
- yield result.value || [];
129
- let continuationToken = result.nextLink;
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
- yield result.value || [];
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<PollerLike<PollOperationState<void>, void>> {
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 sendOperation = async (
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 = new LroImpl(
213
- sendOperation,
214
- { resourceGroupName, workspaceName, options },
215
- deleteOperationSpec
216
- );
217
- const poller = new LroEngine(lro, {
218
- resumeFrom: options?.resumeFrom,
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
- PollerLike<
258
- PollOperationState<WorkspacesCreateOrUpdateResponse>,
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 sendOperation = async (
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 = new LroImpl(
302
- sendOperation,
303
- { resourceGroupName, workspaceName, parameters, options },
304
- createOrUpdateOperationSpec
305
- );
306
- const poller = new LroEngine(lro, {
307
- resumeFrom: options?.resumeFrom,
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
- PollerLike<
350
- PollOperationState<WorkspacesUpdateResponse>,
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 sendOperation = async (
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 = new LroImpl(
394
- sendOperation,
395
- { resourceGroupName, workspaceName, parameters, options },
396
- updateOperationSpec
397
- );
398
- const poller = new LroEngine(lro, {
399
- resumeFrom: options?.resumeFrom,
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
+ }
@@ -12,3 +12,4 @@ export * from "./privateLinkResources";
12
12
  export * from "./privateEndpointConnections";
13
13
  export * from "./outboundNetworkDependenciesEndpoints";
14
14
  export * from "./vNetPeering";
15
+ export * from "./accessConnectors";
@@ -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/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr
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 { PollerLike, PollOperationState } from "@azure/core-lro";
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
- PollerLike<
64
- PollOperationState<PrivateEndpointConnectionsCreateResponse>,
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<PollerLike<PollOperationState<void>, void>>;
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 { PollerLike, PollOperationState } from "@azure/core-lro";
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<PollerLike<PollOperationState<void>, void>>;
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
- PollerLike<
90
- PollOperationState<VNetPeeringCreateOrUpdateResponse>,
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 { PollerLike, PollOperationState } from "@azure/core-lro";
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<PollerLike<PollOperationState<void>, void>>;
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
- PollerLike<
91
- PollOperationState<WorkspacesCreateOrUpdateResponse>,
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
- PollerLike<
122
- PollOperationState<WorkspacesUpdateResponse>,
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
+ }