@azure/arm-databricks 3.0.0-alpha.20221101.1 → 3.0.0-alpha.20221129.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -13
- package/dist/index.js +231 -60
- 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/src/azureDatabricksManagementClient.d.ts +2 -0
- package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureDatabricksManagementClient.js +48 -17
- 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/models/index.d.ts +48 -6
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +42 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
- 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 +19 -7
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -1
- package/dist-esm/src/operations/vNetPeering.js +19 -7
- package/dist-esm/src/operations/vNetPeering.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +37 -14
- package/dist-esm/src/operations/workspaces.js.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 +16 -18
- package/dist-esm/test/databricks_examples.js.map +1 -1
- package/package.json +12 -8
- package/review/arm-databricks.api.md +20 -59
- package/src/azureDatabricksManagementClient.ts +59 -19
- package/src/index.ts +1 -0
- package/src/models/index.ts +48 -6
- package/src/operations/operations.ts +21 -8
- package/src/operations/privateEndpointConnections.ts +26 -8
- package/src/operations/privateLinkResources.ts +26 -8
- package/src/operations/vNetPeering.ts +27 -13
- package/src/operations/workspaces.ts +46 -17
- package/src/pagingHelper.ts +39 -0
- package/types/arm-databricks.d.ts +59 -6
- package/types/tsdoc-metadata.json +1 -1
|
@@ -122,9 +122,12 @@ export interface ErrorResponse {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
// @public
|
|
125
|
-
export
|
|
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
|
|
448
|
+
export interface TrackedResource extends Resource {
|
|
449
|
+
location: string;
|
|
488
450
|
tags?: {
|
|
489
451
|
[propertyName: string]: string;
|
|
490
452
|
};
|
|
491
|
-
|
|
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
|
|
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,
|
|
@@ -65,41 +70,47 @@ export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
|
|
|
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
|
-
|
|
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
|
-
|
|
87
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
85
88
|
(pipelinePolicy) =>
|
|
86
89
|
pipelinePolicy.name ===
|
|
87
90
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
88
91
|
);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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";
|
package/src/models/index.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
setContinuationToken(page, continuationToken);
|
|
79
|
+
yield page;
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|
|
@@ -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 { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -60,8 +61,16 @@ export class PrivateEndpointConnectionsImpl
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
-
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
68
|
+
return this.listPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
workspaceName,
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
73
|
+
);
|
|
65
74
|
}
|
|
66
75
|
};
|
|
67
76
|
}
|
|
@@ -69,11 +78,18 @@ export class PrivateEndpointConnectionsImpl
|
|
|
69
78
|
private async *listPagingPage(
|
|
70
79
|
resourceGroupName: string,
|
|
71
80
|
workspaceName: string,
|
|
72
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
81
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
82
|
+
settings?: PageSettings
|
|
73
83
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
let result: PrivateEndpointConnectionsListResponse;
|
|
85
|
+
let continuationToken = settings?.continuationToken;
|
|
86
|
+
if (!continuationToken) {
|
|
87
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
88
|
+
let page = result.value || [];
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
setContinuationToken(page, continuationToken);
|
|
91
|
+
yield page;
|
|
92
|
+
}
|
|
77
93
|
while (continuationToken) {
|
|
78
94
|
result = await this._listNext(
|
|
79
95
|
resourceGroupName,
|
|
@@ -82,7 +98,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
82
98
|
options
|
|
83
99
|
);
|
|
84
100
|
continuationToken = result.nextLink;
|
|
85
|
-
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
86
104
|
}
|
|
87
105
|
}
|
|
88
106
|
|
|
@@ -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 { PrivateLinkResources } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -54,8 +55,16 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
54
55
|
[Symbol.asyncIterator]() {
|
|
55
56
|
return this;
|
|
56
57
|
},
|
|
57
|
-
byPage: () => {
|
|
58
|
-
|
|
58
|
+
byPage: (settings?: PageSettings) => {
|
|
59
|
+
if (settings?.maxPageSize) {
|
|
60
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
61
|
+
}
|
|
62
|
+
return this.listPagingPage(
|
|
63
|
+
resourceGroupName,
|
|
64
|
+
workspaceName,
|
|
65
|
+
options,
|
|
66
|
+
settings
|
|
67
|
+
);
|
|
59
68
|
}
|
|
60
69
|
};
|
|
61
70
|
}
|
|
@@ -63,11 +72,18 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
63
72
|
private async *listPagingPage(
|
|
64
73
|
resourceGroupName: string,
|
|
65
74
|
workspaceName: string,
|
|
66
|
-
options?: PrivateLinkResourcesListOptionalParams
|
|
75
|
+
options?: PrivateLinkResourcesListOptionalParams,
|
|
76
|
+
settings?: PageSettings
|
|
67
77
|
): AsyncIterableIterator<GroupIdInformation[]> {
|
|
68
|
-
let result
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
let result: PrivateLinkResourcesListResponse;
|
|
79
|
+
let continuationToken = settings?.continuationToken;
|
|
80
|
+
if (!continuationToken) {
|
|
81
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
82
|
+
let page = result.value || [];
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
setContinuationToken(page, continuationToken);
|
|
85
|
+
yield page;
|
|
86
|
+
}
|
|
71
87
|
while (continuationToken) {
|
|
72
88
|
result = await this._listNext(
|
|
73
89
|
resourceGroupName,
|
|
@@ -76,7 +92,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
76
92
|
options
|
|
77
93
|
);
|
|
78
94
|
continuationToken = result.nextLink;
|
|
79
|
-
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
80
98
|
}
|
|
81
99
|
}
|
|
82
100
|
|