@azure/arm-databricks 3.0.0-beta.2 → 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.
- package/CHANGELOG.md +2 -2
- package/LICENSE +1 -1
- package/README.md +13 -2
- package/dist/index.js +361 -115
- 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/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js +31 -0
- package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +40 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +45 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +32 -0
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +45 -0
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +1 -0
- package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js +41 -0
- package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/vNetPeeringDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/vNetPeeringDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vNetPeeringDeleteSample.js +32 -0
- package/dist-esm/samples-dev/vNetPeeringDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/vNetPeeringGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/vNetPeeringGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vNetPeeringGetSample.js +32 -0
- package/dist-esm/samples-dev/vNetPeeringGetSample.js.map +1 -0
- package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.d.ts +2 -0
- package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js +45 -0
- package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +143 -0
- package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesGetSample.js +49 -0
- package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesUpdateSample.js +32 -0
- package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
- 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 +54 -5
- 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/outboundNetworkDependenciesEndpoints.d.ts +1 -1
- package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +25 -9
- 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 +25 -9
- 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 +46 -17
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +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 +51 -21
- package/review/arm-databricks.api.md +20 -59
- package/rollup.config.js +6 -72
- package/src/azureDatabricksManagementClient.ts +70 -5
- package/src/index.ts +1 -0
- package/src/models/index.ts +48 -6
- package/src/operations/operations.ts +21 -8
- package/src/operations/outboundNetworkDependenciesEndpoints.ts +1 -1
- package/src/operations/privateEndpointConnections.ts +32 -10
- package/src/operations/privateLinkResources.ts +26 -8
- package/src/operations/vNetPeering.ts +33 -15
- package/src/operations/workspaces.ts +55 -20
- package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +1 -1
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +19 -5
- package/types/arm-databricks.d.ts +60 -7
- package/types/tsdoc-metadata.json +1 -1
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
|
|
|
@@ -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/
|
|
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.
|
|
@@ -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
|
|
|
@@ -211,10 +229,12 @@ export class PrivateEndpointConnectionsImpl
|
|
|
211
229
|
},
|
|
212
230
|
createOperationSpec
|
|
213
231
|
);
|
|
214
|
-
|
|
232
|
+
const poller = new LroEngine(lro, {
|
|
215
233
|
resumeFrom: options?.resumeFrom,
|
|
216
234
|
intervalInMs: options?.updateIntervalInMs
|
|
217
235
|
});
|
|
236
|
+
await poller.poll();
|
|
237
|
+
return poller;
|
|
218
238
|
}
|
|
219
239
|
|
|
220
240
|
/**
|
|
@@ -304,10 +324,12 @@ export class PrivateEndpointConnectionsImpl
|
|
|
304
324
|
},
|
|
305
325
|
deleteOperationSpec
|
|
306
326
|
);
|
|
307
|
-
|
|
327
|
+
const poller = new LroEngine(lro, {
|
|
308
328
|
resumeFrom: options?.resumeFrom,
|
|
309
329
|
intervalInMs: options?.updateIntervalInMs
|
|
310
330
|
});
|
|
331
|
+
await poller.poll();
|
|
332
|
+
return poller;
|
|
311
333
|
}
|
|
312
334
|
|
|
313
335
|
/**
|
|
@@ -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
|
|
|
@@ -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 { VNetPeering } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,12 +19,12 @@ import {
|
|
|
18
19
|
VirtualNetworkPeering,
|
|
19
20
|
VNetPeeringListByWorkspaceNextOptionalParams,
|
|
20
21
|
VNetPeeringListByWorkspaceOptionalParams,
|
|
22
|
+
VNetPeeringListByWorkspaceResponse,
|
|
21
23
|
VNetPeeringGetOptionalParams,
|
|
22
24
|
VNetPeeringGetResponse,
|
|
23
25
|
VNetPeeringDeleteOptionalParams,
|
|
24
26
|
VNetPeeringCreateOrUpdateOptionalParams,
|
|
25
27
|
VNetPeeringCreateOrUpdateResponse,
|
|
26
|
-
VNetPeeringListByWorkspaceResponse,
|
|
27
28
|
VNetPeeringListByWorkspaceNextResponse
|
|
28
29
|
} from "../models";
|
|
29
30
|
|
|
@@ -63,11 +64,15 @@ export class VNetPeeringImpl implements VNetPeering {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
67
71
|
return this.listByWorkspacePagingPage(
|
|
68
72
|
resourceGroupName,
|
|
69
73
|
workspaceName,
|
|
70
|
-
options
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
71
76
|
);
|
|
72
77
|
}
|
|
73
78
|
};
|
|
@@ -76,15 +81,22 @@ export class VNetPeeringImpl implements VNetPeering {
|
|
|
76
81
|
private async *listByWorkspacePagingPage(
|
|
77
82
|
resourceGroupName: string,
|
|
78
83
|
workspaceName: string,
|
|
79
|
-
options?: VNetPeeringListByWorkspaceOptionalParams
|
|
84
|
+
options?: VNetPeeringListByWorkspaceOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
80
86
|
): AsyncIterableIterator<VirtualNetworkPeering[]> {
|
|
81
|
-
let result
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
let result: VNetPeeringListByWorkspaceResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._listByWorkspace(
|
|
91
|
+
resourceGroupName,
|
|
92
|
+
workspaceName,
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
88
100
|
while (continuationToken) {
|
|
89
101
|
result = await this._listByWorkspaceNext(
|
|
90
102
|
resourceGroupName,
|
|
@@ -93,7 +105,9 @@ export class VNetPeeringImpl implements VNetPeering {
|
|
|
93
105
|
options
|
|
94
106
|
);
|
|
95
107
|
continuationToken = result.nextLink;
|
|
96
|
-
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
97
111
|
}
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -187,10 +201,12 @@ export class VNetPeeringImpl implements VNetPeering {
|
|
|
187
201
|
{ resourceGroupName, workspaceName, peeringName, options },
|
|
188
202
|
deleteOperationSpec
|
|
189
203
|
);
|
|
190
|
-
|
|
204
|
+
const poller = new LroEngine(lro, {
|
|
191
205
|
resumeFrom: options?.resumeFrom,
|
|
192
206
|
intervalInMs: options?.updateIntervalInMs
|
|
193
207
|
});
|
|
208
|
+
await poller.poll();
|
|
209
|
+
return poller;
|
|
194
210
|
}
|
|
195
211
|
|
|
196
212
|
/**
|
|
@@ -285,10 +301,12 @@ export class VNetPeeringImpl implements VNetPeering {
|
|
|
285
301
|
},
|
|
286
302
|
createOrUpdateOperationSpec
|
|
287
303
|
);
|
|
288
|
-
|
|
304
|
+
const poller = new LroEngine(lro, {
|
|
289
305
|
resumeFrom: options?.resumeFrom,
|
|
290
306
|
intervalInMs: options?.updateIntervalInMs
|
|
291
307
|
});
|
|
308
|
+
await poller.poll();
|
|
309
|
+
return poller;
|
|
292
310
|
}
|
|
293
311
|
|
|
294
312
|
/**
|
|
@@ -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 { Workspaces } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,8 +19,10 @@ import {
|
|
|
18
19
|
Workspace,
|
|
19
20
|
WorkspacesListByResourceGroupNextOptionalParams,
|
|
20
21
|
WorkspacesListByResourceGroupOptionalParams,
|
|
22
|
+
WorkspacesListByResourceGroupResponse,
|
|
21
23
|
WorkspacesListBySubscriptionNextOptionalParams,
|
|
22
24
|
WorkspacesListBySubscriptionOptionalParams,
|
|
25
|
+
WorkspacesListBySubscriptionResponse,
|
|
23
26
|
WorkspacesGetOptionalParams,
|
|
24
27
|
WorkspacesGetResponse,
|
|
25
28
|
WorkspacesDeleteOptionalParams,
|
|
@@ -28,8 +31,6 @@ import {
|
|
|
28
31
|
WorkspaceUpdate,
|
|
29
32
|
WorkspacesUpdateOptionalParams,
|
|
30
33
|
WorkspacesUpdateResponse,
|
|
31
|
-
WorkspacesListByResourceGroupResponse,
|
|
32
|
-
WorkspacesListBySubscriptionResponse,
|
|
33
34
|
WorkspacesListByResourceGroupNextResponse,
|
|
34
35
|
WorkspacesListBySubscriptionNextResponse
|
|
35
36
|
} from "../models";
|
|
@@ -64,19 +65,33 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
-
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
72
|
+
return this.listByResourceGroupPagingPage(
|
|
73
|
+
resourceGroupName,
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
76
|
+
);
|
|
69
77
|
}
|
|
70
78
|
};
|
|
71
79
|
}
|
|
72
80
|
|
|
73
81
|
private async *listByResourceGroupPagingPage(
|
|
74
82
|
resourceGroupName: string,
|
|
75
|
-
options?: WorkspacesListByResourceGroupOptionalParams
|
|
83
|
+
options?: WorkspacesListByResourceGroupOptionalParams,
|
|
84
|
+
settings?: PageSettings
|
|
76
85
|
): AsyncIterableIterator<Workspace[]> {
|
|
77
|
-
let result
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
let result: WorkspacesListByResourceGroupResponse;
|
|
87
|
+
let continuationToken = settings?.continuationToken;
|
|
88
|
+
if (!continuationToken) {
|
|
89
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
90
|
+
let page = result.value || [];
|
|
91
|
+
continuationToken = result.nextLink;
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
94
|
+
}
|
|
80
95
|
while (continuationToken) {
|
|
81
96
|
result = await this._listByResourceGroupNext(
|
|
82
97
|
resourceGroupName,
|
|
@@ -84,7 +99,9 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
84
99
|
options
|
|
85
100
|
);
|
|
86
101
|
continuationToken = result.nextLink;
|
|
87
|
-
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
88
105
|
}
|
|
89
106
|
}
|
|
90
107
|
|
|
@@ -115,22 +132,34 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
115
132
|
[Symbol.asyncIterator]() {
|
|
116
133
|
return this;
|
|
117
134
|
},
|
|
118
|
-
byPage: () => {
|
|
119
|
-
|
|
135
|
+
byPage: (settings?: PageSettings) => {
|
|
136
|
+
if (settings?.maxPageSize) {
|
|
137
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
138
|
+
}
|
|
139
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
120
140
|
}
|
|
121
141
|
};
|
|
122
142
|
}
|
|
123
143
|
|
|
124
144
|
private async *listBySubscriptionPagingPage(
|
|
125
|
-
options?: WorkspacesListBySubscriptionOptionalParams
|
|
145
|
+
options?: WorkspacesListBySubscriptionOptionalParams,
|
|
146
|
+
settings?: PageSettings
|
|
126
147
|
): AsyncIterableIterator<Workspace[]> {
|
|
127
|
-
let result
|
|
128
|
-
|
|
129
|
-
|
|
148
|
+
let result: WorkspacesListBySubscriptionResponse;
|
|
149
|
+
let continuationToken = settings?.continuationToken;
|
|
150
|
+
if (!continuationToken) {
|
|
151
|
+
result = await this._listBySubscription(options);
|
|
152
|
+
let page = result.value || [];
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
setContinuationToken(page, continuationToken);
|
|
155
|
+
yield page;
|
|
156
|
+
}
|
|
130
157
|
while (continuationToken) {
|
|
131
158
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
132
159
|
continuationToken = result.nextLink;
|
|
133
|
-
|
|
160
|
+
let page = result.value || [];
|
|
161
|
+
setContinuationToken(page, continuationToken);
|
|
162
|
+
yield page;
|
|
134
163
|
}
|
|
135
164
|
}
|
|
136
165
|
|
|
@@ -214,10 +243,12 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
214
243
|
{ resourceGroupName, workspaceName, options },
|
|
215
244
|
deleteOperationSpec
|
|
216
245
|
);
|
|
217
|
-
|
|
246
|
+
const poller = new LroEngine(lro, {
|
|
218
247
|
resumeFrom: options?.resumeFrom,
|
|
219
248
|
intervalInMs: options?.updateIntervalInMs
|
|
220
249
|
});
|
|
250
|
+
await poller.poll();
|
|
251
|
+
return poller;
|
|
221
252
|
}
|
|
222
253
|
|
|
223
254
|
/**
|
|
@@ -301,10 +332,12 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
301
332
|
{ resourceGroupName, workspaceName, parameters, options },
|
|
302
333
|
createOrUpdateOperationSpec
|
|
303
334
|
);
|
|
304
|
-
|
|
335
|
+
const poller = new LroEngine(lro, {
|
|
305
336
|
resumeFrom: options?.resumeFrom,
|
|
306
337
|
intervalInMs: options?.updateIntervalInMs
|
|
307
338
|
});
|
|
339
|
+
await poller.poll();
|
|
340
|
+
return poller;
|
|
308
341
|
}
|
|
309
342
|
|
|
310
343
|
/**
|
|
@@ -391,10 +424,12 @@ export class WorkspacesImpl implements Workspaces {
|
|
|
391
424
|
{ resourceGroupName, workspaceName, parameters, options },
|
|
392
425
|
updateOperationSpec
|
|
393
426
|
);
|
|
394
|
-
|
|
427
|
+
const poller = new LroEngine(lro, {
|
|
395
428
|
resumeFrom: options?.resumeFrom,
|
|
396
429
|
intervalInMs: options?.updateIntervalInMs
|
|
397
430
|
});
|
|
431
|
+
await poller.poll();
|
|
432
|
+
return poller;
|
|
398
433
|
}
|
|
399
434
|
|
|
400
435
|
/**
|
|
@@ -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.
|