@azure/arm-databricks 3.0.0-beta.2 → 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 +2 -2
- package/LICENSE +1 -1
- package/README.md +12 -1
- package/dist/index.js +143 -68
- 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 +40 -14
- 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/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,9 +3,31 @@
|
|
|
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
|
|
|
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
|
+
|
|
9
31
|
/*
|
|
10
32
|
* Copyright (c) Microsoft Corporation.
|
|
11
33
|
* Licensed under the MIT License.
|
|
@@ -13,15 +35,21 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
35
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
36
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
37
|
*/
|
|
38
|
+
/** Known values of {@link CustomParameterType} that the service accepts. */
|
|
39
|
+
exports.KnownCustomParameterType = void 0;
|
|
16
40
|
(function (KnownCustomParameterType) {
|
|
17
41
|
KnownCustomParameterType["Bool"] = "Bool";
|
|
18
42
|
KnownCustomParameterType["Object"] = "Object";
|
|
19
43
|
KnownCustomParameterType["String"] = "String";
|
|
20
44
|
})(exports.KnownCustomParameterType || (exports.KnownCustomParameterType = {}));
|
|
45
|
+
/** Known values of {@link KeySource} that the service accepts. */
|
|
46
|
+
exports.KnownKeySource = void 0;
|
|
21
47
|
(function (KnownKeySource) {
|
|
22
48
|
KnownKeySource["Default"] = "Default";
|
|
23
49
|
KnownKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
|
|
24
50
|
})(exports.KnownKeySource || (exports.KnownKeySource = {}));
|
|
51
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
52
|
+
exports.KnownProvisioningState = void 0;
|
|
25
53
|
(function (KnownProvisioningState) {
|
|
26
54
|
KnownProvisioningState["Accepted"] = "Accepted";
|
|
27
55
|
KnownProvisioningState["Running"] = "Running";
|
|
@@ -35,15 +63,21 @@ var coreLro = require('@azure/core-lro');
|
|
|
35
63
|
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
36
64
|
KnownProvisioningState["Updating"] = "Updating";
|
|
37
65
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
66
|
+
/** Known values of {@link EncryptionKeySource} that the service accepts. */
|
|
67
|
+
exports.KnownEncryptionKeySource = void 0;
|
|
38
68
|
(function (KnownEncryptionKeySource) {
|
|
39
69
|
KnownEncryptionKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
|
|
40
70
|
})(exports.KnownEncryptionKeySource || (exports.KnownEncryptionKeySource = {}));
|
|
71
|
+
/** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
|
|
72
|
+
exports.KnownPrivateLinkServiceConnectionStatus = void 0;
|
|
41
73
|
(function (KnownPrivateLinkServiceConnectionStatus) {
|
|
42
74
|
KnownPrivateLinkServiceConnectionStatus["Pending"] = "Pending";
|
|
43
75
|
KnownPrivateLinkServiceConnectionStatus["Approved"] = "Approved";
|
|
44
76
|
KnownPrivateLinkServiceConnectionStatus["Rejected"] = "Rejected";
|
|
45
77
|
KnownPrivateLinkServiceConnectionStatus["Disconnected"] = "Disconnected";
|
|
46
78
|
})(exports.KnownPrivateLinkServiceConnectionStatus || (exports.KnownPrivateLinkServiceConnectionStatus = {}));
|
|
79
|
+
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
80
|
+
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
47
81
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
48
82
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
49
83
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
@@ -51,26 +85,36 @@ var coreLro = require('@azure/core-lro');
|
|
|
51
85
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
52
86
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
53
87
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
88
|
+
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
89
|
+
exports.KnownPublicNetworkAccess = void 0;
|
|
54
90
|
(function (KnownPublicNetworkAccess) {
|
|
55
91
|
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
56
92
|
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
57
93
|
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
94
|
+
/** Known values of {@link RequiredNsgRules} that the service accepts. */
|
|
95
|
+
exports.KnownRequiredNsgRules = void 0;
|
|
58
96
|
(function (KnownRequiredNsgRules) {
|
|
59
97
|
KnownRequiredNsgRules["AllRules"] = "AllRules";
|
|
60
98
|
KnownRequiredNsgRules["NoAzureDatabricksRules"] = "NoAzureDatabricksRules";
|
|
61
99
|
KnownRequiredNsgRules["NoAzureServiceRules"] = "NoAzureServiceRules";
|
|
62
100
|
})(exports.KnownRequiredNsgRules || (exports.KnownRequiredNsgRules = {}));
|
|
101
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
102
|
+
exports.KnownCreatedByType = void 0;
|
|
63
103
|
(function (KnownCreatedByType) {
|
|
64
104
|
KnownCreatedByType["User"] = "User";
|
|
65
105
|
KnownCreatedByType["Application"] = "Application";
|
|
66
106
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
67
107
|
KnownCreatedByType["Key"] = "Key";
|
|
68
108
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
109
|
+
/** Known values of {@link PeeringState} that the service accepts. */
|
|
110
|
+
exports.KnownPeeringState = void 0;
|
|
69
111
|
(function (KnownPeeringState) {
|
|
70
112
|
KnownPeeringState["Initiated"] = "Initiated";
|
|
71
113
|
KnownPeeringState["Connected"] = "Connected";
|
|
72
114
|
KnownPeeringState["Disconnected"] = "Disconnected";
|
|
73
115
|
})(exports.KnownPeeringState || (exports.KnownPeeringState = {}));
|
|
116
|
+
/** Known values of {@link PeeringProvisioningState} that the service accepts. */
|
|
117
|
+
exports.KnownPeeringProvisioningState = void 0;
|
|
74
118
|
(function (KnownPeeringProvisioningState) {
|
|
75
119
|
KnownPeeringProvisioningState["Succeeded"] = "Succeeded";
|
|
76
120
|
KnownPeeringProvisioningState["Updating"] = "Updating";
|
|
@@ -1719,7 +1763,7 @@ class WorkspacesImpl {
|
|
|
1719
1763
|
* @param options The options parameters.
|
|
1720
1764
|
*/
|
|
1721
1765
|
get(resourceGroupName, workspaceName, options) {
|
|
1722
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
|
|
1766
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$3);
|
|
1723
1767
|
}
|
|
1724
1768
|
/**
|
|
1725
1769
|
* Deletes the workspace.
|
|
@@ -1751,11 +1795,13 @@ class WorkspacesImpl {
|
|
|
1751
1795
|
}
|
|
1752
1796
|
};
|
|
1753
1797
|
});
|
|
1754
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec);
|
|
1755
|
-
|
|
1798
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec$2);
|
|
1799
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1756
1800
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1757
1801
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1758
1802
|
});
|
|
1803
|
+
yield poller.poll();
|
|
1804
|
+
return poller;
|
|
1759
1805
|
});
|
|
1760
1806
|
}
|
|
1761
1807
|
/**
|
|
@@ -1801,11 +1847,13 @@ class WorkspacesImpl {
|
|
|
1801
1847
|
}
|
|
1802
1848
|
};
|
|
1803
1849
|
});
|
|
1804
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec);
|
|
1805
|
-
|
|
1850
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
1851
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1806
1852
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1807
1853
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1808
1854
|
});
|
|
1855
|
+
yield poller.poll();
|
|
1856
|
+
return poller;
|
|
1809
1857
|
});
|
|
1810
1858
|
}
|
|
1811
1859
|
/**
|
|
@@ -1853,10 +1901,12 @@ class WorkspacesImpl {
|
|
|
1853
1901
|
};
|
|
1854
1902
|
});
|
|
1855
1903
|
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
|
|
1856
|
-
|
|
1904
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
1857
1905
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1858
1906
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1859
1907
|
});
|
|
1908
|
+
yield poller.poll();
|
|
1909
|
+
return poller;
|
|
1860
1910
|
});
|
|
1861
1911
|
}
|
|
1862
1912
|
/**
|
|
@@ -1906,8 +1956,8 @@ class WorkspacesImpl {
|
|
|
1906
1956
|
}
|
|
1907
1957
|
}
|
|
1908
1958
|
// Operation Specifications
|
|
1909
|
-
const serializer =
|
|
1910
|
-
const getOperationSpec = {
|
|
1959
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1960
|
+
const getOperationSpec$3 = {
|
|
1911
1961
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
1912
1962
|
httpMethod: "GET",
|
|
1913
1963
|
responses: {
|
|
@@ -1926,9 +1976,9 @@ const getOperationSpec = {
|
|
|
1926
1976
|
subscriptionId
|
|
1927
1977
|
],
|
|
1928
1978
|
headerParameters: [accept],
|
|
1929
|
-
serializer
|
|
1979
|
+
serializer: serializer$5
|
|
1930
1980
|
};
|
|
1931
|
-
const deleteOperationSpec = {
|
|
1981
|
+
const deleteOperationSpec$2 = {
|
|
1932
1982
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
1933
1983
|
httpMethod: "DELETE",
|
|
1934
1984
|
responses: {
|
|
@@ -1948,9 +1998,9 @@ const deleteOperationSpec = {
|
|
|
1948
1998
|
subscriptionId
|
|
1949
1999
|
],
|
|
1950
2000
|
headerParameters: [accept],
|
|
1951
|
-
serializer
|
|
2001
|
+
serializer: serializer$5
|
|
1952
2002
|
};
|
|
1953
|
-
const createOrUpdateOperationSpec = {
|
|
2003
|
+
const createOrUpdateOperationSpec$1 = {
|
|
1954
2004
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
1955
2005
|
httpMethod: "PUT",
|
|
1956
2006
|
responses: {
|
|
@@ -1980,7 +2030,7 @@ const createOrUpdateOperationSpec = {
|
|
|
1980
2030
|
],
|
|
1981
2031
|
headerParameters: [accept, contentType],
|
|
1982
2032
|
mediaType: "json",
|
|
1983
|
-
serializer
|
|
2033
|
+
serializer: serializer$5
|
|
1984
2034
|
};
|
|
1985
2035
|
const updateOperationSpec = {
|
|
1986
2036
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
|
|
@@ -2012,7 +2062,7 @@ const updateOperationSpec = {
|
|
|
2012
2062
|
],
|
|
2013
2063
|
headerParameters: [accept, contentType],
|
|
2014
2064
|
mediaType: "json",
|
|
2015
|
-
serializer
|
|
2065
|
+
serializer: serializer$5
|
|
2016
2066
|
};
|
|
2017
2067
|
const listByResourceGroupOperationSpec = {
|
|
2018
2068
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
|
|
@@ -2032,7 +2082,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
2032
2082
|
subscriptionId
|
|
2033
2083
|
],
|
|
2034
2084
|
headerParameters: [accept],
|
|
2035
|
-
serializer
|
|
2085
|
+
serializer: serializer$5
|
|
2036
2086
|
};
|
|
2037
2087
|
const listBySubscriptionOperationSpec = {
|
|
2038
2088
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
|
|
@@ -2048,7 +2098,7 @@ const listBySubscriptionOperationSpec = {
|
|
|
2048
2098
|
queryParameters: [apiVersion],
|
|
2049
2099
|
urlParameters: [$host, subscriptionId],
|
|
2050
2100
|
headerParameters: [accept],
|
|
2051
|
-
serializer
|
|
2101
|
+
serializer: serializer$5
|
|
2052
2102
|
};
|
|
2053
2103
|
const listByResourceGroupNextOperationSpec = {
|
|
2054
2104
|
path: "{nextLink}",
|
|
@@ -2069,7 +2119,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2069
2119
|
nextLink
|
|
2070
2120
|
],
|
|
2071
2121
|
headerParameters: [accept],
|
|
2072
|
-
serializer
|
|
2122
|
+
serializer: serializer$5
|
|
2073
2123
|
};
|
|
2074
2124
|
const listBySubscriptionNextOperationSpec = {
|
|
2075
2125
|
path: "{nextLink}",
|
|
@@ -2089,7 +2139,7 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
2089
2139
|
nextLink
|
|
2090
2140
|
],
|
|
2091
2141
|
headerParameters: [accept],
|
|
2092
|
-
serializer
|
|
2142
|
+
serializer: serializer$5
|
|
2093
2143
|
};
|
|
2094
2144
|
|
|
2095
2145
|
/*
|
|
@@ -2162,7 +2212,7 @@ class OperationsImpl {
|
|
|
2162
2212
|
* @param options The options parameters.
|
|
2163
2213
|
*/
|
|
2164
2214
|
_list(options) {
|
|
2165
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2215
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
2166
2216
|
}
|
|
2167
2217
|
/**
|
|
2168
2218
|
* ListNext
|
|
@@ -2170,12 +2220,12 @@ class OperationsImpl {
|
|
|
2170
2220
|
* @param options The options parameters.
|
|
2171
2221
|
*/
|
|
2172
2222
|
_listNext(nextLink, options) {
|
|
2173
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2223
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
2174
2224
|
}
|
|
2175
2225
|
}
|
|
2176
2226
|
// Operation Specifications
|
|
2177
|
-
const serializer$
|
|
2178
|
-
const listOperationSpec = {
|
|
2227
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2228
|
+
const listOperationSpec$3 = {
|
|
2179
2229
|
path: "/providers/Microsoft.Databricks/operations",
|
|
2180
2230
|
httpMethod: "GET",
|
|
2181
2231
|
responses: {
|
|
@@ -2189,9 +2239,9 @@ const listOperationSpec = {
|
|
|
2189
2239
|
queryParameters: [apiVersion],
|
|
2190
2240
|
urlParameters: [$host],
|
|
2191
2241
|
headerParameters: [accept],
|
|
2192
|
-
serializer: serializer$
|
|
2242
|
+
serializer: serializer$4
|
|
2193
2243
|
};
|
|
2194
|
-
const listNextOperationSpec = {
|
|
2244
|
+
const listNextOperationSpec$2 = {
|
|
2195
2245
|
path: "{nextLink}",
|
|
2196
2246
|
httpMethod: "GET",
|
|
2197
2247
|
responses: {
|
|
@@ -2205,7 +2255,7 @@ const listNextOperationSpec = {
|
|
|
2205
2255
|
queryParameters: [apiVersion],
|
|
2206
2256
|
urlParameters: [$host, nextLink],
|
|
2207
2257
|
headerParameters: [accept],
|
|
2208
|
-
serializer: serializer$
|
|
2258
|
+
serializer: serializer$4
|
|
2209
2259
|
};
|
|
2210
2260
|
|
|
2211
2261
|
/*
|
|
@@ -2282,7 +2332,7 @@ class PrivateLinkResourcesImpl {
|
|
|
2282
2332
|
* @param options The options parameters.
|
|
2283
2333
|
*/
|
|
2284
2334
|
_list(resourceGroupName, workspaceName, options) {
|
|
2285
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$
|
|
2335
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$2);
|
|
2286
2336
|
}
|
|
2287
2337
|
/**
|
|
2288
2338
|
* Get the specified private link resource for the given group id (sub-resource)
|
|
@@ -2292,7 +2342,7 @@ class PrivateLinkResourcesImpl {
|
|
|
2292
2342
|
* @param options The options parameters.
|
|
2293
2343
|
*/
|
|
2294
2344
|
get(resourceGroupName, workspaceName, groupId, options) {
|
|
2295
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$
|
|
2345
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$2);
|
|
2296
2346
|
}
|
|
2297
2347
|
/**
|
|
2298
2348
|
* ListNext
|
|
@@ -2306,8 +2356,8 @@ class PrivateLinkResourcesImpl {
|
|
|
2306
2356
|
}
|
|
2307
2357
|
}
|
|
2308
2358
|
// Operation Specifications
|
|
2309
|
-
const serializer$
|
|
2310
|
-
const listOperationSpec$
|
|
2359
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2360
|
+
const listOperationSpec$2 = {
|
|
2311
2361
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
|
|
2312
2362
|
httpMethod: "GET",
|
|
2313
2363
|
responses: {
|
|
@@ -2326,9 +2376,9 @@ const listOperationSpec$1 = {
|
|
|
2326
2376
|
subscriptionId
|
|
2327
2377
|
],
|
|
2328
2378
|
headerParameters: [accept],
|
|
2329
|
-
serializer: serializer$
|
|
2379
|
+
serializer: serializer$3
|
|
2330
2380
|
};
|
|
2331
|
-
const getOperationSpec$
|
|
2381
|
+
const getOperationSpec$2 = {
|
|
2332
2382
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
|
|
2333
2383
|
httpMethod: "GET",
|
|
2334
2384
|
responses: {
|
|
@@ -2348,7 +2398,7 @@ const getOperationSpec$1 = {
|
|
|
2348
2398
|
groupId
|
|
2349
2399
|
],
|
|
2350
2400
|
headerParameters: [accept],
|
|
2351
|
-
serializer: serializer$
|
|
2401
|
+
serializer: serializer$3
|
|
2352
2402
|
};
|
|
2353
2403
|
const listNextOperationSpec$1 = {
|
|
2354
2404
|
path: "{nextLink}",
|
|
@@ -2370,7 +2420,7 @@ const listNextOperationSpec$1 = {
|
|
|
2370
2420
|
nextLink
|
|
2371
2421
|
],
|
|
2372
2422
|
headerParameters: [accept],
|
|
2373
|
-
serializer: serializer$
|
|
2423
|
+
serializer: serializer$3
|
|
2374
2424
|
};
|
|
2375
2425
|
|
|
2376
2426
|
/*
|
|
@@ -2447,7 +2497,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2447
2497
|
* @param options The options parameters.
|
|
2448
2498
|
*/
|
|
2449
2499
|
_list(resourceGroupName, workspaceName, options) {
|
|
2450
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$
|
|
2500
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$1);
|
|
2451
2501
|
}
|
|
2452
2502
|
/**
|
|
2453
2503
|
* Get a private endpoint connection properties for a workspace
|
|
@@ -2462,7 +2512,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2462
2512
|
workspaceName,
|
|
2463
2513
|
privateEndpointConnectionName,
|
|
2464
2514
|
options
|
|
2465
|
-
}, getOperationSpec$
|
|
2515
|
+
}, getOperationSpec$1);
|
|
2466
2516
|
}
|
|
2467
2517
|
/**
|
|
2468
2518
|
* Update the status of a private endpoint connection with the specified name
|
|
@@ -2503,10 +2553,12 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2503
2553
|
privateEndpointConnection,
|
|
2504
2554
|
options
|
|
2505
2555
|
}, createOperationSpec);
|
|
2506
|
-
|
|
2556
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2507
2557
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2508
2558
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2509
2559
|
});
|
|
2560
|
+
yield poller.poll();
|
|
2561
|
+
return poller;
|
|
2510
2562
|
});
|
|
2511
2563
|
}
|
|
2512
2564
|
/**
|
|
@@ -2560,10 +2612,12 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2560
2612
|
privateEndpointConnectionName,
|
|
2561
2613
|
options
|
|
2562
2614
|
}, deleteOperationSpec$1);
|
|
2563
|
-
|
|
2615
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2564
2616
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2565
2617
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2566
2618
|
});
|
|
2619
|
+
yield poller.poll();
|
|
2620
|
+
return poller;
|
|
2567
2621
|
});
|
|
2568
2622
|
}
|
|
2569
2623
|
/**
|
|
@@ -2587,12 +2641,12 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2587
2641
|
* @param options The options parameters.
|
|
2588
2642
|
*/
|
|
2589
2643
|
_listNext(resourceGroupName, workspaceName, nextLink, options) {
|
|
2590
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec
|
|
2644
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec);
|
|
2591
2645
|
}
|
|
2592
2646
|
}
|
|
2593
2647
|
// Operation Specifications
|
|
2594
|
-
const serializer$
|
|
2595
|
-
const listOperationSpec$
|
|
2648
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2649
|
+
const listOperationSpec$1 = {
|
|
2596
2650
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections",
|
|
2597
2651
|
httpMethod: "GET",
|
|
2598
2652
|
responses: {
|
|
@@ -2611,9 +2665,9 @@ const listOperationSpec$2 = {
|
|
|
2611
2665
|
subscriptionId
|
|
2612
2666
|
],
|
|
2613
2667
|
headerParameters: [accept],
|
|
2614
|
-
serializer: serializer$
|
|
2668
|
+
serializer: serializer$2
|
|
2615
2669
|
};
|
|
2616
|
-
const getOperationSpec$
|
|
2670
|
+
const getOperationSpec$1 = {
|
|
2617
2671
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2618
2672
|
httpMethod: "GET",
|
|
2619
2673
|
responses: {
|
|
@@ -2633,7 +2687,7 @@ const getOperationSpec$2 = {
|
|
|
2633
2687
|
privateEndpointConnectionName
|
|
2634
2688
|
],
|
|
2635
2689
|
headerParameters: [accept],
|
|
2636
|
-
serializer: serializer$
|
|
2690
|
+
serializer: serializer$2
|
|
2637
2691
|
};
|
|
2638
2692
|
const createOperationSpec = {
|
|
2639
2693
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -2666,7 +2720,7 @@ const createOperationSpec = {
|
|
|
2666
2720
|
],
|
|
2667
2721
|
headerParameters: [accept, contentType],
|
|
2668
2722
|
mediaType: "json",
|
|
2669
|
-
serializer: serializer$
|
|
2723
|
+
serializer: serializer$2
|
|
2670
2724
|
};
|
|
2671
2725
|
const deleteOperationSpec$1 = {
|
|
2672
2726
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
@@ -2689,9 +2743,9 @@ const deleteOperationSpec$1 = {
|
|
|
2689
2743
|
privateEndpointConnectionName
|
|
2690
2744
|
],
|
|
2691
2745
|
headerParameters: [accept],
|
|
2692
|
-
serializer: serializer$
|
|
2746
|
+
serializer: serializer$2
|
|
2693
2747
|
};
|
|
2694
|
-
const listNextOperationSpec
|
|
2748
|
+
const listNextOperationSpec = {
|
|
2695
2749
|
path: "{nextLink}",
|
|
2696
2750
|
httpMethod: "GET",
|
|
2697
2751
|
responses: {
|
|
@@ -2711,7 +2765,7 @@ const listNextOperationSpec$2 = {
|
|
|
2711
2765
|
nextLink
|
|
2712
2766
|
],
|
|
2713
2767
|
headerParameters: [accept],
|
|
2714
|
-
serializer: serializer$
|
|
2768
|
+
serializer: serializer$2
|
|
2715
2769
|
};
|
|
2716
2770
|
|
|
2717
2771
|
/*
|
|
@@ -2739,12 +2793,12 @@ class OutboundNetworkDependenciesEndpointsImpl {
|
|
|
2739
2793
|
* @param options The options parameters.
|
|
2740
2794
|
*/
|
|
2741
2795
|
list(resourceGroupName, workspaceName, options) {
|
|
2742
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec
|
|
2796
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec);
|
|
2743
2797
|
}
|
|
2744
2798
|
}
|
|
2745
2799
|
// Operation Specifications
|
|
2746
|
-
const serializer$
|
|
2747
|
-
const listOperationSpec
|
|
2800
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2801
|
+
const listOperationSpec = {
|
|
2748
2802
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints",
|
|
2749
2803
|
httpMethod: "GET",
|
|
2750
2804
|
responses: {
|
|
@@ -2773,7 +2827,7 @@ const listOperationSpec$3 = {
|
|
|
2773
2827
|
subscriptionId
|
|
2774
2828
|
],
|
|
2775
2829
|
headerParameters: [accept],
|
|
2776
|
-
serializer: serializer$
|
|
2830
|
+
serializer: serializer$1
|
|
2777
2831
|
};
|
|
2778
2832
|
|
|
2779
2833
|
/*
|
|
@@ -2851,7 +2905,7 @@ class VNetPeeringImpl {
|
|
|
2851
2905
|
* @param options The options parameters.
|
|
2852
2906
|
*/
|
|
2853
2907
|
get(resourceGroupName, workspaceName, peeringName, options) {
|
|
2854
|
-
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec
|
|
2908
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec);
|
|
2855
2909
|
}
|
|
2856
2910
|
/**
|
|
2857
2911
|
* Deletes the workspace vNetPeering.
|
|
@@ -2884,11 +2938,13 @@ class VNetPeeringImpl {
|
|
|
2884
2938
|
}
|
|
2885
2939
|
};
|
|
2886
2940
|
});
|
|
2887
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, peeringName, options }, deleteOperationSpec
|
|
2888
|
-
|
|
2941
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, peeringName, options }, deleteOperationSpec);
|
|
2942
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2889
2943
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2890
2944
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2891
2945
|
});
|
|
2946
|
+
yield poller.poll();
|
|
2947
|
+
return poller;
|
|
2892
2948
|
});
|
|
2893
2949
|
}
|
|
2894
2950
|
/**
|
|
@@ -2942,11 +2998,13 @@ class VNetPeeringImpl {
|
|
|
2942
2998
|
peeringName,
|
|
2943
2999
|
virtualNetworkPeeringParameters,
|
|
2944
3000
|
options
|
|
2945
|
-
}, createOrUpdateOperationSpec
|
|
2946
|
-
|
|
3001
|
+
}, createOrUpdateOperationSpec);
|
|
3002
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
2947
3003
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2948
3004
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2949
3005
|
});
|
|
3006
|
+
yield poller.poll();
|
|
3007
|
+
return poller;
|
|
2950
3008
|
});
|
|
2951
3009
|
}
|
|
2952
3010
|
/**
|
|
@@ -2984,8 +3042,8 @@ class VNetPeeringImpl {
|
|
|
2984
3042
|
}
|
|
2985
3043
|
}
|
|
2986
3044
|
// Operation Specifications
|
|
2987
|
-
const serializer
|
|
2988
|
-
const getOperationSpec
|
|
3045
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3046
|
+
const getOperationSpec = {
|
|
2989
3047
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
2990
3048
|
httpMethod: "GET",
|
|
2991
3049
|
responses: {
|
|
@@ -3006,9 +3064,9 @@ const getOperationSpec$3 = {
|
|
|
3006
3064
|
peeringName
|
|
3007
3065
|
],
|
|
3008
3066
|
headerParameters: [accept],
|
|
3009
|
-
serializer
|
|
3067
|
+
serializer
|
|
3010
3068
|
};
|
|
3011
|
-
const deleteOperationSpec
|
|
3069
|
+
const deleteOperationSpec = {
|
|
3012
3070
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3013
3071
|
httpMethod: "DELETE",
|
|
3014
3072
|
responses: {
|
|
@@ -3029,9 +3087,9 @@ const deleteOperationSpec$2 = {
|
|
|
3029
3087
|
peeringName
|
|
3030
3088
|
],
|
|
3031
3089
|
headerParameters: [accept],
|
|
3032
|
-
serializer
|
|
3090
|
+
serializer
|
|
3033
3091
|
};
|
|
3034
|
-
const createOrUpdateOperationSpec
|
|
3092
|
+
const createOrUpdateOperationSpec = {
|
|
3035
3093
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
|
|
3036
3094
|
httpMethod: "PUT",
|
|
3037
3095
|
responses: {
|
|
@@ -3062,7 +3120,7 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
3062
3120
|
],
|
|
3063
3121
|
headerParameters: [accept, contentType],
|
|
3064
3122
|
mediaType: "json",
|
|
3065
|
-
serializer
|
|
3123
|
+
serializer
|
|
3066
3124
|
};
|
|
3067
3125
|
const listByWorkspaceOperationSpec = {
|
|
3068
3126
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings",
|
|
@@ -3083,7 +3141,7 @@ const listByWorkspaceOperationSpec = {
|
|
|
3083
3141
|
subscriptionId
|
|
3084
3142
|
],
|
|
3085
3143
|
headerParameters: [accept],
|
|
3086
|
-
serializer
|
|
3144
|
+
serializer
|
|
3087
3145
|
};
|
|
3088
3146
|
const listByWorkspaceNextOperationSpec = {
|
|
3089
3147
|
path: "{nextLink}",
|
|
@@ -3105,7 +3163,7 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3105
3163
|
nextLink
|
|
3106
3164
|
],
|
|
3107
3165
|
headerParameters: [accept],
|
|
3108
|
-
serializer
|
|
3166
|
+
serializer
|
|
3109
3167
|
};
|
|
3110
3168
|
|
|
3111
3169
|
/*
|
|
@@ -3115,7 +3173,7 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
3115
3173
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3116
3174
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3117
3175
|
*/
|
|
3118
|
-
class AzureDatabricksManagementClient extends
|
|
3176
|
+
class AzureDatabricksManagementClient extends coreClient__namespace.ServiceClient {
|
|
3119
3177
|
/**
|
|
3120
3178
|
* Initializes a new instance of the AzureDatabricksManagementClient class.
|
|
3121
3179
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -3123,6 +3181,7 @@ class AzureDatabricksManagementClient extends coreClient.ServiceClient {
|
|
|
3123
3181
|
* @param options The parameter options
|
|
3124
3182
|
*/
|
|
3125
3183
|
constructor(credentials, subscriptionId, options) {
|
|
3184
|
+
var _a, _b;
|
|
3126
3185
|
if (credentials === undefined) {
|
|
3127
3186
|
throw new Error("'credentials' cannot be null");
|
|
3128
3187
|
}
|
|
@@ -3137,7 +3196,7 @@ class AzureDatabricksManagementClient extends coreClient.ServiceClient {
|
|
|
3137
3196
|
requestContentType: "application/json; charset=utf-8",
|
|
3138
3197
|
credential: credentials
|
|
3139
3198
|
};
|
|
3140
|
-
const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.
|
|
3199
|
+
const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.3`;
|
|
3141
3200
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3142
3201
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3143
3202
|
: `${packageDetails}`;
|
|
@@ -3146,8 +3205,24 @@ class AzureDatabricksManagementClient extends coreClient.ServiceClient {
|
|
|
3146
3205
|
}
|
|
3147
3206
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3148
3207
|
userAgentPrefix
|
|
3149
|
-
}, 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" });
|
|
3150
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
|
+
}
|
|
3151
3226
|
// Parameter assignments
|
|
3152
3227
|
this.subscriptionId = subscriptionId;
|
|
3153
3228
|
// Assigning values to Constant parameters
|