@azure/arm-databricks 3.0.0-beta.3 → 3.0.0-beta.4

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 (59) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +1 -1
  3. package/dist/index.js +233 -62
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js +2 -2
  8. package/dist-esm/src/azureDatabricksManagementClient.d.ts +2 -0
  9. package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -1
  10. package/dist-esm/src/azureDatabricksManagementClient.js +49 -18
  11. package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -1
  12. package/dist-esm/src/index.d.ts +1 -0
  13. package/dist-esm/src/index.d.ts.map +1 -1
  14. package/dist-esm/src/index.js +1 -0
  15. package/dist-esm/src/index.js.map +1 -1
  16. package/dist-esm/src/models/index.d.ts +48 -6
  17. package/dist-esm/src/models/index.d.ts.map +1 -1
  18. package/dist-esm/src/models/index.js +42 -0
  19. package/dist-esm/src/models/index.js.map +1 -1
  20. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  21. package/dist-esm/src/operations/operations.js +19 -7
  22. package/dist-esm/src/operations/operations.js.map +1 -1
  23. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts +1 -1
  24. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js +1 -1
  25. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  26. package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
  27. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  28. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  29. package/dist-esm/src/operations/privateLinkResources.js +19 -7
  30. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  31. package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -1
  32. package/dist-esm/src/operations/vNetPeering.js +19 -7
  33. package/dist-esm/src/operations/vNetPeering.js.map +1 -1
  34. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  35. package/dist-esm/src/operations/workspaces.js +37 -14
  36. package/dist-esm/src/operations/workspaces.js.map +1 -1
  37. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +1 -1
  38. package/dist-esm/src/pagingHelper.d.ts +13 -0
  39. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  40. package/dist-esm/src/pagingHelper.js +32 -0
  41. package/dist-esm/src/pagingHelper.js.map +1 -0
  42. package/dist-esm/test/databricks_examples.d.ts.map +1 -1
  43. package/dist-esm/test/databricks_examples.js +16 -18
  44. package/dist-esm/test/databricks_examples.js.map +1 -1
  45. package/package.json +14 -10
  46. package/review/arm-databricks.api.md +20 -59
  47. package/src/azureDatabricksManagementClient.ts +60 -20
  48. package/src/index.ts +1 -0
  49. package/src/models/index.ts +48 -6
  50. package/src/operations/operations.ts +21 -8
  51. package/src/operations/outboundNetworkDependenciesEndpoints.ts +1 -1
  52. package/src/operations/privateEndpointConnections.ts +26 -8
  53. package/src/operations/privateLinkResources.ts +26 -8
  54. package/src/operations/vNetPeering.ts +27 -13
  55. package/src/operations/workspaces.ts +46 -17
  56. package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +1 -1
  57. package/src/pagingHelper.ts +39 -0
  58. package/types/arm-databricks.d.ts +60 -7
  59. package/types/tsdoc-metadata.json +1 -1
package/package.json CHANGED
@@ -3,15 +3,15 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for AzureDatabricksManagementClient.",
6
- "version": "3.0.0-beta.3",
6
+ "version": "3.0.0-beta.4",
7
7
  "engines": {
8
- "node": ">=12.0.0"
8
+ "node": ">=14.0.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "@azure/core-lro": "^2.2.0",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
- "@azure/core-client": "^1.5.0",
14
+ "@azure/core-client": "^1.6.1",
15
15
  "@azure/core-auth": "^1.3.0",
16
16
  "@azure/core-rest-pipeline": "^1.8.0",
17
17
  "tslib": "^2.2.0"
@@ -28,7 +28,7 @@
28
28
  "module": "./dist-esm/src/index.js",
29
29
  "types": "./types/arm-databricks.d.ts",
30
30
  "devDependencies": {
31
- "@microsoft/api-extractor": "^7.18.11",
31
+ "@microsoft/api-extractor": "^7.31.1",
32
32
  "@rollup/plugin-commonjs": "^21.0.1",
33
33
  "@rollup/plugin-json": "^4.1.0",
34
34
  "@rollup/plugin-multi-entry": "^4.1.0",
@@ -36,13 +36,18 @@
36
36
  "mkdirp": "^1.0.4",
37
37
  "rollup": "^2.66.1",
38
38
  "rollup-plugin-sourcemaps": "^0.6.3",
39
- "typescript": "~4.2.0",
39
+ "typescript": "~4.8.0",
40
40
  "uglify-js": "^3.4.9",
41
41
  "rimraf": "^3.0.0",
42
42
  "@azure/identity": "^2.0.1",
43
- "@azure-tools/test-recorder": "^1.0.0",
43
+ "@azure-tools/test-recorder": "^2.0.0",
44
+ "@azure-tools/test-credential": "^1.0.0",
44
45
  "mocha": "^7.1.1",
45
- "cross-env": "^7.0.2"
46
+ "@types/chai": "^4.2.8",
47
+ "chai": "^4.2.0",
48
+ "cross-env": "^7.0.2",
49
+ "@types/node": "^14.0.0",
50
+ "@azure/dev-tool": "^1.0.0"
46
51
  },
47
52
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/databricks/arm-databricks",
48
53
  "repository": {
@@ -93,9 +98,8 @@
93
98
  "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
94
99
  "unit-test:browser": "echo skipped",
95
100
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
96
- "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
97
- "integration-test:browser": "echo skipped",
98
- "docs": "echo skipped"
101
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
102
+ "integration-test:browser": "echo skipped"
99
103
  },
100
104
  "sideEffects": false,
101
105
  "//metadata": {
@@ -122,9 +122,12 @@ export interface ErrorResponse {
122
122
  }
123
123
 
124
124
  // @public
125
- export type GroupIdInformation = Resource & {
125
+ export function getContinuationToken(page: unknown): string | undefined;
126
+
127
+ // @public
128
+ export interface GroupIdInformation extends Resource {
126
129
  properties: GroupIdInformationProperties;
127
- };
130
+ }
128
131
 
129
132
  // @public
130
133
  export interface GroupIdInformationProperties {
@@ -138,129 +141,87 @@ export type KeySource = string;
138
141
 
139
142
  // @public
140
143
  export enum KnownCreatedByType {
141
- // (undocumented)
142
144
  Application = "Application",
143
- // (undocumented)
144
145
  Key = "Key",
145
- // (undocumented)
146
146
  ManagedIdentity = "ManagedIdentity",
147
- // (undocumented)
148
147
  User = "User"
149
148
  }
150
149
 
151
150
  // @public
152
151
  export enum KnownCustomParameterType {
153
- // (undocumented)
154
152
  Bool = "Bool",
155
- // (undocumented)
156
153
  Object = "Object",
157
- // (undocumented)
158
154
  String = "String"
159
155
  }
160
156
 
161
157
  // @public
162
158
  export enum KnownEncryptionKeySource {
163
- // (undocumented)
164
159
  MicrosoftKeyvault = "Microsoft.Keyvault"
165
160
  }
166
161
 
167
162
  // @public
168
163
  export enum KnownKeySource {
169
- // (undocumented)
170
164
  Default = "Default",
171
- // (undocumented)
172
165
  MicrosoftKeyvault = "Microsoft.Keyvault"
173
166
  }
174
167
 
175
168
  // @public
176
169
  export enum KnownPeeringProvisioningState {
177
- // (undocumented)
178
170
  Deleting = "Deleting",
179
- // (undocumented)
180
171
  Failed = "Failed",
181
- // (undocumented)
182
172
  Succeeded = "Succeeded",
183
- // (undocumented)
184
173
  Updating = "Updating"
185
174
  }
186
175
 
187
176
  // @public
188
177
  export enum KnownPeeringState {
189
- // (undocumented)
190
178
  Connected = "Connected",
191
- // (undocumented)
192
179
  Disconnected = "Disconnected",
193
- // (undocumented)
194
180
  Initiated = "Initiated"
195
181
  }
196
182
 
197
183
  // @public
198
184
  export enum KnownPrivateEndpointConnectionProvisioningState {
199
- // (undocumented)
200
185
  Creating = "Creating",
201
- // (undocumented)
202
186
  Deleting = "Deleting",
203
- // (undocumented)
204
187
  Failed = "Failed",
205
- // (undocumented)
206
188
  Succeeded = "Succeeded",
207
- // (undocumented)
208
189
  Updating = "Updating"
209
190
  }
210
191
 
211
192
  // @public
212
193
  export enum KnownPrivateLinkServiceConnectionStatus {
213
- // (undocumented)
214
194
  Approved = "Approved",
215
- // (undocumented)
216
195
  Disconnected = "Disconnected",
217
- // (undocumented)
218
196
  Pending = "Pending",
219
- // (undocumented)
220
197
  Rejected = "Rejected"
221
198
  }
222
199
 
223
200
  // @public
224
201
  export enum KnownProvisioningState {
225
- // (undocumented)
226
202
  Accepted = "Accepted",
227
- // (undocumented)
228
203
  Canceled = "Canceled",
229
- // (undocumented)
230
204
  Created = "Created",
231
- // (undocumented)
232
205
  Creating = "Creating",
233
- // (undocumented)
234
206
  Deleted = "Deleted",
235
- // (undocumented)
236
207
  Deleting = "Deleting",
237
- // (undocumented)
238
208
  Failed = "Failed",
239
- // (undocumented)
240
209
  Ready = "Ready",
241
- // (undocumented)
242
210
  Running = "Running",
243
- // (undocumented)
244
211
  Succeeded = "Succeeded",
245
- // (undocumented)
246
212
  Updating = "Updating"
247
213
  }
248
214
 
249
215
  // @public
250
216
  export enum KnownPublicNetworkAccess {
251
- // (undocumented)
252
217
  Disabled = "Disabled",
253
- // (undocumented)
254
218
  Enabled = "Enabled"
255
219
  }
256
220
 
257
221
  // @public
258
222
  export enum KnownRequiredNsgRules {
259
- // (undocumented)
260
223
  AllRules = "AllRules",
261
- // (undocumented)
262
224
  NoAzureDatabricksRules = "NoAzureDatabricksRules",
263
- // (undocumented)
264
225
  NoAzureServiceRules = "NoAzureServiceRules"
265
226
  }
266
227
 
@@ -484,12 +445,12 @@ export interface SystemData {
484
445
  }
485
446
 
486
447
  // @public
487
- export type TrackedResource = Resource & {
448
+ export interface TrackedResource extends Resource {
449
+ location: string;
488
450
  tags?: {
489
451
  [propertyName: string]: string;
490
452
  };
491
- location: string;
492
- };
453
+ }
493
454
 
494
455
  // @public
495
456
  export interface VirtualNetworkPeering {
@@ -571,25 +532,25 @@ export interface VNetPeeringListByWorkspaceOptionalParams extends coreClient.Ope
571
532
  export type VNetPeeringListByWorkspaceResponse = VirtualNetworkPeeringList;
572
533
 
573
534
  // @public
574
- export type Workspace = TrackedResource & {
575
- sku?: Sku;
576
- readonly systemData?: SystemData;
577
- managedResourceGroupId: string;
578
- parameters?: WorkspaceCustomParameters;
579
- readonly provisioningState?: ProvisioningState;
580
- uiDefinitionUri?: string;
535
+ export interface Workspace extends TrackedResource {
581
536
  authorizations?: WorkspaceProviderAuthorization[];
582
537
  createdBy?: CreatedBy;
583
- updatedBy?: CreatedBy;
584
538
  readonly createdDateTime?: Date;
585
- readonly workspaceId?: string;
586
- readonly workspaceUrl?: string;
587
- storageAccountIdentity?: ManagedIdentityConfiguration;
588
539
  encryption?: WorkspacePropertiesEncryption;
540
+ managedResourceGroupId: string;
541
+ parameters?: WorkspaceCustomParameters;
589
542
  readonly privateEndpointConnections?: PrivateEndpointConnection[];
543
+ readonly provisioningState?: ProvisioningState;
590
544
  publicNetworkAccess?: PublicNetworkAccess;
591
545
  requiredNsgRules?: RequiredNsgRules;
592
- };
546
+ sku?: Sku;
547
+ storageAccountIdentity?: ManagedIdentityConfiguration;
548
+ readonly systemData?: SystemData;
549
+ uiDefinitionUri?: string;
550
+ updatedBy?: CreatedBy;
551
+ readonly workspaceId?: string;
552
+ readonly workspaceUrl?: string;
553
+ }
593
554
 
594
555
  // @public
595
556
  export interface WorkspaceCustomBooleanParameter {
@@ -8,6 +8,11 @@
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import {
12
+ PipelineRequest,
13
+ PipelineResponse,
14
+ SendRequest
15
+ } from "@azure/core-rest-pipeline";
11
16
  import * as coreAuth from "@azure/core-auth";
12
17
  import {
13
18
  WorkspacesImpl,
@@ -59,47 +64,53 @@ export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
59
64
  credential: credentials
60
65
  };
61
66
 
62
- const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.3`;
67
+ const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.4`;
63
68
  const userAgentPrefix =
64
69
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
65
70
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
66
71
  : `${packageDetails}`;
67
72
 
68
- if (!options.credentialScopes) {
69
- options.credentialScopes = ["https://management.azure.com/.default"];
70
- }
71
73
  const optionsWithDefaults = {
72
74
  ...defaults,
73
75
  ...options,
74
76
  userAgentOptions: {
75
77
  userAgentPrefix
76
78
  },
77
- baseUri:
79
+ endpoint:
78
80
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
79
81
  };
80
82
  super(optionsWithDefaults);
81
83
 
84
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
82
85
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
83
86
  const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
84
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
87
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
85
88
  (pipelinePolicy) =>
86
89
  pipelinePolicy.name ===
87
90
  coreRestPipeline.bearerTokenAuthenticationPolicyName
88
91
  );
89
- if (!bearerTokenAuthenticationPolicyFound) {
90
- this.pipeline.removePolicy({
91
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
92
- });
93
- this.pipeline.addPolicy(
94
- coreRestPipeline.bearerTokenAuthenticationPolicy({
95
- scopes: `${optionsWithDefaults.baseUri}/.default`,
96
- challengeCallbacks: {
97
- authorizeRequestOnChallenge:
98
- coreClient.authorizeRequestOnClaimChallenge
99
- }
100
- })
101
- );
102
- }
92
+ }
93
+ if (
94
+ !options ||
95
+ !options.pipeline ||
96
+ options.pipeline.getOrderedPolicies().length == 0 ||
97
+ !bearerTokenAuthenticationPolicyFound
98
+ ) {
99
+ this.pipeline.removePolicy({
100
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
101
+ });
102
+ this.pipeline.addPolicy(
103
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
104
+ credential: credentials,
105
+ scopes:
106
+ optionsWithDefaults.credentialScopes ??
107
+ `${optionsWithDefaults.endpoint}/.default`,
108
+ challengeCallbacks: {
109
+ authorizeRequestOnChallenge:
110
+ coreClient.authorizeRequestOnClaimChallenge
111
+ }
112
+ })
113
+ );
103
114
  }
104
115
  // Parameter assignments
105
116
  this.subscriptionId = subscriptionId;
@@ -115,6 +126,35 @@ export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
115
126
  this
116
127
  );
117
128
  this.vNetPeering = new VNetPeeringImpl(this);
129
+ this.addCustomApiVersionPolicy(options.apiVersion);
130
+ }
131
+
132
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
133
+ private addCustomApiVersionPolicy(apiVersion?: string) {
134
+ if (!apiVersion) {
135
+ return;
136
+ }
137
+ const apiVersionPolicy = {
138
+ name: "CustomApiVersionPolicy",
139
+ async sendRequest(
140
+ request: PipelineRequest,
141
+ next: SendRequest
142
+ ): Promise<PipelineResponse> {
143
+ const param = request.url.split("?");
144
+ if (param.length > 1) {
145
+ const newParams = param[1].split("&").map((item) => {
146
+ if (item.indexOf("api-version") > -1) {
147
+ return "api-version=" + apiVersion;
148
+ } else {
149
+ return item;
150
+ }
151
+ });
152
+ request.url = param[0] + "?" + newParams.join("&");
153
+ }
154
+ return next(request);
155
+ }
156
+ };
157
+ this.pipeline.addPolicy(apiVersionPolicy);
118
158
  }
119
159
 
120
160
  workspaces: Workspaces;
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
10
11
  export * from "./models";
11
12
  export { AzureDatabricksManagementClient } from "./azureDatabricksManagementClient";
12
13
  export * from "./operationsInterfaces";
@@ -469,21 +469,21 @@ export interface VirtualNetworkPeeringList {
469
469
  }
470
470
 
471
471
  /** The resource model definition for a ARM tracked top level resource */
472
- export type TrackedResource = Resource & {
472
+ export interface TrackedResource extends Resource {
473
473
  /** Resource tags. */
474
474
  tags?: { [propertyName: string]: string };
475
475
  /** The geo-location where the resource lives */
476
476
  location: string;
477
- };
477
+ }
478
478
 
479
479
  /** The group information for creating a private endpoint on a workspace */
480
- export type GroupIdInformation = Resource & {
480
+ export interface GroupIdInformation extends Resource {
481
481
  /** The group id properties. */
482
482
  properties: GroupIdInformationProperties;
483
- };
483
+ }
484
484
 
485
485
  /** Information about workspace. */
486
- export type Workspace = TrackedResource & {
486
+ export interface Workspace extends TrackedResource {
487
487
  /** The SKU of the resource. */
488
488
  sku?: Sku;
489
489
  /**
@@ -536,12 +536,15 @@ export type Workspace = TrackedResource & {
536
536
  publicNetworkAccess?: PublicNetworkAccess;
537
537
  /** Gets or sets a value indicating whether data plane (clusters) to control plane communication happen over private endpoint. Supported values are 'AllRules' and 'NoAzureDatabricksRules'. 'NoAzureServiceRules' value is for internal use only. */
538
538
  requiredNsgRules?: RequiredNsgRules;
539
- };
539
+ }
540
540
 
541
541
  /** Known values of {@link CustomParameterType} that the service accepts. */
542
542
  export enum KnownCustomParameterType {
543
+ /** Bool */
543
544
  Bool = "Bool",
545
+ /** Object */
544
546
  Object = "Object",
547
+ /** String */
545
548
  String = "String"
546
549
  }
547
550
 
@@ -558,7 +561,9 @@ export type CustomParameterType = string;
558
561
 
559
562
  /** Known values of {@link KeySource} that the service accepts. */
560
563
  export enum KnownKeySource {
564
+ /** Default */
561
565
  Default = "Default",
566
+ /** MicrosoftKeyvault */
562
567
  MicrosoftKeyvault = "Microsoft.Keyvault"
563
568
  }
564
569
 
@@ -574,16 +579,27 @@ export type KeySource = string;
574
579
 
575
580
  /** Known values of {@link ProvisioningState} that the service accepts. */
576
581
  export enum KnownProvisioningState {
582
+ /** Accepted */
577
583
  Accepted = "Accepted",
584
+ /** Running */
578
585
  Running = "Running",
586
+ /** Ready */
579
587
  Ready = "Ready",
588
+ /** Creating */
580
589
  Creating = "Creating",
590
+ /** Created */
581
591
  Created = "Created",
592
+ /** Deleting */
582
593
  Deleting = "Deleting",
594
+ /** Deleted */
583
595
  Deleted = "Deleted",
596
+ /** Canceled */
584
597
  Canceled = "Canceled",
598
+ /** Failed */
585
599
  Failed = "Failed",
600
+ /** Succeeded */
586
601
  Succeeded = "Succeeded",
602
+ /** Updating */
587
603
  Updating = "Updating"
588
604
  }
589
605
 
@@ -608,6 +624,7 @@ export type ProvisioningState = string;
608
624
 
609
625
  /** Known values of {@link EncryptionKeySource} that the service accepts. */
610
626
  export enum KnownEncryptionKeySource {
627
+ /** MicrosoftKeyvault */
611
628
  MicrosoftKeyvault = "Microsoft.Keyvault"
612
629
  }
613
630
 
@@ -622,9 +639,13 @@ export type EncryptionKeySource = string;
622
639
 
623
640
  /** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
624
641
  export enum KnownPrivateLinkServiceConnectionStatus {
642
+ /** Pending */
625
643
  Pending = "Pending",
644
+ /** Approved */
626
645
  Approved = "Approved",
646
+ /** Rejected */
627
647
  Rejected = "Rejected",
648
+ /** Disconnected */
628
649
  Disconnected = "Disconnected"
629
650
  }
630
651
 
@@ -642,10 +663,15 @@ export type PrivateLinkServiceConnectionStatus = string;
642
663
 
643
664
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
644
665
  export enum KnownPrivateEndpointConnectionProvisioningState {
666
+ /** Succeeded */
645
667
  Succeeded = "Succeeded",
668
+ /** Creating */
646
669
  Creating = "Creating",
670
+ /** Updating */
647
671
  Updating = "Updating",
672
+ /** Deleting */
648
673
  Deleting = "Deleting",
674
+ /** Failed */
649
675
  Failed = "Failed"
650
676
  }
651
677
 
@@ -664,7 +690,9 @@ export type PrivateEndpointConnectionProvisioningState = string;
664
690
 
665
691
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
666
692
  export enum KnownPublicNetworkAccess {
693
+ /** Enabled */
667
694
  Enabled = "Enabled",
695
+ /** Disabled */
668
696
  Disabled = "Disabled"
669
697
  }
670
698
 
@@ -680,8 +708,11 @@ export type PublicNetworkAccess = string;
680
708
 
681
709
  /** Known values of {@link RequiredNsgRules} that the service accepts. */
682
710
  export enum KnownRequiredNsgRules {
711
+ /** AllRules */
683
712
  AllRules = "AllRules",
713
+ /** NoAzureDatabricksRules */
684
714
  NoAzureDatabricksRules = "NoAzureDatabricksRules",
715
+ /** NoAzureServiceRules */
685
716
  NoAzureServiceRules = "NoAzureServiceRules"
686
717
  }
687
718
 
@@ -698,9 +729,13 @@ export type RequiredNsgRules = string;
698
729
 
699
730
  /** Known values of {@link CreatedByType} that the service accepts. */
700
731
  export enum KnownCreatedByType {
732
+ /** User */
701
733
  User = "User",
734
+ /** Application */
702
735
  Application = "Application",
736
+ /** ManagedIdentity */
703
737
  ManagedIdentity = "ManagedIdentity",
738
+ /** Key */
704
739
  Key = "Key"
705
740
  }
706
741
 
@@ -718,8 +753,11 @@ export type CreatedByType = string;
718
753
 
719
754
  /** Known values of {@link PeeringState} that the service accepts. */
720
755
  export enum KnownPeeringState {
756
+ /** Initiated */
721
757
  Initiated = "Initiated",
758
+ /** Connected */
722
759
  Connected = "Connected",
760
+ /** Disconnected */
723
761
  Disconnected = "Disconnected"
724
762
  }
725
763
 
@@ -736,9 +774,13 @@ export type PeeringState = string;
736
774
 
737
775
  /** Known values of {@link PeeringProvisioningState} that the service accepts. */
738
776
  export enum KnownPeeringProvisioningState {
777
+ /** Succeeded */
739
778
  Succeeded = "Succeeded",
779
+ /** Updating */
740
780
  Updating = "Updating",
781
+ /** Deleting */
741
782
  Deleting = "Deleting",
783
+ /** Failed */
742
784
  Failed = "Failed"
743
785
  }
744
786
 
@@ -6,7 +6,8 @@
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 { Operations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
48
49
  [Symbol.asyncIterator]() {
49
50
  return this;
50
51
  },
51
- byPage: () => {
52
- return this.listPagingPage(options);
52
+ byPage: (settings?: PageSettings) => {
53
+ if (settings?.maxPageSize) {
54
+ throw new Error("maxPageSize is not supported by this operation.");
55
+ }
56
+ return this.listPagingPage(options, settings);
53
57
  }
54
58
  };
55
59
  }
56
60
 
57
61
  private async *listPagingPage(
58
- options?: OperationsListOptionalParams
62
+ options?: OperationsListOptionalParams,
63
+ settings?: PageSettings
59
64
  ): AsyncIterableIterator<Operation[]> {
60
- let result = await this._list(options);
61
- yield result.value || [];
62
- let continuationToken = result.nextLink;
65
+ let result: OperationsListResponse;
66
+ let continuationToken = settings?.continuationToken;
67
+ if (!continuationToken) {
68
+ result = await this._list(options);
69
+ let page = result.value || [];
70
+ continuationToken = result.nextLink;
71
+ setContinuationToken(page, continuationToken);
72
+ yield page;
73
+ }
63
74
  while (continuationToken) {
64
75
  result = await this._listNext(continuationToken, options);
65
76
  continuationToken = result.nextLink;
66
- yield result.value || [];
77
+ let page = result.value || [];
78
+ setContinuationToken(page, continuationToken);
79
+ yield page;
67
80
  }
68
81
  }
69
82
 
@@ -32,7 +32,7 @@ export class OutboundNetworkDependenciesEndpointsImpl
32
32
  /**
33
33
  * Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You
34
34
  * must configure outbound access with these endpoints. For more information, see
35
- * https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr
35
+ * https://docs.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/udr
36
36
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
37
37
  * @param workspaceName The name of the workspace.
38
38
  * @param options The options parameters.