@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/dist/index.js
CHANGED
|
@@ -2,10 +2,64 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var coreClient = require('@azure/core-client');
|
|
6
5
|
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
8
|
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
9
63
|
/*
|
|
10
64
|
* Copyright (c) Microsoft Corporation.
|
|
11
65
|
* Licensed under the MIT License.
|
|
@@ -13,68 +67,132 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
67
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
68
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
69
|
*/
|
|
70
|
+
/** Known values of {@link CustomParameterType} that the service accepts. */
|
|
71
|
+
exports.KnownCustomParameterType = void 0;
|
|
16
72
|
(function (KnownCustomParameterType) {
|
|
73
|
+
/** Bool */
|
|
17
74
|
KnownCustomParameterType["Bool"] = "Bool";
|
|
75
|
+
/** Object */
|
|
18
76
|
KnownCustomParameterType["Object"] = "Object";
|
|
77
|
+
/** String */
|
|
19
78
|
KnownCustomParameterType["String"] = "String";
|
|
20
79
|
})(exports.KnownCustomParameterType || (exports.KnownCustomParameterType = {}));
|
|
80
|
+
/** Known values of {@link KeySource} that the service accepts. */
|
|
81
|
+
exports.KnownKeySource = void 0;
|
|
21
82
|
(function (KnownKeySource) {
|
|
83
|
+
/** Default */
|
|
22
84
|
KnownKeySource["Default"] = "Default";
|
|
85
|
+
/** MicrosoftKeyvault */
|
|
23
86
|
KnownKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
|
|
24
87
|
})(exports.KnownKeySource || (exports.KnownKeySource = {}));
|
|
88
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
89
|
+
exports.KnownProvisioningState = void 0;
|
|
25
90
|
(function (KnownProvisioningState) {
|
|
91
|
+
/** Accepted */
|
|
26
92
|
KnownProvisioningState["Accepted"] = "Accepted";
|
|
93
|
+
/** Running */
|
|
27
94
|
KnownProvisioningState["Running"] = "Running";
|
|
95
|
+
/** Ready */
|
|
28
96
|
KnownProvisioningState["Ready"] = "Ready";
|
|
97
|
+
/** Creating */
|
|
29
98
|
KnownProvisioningState["Creating"] = "Creating";
|
|
99
|
+
/** Created */
|
|
30
100
|
KnownProvisioningState["Created"] = "Created";
|
|
101
|
+
/** Deleting */
|
|
31
102
|
KnownProvisioningState["Deleting"] = "Deleting";
|
|
103
|
+
/** Deleted */
|
|
32
104
|
KnownProvisioningState["Deleted"] = "Deleted";
|
|
105
|
+
/** Canceled */
|
|
33
106
|
KnownProvisioningState["Canceled"] = "Canceled";
|
|
107
|
+
/** Failed */
|
|
34
108
|
KnownProvisioningState["Failed"] = "Failed";
|
|
109
|
+
/** Succeeded */
|
|
35
110
|
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
111
|
+
/** Updating */
|
|
36
112
|
KnownProvisioningState["Updating"] = "Updating";
|
|
37
113
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
114
|
+
/** Known values of {@link EncryptionKeySource} that the service accepts. */
|
|
115
|
+
exports.KnownEncryptionKeySource = void 0;
|
|
38
116
|
(function (KnownEncryptionKeySource) {
|
|
117
|
+
/** MicrosoftKeyvault */
|
|
39
118
|
KnownEncryptionKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
|
|
40
119
|
})(exports.KnownEncryptionKeySource || (exports.KnownEncryptionKeySource = {}));
|
|
120
|
+
/** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
|
|
121
|
+
exports.KnownPrivateLinkServiceConnectionStatus = void 0;
|
|
41
122
|
(function (KnownPrivateLinkServiceConnectionStatus) {
|
|
123
|
+
/** Pending */
|
|
42
124
|
KnownPrivateLinkServiceConnectionStatus["Pending"] = "Pending";
|
|
125
|
+
/** Approved */
|
|
43
126
|
KnownPrivateLinkServiceConnectionStatus["Approved"] = "Approved";
|
|
127
|
+
/** Rejected */
|
|
44
128
|
KnownPrivateLinkServiceConnectionStatus["Rejected"] = "Rejected";
|
|
129
|
+
/** Disconnected */
|
|
45
130
|
KnownPrivateLinkServiceConnectionStatus["Disconnected"] = "Disconnected";
|
|
46
131
|
})(exports.KnownPrivateLinkServiceConnectionStatus || (exports.KnownPrivateLinkServiceConnectionStatus = {}));
|
|
132
|
+
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
133
|
+
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
47
134
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
135
|
+
/** Succeeded */
|
|
48
136
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
137
|
+
/** Creating */
|
|
49
138
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
139
|
+
/** Updating */
|
|
50
140
|
KnownPrivateEndpointConnectionProvisioningState["Updating"] = "Updating";
|
|
141
|
+
/** Deleting */
|
|
51
142
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
143
|
+
/** Failed */
|
|
52
144
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
53
145
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
146
|
+
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
147
|
+
exports.KnownPublicNetworkAccess = void 0;
|
|
54
148
|
(function (KnownPublicNetworkAccess) {
|
|
149
|
+
/** Enabled */
|
|
55
150
|
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
151
|
+
/** Disabled */
|
|
56
152
|
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
57
153
|
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
154
|
+
/** Known values of {@link RequiredNsgRules} that the service accepts. */
|
|
155
|
+
exports.KnownRequiredNsgRules = void 0;
|
|
58
156
|
(function (KnownRequiredNsgRules) {
|
|
157
|
+
/** AllRules */
|
|
59
158
|
KnownRequiredNsgRules["AllRules"] = "AllRules";
|
|
159
|
+
/** NoAzureDatabricksRules */
|
|
60
160
|
KnownRequiredNsgRules["NoAzureDatabricksRules"] = "NoAzureDatabricksRules";
|
|
161
|
+
/** NoAzureServiceRules */
|
|
61
162
|
KnownRequiredNsgRules["NoAzureServiceRules"] = "NoAzureServiceRules";
|
|
62
163
|
})(exports.KnownRequiredNsgRules || (exports.KnownRequiredNsgRules = {}));
|
|
164
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
165
|
+
exports.KnownCreatedByType = void 0;
|
|
63
166
|
(function (KnownCreatedByType) {
|
|
167
|
+
/** User */
|
|
64
168
|
KnownCreatedByType["User"] = "User";
|
|
169
|
+
/** Application */
|
|
65
170
|
KnownCreatedByType["Application"] = "Application";
|
|
171
|
+
/** ManagedIdentity */
|
|
66
172
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
173
|
+
/** Key */
|
|
67
174
|
KnownCreatedByType["Key"] = "Key";
|
|
68
175
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
176
|
+
/** Known values of {@link PeeringState} that the service accepts. */
|
|
177
|
+
exports.KnownPeeringState = void 0;
|
|
69
178
|
(function (KnownPeeringState) {
|
|
179
|
+
/** Initiated */
|
|
70
180
|
KnownPeeringState["Initiated"] = "Initiated";
|
|
181
|
+
/** Connected */
|
|
71
182
|
KnownPeeringState["Connected"] = "Connected";
|
|
183
|
+
/** Disconnected */
|
|
72
184
|
KnownPeeringState["Disconnected"] = "Disconnected";
|
|
73
185
|
})(exports.KnownPeeringState || (exports.KnownPeeringState = {}));
|
|
186
|
+
/** Known values of {@link PeeringProvisioningState} that the service accepts. */
|
|
187
|
+
exports.KnownPeeringProvisioningState = void 0;
|
|
74
188
|
(function (KnownPeeringProvisioningState) {
|
|
189
|
+
/** Succeeded */
|
|
75
190
|
KnownPeeringProvisioningState["Succeeded"] = "Succeeded";
|
|
191
|
+
/** Updating */
|
|
76
192
|
KnownPeeringProvisioningState["Updating"] = "Updating";
|
|
193
|
+
/** Deleting */
|
|
77
194
|
KnownPeeringProvisioningState["Deleting"] = "Deleting";
|
|
195
|
+
/** Failed */
|
|
78
196
|
KnownPeeringProvisioningState["Failed"] = "Failed";
|
|
79
197
|
})(exports.KnownPeeringProvisioningState || (exports.KnownPeeringProvisioningState = {}));
|
|
80
198
|
|
|
@@ -1629,20 +1747,31 @@ class WorkspacesImpl {
|
|
|
1629
1747
|
[Symbol.asyncIterator]() {
|
|
1630
1748
|
return this;
|
|
1631
1749
|
},
|
|
1632
|
-
byPage: () => {
|
|
1633
|
-
|
|
1750
|
+
byPage: (settings) => {
|
|
1751
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1752
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1753
|
+
}
|
|
1754
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1634
1755
|
}
|
|
1635
1756
|
};
|
|
1636
1757
|
}
|
|
1637
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1758
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1638
1759
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1639
|
-
let result
|
|
1640
|
-
|
|
1641
|
-
|
|
1760
|
+
let result;
|
|
1761
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1762
|
+
if (!continuationToken) {
|
|
1763
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1764
|
+
let page = result.value || [];
|
|
1765
|
+
continuationToken = result.nextLink;
|
|
1766
|
+
setContinuationToken(page, continuationToken);
|
|
1767
|
+
yield yield tslib.__await(page);
|
|
1768
|
+
}
|
|
1642
1769
|
while (continuationToken) {
|
|
1643
1770
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1644
1771
|
continuationToken = result.nextLink;
|
|
1645
|
-
|
|
1772
|
+
let page = result.value || [];
|
|
1773
|
+
setContinuationToken(page, continuationToken);
|
|
1774
|
+
yield yield tslib.__await(page);
|
|
1646
1775
|
}
|
|
1647
1776
|
});
|
|
1648
1777
|
}
|
|
@@ -1677,20 +1806,31 @@ class WorkspacesImpl {
|
|
|
1677
1806
|
[Symbol.asyncIterator]() {
|
|
1678
1807
|
return this;
|
|
1679
1808
|
},
|
|
1680
|
-
byPage: () => {
|
|
1681
|
-
|
|
1809
|
+
byPage: (settings) => {
|
|
1810
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1811
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1812
|
+
}
|
|
1813
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1682
1814
|
}
|
|
1683
1815
|
};
|
|
1684
1816
|
}
|
|
1685
|
-
listBySubscriptionPagingPage(options) {
|
|
1817
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1686
1818
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1687
|
-
let result
|
|
1688
|
-
|
|
1689
|
-
|
|
1819
|
+
let result;
|
|
1820
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1821
|
+
if (!continuationToken) {
|
|
1822
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1823
|
+
let page = result.value || [];
|
|
1824
|
+
continuationToken = result.nextLink;
|
|
1825
|
+
setContinuationToken(page, continuationToken);
|
|
1826
|
+
yield yield tslib.__await(page);
|
|
1827
|
+
}
|
|
1690
1828
|
while (continuationToken) {
|
|
1691
1829
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1692
1830
|
continuationToken = result.nextLink;
|
|
1693
|
-
|
|
1831
|
+
let page = result.value || [];
|
|
1832
|
+
setContinuationToken(page, continuationToken);
|
|
1833
|
+
yield yield tslib.__await(page);
|
|
1694
1834
|
}
|
|
1695
1835
|
});
|
|
1696
1836
|
}
|
|
@@ -1719,7 +1859,7 @@ class WorkspacesImpl {
|
|
|
1719
1859
|
* @param options The options parameters.
|
|
1720
1860
|
*/
|
|
1721
1861
|
get(resourceGroupName, workspaceName, options) {
|
|
1722
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
|
|
1862
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$3);
|
|
1723
1863
|
}
|
|
1724
1864
|
/**
|
|
1725
1865
|
* Deletes the workspace.
|
|
@@ -1751,11 +1891,13 @@ class WorkspacesImpl {
|
|
|
1751
1891
|
}
|
|
1752
1892
|
};
|
|
1753
1893
|
});
|
|
1754
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec);
|
|
1755
|
-
|
|
1894
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec$2);
|
|
1895
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1756
1896
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1757
1897
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1758
1898
|
});
|
|
1899
|
+
yield poller.poll();
|
|
1900
|
+
return poller;
|
|
1759
1901
|
});
|
|
1760
1902
|
}
|
|
1761
1903
|
/**
|
|
@@ -1801,11 +1943,13 @@ class WorkspacesImpl {
|
|
|
1801
1943
|
}
|
|
1802
1944
|
};
|
|
1803
1945
|
});
|
|
1804
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec);
|
|
1805
|
-
|
|
1946
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
1947
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1806
1948
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1807
1949
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1808
1950
|
});
|
|
1951
|
+
yield poller.poll();
|
|
1952
|
+
return poller;
|
|
1809
1953
|
});
|
|
1810
1954
|
}
|
|
1811
1955
|
/**
|
|
@@ -1853,10 +1997,12 @@ class WorkspacesImpl {
|
|
|
1853
1997
|
};
|
|
1854
1998
|
});
|
|
1855
1999
|
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
|
|
1856
|
-
|
|
2000
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1857
2001
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1858
2002
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1859
2003
|
});
|
|
2004
|
+
yield poller.poll();
|
|
2005
|
+
return poller;
|
|
1860
2006
|
});
|
|
1861
2007
|
}
|
|
1862
2008
|
/**
|
|
@@ -1906,8 +2052,8 @@ class WorkspacesImpl {
|
|
|
1906
2052
|
}
|
|
1907
2053
|
}
|
|
1908
2054
|
// Operation Specifications
|
|
1909
|
-
const serializer =
|
|
1910
|
-
const getOperationSpec = {
|
|
2055
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2056
|
+
const getOperationSpec$3 = {
|
|
1911
2057
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
1912
2058
|
httpMethod: "GET",
|
|
1913
2059
|
responses: {
|
|
@@ -1926,9 +2072,9 @@ const getOperationSpec = {
|
|
|
1926
2072
|
subscriptionId
|
|
1927
2073
|
],
|
|
1928
2074
|
headerParameters: [accept],
|
|
1929
|
-
serializer
|
|
2075
|
+
serializer: serializer$5
|
|
1930
2076
|
};
|
|
1931
|
-
const deleteOperationSpec = {
|
|
2077
|
+
const deleteOperationSpec$2 = {
|
|
1932
2078
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
1933
2079
|
httpMethod: "DELETE",
|
|
1934
2080
|
responses: {
|
|
@@ -1948,9 +2094,9 @@ const deleteOperationSpec = {
|
|
|
1948
2094
|
subscriptionId
|
|
1949
2095
|
],
|
|
1950
2096
|
headerParameters: [accept],
|
|
1951
|
-
serializer
|
|
2097
|
+
serializer: serializer$5
|
|
1952
2098
|
};
|
|
1953
|
-
const createOrUpdateOperationSpec = {
|
|
2099
|
+
const createOrUpdateOperationSpec$1 = {
|
|
1954
2100
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
1955
2101
|
httpMethod: "PUT",
|
|
1956
2102
|
responses: {
|
|
@@ -1980,7 +2126,7 @@ const createOrUpdateOperationSpec = {
|
|
|
1980
2126
|
],
|
|
1981
2127
|
headerParameters: [accept, contentType],
|
|
1982
2128
|
mediaType: "json",
|
|
1983
|
-
serializer
|
|
2129
|
+
serializer: serializer$5
|
|
1984
2130
|
};
|
|
1985
2131
|
const updateOperationSpec = {
|
|
1986
2132
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
@@ -2012,7 +2158,7 @@ const updateOperationSpec = {
|
|
|
2012
2158
|
],
|
|
2013
2159
|
headerParameters: [accept, contentType],
|
|
2014
2160
|
mediaType: "json",
|
|
2015
|
-
serializer
|
|
2161
|
+
serializer: serializer$5
|
|
2016
2162
|
};
|
|
2017
2163
|
const listByResourceGroupOperationSpec = {
|
|
2018
2164
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
|
|
@@ -2032,7 +2178,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
2032
2178
|
subscriptionId
|
|
2033
2179
|
],
|
|
2034
2180
|
headerParameters: [accept],
|
|
2035
|
-
serializer
|
|
2181
|
+
serializer: serializer$5
|
|
2036
2182
|
};
|
|
2037
2183
|
const listBySubscriptionOperationSpec = {
|
|
2038
2184
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
|
|
@@ -2048,7 +2194,7 @@ const listBySubscriptionOperationSpec = {
|
|
|
2048
2194
|
queryParameters: [apiVersion],
|
|
2049
2195
|
urlParameters: [$host, subscriptionId],
|
|
2050
2196
|
headerParameters: [accept],
|
|
2051
|
-
serializer
|
|
2197
|
+
serializer: serializer$5
|
|
2052
2198
|
};
|
|
2053
2199
|
const listByResourceGroupNextOperationSpec = {
|
|
2054
2200
|
path: "{nextLink}",
|
|
@@ -2069,7 +2215,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2069
2215
|
nextLink
|
|
2070
2216
|
],
|
|
2071
2217
|
headerParameters: [accept],
|
|
2072
|
-
serializer
|
|
2218
|
+
serializer: serializer$5
|
|
2073
2219
|
};
|
|
2074
2220
|
const listBySubscriptionNextOperationSpec = {
|
|
2075
2221
|
path: "{nextLink}",
|
|
@@ -2089,7 +2235,7 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
2089
2235
|
nextLink
|
|
2090
2236
|
],
|
|
2091
2237
|
headerParameters: [accept],
|
|
2092
|
-
serializer
|
|
2238
|
+
serializer: serializer$5
|
|
2093
2239
|
};
|
|
2094
2240
|
|
|
2095
2241
|
/*
|
|
@@ -2122,20 +2268,31 @@ class OperationsImpl {
|
|
|
2122
2268
|
[Symbol.asyncIterator]() {
|
|
2123
2269
|
return this;
|
|
2124
2270
|
},
|
|
2125
|
-
byPage: () => {
|
|
2126
|
-
|
|
2271
|
+
byPage: (settings) => {
|
|
2272
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2273
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2274
|
+
}
|
|
2275
|
+
return this.listPagingPage(options, settings);
|
|
2127
2276
|
}
|
|
2128
2277
|
};
|
|
2129
2278
|
}
|
|
2130
|
-
listPagingPage(options) {
|
|
2279
|
+
listPagingPage(options, settings) {
|
|
2131
2280
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2132
|
-
let result
|
|
2133
|
-
|
|
2134
|
-
|
|
2281
|
+
let result;
|
|
2282
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2283
|
+
if (!continuationToken) {
|
|
2284
|
+
result = yield tslib.__await(this._list(options));
|
|
2285
|
+
let page = result.value || [];
|
|
2286
|
+
continuationToken = result.nextLink;
|
|
2287
|
+
setContinuationToken(page, continuationToken);
|
|
2288
|
+
yield yield tslib.__await(page);
|
|
2289
|
+
}
|
|
2135
2290
|
while (continuationToken) {
|
|
2136
2291
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2137
2292
|
continuationToken = result.nextLink;
|
|
2138
|
-
|
|
2293
|
+
let page = result.value || [];
|
|
2294
|
+
setContinuationToken(page, continuationToken);
|
|
2295
|
+
yield yield tslib.__await(page);
|
|
2139
2296
|
}
|
|
2140
2297
|
});
|
|
2141
2298
|
}
|
|
@@ -2162,7 +2319,7 @@ class OperationsImpl {
|
|
|
2162
2319
|
* @param options The options parameters.
|
|
2163
2320
|
*/
|
|
2164
2321
|
_list(options) {
|
|
2165
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2322
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
2166
2323
|
}
|
|
2167
2324
|
/**
|
|
2168
2325
|
* ListNext
|
|
@@ -2170,12 +2327,12 @@ class OperationsImpl {
|
|
|
2170
2327
|
* @param options The options parameters.
|
|
2171
2328
|
*/
|
|
2172
2329
|
_listNext(nextLink, options) {
|
|
2173
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2330
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
2174
2331
|
}
|
|
2175
2332
|
}
|
|
2176
2333
|
// Operation Specifications
|
|
2177
|
-
const serializer$
|
|
2178
|
-
const listOperationSpec = {
|
|
2334
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2335
|
+
const listOperationSpec$3 = {
|
|
2179
2336
|
path: "/providers/Microsoft.Databricks/operations",
|
|
2180
2337
|
httpMethod: "GET",
|
|
2181
2338
|
responses: {
|
|
@@ -2189,9 +2346,9 @@ const listOperationSpec = {
|
|
|
2189
2346
|
queryParameters: [apiVersion],
|
|
2190
2347
|
urlParameters: [$host],
|
|
2191
2348
|
headerParameters: [accept],
|
|
2192
|
-
serializer: serializer$
|
|
2349
|
+
serializer: serializer$4
|
|
2193
2350
|
};
|
|
2194
|
-
const listNextOperationSpec = {
|
|
2351
|
+
const listNextOperationSpec$2 = {
|
|
2195
2352
|
path: "{nextLink}",
|
|
2196
2353
|
httpMethod: "GET",
|
|
2197
2354
|
responses: {
|
|
@@ -2205,7 +2362,7 @@ const listNextOperationSpec = {
|
|
|
2205
2362
|
queryParameters: [apiVersion],
|
|
2206
2363
|
urlParameters: [$host, nextLink],
|
|
2207
2364
|
headerParameters: [accept],
|
|
2208
|
-
serializer: serializer$
|
|
2365
|
+
serializer: serializer$4
|
|
2209
2366
|
};
|
|
2210
2367
|
|
|
2211
2368
|
/*
|
|
@@ -2240,20 +2397,31 @@ class PrivateLinkResourcesImpl {
|
|
|
2240
2397
|
[Symbol.asyncIterator]() {
|
|
2241
2398
|
return this;
|
|
2242
2399
|
},
|
|
2243
|
-
byPage: () => {
|
|
2244
|
-
|
|
2400
|
+
byPage: (settings) => {
|
|
2401
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2402
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2403
|
+
}
|
|
2404
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
2245
2405
|
}
|
|
2246
2406
|
};
|
|
2247
2407
|
}
|
|
2248
|
-
listPagingPage(resourceGroupName, workspaceName, options) {
|
|
2408
|
+
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
2249
2409
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2250
|
-
let result
|
|
2251
|
-
|
|
2252
|
-
|
|
2410
|
+
let result;
|
|
2411
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2412
|
+
if (!continuationToken) {
|
|
2413
|
+
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
2414
|
+
let page = result.value || [];
|
|
2415
|
+
continuationToken = result.nextLink;
|
|
2416
|
+
setContinuationToken(page, continuationToken);
|
|
2417
|
+
yield yield tslib.__await(page);
|
|
2418
|
+
}
|
|
2253
2419
|
while (continuationToken) {
|
|
2254
2420
|
result = yield tslib.__await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
2255
2421
|
continuationToken = result.nextLink;
|
|
2256
|
-
|
|
2422
|
+
let page = result.value || [];
|
|
2423
|
+
setContinuationToken(page, continuationToken);
|
|
2424
|
+
yield yield tslib.__await(page);
|
|
2257
2425
|
}
|
|
2258
2426
|
});
|
|
2259
2427
|
}
|
|
@@ -2282,7 +2450,7 @@ class PrivateLinkResourcesImpl {
|
|
|
2282
2450
|
* @param options The options parameters.
|
|
2283
2451
|
*/
|
|
2284
2452
|
_list(resourceGroupName, workspaceName, options) {
|
|
2285
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$
|
|
2453
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$2);
|
|
2286
2454
|
}
|
|
2287
2455
|
/**
|
|
2288
2456
|
* Get the specified private link resource for the given group id (sub-resource)
|
|
@@ -2292,7 +2460,7 @@ class PrivateLinkResourcesImpl {
|
|
|
2292
2460
|
* @param options The options parameters.
|
|
2293
2461
|
*/
|
|
2294
2462
|
get(resourceGroupName, workspaceName, groupId, options) {
|
|
2295
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$
|
|
2463
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$2);
|
|
2296
2464
|
}
|
|
2297
2465
|
/**
|
|
2298
2466
|
* ListNext
|
|
@@ -2306,8 +2474,8 @@ class PrivateLinkResourcesImpl {
|
|
|
2306
2474
|
}
|
|
2307
2475
|
}
|
|
2308
2476
|
// Operation Specifications
|
|
2309
|
-
const serializer$
|
|
2310
|
-
const listOperationSpec$
|
|
2477
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2478
|
+
const listOperationSpec$2 = {
|
|
2311
2479
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
|
|
2312
2480
|
httpMethod: "GET",
|
|
2313
2481
|
responses: {
|
|
@@ -2326,9 +2494,9 @@ const listOperationSpec$1 = {
|
|
|
2326
2494
|
subscriptionId
|
|
2327
2495
|
],
|
|
2328
2496
|
headerParameters: [accept],
|
|
2329
|
-
serializer: serializer$
|
|
2497
|
+
serializer: serializer$3
|
|
2330
2498
|
};
|
|
2331
|
-
const getOperationSpec$
|
|
2499
|
+
const getOperationSpec$2 = {
|
|
2332
2500
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
|
|
2333
2501
|
httpMethod: "GET",
|
|
2334
2502
|
responses: {
|
|
@@ -2348,7 +2516,7 @@ const getOperationSpec$1 = {
|
|
|
2348
2516
|
groupId
|
|
2349
2517
|
],
|
|
2350
2518
|
headerParameters: [accept],
|
|
2351
|
-
serializer: serializer$
|
|
2519
|
+
serializer: serializer$3
|
|
2352
2520
|
};
|
|
2353
2521
|
const listNextOperationSpec$1 = {
|
|
2354
2522
|
path: "{nextLink}",
|
|
@@ -2370,7 +2538,7 @@ const listNextOperationSpec$1 = {
|
|
|
2370
2538
|
nextLink
|
|
2371
2539
|
],
|
|
2372
2540
|
headerParameters: [accept],
|
|
2373
|
-
serializer: serializer$
|
|
2541
|
+
serializer: serializer$3
|
|
2374
2542
|
};
|
|
2375
2543
|
|
|
2376
2544
|
/*
|
|
@@ -2405,20 +2573,31 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2405
2573
|
[Symbol.asyncIterator]() {
|
|
2406
2574
|
return this;
|
|
2407
2575
|
},
|
|
2408
|
-
byPage: () => {
|
|
2409
|
-
|
|
2576
|
+
byPage: (settings) => {
|
|
2577
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2578
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2579
|
+
}
|
|
2580
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
2410
2581
|
}
|
|
2411
2582
|
};
|
|
2412
2583
|
}
|
|
2413
|
-
listPagingPage(resourceGroupName, workspaceName, options) {
|
|
2584
|
+
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
2414
2585
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2415
|
-
let result
|
|
2416
|
-
|
|
2417
|
-
|
|
2586
|
+
let result;
|
|
2587
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2588
|
+
if (!continuationToken) {
|
|
2589
|
+
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
2590
|
+
let page = result.value || [];
|
|
2591
|
+
continuationToken = result.nextLink;
|
|
2592
|
+
setContinuationToken(page, continuationToken);
|
|
2593
|
+
yield yield tslib.__await(page);
|
|
2594
|
+
}
|
|
2418
2595
|
while (continuationToken) {
|
|
2419
2596
|
result = yield tslib.__await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
2420
2597
|
continuationToken = result.nextLink;
|
|
2421
|
-
|
|
2598
|
+
let page = result.value || [];
|
|
2599
|
+
setContinuationToken(page, continuationToken);
|
|
2600
|
+
yield yield tslib.__await(page);
|
|
2422
2601
|
}
|
|
2423
2602
|
});
|
|
2424
2603
|
}
|
|
@@ -2447,7 +2626,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2447
2626
|
* @param options The options parameters.
|
|
2448
2627
|
*/
|
|
2449
2628
|
_list(resourceGroupName, workspaceName, options) {
|
|
2450
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$
|
|
2629
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$1);
|
|
2451
2630
|
}
|
|
2452
2631
|
/**
|
|
2453
2632
|
* Get a private endpoint connection properties for a workspace
|
|
@@ -2462,7 +2641,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2462
2641
|
workspaceName,
|
|
2463
2642
|
privateEndpointConnectionName,
|
|
2464
2643
|
options
|
|
2465
|
-
}, getOperationSpec$
|
|
2644
|
+
}, getOperationSpec$1);
|
|
2466
2645
|
}
|
|
2467
2646
|
/**
|
|
2468
2647
|
* Update the status of a private endpoint connection with the specified name
|
|
@@ -2503,10 +2682,12 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2503
2682
|
privateEndpointConnection,
|
|
2504
2683
|
options
|
|
2505
2684
|
}, createOperationSpec);
|
|
2506
|
-
|
|
2685
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2507
2686
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2508
2687
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2509
2688
|
});
|
|
2689
|
+
yield poller.poll();
|
|
2690
|
+
return poller;
|
|
2510
2691
|
});
|
|
2511
2692
|
}
|
|
2512
2693
|
/**
|
|
@@ -2560,10 +2741,12 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2560
2741
|
privateEndpointConnectionName,
|
|
2561
2742
|
options
|
|
2562
2743
|
}, deleteOperationSpec$1);
|
|
2563
|
-
|
|
2744
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2564
2745
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2565
2746
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2566
2747
|
});
|
|
2748
|
+
yield poller.poll();
|
|
2749
|
+
return poller;
|
|
2567
2750
|
});
|
|
2568
2751
|
}
|
|
2569
2752
|
/**
|
|
@@ -2587,12 +2770,12 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2587
2770
|
* @param options The options parameters.
|
|
2588
2771
|
*/
|
|
2589
2772
|
_listNext(resourceGroupName, workspaceName, nextLink, options) {
|
|
2590
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec
|
|
2773
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec);
|
|
2591
2774
|
}
|
|
2592
2775
|
}
|
|
2593
2776
|
// Operation Specifications
|
|
2594
|
-
const serializer$
|
|
2595
|
-
const listOperationSpec$
|
|
2777
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2778
|
+
const listOperationSpec$1 = {
|
|
2596
2779
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections",
|
|
2597
2780
|
httpMethod: "GET",
|
|
2598
2781
|
responses: {
|
|
@@ -2611,9 +2794,9 @@ const listOperationSpec$2 = {
|
|
|
2611
2794
|
subscriptionId
|
|
2612
2795
|
],
|
|
2613
2796
|
headerParameters: [accept],
|
|
2614
|
-
serializer: serializer$
|
|
2797
|
+
serializer: serializer$2
|
|
2615
2798
|
};
|
|
2616
|
-
const getOperationSpec$
|
|
2799
|
+
const getOperationSpec$1 = {
|
|
2617
2800
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2618
2801
|
httpMethod: "GET",
|
|
2619
2802
|
responses: {
|
|
@@ -2633,7 +2816,7 @@ const getOperationSpec$2 = {
|
|
|
2633
2816
|
privateEndpointConnectionName
|
|
2634
2817
|
],
|
|
2635
2818
|
headerParameters: [accept],
|
|
2636
|
-
serializer: serializer$
|
|
2819
|
+
serializer: serializer$2
|
|
2637
2820
|
};
|
|
2638
2821
|
const createOperationSpec = {
|
|
2639
2822
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -2666,7 +2849,7 @@ const createOperationSpec = {
|
|
|
2666
2849
|
],
|
|
2667
2850
|
headerParameters: [accept, contentType],
|
|
2668
2851
|
mediaType: "json",
|
|
2669
|
-
serializer: serializer$
|
|
2852
|
+
serializer: serializer$2
|
|
2670
2853
|
};
|
|
2671
2854
|
const deleteOperationSpec$1 = {
|
|
2672
2855
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -2689,9 +2872,9 @@ const deleteOperationSpec$1 = {
|
|
|
2689
2872
|
privateEndpointConnectionName
|
|
2690
2873
|
],
|
|
2691
2874
|
headerParameters: [accept],
|
|
2692
|
-
serializer: serializer$
|
|
2875
|
+
serializer: serializer$2
|
|
2693
2876
|
};
|
|
2694
|
-
const listNextOperationSpec
|
|
2877
|
+
const listNextOperationSpec = {
|
|
2695
2878
|
path: "{nextLink}",
|
|
2696
2879
|
httpMethod: "GET",
|
|
2697
2880
|
responses: {
|
|
@@ -2711,7 +2894,7 @@ const listNextOperationSpec$2 = {
|
|
|
2711
2894
|
nextLink
|
|
2712
2895
|
],
|
|
2713
2896
|
headerParameters: [accept],
|
|
2714
|
-
serializer: serializer$
|
|
2897
|
+
serializer: serializer$2
|
|
2715
2898
|
};
|
|
2716
2899
|
|
|
2717
2900
|
/*
|
|
@@ -2733,18 +2916,18 @@ class OutboundNetworkDependenciesEndpointsImpl {
|
|
|
2733
2916
|
/**
|
|
2734
2917
|
* Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You
|
|
2735
2918
|
* must configure outbound access with these endpoints. For more information, see
|
|
2736
|
-
* https://docs.microsoft.com/
|
|
2919
|
+
* https://docs.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/udr
|
|
2737
2920
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2738
2921
|
* @param workspaceName The name of the workspace.
|
|
2739
2922
|
* @param options The options parameters.
|
|
2740
2923
|
*/
|
|
2741
2924
|
list(resourceGroupName, workspaceName, options) {
|
|
2742
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec
|
|
2925
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec);
|
|
2743
2926
|
}
|
|
2744
2927
|
}
|
|
2745
2928
|
// Operation Specifications
|
|
2746
|
-
const serializer$
|
|
2747
|
-
const listOperationSpec
|
|
2929
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2930
|
+
const listOperationSpec = {
|
|
2748
2931
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints",
|
|
2749
2932
|
httpMethod: "GET",
|
|
2750
2933
|
responses: {
|
|
@@ -2773,7 +2956,7 @@ const listOperationSpec$3 = {
|
|
|
2773
2956
|
subscriptionId
|
|
2774
2957
|
],
|
|
2775
2958
|
headerParameters: [accept],
|
|
2776
|
-
serializer: serializer$
|
|
2959
|
+
serializer: serializer$1
|
|
2777
2960
|
};
|
|
2778
2961
|
|
|
2779
2962
|
/*
|
|
@@ -2808,20 +2991,31 @@ class VNetPeeringImpl {
|
|
|
2808
2991
|
[Symbol.asyncIterator]() {
|
|
2809
2992
|
return this;
|
|
2810
2993
|
},
|
|
2811
|
-
byPage: () => {
|
|
2812
|
-
|
|
2994
|
+
byPage: (settings) => {
|
|
2995
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2996
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2997
|
+
}
|
|
2998
|
+
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
|
2813
2999
|
}
|
|
2814
3000
|
};
|
|
2815
3001
|
}
|
|
2816
|
-
listByWorkspacePagingPage(resourceGroupName, workspaceName, options) {
|
|
3002
|
+
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
2817
3003
|
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
|
2818
|
-
let result
|
|
2819
|
-
|
|
2820
|
-
|
|
3004
|
+
let result;
|
|
3005
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3006
|
+
if (!continuationToken) {
|
|
3007
|
+
result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
|
3008
|
+
let page = result.value || [];
|
|
3009
|
+
continuationToken = result.nextLink;
|
|
3010
|
+
setContinuationToken(page, continuationToken);
|
|
3011
|
+
yield yield tslib.__await(page);
|
|
3012
|
+
}
|
|
2821
3013
|
while (continuationToken) {
|
|
2822
3014
|
result = yield tslib.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
2823
3015
|
continuationToken = result.nextLink;
|
|
2824
|
-
|
|
3016
|
+
let page = result.value || [];
|
|
3017
|
+
setContinuationToken(page, continuationToken);
|
|
3018
|
+
yield yield tslib.__await(page);
|
|
2825
3019
|
}
|
|
2826
3020
|
});
|
|
2827
3021
|
}
|
|
@@ -2851,7 +3045,7 @@ class VNetPeeringImpl {
|
|
|
2851
3045
|
* @param options The options parameters.
|
|
2852
3046
|
*/
|
|
2853
3047
|
get(resourceGroupName, workspaceName, peeringName, options) {
|
|
2854
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec
|
|
3048
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec);
|
|
2855
3049
|
}
|
|
2856
3050
|
/**
|
|
2857
3051
|
* Deletes the workspace vNetPeering.
|
|
@@ -2884,11 +3078,13 @@ class VNetPeeringImpl {
|
|
|
2884
3078
|
}
|
|
2885
3079
|
};
|
|
2886
3080
|
});
|
|
2887
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, peeringName, options }, deleteOperationSpec
|
|
2888
|
-
|
|
3081
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, peeringName, options }, deleteOperationSpec);
|
|
3082
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2889
3083
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2890
3084
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2891
3085
|
});
|
|
3086
|
+
yield poller.poll();
|
|
3087
|
+
return poller;
|
|
2892
3088
|
});
|
|
2893
3089
|
}
|
|
2894
3090
|
/**
|
|
@@ -2942,11 +3138,13 @@ class VNetPeeringImpl {
|
|
|
2942
3138
|
peeringName,
|
|
2943
3139
|
virtualNetworkPeeringParameters,
|
|
2944
3140
|
options
|
|
2945
|
-
}, createOrUpdateOperationSpec
|
|
2946
|
-
|
|
3141
|
+
}, createOrUpdateOperationSpec);
|
|
3142
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2947
3143
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2948
3144
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2949
3145
|
});
|
|
3146
|
+
yield poller.poll();
|
|
3147
|
+
return poller;
|
|
2950
3148
|
});
|
|
2951
3149
|
}
|
|
2952
3150
|
/**
|
|
@@ -2984,8 +3182,8 @@ class VNetPeeringImpl {
|
|
|
2984
3182
|
}
|
|
2985
3183
|
}
|
|
2986
3184
|
// Operation Specifications
|
|
2987
|
-
const serializer
|
|
2988
|
-
const getOperationSpec
|
|
3185
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3186
|
+
const getOperationSpec = {
|
|
2989
3187
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
2990
3188
|
httpMethod: "GET",
|
|
2991
3189
|
responses: {
|
|
@@ -3006,9 +3204,9 @@ const getOperationSpec$3 = {
|
|
|
3006
3204
|
peeringName
|
|
3007
3205
|
],
|
|
3008
3206
|
headerParameters: [accept],
|
|
3009
|
-
serializer
|
|
3207
|
+
serializer
|
|
3010
3208
|
};
|
|
3011
|
-
const deleteOperationSpec
|
|
3209
|
+
const deleteOperationSpec = {
|
|
3012
3210
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3013
3211
|
httpMethod: "DELETE",
|
|
3014
3212
|
responses: {
|
|
@@ -3029,9 +3227,9 @@ const deleteOperationSpec$2 = {
|
|
|
3029
3227
|
peeringName
|
|
3030
3228
|
],
|
|
3031
3229
|
headerParameters: [accept],
|
|
3032
|
-
serializer
|
|
3230
|
+
serializer
|
|
3033
3231
|
};
|
|
3034
|
-
const createOrUpdateOperationSpec
|
|
3232
|
+
const createOrUpdateOperationSpec = {
|
|
3035
3233
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3036
3234
|
httpMethod: "PUT",
|
|
3037
3235
|
responses: {
|
|
@@ -3062,7 +3260,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
3062
3260
|
],
|
|
3063
3261
|
headerParameters: [accept, contentType],
|
|
3064
3262
|
mediaType: "json",
|
|
3065
|
-
serializer
|
|
3263
|
+
serializer
|
|
3066
3264
|
};
|
|
3067
3265
|
const listByWorkspaceOperationSpec = {
|
|
3068
3266
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings",
|
|
@@ -3083,7 +3281,7 @@ const listByWorkspaceOperationSpec = {
|
|
|
3083
3281
|
subscriptionId
|
|
3084
3282
|
],
|
|
3085
3283
|
headerParameters: [accept],
|
|
3086
|
-
serializer
|
|
3284
|
+
serializer
|
|
3087
3285
|
};
|
|
3088
3286
|
const listByWorkspaceNextOperationSpec = {
|
|
3089
3287
|
path: "{nextLink}",
|
|
@@ -3105,7 +3303,7 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3105
3303
|
nextLink
|
|
3106
3304
|
],
|
|
3107
3305
|
headerParameters: [accept],
|
|
3108
|
-
serializer
|
|
3306
|
+
serializer
|
|
3109
3307
|
};
|
|
3110
3308
|
|
|
3111
3309
|
/*
|
|
@@ -3115,7 +3313,7 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3115
3313
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3116
3314
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3117
3315
|
*/
|
|
3118
|
-
class AzureDatabricksManagementClient extends
|
|
3316
|
+
class AzureDatabricksManagementClient extends coreClient__namespace.ServiceClient {
|
|
3119
3317
|
/**
|
|
3120
3318
|
* Initializes a new instance of the AzureDatabricksManagementClient class.
|
|
3121
3319
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -3123,6 +3321,7 @@ class AzureDatabricksManagementClient extends coreClient.ServiceClient {
|
|
|
3123
3321
|
* @param options The parameter options
|
|
3124
3322
|
*/
|
|
3125
3323
|
constructor(credentials, subscriptionId, options) {
|
|
3324
|
+
var _a, _b, _c;
|
|
3126
3325
|
if (credentials === undefined) {
|
|
3127
3326
|
throw new Error("'credentials' cannot be null");
|
|
3128
3327
|
}
|
|
@@ -3137,17 +3336,35 @@ class AzureDatabricksManagementClient extends coreClient.ServiceClient {
|
|
|
3137
3336
|
requestContentType: "application/json; charset=utf-8",
|
|
3138
3337
|
credential: credentials
|
|
3139
3338
|
};
|
|
3140
|
-
const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.
|
|
3339
|
+
const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.4`;
|
|
3141
3340
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3142
3341
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3143
3342
|
: `${packageDetails}`;
|
|
3144
|
-
if (!options.credentialScopes) {
|
|
3145
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
3146
|
-
}
|
|
3147
3343
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3148
3344
|
userAgentPrefix
|
|
3149
|
-
},
|
|
3345
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3150
3346
|
super(optionsWithDefaults);
|
|
3347
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
3348
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3349
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3350
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3351
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3352
|
+
}
|
|
3353
|
+
if (!options ||
|
|
3354
|
+
!options.pipeline ||
|
|
3355
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3356
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
3357
|
+
this.pipeline.removePolicy({
|
|
3358
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3359
|
+
});
|
|
3360
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3361
|
+
credential: credentials,
|
|
3362
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3363
|
+
challengeCallbacks: {
|
|
3364
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3365
|
+
}
|
|
3366
|
+
}));
|
|
3367
|
+
}
|
|
3151
3368
|
// Parameter assignments
|
|
3152
3369
|
this.subscriptionId = subscriptionId;
|
|
3153
3370
|
// Assigning values to Constant parameters
|
|
@@ -3159,8 +3376,37 @@ class AzureDatabricksManagementClient extends coreClient.ServiceClient {
|
|
|
3159
3376
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
3160
3377
|
this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl(this);
|
|
3161
3378
|
this.vNetPeering = new VNetPeeringImpl(this);
|
|
3379
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3380
|
+
}
|
|
3381
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
3382
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
3383
|
+
if (!apiVersion) {
|
|
3384
|
+
return;
|
|
3385
|
+
}
|
|
3386
|
+
const apiVersionPolicy = {
|
|
3387
|
+
name: "CustomApiVersionPolicy",
|
|
3388
|
+
sendRequest(request, next) {
|
|
3389
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3390
|
+
const param = request.url.split("?");
|
|
3391
|
+
if (param.length > 1) {
|
|
3392
|
+
const newParams = param[1].split("&").map((item) => {
|
|
3393
|
+
if (item.indexOf("api-version") > -1) {
|
|
3394
|
+
return "api-version=" + apiVersion;
|
|
3395
|
+
}
|
|
3396
|
+
else {
|
|
3397
|
+
return item;
|
|
3398
|
+
}
|
|
3399
|
+
});
|
|
3400
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
3401
|
+
}
|
|
3402
|
+
return next(request);
|
|
3403
|
+
});
|
|
3404
|
+
}
|
|
3405
|
+
};
|
|
3406
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
3162
3407
|
}
|
|
3163
3408
|
}
|
|
3164
3409
|
|
|
3165
3410
|
exports.AzureDatabricksManagementClient = AzureDatabricksManagementClient;
|
|
3411
|
+
exports.getContinuationToken = getContinuationToken;
|
|
3166
3412
|
//# sourceMappingURL=index.js.map
|