@databricks/sdk-uc-externallocations 0.1.0-dev.4 → 0.2.0
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/README.md +23 -0
- package/dist/v1/client.d.ts +3 -3
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +36 -33
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/transport.d.ts +30 -2
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +33 -16
- package/dist/v1/transport.js.map +1 -1
- package/package.json +9 -4
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @databricks/sdk-uc-externallocations
|
|
2
|
+
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
>
|
|
5
|
+
> ## Beta
|
|
6
|
+
>
|
|
7
|
+
> **This SDK is in Beta and is supported for production use cases.** Interfaces might still change slightly before GA (e.g. name standardization and minor ergonomic tweaks). We are keen to hear feedback from early adopters — please [file issues](https://github.com/databricks/sdk-js/issues), and we will address them.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @databricks/sdk-uc-externallocations
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {ExternalLocationsClient} from '@databricks/sdk-uc-externallocations/v1';
|
|
19
|
+
|
|
20
|
+
const client = new ExternalLocationsClient({});
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
For a full getting-started guide, see the [root README](../../../README.md).
|
package/dist/v1/client.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import type { CallOptions } from '@databricks/sdk-options/call';
|
|
|
2
2
|
import type { ClientOptions } from '@databricks/sdk-options/client';
|
|
3
3
|
import type { CreateExternalLocationRequest, DeleteExternalLocationRequest, DeleteExternalLocationResponse, ExternalLocationInfo, GetExternalLocationRequest, ListExternalLocationsRequest, ListExternalLocationsResponse, UpdateExternalLocationRequest } from './model';
|
|
4
4
|
export declare class ExternalLocationsClient {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly workspaceId;
|
|
7
|
-
private readonly httpClient;
|
|
5
|
+
private readonly options;
|
|
8
6
|
private readonly logger;
|
|
9
7
|
private readonly userAgent;
|
|
8
|
+
private config;
|
|
10
9
|
constructor(options: ClientOptions);
|
|
10
|
+
private resolveConfig;
|
|
11
11
|
/**
|
|
12
12
|
* Creates a new external location entry in the metastore.
|
|
13
13
|
* The caller must be a metastore admin or have the **CREATE_EXTERNAL_LOCATION** privilege on both the metastore and the associated storage credential.
|
package/dist/v1/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAWlE,OAAO,KAAK,EACV,6BAA6B,EAC7B,6BAA6B,EAC7B,8BAA8B,EAC9B,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAejB,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAWlE,OAAO,KAAK,EACV,6BAA6B,EAC7B,6BAA6B,EAC7B,8BAA8B,EAC9B,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAejB,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAIhC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IAInC,OAAO,CAAC,MAAM,CAA4C;gBAE9C,OAAO,EAAE,aAAa;IAUlC,OAAO,CAAC,aAAa;IAKrB;;;OAGG;IACG,sBAAsB,CAC1B,GAAG,EAAE,6BAA6B,EAClC,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,oBAAoB,CAAC;IA6BhC,yHAAyH;IACnH,sBAAsB,CAC1B,GAAG,EAAE,6BAA6B,EAClC,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,8BAA8B,CAAC;IAkC1C;;;OAGG;IACG,mBAAmB,CACvB,GAAG,EAAE,0BAA0B,EAC/B,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,oBAAoB,CAAC;IA+BhC;;;;;;;;;OASG;IACG,qBAAqB,CACzB,GAAG,EAAE,4BAA4B,EACjC,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,6BAA6B,CAAC;IA2ClC,yBAAyB,CAC9B,GAAG,EAAE,4BAA4B,EACjC,OAAO,CAAC,EAAE,WAAW,GACpB,cAAc,CAAC,oBAAoB,CAAC;IAcvC;;;OAGG;IACG,sBAAsB,CAC1B,GAAG,EAAE,6BAA6B,EAClC,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,oBAAoB,CAAC;CA4BjC"}
|
package/dist/v1/client.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { VERSION as AUTH_VERSION } from '@databricks/sdk-auth';
|
|
3
3
|
import { createDefault } from '@databricks/sdk-core/clientinfo';
|
|
4
4
|
import { NoOpLogger } from '@databricks/sdk-core/logger';
|
|
5
|
-
import {
|
|
5
|
+
import { resolveClientConfig } from './transport';
|
|
6
6
|
import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse, } from './utils';
|
|
7
7
|
import pkgJson from '../../package.json' with { type: 'json' };
|
|
8
8
|
import { marshalCreateExternalLocationRequestSchema, marshalUpdateExternalLocationRequestSchema, unmarshalDeleteExternalLocationResponseSchema, unmarshalExternalLocationInfoSchema, unmarshalListExternalLocationsResponseSchema, } from './model';
|
|
@@ -12,49 +12,48 @@ const PACKAGE_SEGMENT = {
|
|
|
12
12
|
value: pkgJson.version,
|
|
13
13
|
};
|
|
14
14
|
export class ExternalLocationsClient {
|
|
15
|
-
|
|
16
|
-
// Workspace ID used to route workspace-level calls on unified hosts (SPOG).
|
|
17
|
-
// When set, workspace-level methods send X-Databricks-Org-Id on every
|
|
18
|
-
// request.
|
|
19
|
-
workspaceId;
|
|
20
|
-
httpClient;
|
|
15
|
+
options;
|
|
21
16
|
logger;
|
|
22
17
|
// User-Agent header value. Composed once at construction from
|
|
23
18
|
// createDefault() merged with this package's identity and the active
|
|
24
19
|
// credential's name.
|
|
25
20
|
userAgent;
|
|
21
|
+
// Memoized configuration. The profile is resolved once, lazily, on the first
|
|
22
|
+
// request, then reused; host, workspaceId/accountId, and credentials are
|
|
23
|
+
// filled from it when not set explicitly on the options.
|
|
24
|
+
config;
|
|
26
25
|
constructor(options) {
|
|
27
|
-
|
|
28
|
-
throw new Error('Host is required.');
|
|
29
|
-
}
|
|
30
|
-
this.host = options.host.replace(/\/$/, '');
|
|
31
|
-
this.workspaceId = options.workspaceId;
|
|
26
|
+
this.options = options;
|
|
32
27
|
this.logger = options.logger ?? new NoOpLogger();
|
|
33
28
|
const info = createDefault()
|
|
34
29
|
.with(PACKAGE_SEGMENT)
|
|
35
30
|
.with({ key: 'sdk-js-auth', value: AUTH_VERSION })
|
|
36
31
|
.with({ key: 'auth', value: options.credentials?.name() ?? 'default' });
|
|
37
32
|
this.userAgent = info.toString();
|
|
38
|
-
|
|
33
|
+
}
|
|
34
|
+
resolveConfig() {
|
|
35
|
+
this.config ??= resolveClientConfig(this.options);
|
|
36
|
+
return this.config;
|
|
39
37
|
}
|
|
40
38
|
/**
|
|
41
39
|
* Creates a new external location entry in the metastore.
|
|
42
40
|
* The caller must be a metastore admin or have the **CREATE_EXTERNAL_LOCATION** privilege on both the metastore and the associated storage credential.
|
|
43
41
|
*/
|
|
44
42
|
async createExternalLocation(req, options) {
|
|
45
|
-
const
|
|
43
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
44
|
+
const url = `${host}/api/2.1/unity-catalog/external-locations`;
|
|
46
45
|
const body = marshalRequest(req, marshalCreateExternalLocationRequestSchema);
|
|
47
46
|
let resp;
|
|
48
47
|
const call = async (callSignal) => {
|
|
49
48
|
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
50
|
-
if (
|
|
51
|
-
headers.set('X-Databricks-Org-Id',
|
|
49
|
+
if (workspaceId !== undefined) {
|
|
50
|
+
headers.set('X-Databricks-Org-Id', workspaceId);
|
|
52
51
|
}
|
|
53
52
|
headers.set('User-Agent', this.userAgent);
|
|
54
53
|
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
55
54
|
const respBody = await executeHttpCall({
|
|
56
55
|
request: httpReq,
|
|
57
|
-
httpClient
|
|
56
|
+
httpClient,
|
|
58
57
|
logger: this.logger,
|
|
59
58
|
});
|
|
60
59
|
resp = parseResponse(respBody, unmarshalExternalLocationInfoSchema);
|
|
@@ -67,7 +66,8 @@ export class ExternalLocationsClient {
|
|
|
67
66
|
}
|
|
68
67
|
/** Deletes the specified external location from the metastore. The caller must be the owner of the external location. */
|
|
69
68
|
async deleteExternalLocation(req, options) {
|
|
70
|
-
const
|
|
69
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
70
|
+
const url = `${host}/api/2.1/unity-catalog/external-locations/${req.nameArg ?? ''}`;
|
|
71
71
|
const params = new URLSearchParams();
|
|
72
72
|
if (req.force !== undefined) {
|
|
73
73
|
params.append('force', String(req.force));
|
|
@@ -77,14 +77,14 @@ export class ExternalLocationsClient {
|
|
|
77
77
|
let resp;
|
|
78
78
|
const call = async (callSignal) => {
|
|
79
79
|
const headers = new Headers();
|
|
80
|
-
if (
|
|
81
|
-
headers.set('X-Databricks-Org-Id',
|
|
80
|
+
if (workspaceId !== undefined) {
|
|
81
|
+
headers.set('X-Databricks-Org-Id', workspaceId);
|
|
82
82
|
}
|
|
83
83
|
headers.set('User-Agent', this.userAgent);
|
|
84
84
|
const httpReq = buildHttpRequest('DELETE', fullUrl, headers, callSignal);
|
|
85
85
|
const respBody = await executeHttpCall({
|
|
86
86
|
request: httpReq,
|
|
87
|
-
httpClient
|
|
87
|
+
httpClient,
|
|
88
88
|
logger: this.logger,
|
|
89
89
|
});
|
|
90
90
|
resp = parseResponse(respBody, unmarshalDeleteExternalLocationResponseSchema);
|
|
@@ -100,7 +100,8 @@ export class ExternalLocationsClient {
|
|
|
100
100
|
* The caller must be either a metastore admin, the owner of the external location, or a user that has some privilege on the external location.
|
|
101
101
|
*/
|
|
102
102
|
async getExternalLocation(req, options) {
|
|
103
|
-
const
|
|
103
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
104
|
+
const url = `${host}/api/2.1/unity-catalog/external-locations/${req.nameArg ?? ''}`;
|
|
104
105
|
const params = new URLSearchParams();
|
|
105
106
|
if (req.includeBrowse !== undefined) {
|
|
106
107
|
params.append('include_browse', String(req.includeBrowse));
|
|
@@ -110,14 +111,14 @@ export class ExternalLocationsClient {
|
|
|
110
111
|
let resp;
|
|
111
112
|
const call = async (callSignal) => {
|
|
112
113
|
const headers = new Headers();
|
|
113
|
-
if (
|
|
114
|
-
headers.set('X-Databricks-Org-Id',
|
|
114
|
+
if (workspaceId !== undefined) {
|
|
115
|
+
headers.set('X-Databricks-Org-Id', workspaceId);
|
|
115
116
|
}
|
|
116
117
|
headers.set('User-Agent', this.userAgent);
|
|
117
118
|
const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
|
|
118
119
|
const respBody = await executeHttpCall({
|
|
119
120
|
request: httpReq,
|
|
120
|
-
httpClient
|
|
121
|
+
httpClient,
|
|
121
122
|
logger: this.logger,
|
|
122
123
|
});
|
|
123
124
|
resp = parseResponse(respBody, unmarshalExternalLocationInfoSchema);
|
|
@@ -139,7 +140,8 @@ export class ExternalLocationsClient {
|
|
|
139
140
|
* Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
|
|
140
141
|
*/
|
|
141
142
|
async listExternalLocations(req, options) {
|
|
142
|
-
const
|
|
143
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
144
|
+
const url = `${host}/api/2.1/unity-catalog/external-locations`;
|
|
143
145
|
const params = new URLSearchParams();
|
|
144
146
|
if (req.includeBrowse !== undefined) {
|
|
145
147
|
params.append('include_browse', String(req.includeBrowse));
|
|
@@ -158,14 +160,14 @@ export class ExternalLocationsClient {
|
|
|
158
160
|
let resp;
|
|
159
161
|
const call = async (callSignal) => {
|
|
160
162
|
const headers = new Headers();
|
|
161
|
-
if (
|
|
162
|
-
headers.set('X-Databricks-Org-Id',
|
|
163
|
+
if (workspaceId !== undefined) {
|
|
164
|
+
headers.set('X-Databricks-Org-Id', workspaceId);
|
|
163
165
|
}
|
|
164
166
|
headers.set('User-Agent', this.userAgent);
|
|
165
167
|
const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
|
|
166
168
|
const respBody = await executeHttpCall({
|
|
167
169
|
request: httpReq,
|
|
168
|
-
httpClient
|
|
170
|
+
httpClient,
|
|
169
171
|
logger: this.logger,
|
|
170
172
|
});
|
|
171
173
|
resp = parseResponse(respBody, unmarshalListExternalLocationsResponseSchema);
|
|
@@ -194,19 +196,20 @@ export class ExternalLocationsClient {
|
|
|
194
196
|
* In the second case, the admin can only update the name of the external location.
|
|
195
197
|
*/
|
|
196
198
|
async updateExternalLocation(req, options) {
|
|
197
|
-
const
|
|
199
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
200
|
+
const url = `${host}/api/2.1/unity-catalog/external-locations/${req.nameArg ?? ''}`;
|
|
198
201
|
const body = marshalRequest(req, marshalUpdateExternalLocationRequestSchema);
|
|
199
202
|
let resp;
|
|
200
203
|
const call = async (callSignal) => {
|
|
201
204
|
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
202
|
-
if (
|
|
203
|
-
headers.set('X-Databricks-Org-Id',
|
|
205
|
+
if (workspaceId !== undefined) {
|
|
206
|
+
headers.set('X-Databricks-Org-Id', workspaceId);
|
|
204
207
|
}
|
|
205
208
|
headers.set('User-Agent', this.userAgent);
|
|
206
209
|
const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);
|
|
207
210
|
const respBody = await executeHttpCall({
|
|
208
211
|
request: httpReq,
|
|
209
|
-
httpClient
|
|
212
|
+
httpClient,
|
|
210
213
|
logger: this.logger,
|
|
211
214
|
});
|
|
212
215
|
resp = parseResponse(respBody, unmarshalExternalLocationInfoSchema);
|
package/dist/v1/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AAIvD,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AAIvD,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,EACd,aAAa,GACd,MAAM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mCAAmC,CAAC,CAAC;QACtE,CAAC,CAAC;QACF,MAAM,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
package/dist/v1/transport.d.ts
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
import type { HttpClient } from '@databricks/sdk-core/http';
|
|
2
2
|
import type { ClientOptions } from '@databricks/sdk-options/client';
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The configuration a client needs to issue requests, resolved from
|
|
5
|
+
* {@link ClientOptions} and a configuration profile.
|
|
6
|
+
*/
|
|
7
|
+
export interface ResolvedClientConfig {
|
|
8
|
+
/** Host with any trailing slash removed. */
|
|
9
|
+
host: string;
|
|
10
|
+
/**
|
|
11
|
+
* Default account ID for account-level paths that contain an account_id
|
|
12
|
+
* segment. A request's own accountId still wins.
|
|
13
|
+
*/
|
|
14
|
+
accountId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Workspace ID used to route workspace-level calls on unified hosts (SPOG).
|
|
17
|
+
*/
|
|
18
|
+
workspaceId?: string;
|
|
19
|
+
/** HTTP client with authentication, and any configured timeout, applied. */
|
|
20
|
+
httpClient: HttpClient;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
|
|
24
|
+
*
|
|
25
|
+
* A configuration profile is always resolved from the config file and
|
|
26
|
+
* environment variables (per options.profileOptions); it supplies host,
|
|
27
|
+
* accountId, workspaceId, and credentials wherever the caller did not set them
|
|
28
|
+
* explicitly. Explicit options always take precedence.
|
|
29
|
+
*
|
|
30
|
+
* @throws if host is neither provided nor present in the resolved profile.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
|
|
5
33
|
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EAGX,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EAGX,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,4EAA4E;IAC5E,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,oBAAoB,CAAC,CA4B/B"}
|
package/dist/v1/transport.js
CHANGED
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
2
|
import { defaultCredentials } from '@databricks/sdk-auth/credentials';
|
|
3
3
|
import { newFetchHttpClient } from '@databricks/sdk-core/http';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import { resolve } from '@databricks/sdk-core/profiles';
|
|
5
|
+
/**
|
|
6
|
+
* Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
|
|
7
|
+
*
|
|
8
|
+
* A configuration profile is always resolved from the config file and
|
|
9
|
+
* environment variables (per options.profileOptions); it supplies host,
|
|
10
|
+
* accountId, workspaceId, and credentials wherever the caller did not set them
|
|
11
|
+
* explicitly. Explicit options always take precedence.
|
|
12
|
+
*
|
|
13
|
+
* @throws if host is neither provided nor present in the resolved profile.
|
|
14
|
+
*/
|
|
15
|
+
export async function resolveClientConfig(options) {
|
|
16
|
+
const profile = await resolve(options.profileOptions);
|
|
17
|
+
const host = options.host ?? profile.host;
|
|
18
|
+
if (host === undefined) {
|
|
19
|
+
throw new Error('Host is required.');
|
|
14
20
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
// The provided httpClient (or the default fetch client) is the base wire;
|
|
22
|
+
// authentication and the optional timeout are layered on top of it. The
|
|
23
|
+
// default credential chain reuses the profile resolved above so that the
|
|
24
|
+
// same profileOptions govern host and authentication alike.
|
|
25
|
+
const base = options.httpClient ?? newFetchHttpClient();
|
|
26
|
+
const credentials = options.credentials ?? defaultCredentials({ profile });
|
|
27
|
+
let httpClient = new AuthHttpClient(base, credentials);
|
|
28
|
+
if (options.timeout !== undefined) {
|
|
29
|
+
httpClient = new TimeoutHttpClient(httpClient, options.timeout);
|
|
20
30
|
}
|
|
21
|
-
|
|
31
|
+
const accountId = options.accountId ?? profile.accountId;
|
|
32
|
+
const workspaceId = options.workspaceId ?? profile.workspaceId;
|
|
33
|
+
return {
|
|
34
|
+
host: host.replace(/\/$/, ''),
|
|
35
|
+
httpClient,
|
|
36
|
+
...(accountId !== undefined && { accountId }),
|
|
37
|
+
...(workspaceId !== undefined && { workspaceId }),
|
|
38
|
+
};
|
|
22
39
|
}
|
|
23
40
|
/** Wraps an HttpClient and adds authentication headers to requests. */
|
|
24
41
|
class AuthHttpClient {
|
package/dist/v1/transport.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAG/E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AW,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;YAClD,CAAC,CAAC,aAAa,CAAC;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,GAAG,OAAO,EAAE,MAAM,EAAC,CAAC,CAAC;IAC9C,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/sdk-uc-externallocations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,10 +27,15 @@
|
|
|
27
27
|
},
|
|
28
28
|
"author": "Databricks",
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/databricks/sdk-js.git",
|
|
33
|
+
"directory": "packages/uc/externallocations"
|
|
34
|
+
},
|
|
30
35
|
"dependencies": {
|
|
31
|
-
"@databricks/sdk-auth": ">=0.
|
|
32
|
-
"@databricks/sdk-core": ">=0.
|
|
33
|
-
"@databricks/sdk-options": ">=0.
|
|
36
|
+
"@databricks/sdk-auth": ">=0.2.0 <1.0.0",
|
|
37
|
+
"@databricks/sdk-core": ">=0.2.0 <1.0.0",
|
|
38
|
+
"@databricks/sdk-options": ">=0.2.0 <1.0.0",
|
|
34
39
|
"@js-temporal/polyfill": "^0.5.0",
|
|
35
40
|
"json-bigint": "^1.0.0",
|
|
36
41
|
"zod": "^4.3.6"
|