@databricks/sdk-uc-connections 0.27.0 → 0.35.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/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +37 -33
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +159 -200
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -7
- package/dist/v1/index.js +4 -7
- package/dist/v1/model.d.ts +246 -243
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +227 -265
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/package.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/dist/v1/client.d.ts
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { ConnectionInfo, CreateConnectionRequest, DeleteConnectionRequest, DeleteConnectionResponse, GetConnectionRequest, ListConnectionsRequest, ListConnectionsResponse, UpdateConnectionRequest } from "./model.js";
|
|
2
|
+
import { CallOptions } from "@databricks/sdk-options/call";
|
|
3
|
+
import { ClientOptions } from "@databricks/sdk-options/client";
|
|
4
|
+
|
|
5
|
+
//#region src/v1/client.d.ts
|
|
6
|
+
declare class ConnectionsClient {
|
|
7
|
+
private readonly options;
|
|
8
|
+
private readonly logger;
|
|
9
|
+
private readonly userAgent;
|
|
10
|
+
private config;
|
|
11
|
+
constructor(options: ClientOptions);
|
|
12
|
+
private resolveConfig;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new connection
|
|
15
|
+
*
|
|
16
|
+
* Creates a new connection to an external data source. It allows users to specify connection details and
|
|
17
|
+
* configurations for interaction with the external server.
|
|
18
|
+
*/
|
|
19
|
+
createConnection(req: CreateConnectionRequest, options?: CallOptions): Promise<ConnectionInfo>;
|
|
20
|
+
/** Deletes the connection that matches the supplied name. */
|
|
21
|
+
deleteConnection(req: DeleteConnectionRequest, options?: CallOptions): Promise<DeleteConnectionResponse>;
|
|
22
|
+
/** Gets a connection from it's name. */
|
|
23
|
+
getConnection(req: GetConnectionRequest, options?: CallOptions): Promise<ConnectionInfo>;
|
|
24
|
+
/**
|
|
25
|
+
* List all connections.
|
|
26
|
+
*
|
|
27
|
+
* NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.
|
|
28
|
+
*
|
|
29
|
+
* PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token.
|
|
30
|
+
* Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
|
|
31
|
+
*/
|
|
32
|
+
listConnections(req: ListConnectionsRequest, options?: CallOptions): Promise<ListConnectionsResponse>;
|
|
33
|
+
listConnectionsIter(req: ListConnectionsRequest, options?: CallOptions): AsyncGenerator<ConnectionInfo>;
|
|
34
|
+
/** Updates the connection that matches the supplied name. */
|
|
35
|
+
updateConnection(req: UpdateConnectionRequest, options?: CallOptions): Promise<ConnectionInfo>;
|
|
34
36
|
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ConnectionsClient };
|
|
35
39
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/v1/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v1/client.ts"],"mappings":";;;;;cA0Ca,iBAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAaI;;;;;;EAFN,gBAAA,CACJ,GAAA,EAAK,uBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,cAAA;EAyDJ;EA9BD,gBAAA,CACJ,GAAA,EAAK,uBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,wBAAA;EA6BA;EAHL,aAAA,CACJ,GAAA,EAAK,oBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,cAAA;EAkCJ;;;;;;;;EADD,eAAA,CACJ,GAAA,EAAK,sBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;EAqCJ,mBAAA,CACL,GAAA,EAAK,sBAAA,EACL,OAAA,GAAU,WAAA,GACT,cAAA,CAAe,cAAA;EAkBP;EAHL,gBAAA,CACJ,GAAA,EAAK,uBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,cAAA;AAAA"}
|
package/dist/v1/client.js
CHANGED
|
@@ -1,203 +1,162 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { resolveClientConfig } from "./transport.js";
|
|
2
|
+
import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse } from "./utils.js";
|
|
3
|
+
import { name, version } from "../package.js";
|
|
4
|
+
import { marshalCreateConnectionRequestSchema, marshalUpdateConnectionRequestSchema, unmarshalConnectionInfoSchema, unmarshalDeleteConnectionResponseSchema, unmarshalListConnectionsResponseSchema } from "./model.js";
|
|
5
|
+
import { VERSION } from "@databricks/sdk-auth";
|
|
6
|
+
import { createDefault } from "@databricks/sdk-core/clientinfo";
|
|
7
|
+
import { NoOpLogger } from "@databricks/sdk-core/logger";
|
|
8
|
+
|
|
9
|
+
//#region src/v1/client.ts
|
|
10
10
|
const PACKAGE_SEGMENT = {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
key: "sdk-js-" + name.replace(/^@[^/]+\/sdk-/, ""),
|
|
12
|
+
value: version
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
async *listConnectionsIter(req, options) {
|
|
164
|
-
const pageReq = { ...req };
|
|
165
|
-
for (;;) {
|
|
166
|
-
const resp = await this.listConnections(pageReq, options);
|
|
167
|
-
for (const item of resp.connections ?? []) {
|
|
168
|
-
yield item;
|
|
169
|
-
}
|
|
170
|
-
if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
pageReq.pageToken = resp.nextPageToken;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
/** Updates the connection that matches the supplied name. */
|
|
177
|
-
async updateConnection(req, options) {
|
|
178
|
-
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
179
|
-
const url = `${host}/api/2.1/unity-catalog/connections/${req.nameArg ?? ''}`;
|
|
180
|
-
const body = marshalRequest(req, marshalUpdateConnectionRequestSchema);
|
|
181
|
-
let resp;
|
|
182
|
-
const call = async (callSignal) => {
|
|
183
|
-
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
184
|
-
if (workspaceId !== undefined) {
|
|
185
|
-
headers.set('X-Databricks-Workspace-Id', workspaceId);
|
|
186
|
-
}
|
|
187
|
-
headers.set('User-Agent', this.userAgent);
|
|
188
|
-
const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);
|
|
189
|
-
const respBody = await executeHttpCall({
|
|
190
|
-
request: httpReq,
|
|
191
|
-
httpClient,
|
|
192
|
-
logger: this.logger,
|
|
193
|
-
});
|
|
194
|
-
resp = parseResponse(respBody, unmarshalConnectionInfoSchema);
|
|
195
|
-
};
|
|
196
|
-
await executeCall(call, options);
|
|
197
|
-
if (resp === undefined) {
|
|
198
|
-
throw new Error('operation completed without a result.');
|
|
199
|
-
}
|
|
200
|
-
return resp;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
14
|
+
var ConnectionsClient = class {
|
|
15
|
+
options;
|
|
16
|
+
logger;
|
|
17
|
+
userAgent;
|
|
18
|
+
config;
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this.options = options;
|
|
21
|
+
this.logger = options.logger ?? new NoOpLogger();
|
|
22
|
+
this.userAgent = createDefault().with(PACKAGE_SEGMENT).with({
|
|
23
|
+
key: "sdk-js-auth",
|
|
24
|
+
value: VERSION
|
|
25
|
+
}).with({
|
|
26
|
+
key: "auth",
|
|
27
|
+
value: options.credentials?.name() ?? "default"
|
|
28
|
+
}).toString();
|
|
29
|
+
}
|
|
30
|
+
resolveConfig() {
|
|
31
|
+
this.config ??= resolveClientConfig(this.options);
|
|
32
|
+
return this.config;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new connection
|
|
36
|
+
*
|
|
37
|
+
* Creates a new connection to an external data source. It allows users to specify connection details and
|
|
38
|
+
* configurations for interaction with the external server.
|
|
39
|
+
*/
|
|
40
|
+
async createConnection(req, options) {
|
|
41
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
42
|
+
const url = `${host}/api/2.1/unity-catalog/connections`;
|
|
43
|
+
const body = marshalRequest(req, marshalCreateConnectionRequestSchema);
|
|
44
|
+
let resp;
|
|
45
|
+
const call = async (callSignal) => {
|
|
46
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
47
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
48
|
+
headers.set("User-Agent", this.userAgent);
|
|
49
|
+
resp = parseResponse(await executeHttpCall({
|
|
50
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
51
|
+
httpClient,
|
|
52
|
+
logger: this.logger
|
|
53
|
+
}), unmarshalConnectionInfoSchema);
|
|
54
|
+
};
|
|
55
|
+
await executeCall(call, options);
|
|
56
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
57
|
+
return resp;
|
|
58
|
+
}
|
|
59
|
+
/** Deletes the connection that matches the supplied name. */
|
|
60
|
+
async deleteConnection(req, options) {
|
|
61
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
62
|
+
const url = `${host}/api/2.1/unity-catalog/connections/${req.nameArg ?? ""}`;
|
|
63
|
+
let resp;
|
|
64
|
+
const call = async (callSignal) => {
|
|
65
|
+
const headers = new Headers();
|
|
66
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
67
|
+
headers.set("User-Agent", this.userAgent);
|
|
68
|
+
resp = parseResponse(await executeHttpCall({
|
|
69
|
+
request: buildHttpRequest("DELETE", url, headers, callSignal),
|
|
70
|
+
httpClient,
|
|
71
|
+
logger: this.logger
|
|
72
|
+
}), unmarshalDeleteConnectionResponseSchema);
|
|
73
|
+
};
|
|
74
|
+
await executeCall(call, options);
|
|
75
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
76
|
+
return resp;
|
|
77
|
+
}
|
|
78
|
+
/** Gets a connection from it's name. */
|
|
79
|
+
async getConnection(req, options) {
|
|
80
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
81
|
+
const url = `${host}/api/2.1/unity-catalog/connections/${req.nameArg ?? ""}`;
|
|
82
|
+
let resp;
|
|
83
|
+
const call = async (callSignal) => {
|
|
84
|
+
const headers = new Headers();
|
|
85
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
86
|
+
headers.set("User-Agent", this.userAgent);
|
|
87
|
+
resp = parseResponse(await executeHttpCall({
|
|
88
|
+
request: buildHttpRequest("GET", url, headers, callSignal),
|
|
89
|
+
httpClient,
|
|
90
|
+
logger: this.logger
|
|
91
|
+
}), unmarshalConnectionInfoSchema);
|
|
92
|
+
};
|
|
93
|
+
await executeCall(call, options);
|
|
94
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
95
|
+
return resp;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* List all connections.
|
|
99
|
+
*
|
|
100
|
+
* NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.
|
|
101
|
+
*
|
|
102
|
+
* PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token.
|
|
103
|
+
* Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
|
|
104
|
+
*/
|
|
105
|
+
async listConnections(req, options) {
|
|
106
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
107
|
+
const url = `${host}/api/2.1/unity-catalog/connections`;
|
|
108
|
+
const params = new URLSearchParams();
|
|
109
|
+
if (req.maxResults !== void 0) params.append("max_results", String(req.maxResults));
|
|
110
|
+
if (req.pageToken !== void 0) params.append("page_token", req.pageToken);
|
|
111
|
+
if (req.parent !== void 0) params.append("parent", req.parent);
|
|
112
|
+
const query = params.toString();
|
|
113
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
114
|
+
let resp;
|
|
115
|
+
const call = async (callSignal) => {
|
|
116
|
+
const headers = new Headers();
|
|
117
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
118
|
+
headers.set("User-Agent", this.userAgent);
|
|
119
|
+
resp = parseResponse(await executeHttpCall({
|
|
120
|
+
request: buildHttpRequest("GET", fullUrl, headers, callSignal),
|
|
121
|
+
httpClient,
|
|
122
|
+
logger: this.logger
|
|
123
|
+
}), unmarshalListConnectionsResponseSchema);
|
|
124
|
+
};
|
|
125
|
+
await executeCall(call, options);
|
|
126
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
127
|
+
return resp;
|
|
128
|
+
}
|
|
129
|
+
async *listConnectionsIter(req, options) {
|
|
130
|
+
const pageReq = { ...req };
|
|
131
|
+
for (;;) {
|
|
132
|
+
const resp = await this.listConnections(pageReq, options);
|
|
133
|
+
for (const item of resp.connections ?? []) yield item;
|
|
134
|
+
if (resp.nextPageToken === void 0 || resp.nextPageToken === "") return;
|
|
135
|
+
pageReq.pageToken = resp.nextPageToken;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/** Updates the connection that matches the supplied name. */
|
|
139
|
+
async updateConnection(req, options) {
|
|
140
|
+
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
141
|
+
const url = `${host}/api/2.1/unity-catalog/connections/${req.nameArg ?? ""}`;
|
|
142
|
+
const body = marshalRequest(req, marshalUpdateConnectionRequestSchema);
|
|
143
|
+
let resp;
|
|
144
|
+
const call = async (callSignal) => {
|
|
145
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
146
|
+
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
147
|
+
headers.set("User-Agent", this.userAgent);
|
|
148
|
+
resp = parseResponse(await executeHttpCall({
|
|
149
|
+
request: buildHttpRequest("PATCH", url, headers, callSignal, body),
|
|
150
|
+
httpClient,
|
|
151
|
+
logger: this.logger
|
|
152
|
+
}), unmarshalConnectionInfoSchema);
|
|
153
|
+
};
|
|
154
|
+
await executeCall(call, options);
|
|
155
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
156
|
+
return resp;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
//#endregion
|
|
161
|
+
export { ConnectionsClient };
|
|
203
162
|
//# sourceMappingURL=client.js.map
|
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,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,EACd,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,OAAO,MAAM,oBAAoB,CAAC,OAAM,IAAI,EAAE,MAAM,EAAC,CAAC;AAW7D,OAAO,EACL,oCAAoC,EACpC,oCAAoC,EACpC,6BAA6B,EAC7B,uCAAuC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C,OAAO,EAAE,OAAO;gBAChB,UAAU;gBACV,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;YACH,IAAI,GAAG,aAAa,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAC;QAChE,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"}
|
|
1
|
+
{"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n ConnectionInfo,\n CreateConnectionRequest,\n DeleteConnectionRequest,\n DeleteConnectionResponse,\n GetConnectionRequest,\n ListConnectionsRequest,\n ListConnectionsResponse,\n UpdateConnectionRequest,\n} from './model';\nimport {\n marshalCreateConnectionRequestSchema,\n marshalUpdateConnectionRequestSchema,\n unmarshalConnectionInfoSchema,\n unmarshalDeleteConnectionResponseSchema,\n unmarshalListConnectionsResponseSchema,\n} from './model';\n\n// Package identity segment for this client to be used in the User-Agent header.\nconst PACKAGE_SEGMENT = {\n key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\\/sdk-/, ''),\n value: pkgJson.version,\n};\n\nexport class ConnectionsClient {\n private readonly options: ClientOptions;\n private readonly logger: Logger;\n // User-Agent header value. Composed once at construction from\n // createDefault() merged with this package's identity and the active\n // credential's name.\n private readonly userAgent: string;\n // Memoized configuration. The profile is resolved once, lazily, on the first\n // request, then reused; host, workspaceId/accountId, and credentials are\n // filled from it when not set explicitly on the options.\n private config: Promise<ResolvedClientConfig> | undefined;\n\n constructor(options: ClientOptions) {\n this.options = options;\n this.logger = options.logger ?? new NoOpLogger();\n const info = createDefault()\n .with(PACKAGE_SEGMENT)\n .with({key: 'sdk-js-auth', value: AUTH_VERSION})\n .with({key: 'auth', value: options.credentials?.name() ?? 'default'});\n this.userAgent = info.toString();\n }\n\n private resolveConfig(): Promise<ResolvedClientConfig> {\n this.config ??= resolveClientConfig(this.options);\n return this.config;\n }\n\n /**\n * Creates a new connection\n *\n * Creates a new connection to an external data source. It allows users to specify connection details and\n * configurations for interaction with the external server.\n */\n async createConnection(\n req: CreateConnectionRequest,\n options?: CallOptions\n ): Promise<ConnectionInfo> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/unity-catalog/connections`;\n const body = marshalRequest(req, marshalCreateConnectionRequestSchema);\n let resp: ConnectionInfo | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalConnectionInfoSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Deletes the connection that matches the supplied name. */\n async deleteConnection(\n req: DeleteConnectionRequest,\n options?: CallOptions\n ): Promise<DeleteConnectionResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/unity-catalog/connections/${req.nameArg ?? ''}`;\n let resp: DeleteConnectionResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalDeleteConnectionResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a connection from it's name. */\n async getConnection(\n req: GetConnectionRequest,\n options?: CallOptions\n ): Promise<ConnectionInfo> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/unity-catalog/connections/${req.nameArg ?? ''}`;\n let resp: ConnectionInfo | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalConnectionInfoSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * List all connections.\n *\n * NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.\n *\n * PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token.\n * Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.\n */\n async listConnections(\n req: ListConnectionsRequest,\n options?: CallOptions\n ): Promise<ListConnectionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/unity-catalog/connections`;\n const params = new URLSearchParams();\n if (req.maxResults !== undefined) {\n params.append('max_results', String(req.maxResults));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.parent !== undefined) {\n params.append('parent', req.parent);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListConnectionsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListConnectionsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listConnectionsIter(\n req: ListConnectionsRequest,\n options?: CallOptions\n ): AsyncGenerator<ConnectionInfo> {\n const pageReq: ListConnectionsRequest = {...req};\n for (;;) {\n const resp = await this.listConnections(pageReq, options);\n for (const item of resp.connections ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates the connection that matches the supplied name. */\n async updateConnection(\n req: UpdateConnectionRequest,\n options?: CallOptions\n ): Promise<ConnectionInfo> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/unity-catalog/connections/${req.nameArg ?? ''}`;\n const body = marshalRequest(req, marshalUpdateConnectionRequestSchema);\n let resp: ConnectionInfo | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalConnectionInfoSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n}\n"],"mappings":";;;;;;;;;AAqCA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,oBAAb,MAA+B;CAC7B,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;;;;;;CASd,MAAM,iBACJ,KACA,SACyB;EACzB,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK;EACpB,MAAM,OAAO,eAAe,KAAK,qCAAqC;EACtE,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,OAAI,gBAAgB,OAClB,SAAQ,IAAI,6BAA6B,YAAY;AAEvD,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,QAAQ,KAAK,SAAS,YAAY,KAAK;IAGtE;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,8BAA8B;;AAE/D,QAAM,YAAY,MAAM,Q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IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,OAAI,gBAAgB,OAClB,SAAQ,IAAI,6BAA6B,YAAY;AAEvD,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,SAAS,KAAK,SAAS,YAAY,KAAK;IAGvE;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,8BAA8B;;AAE/D,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { ConnectionsClient } from './client';
|
|
5
|
-
export { ConnectionType, CredentialType, SecurableType, ProvisioningInfo_State, } from './model';
|
|
6
|
-
export type { ConnectionInfo, CreateConnectionRequest, DeleteConnectionRequest, DeleteConnectionResponse, EnvironmentSettings, GetConnectionRequest, ListConnectionsRequest, ListConnectionsResponse, ProvisioningInfo, UpdateConnectionRequest, } from './model';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { ConnectionInfo, ConnectionType, CreateConnectionRequest, CredentialType, DeleteConnectionRequest, DeleteConnectionResponse, EnvironmentSettings, GetConnectionRequest, ListConnectionsRequest, ListConnectionsResponse, ProvisioningInfo, ProvisioningInfo_State, SecurableType, UpdateConnectionRequest } from "./model.js";
|
|
2
|
+
import { ConnectionsClient } from "./client.js";
|
|
3
|
+
export { type ConnectionInfo, ConnectionType, ConnectionsClient, type CreateConnectionRequest, CredentialType, type DeleteConnectionRequest, type DeleteConnectionResponse, type EnvironmentSettings, type GetConnectionRequest, type ListConnectionsRequest, type ListConnectionsResponse, type ProvisioningInfo, ProvisioningInfo_State, SecurableType, type UpdateConnectionRequest };
|
package/dist/v1/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { ConnectionsClient } from './client';
|
|
6
|
-
export { ConnectionType, CredentialType, SecurableType, ProvisioningInfo_State, } from './model';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { ConnectionType, CredentialType, ProvisioningInfo_State, SecurableType } from "./model.js";
|
|
2
|
+
import { ConnectionsClient } from "./client.js";
|
|
3
|
+
|
|
4
|
+
export { ConnectionType, ConnectionsClient, CredentialType, ProvisioningInfo_State, SecurableType };
|