@azure/arm-databricks 3.0.0-alpha.20220413.1 → 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -13
- package/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/index.js +42 -9
- 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.map +1 -1
- package/dist-esm/src/azureDatabricksManagementClient.js +20 -2
- package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +6 -2
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -1
- package/dist-esm/src/operations/vNetPeering.js +6 -2
- 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 +9 -3
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/package.json +26 -10
- package/rollup.config.js +6 -72
- package/src/azureDatabricksManagementClient.ts +27 -2
- package/src/operations/privateEndpointConnections.ts +6 -2
- package/src/operations/vNetPeering.ts +6 -2
- package/src/operations/workspaces.ts +9 -3
- package/tsconfig.json +19 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
# Release History
|
|
2
|
+
|
|
3
|
+
## 3.0.0-beta.3 (2022-04-15)
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
### Features Added
|
|
6
|
-
|
|
7
|
-
### Breaking Changes
|
|
8
|
-
|
|
9
|
-
### Bugs Fixed
|
|
10
|
-
|
|
11
|
-
### Other Changes
|
|
12
|
-
|
|
13
|
-
## 3.0.0-beta.2 (2021-12-17)
|
|
14
|
-
|
|
15
|
-
The package of @azure/arm-databricks is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes.
|
|
5
|
+
The package of @azure/arm-databricks is using our next generation design principles since version 3.0.0-beta.3, which contains breaking changes.
|
|
16
6
|
|
|
17
7
|
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
18
8
|
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ The Microsoft Azure management APIs allow end users to operate on Azure Databric
|
|
|
16
16
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
17
17
|
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
18
18
|
|
|
19
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
20
|
+
|
|
19
21
|
### Prerequisites
|
|
20
22
|
|
|
21
23
|
- An [Azure subscription][azure_sub].
|
|
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
|
|
|
49
51
|
```javascript
|
|
50
52
|
const { AzureDatabricksManagementClient } = require("@azure/arm-databricks");
|
|
51
53
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
54
|
+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
55
|
+
|
|
52
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
53
57
|
const client = new AzureDatabricksManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
+
|
|
59
|
+
// For client-side applications running in the browser, use this code instead:
|
|
60
|
+
// const credential = new InteractiveBrowserCredential({
|
|
61
|
+
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
|
+
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
|
+
// });
|
|
64
|
+
// const client = new AzureDatabricksManagementClient(credential, subscriptionId);
|
|
54
65
|
```
|
|
55
66
|
|
|
56
67
|
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var tslib = require('tslib');
|
|
7
8
|
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
@@ -25,6 +26,7 @@ function _interopNamespace(e) {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
28
30
|
|
|
29
31
|
/*
|
|
30
32
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -1794,10 +1796,12 @@ class WorkspacesImpl {
|
|
|
1794
1796
|
};
|
|
1795
1797
|
});
|
|
1796
1798
|
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec$2);
|
|
1797
|
-
|
|
1799
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1798
1800
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1799
1801
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1800
1802
|
});
|
|
1803
|
+
yield poller.poll();
|
|
1804
|
+
return poller;
|
|
1801
1805
|
});
|
|
1802
1806
|
}
|
|
1803
1807
|
/**
|
|
@@ -1844,10 +1848,12 @@ class WorkspacesImpl {
|
|
|
1844
1848
|
};
|
|
1845
1849
|
});
|
|
1846
1850
|
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
1847
|
-
|
|
1851
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1848
1852
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1849
1853
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1850
1854
|
});
|
|
1855
|
+
yield poller.poll();
|
|
1856
|
+
return poller;
|
|
1851
1857
|
});
|
|
1852
1858
|
}
|
|
1853
1859
|
/**
|
|
@@ -1895,10 +1901,12 @@ class WorkspacesImpl {
|
|
|
1895
1901
|
};
|
|
1896
1902
|
});
|
|
1897
1903
|
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
|
|
1898
|
-
|
|
1904
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1899
1905
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1900
1906
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1901
1907
|
});
|
|
1908
|
+
yield poller.poll();
|
|
1909
|
+
return poller;
|
|
1902
1910
|
});
|
|
1903
1911
|
}
|
|
1904
1912
|
/**
|
|
@@ -2545,10 +2553,12 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2545
2553
|
privateEndpointConnection,
|
|
2546
2554
|
options
|
|
2547
2555
|
}, createOperationSpec);
|
|
2548
|
-
|
|
2556
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2549
2557
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2550
2558
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2551
2559
|
});
|
|
2560
|
+
yield poller.poll();
|
|
2561
|
+
return poller;
|
|
2552
2562
|
});
|
|
2553
2563
|
}
|
|
2554
2564
|
/**
|
|
@@ -2602,10 +2612,12 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2602
2612
|
privateEndpointConnectionName,
|
|
2603
2613
|
options
|
|
2604
2614
|
}, deleteOperationSpec$1);
|
|
2605
|
-
|
|
2615
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2606
2616
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2607
2617
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2608
2618
|
});
|
|
2619
|
+
yield poller.poll();
|
|
2620
|
+
return poller;
|
|
2609
2621
|
});
|
|
2610
2622
|
}
|
|
2611
2623
|
/**
|
|
@@ -2927,10 +2939,12 @@ class VNetPeeringImpl {
|
|
|
2927
2939
|
};
|
|
2928
2940
|
});
|
|
2929
2941
|
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, peeringName, options }, deleteOperationSpec);
|
|
2930
|
-
|
|
2942
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2931
2943
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2932
2944
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2933
2945
|
});
|
|
2946
|
+
yield poller.poll();
|
|
2947
|
+
return poller;
|
|
2934
2948
|
});
|
|
2935
2949
|
}
|
|
2936
2950
|
/**
|
|
@@ -2985,10 +2999,12 @@ class VNetPeeringImpl {
|
|
|
2985
2999
|
virtualNetworkPeeringParameters,
|
|
2986
3000
|
options
|
|
2987
3001
|
}, createOrUpdateOperationSpec);
|
|
2988
|
-
|
|
3002
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2989
3003
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2990
3004
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2991
3005
|
});
|
|
3006
|
+
yield poller.poll();
|
|
3007
|
+
return poller;
|
|
2992
3008
|
});
|
|
2993
3009
|
}
|
|
2994
3010
|
/**
|
|
@@ -3165,6 +3181,7 @@ class AzureDatabricksManagementClient extends coreClient__namespace.ServiceClien
|
|
|
3165
3181
|
* @param options The parameter options
|
|
3166
3182
|
*/
|
|
3167
3183
|
constructor(credentials, subscriptionId, options) {
|
|
3184
|
+
var _a, _b;
|
|
3168
3185
|
if (credentials === undefined) {
|
|
3169
3186
|
throw new Error("'credentials' cannot be null");
|
|
3170
3187
|
}
|
|
@@ -3179,7 +3196,7 @@ class AzureDatabricksManagementClient extends coreClient__namespace.ServiceClien
|
|
|
3179
3196
|
requestContentType: "application/json; charset=utf-8",
|
|
3180
3197
|
credential: credentials
|
|
3181
3198
|
};
|
|
3182
|
-
const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.
|
|
3199
|
+
const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.3`;
|
|
3183
3200
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3184
3201
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3185
3202
|
: `${packageDetails}`;
|
|
@@ -3188,8 +3205,24 @@ class AzureDatabricksManagementClient extends coreClient__namespace.ServiceClien
|
|
|
3188
3205
|
}
|
|
3189
3206
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3190
3207
|
userAgentPrefix
|
|
3191
|
-
}, baseUri: options.endpoint
|
|
3208
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3192
3209
|
super(optionsWithDefaults);
|
|
3210
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3211
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3212
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3213
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3214
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
3215
|
+
this.pipeline.removePolicy({
|
|
3216
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3217
|
+
});
|
|
3218
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3219
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
3220
|
+
challengeCallbacks: {
|
|
3221
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3222
|
+
}
|
|
3223
|
+
}));
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3193
3226
|
// Parameter assignments
|
|
3194
3227
|
this.subscriptionId = subscriptionId;
|
|
3195
3228
|
// Assigning values to Constant parameters
|