@databricks/sdk-instancepools 0.34.0 → 0.36.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.
@@ -0,0 +1,7 @@
1
+ //#region package.json
2
+ var name = "@databricks/sdk-instancepools";
3
+ var version = "0.36.0";
4
+
5
+ //#endregion
6
+ export { name, version };
7
+ //# sourceMappingURL=package.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
@@ -1,22 +1,26 @@
1
- import type { CallOptions } from '@databricks/sdk-options/call';
2
- import type { ClientOptions } from '@databricks/sdk-options/client';
3
- import type { CreateInstancePoolRequest, CreateInstancePoolResponse, DeleteInstancePoolRequest, DeleteInstancePoolResponse, EditInstancePoolRequest, EditInstancePoolResponse, GetInstancePoolRequest, GetInstancePoolResponse, ListInstancePoolsRequest, ListInstancePoolsResponse } from './model';
4
- export declare class InstancePoolsClient {
5
- private readonly options;
6
- private readonly logger;
7
- private readonly userAgent;
8
- private config;
9
- constructor(options: ClientOptions);
10
- private resolveConfig;
11
- /** Creates a new instance pool using idle and ready-to-use cloud instances. */
12
- createInstancePool(req: CreateInstancePoolRequest, options?: CallOptions): Promise<CreateInstancePoolResponse>;
13
- /** Deletes the instance pool permanently. The idle instances in the pool are terminated asynchronously. */
14
- deleteInstancePool(req: DeleteInstancePoolRequest, options?: CallOptions): Promise<DeleteInstancePoolResponse>;
15
- /** Modifies the configuration of an existing instance pool. */
16
- editInstancePool(req: EditInstancePoolRequest, options?: CallOptions): Promise<EditInstancePoolResponse>;
17
- /** Retrieve the information for an instance pool based on its identifier. */
18
- getInstancePool(req: GetInstancePoolRequest, options?: CallOptions): Promise<GetInstancePoolResponse>;
19
- /** Gets a list of instance pools with their statistics. */
20
- listInstancePools(_req: ListInstancePoolsRequest, options?: CallOptions): Promise<ListInstancePoolsResponse>;
1
+ import { CreateInstancePoolRequest, CreateInstancePoolResponse, DeleteInstancePoolRequest, DeleteInstancePoolResponse, EditInstancePoolRequest, EditInstancePoolResponse, GetInstancePoolRequest, GetInstancePoolResponse, ListInstancePoolsRequest, ListInstancePoolsResponse } from "./model.js";
2
+ import { CallOptions } from "@databricks/sdk-options/call";
3
+ import { ClientOptions } from "@databricks/sdk-options/client";
4
+
5
+ //#region src/v2/client.d.ts
6
+ declare class InstancePoolsClient {
7
+ private readonly options;
8
+ private readonly logger;
9
+ private readonly userAgent;
10
+ private config;
11
+ constructor(options: ClientOptions);
12
+ private resolveConfig;
13
+ /** Creates a new instance pool using idle and ready-to-use cloud instances. */
14
+ createInstancePool(req: CreateInstancePoolRequest, options?: CallOptions): Promise<CreateInstancePoolResponse>;
15
+ /** Deletes the instance pool permanently. The idle instances in the pool are terminated asynchronously. */
16
+ deleteInstancePool(req: DeleteInstancePoolRequest, options?: CallOptions): Promise<DeleteInstancePoolResponse>;
17
+ /** Modifies the configuration of an existing instance pool. */
18
+ editInstancePool(req: EditInstancePoolRequest, options?: CallOptions): Promise<EditInstancePoolResponse>;
19
+ /** Retrieve the information for an instance pool based on its identifier. */
20
+ getInstancePool(req: GetInstancePoolRequest, options?: CallOptions): Promise<GetInstancePoolResponse>;
21
+ /** Gets a list of instance pools with their statistics. */
22
+ listInstancePools(_req: ListInstancePoolsRequest, options?: CallOptions): Promise<ListInstancePoolsResponse>;
21
23
  }
24
+ //#endregion
25
+ export { InstancePoolsClient };
22
26
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/v2/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,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EAC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J,GAAA,EAAK,yBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,0BAAA;EADC;EA4BN,gBAAA,CACJ,GAAA,EAAK,uBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,wBAAA;EA9BR;EAyDG,eAAA,CACJ,GAAA,EAAK,sBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;EA/BC;EA+DN,iBAAA,CACJ,IAAA,EAAM,wBAAA,EACN,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,yBAAA;AAAA"}
package/dist/v2/client.js CHANGED
@@ -1,173 +1,140 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { VERSION as AUTH_VERSION } from '@databricks/sdk-auth';
3
- import { createDefault } from '@databricks/sdk-core/clientinfo';
4
- import { NoOpLogger } from '@databricks/sdk-core/logger';
5
- import { resolveClientConfig } from './transport';
6
- import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse, } from './utils';
7
- import pkgJson from '../../package.json' with { type: 'json' };
8
- import { marshalCreateInstancePoolRequestSchema, marshalDeleteInstancePoolRequestSchema, marshalEditInstancePoolRequestSchema, unmarshalCreateInstancePoolResponseSchema, unmarshalDeleteInstancePoolResponseSchema, unmarshalEditInstancePoolResponseSchema, unmarshalGetInstancePoolResponseSchema, unmarshalListInstancePoolsResponseSchema, } from './model';
9
- // Package identity segment for this client to be used in the User-Agent header.
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 { marshalCreateInstancePoolRequestSchema, marshalDeleteInstancePoolRequestSchema, marshalEditInstancePoolRequestSchema, unmarshalCreateInstancePoolResponseSchema, unmarshalDeleteInstancePoolResponseSchema, unmarshalEditInstancePoolResponseSchema, unmarshalGetInstancePoolResponseSchema, unmarshalListInstancePoolsResponseSchema } 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/v2/client.ts
10
10
  const PACKAGE_SEGMENT = {
11
- key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\/sdk-/, ''),
12
- value: pkgJson.version,
11
+ key: "sdk-js-" + name.replace(/^@[^/]+\/sdk-/, ""),
12
+ value: version
13
13
  };
14
- export class InstancePoolsClient {
15
- options;
16
- logger;
17
- // User-Agent header value. Composed once at construction from
18
- // createDefault() merged with this package's identity and the active
19
- // credential's name.
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;
25
- constructor(options) {
26
- this.options = options;
27
- this.logger = options.logger ?? new NoOpLogger();
28
- const info = createDefault()
29
- .with(PACKAGE_SEGMENT)
30
- .with({ key: 'sdk-js-auth', value: AUTH_VERSION })
31
- .with({ key: 'auth', value: options.credentials?.name() ?? 'default' });
32
- this.userAgent = info.toString();
33
- }
34
- resolveConfig() {
35
- this.config ??= resolveClientConfig(this.options);
36
- return this.config;
37
- }
38
- /** Creates a new instance pool using idle and ready-to-use cloud instances. */
39
- async createInstancePool(req, options) {
40
- const { host, workspaceId, httpClient } = await this.resolveConfig();
41
- const url = `${host}/api/2.0/instance-pools/create`;
42
- const body = marshalRequest(req, marshalCreateInstancePoolRequestSchema);
43
- let resp;
44
- const call = async (callSignal) => {
45
- const headers = new Headers({ 'Content-Type': 'application/json' });
46
- if (workspaceId !== undefined) {
47
- headers.set('X-Databricks-Workspace-Id', workspaceId);
48
- }
49
- headers.set('User-Agent', this.userAgent);
50
- const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
51
- const respBody = await executeHttpCall({
52
- request: httpReq,
53
- httpClient,
54
- logger: this.logger,
55
- });
56
- resp = parseResponse(respBody, unmarshalCreateInstancePoolResponseSchema);
57
- };
58
- await executeCall(call, options);
59
- if (resp === undefined) {
60
- throw new Error('operation completed without a result.');
61
- }
62
- return resp;
63
- }
64
- /** Deletes the instance pool permanently. The idle instances in the pool are terminated asynchronously. */
65
- async deleteInstancePool(req, options) {
66
- const { host, workspaceId, httpClient } = await this.resolveConfig();
67
- const url = `${host}/api/2.0/instance-pools/delete`;
68
- const body = marshalRequest(req, marshalDeleteInstancePoolRequestSchema);
69
- let resp;
70
- const call = async (callSignal) => {
71
- const headers = new Headers({ 'Content-Type': 'application/json' });
72
- if (workspaceId !== undefined) {
73
- headers.set('X-Databricks-Workspace-Id', workspaceId);
74
- }
75
- headers.set('User-Agent', this.userAgent);
76
- const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
77
- const respBody = await executeHttpCall({
78
- request: httpReq,
79
- httpClient,
80
- logger: this.logger,
81
- });
82
- resp = parseResponse(respBody, unmarshalDeleteInstancePoolResponseSchema);
83
- };
84
- await executeCall(call, options);
85
- if (resp === undefined) {
86
- throw new Error('operation completed without a result.');
87
- }
88
- return resp;
89
- }
90
- /** Modifies the configuration of an existing instance pool. */
91
- async editInstancePool(req, options) {
92
- const { host, workspaceId, httpClient } = await this.resolveConfig();
93
- const url = `${host}/api/2.0/instance-pools/edit`;
94
- const body = marshalRequest(req, marshalEditInstancePoolRequestSchema);
95
- let resp;
96
- const call = async (callSignal) => {
97
- const headers = new Headers({ 'Content-Type': 'application/json' });
98
- if (workspaceId !== undefined) {
99
- headers.set('X-Databricks-Workspace-Id', workspaceId);
100
- }
101
- headers.set('User-Agent', this.userAgent);
102
- const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
103
- const respBody = await executeHttpCall({
104
- request: httpReq,
105
- httpClient,
106
- logger: this.logger,
107
- });
108
- resp = parseResponse(respBody, unmarshalEditInstancePoolResponseSchema);
109
- };
110
- await executeCall(call, options);
111
- if (resp === undefined) {
112
- throw new Error('operation completed without a result.');
113
- }
114
- return resp;
115
- }
116
- /** Retrieve the information for an instance pool based on its identifier. */
117
- async getInstancePool(req, options) {
118
- const { host, workspaceId, httpClient } = await this.resolveConfig();
119
- const url = `${host}/api/2.0/instance-pools/get`;
120
- const params = new URLSearchParams();
121
- if (req.instancePoolId !== undefined) {
122
- params.append('instance_pool_id', req.instancePoolId);
123
- }
124
- const query = params.toString();
125
- const fullUrl = query !== '' ? `${url}?${query}` : url;
126
- let resp;
127
- const call = async (callSignal) => {
128
- const headers = new Headers();
129
- if (workspaceId !== undefined) {
130
- headers.set('X-Databricks-Workspace-Id', workspaceId);
131
- }
132
- headers.set('User-Agent', this.userAgent);
133
- const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
134
- const respBody = await executeHttpCall({
135
- request: httpReq,
136
- httpClient,
137
- logger: this.logger,
138
- });
139
- resp = parseResponse(respBody, unmarshalGetInstancePoolResponseSchema);
140
- };
141
- await executeCall(call, options);
142
- if (resp === undefined) {
143
- throw new Error('operation completed without a result.');
144
- }
145
- return resp;
146
- }
147
- /** Gets a list of instance pools with their statistics. */
148
- async listInstancePools(_req, options) {
149
- const { host, workspaceId, httpClient } = await this.resolveConfig();
150
- const url = `${host}/api/2.0/instance-pools/list`;
151
- let resp;
152
- const call = async (callSignal) => {
153
- const headers = new Headers();
154
- if (workspaceId !== undefined) {
155
- headers.set('X-Databricks-Workspace-Id', workspaceId);
156
- }
157
- headers.set('User-Agent', this.userAgent);
158
- const httpReq = buildHttpRequest('GET', url, headers, callSignal);
159
- const respBody = await executeHttpCall({
160
- request: httpReq,
161
- httpClient,
162
- logger: this.logger,
163
- });
164
- resp = parseResponse(respBody, unmarshalListInstancePoolsResponseSchema);
165
- };
166
- await executeCall(call, options);
167
- if (resp === undefined) {
168
- throw new Error('operation completed without a result.');
169
- }
170
- return resp;
171
- }
172
- }
14
+ var InstancePoolsClient = 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
+ /** Creates a new instance pool using idle and ready-to-use cloud instances. */
35
+ async createInstancePool(req, options) {
36
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
37
+ const url = `${host}/api/2.0/instance-pools/create`;
38
+ const body = marshalRequest(req, marshalCreateInstancePoolRequestSchema);
39
+ let resp;
40
+ const call = async (callSignal) => {
41
+ const headers = new Headers({ "Content-Type": "application/json" });
42
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
43
+ headers.set("User-Agent", this.userAgent);
44
+ resp = parseResponse(await executeHttpCall({
45
+ request: buildHttpRequest("POST", url, headers, callSignal, body),
46
+ httpClient,
47
+ logger: this.logger
48
+ }), unmarshalCreateInstancePoolResponseSchema);
49
+ };
50
+ await executeCall(call, options);
51
+ if (resp === void 0) throw new Error("operation completed without a result.");
52
+ return resp;
53
+ }
54
+ /** Deletes the instance pool permanently. The idle instances in the pool are terminated asynchronously. */
55
+ async deleteInstancePool(req, options) {
56
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
57
+ const url = `${host}/api/2.0/instance-pools/delete`;
58
+ const body = marshalRequest(req, marshalDeleteInstancePoolRequestSchema);
59
+ let resp;
60
+ const call = async (callSignal) => {
61
+ const headers = new Headers({ "Content-Type": "application/json" });
62
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
63
+ headers.set("User-Agent", this.userAgent);
64
+ resp = parseResponse(await executeHttpCall({
65
+ request: buildHttpRequest("POST", url, headers, callSignal, body),
66
+ httpClient,
67
+ logger: this.logger
68
+ }), unmarshalDeleteInstancePoolResponseSchema);
69
+ };
70
+ await executeCall(call, options);
71
+ if (resp === void 0) throw new Error("operation completed without a result.");
72
+ return resp;
73
+ }
74
+ /** Modifies the configuration of an existing instance pool. */
75
+ async editInstancePool(req, options) {
76
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
77
+ const url = `${host}/api/2.0/instance-pools/edit`;
78
+ const body = marshalRequest(req, marshalEditInstancePoolRequestSchema);
79
+ let resp;
80
+ const call = async (callSignal) => {
81
+ const headers = new Headers({ "Content-Type": "application/json" });
82
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
83
+ headers.set("User-Agent", this.userAgent);
84
+ resp = parseResponse(await executeHttpCall({
85
+ request: buildHttpRequest("POST", url, headers, callSignal, body),
86
+ httpClient,
87
+ logger: this.logger
88
+ }), unmarshalEditInstancePoolResponseSchema);
89
+ };
90
+ await executeCall(call, options);
91
+ if (resp === void 0) throw new Error("operation completed without a result.");
92
+ return resp;
93
+ }
94
+ /** Retrieve the information for an instance pool based on its identifier. */
95
+ async getInstancePool(req, options) {
96
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
97
+ const url = `${host}/api/2.0/instance-pools/get`;
98
+ const params = new URLSearchParams();
99
+ if (req.instancePoolId !== void 0) params.append("instance_pool_id", req.instancePoolId);
100
+ const query = params.toString();
101
+ const fullUrl = query !== "" ? `${url}?${query}` : url;
102
+ let resp;
103
+ const call = async (callSignal) => {
104
+ const headers = new Headers();
105
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
106
+ headers.set("User-Agent", this.userAgent);
107
+ resp = parseResponse(await executeHttpCall({
108
+ request: buildHttpRequest("GET", fullUrl, headers, callSignal),
109
+ httpClient,
110
+ logger: this.logger
111
+ }), unmarshalGetInstancePoolResponseSchema);
112
+ };
113
+ await executeCall(call, options);
114
+ if (resp === void 0) throw new Error("operation completed without a result.");
115
+ return resp;
116
+ }
117
+ /** Gets a list of instance pools with their statistics. */
118
+ async listInstancePools(_req, options) {
119
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
120
+ const url = `${host}/api/2.0/instance-pools/list`;
121
+ let resp;
122
+ const call = async (callSignal) => {
123
+ const headers = new Headers();
124
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
125
+ headers.set("User-Agent", this.userAgent);
126
+ resp = parseResponse(await executeHttpCall({
127
+ request: buildHttpRequest("GET", url, headers, callSignal),
128
+ httpClient,
129
+ logger: this.logger
130
+ }), unmarshalListInstancePoolsResponseSchema);
131
+ };
132
+ await executeCall(call, options);
133
+ if (resp === void 0) throw new Error("operation completed without a result.");
134
+ return resp;
135
+ }
136
+ };
137
+
138
+ //#endregion
139
+ export { InstancePoolsClient };
173
140
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/v2/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;AAa7D,OAAO,EACL,sCAAsC,EACtC,sCAAsC,EACtC,oCAAoC,EACpC,yCAAyC,EACzC,yCAAyC,EACzC,uCAAuC,EACvC,sCAAsC,EACtC,wCAAwC,GACzC,MAAM,SAAS,CAAC;AAEjB,gFAAgF;AAChF,MAAM,eAAe,GAAG;IACtB,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;IAC1D,KAAK,EAAE,OAAO,CAAC,OAAO;CACvB,CAAC;AAEF,M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AO,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC1C,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YAClE,MAAM,QAAQ,GAAG,MAAM,eAAe,CAAC;gBACrC,OAAO,EAAE,OAAO;gBAChB,UAAU;gBACV,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;YACH,IAAI,GAAG,aAAa,CAAC,QAAQ,EAAE,wCAAwC,CAAC,CAAC;QAC3E,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/v2/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 CreateInstancePoolRequest,\n CreateInstancePoolResponse,\n DeleteInstancePoolRequest,\n DeleteInstancePoolResponse,\n EditInstancePoolRequest,\n EditInstancePoolResponse,\n GetInstancePoolRequest,\n GetInstancePoolResponse,\n ListInstancePoolsRequest,\n ListInstancePoolsResponse,\n} from './model';\nimport {\n marshalCreateInstancePoolRequestSchema,\n marshalDeleteInstancePoolRequestSchema,\n marshalEditInstancePoolRequestSchema,\n unmarshalCreateInstancePoolResponseSchema,\n unmarshalDeleteInstancePoolResponseSchema,\n unmarshalEditInstancePoolResponseSchema,\n unmarshalGetInstancePoolResponseSchema,\n unmarshalListInstancePoolsResponseSchema,\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 InstancePoolsClient {\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 /** Creates a new instance pool using idle and ready-to-use cloud instances. */\n async createInstancePool(\n req: CreateInstancePoolRequest,\n options?: CallOptions\n ): Promise<CreateInstancePoolResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/instance-pools/create`;\n const body = marshalRequest(req, marshalCreateInstancePoolRequestSchema);\n let resp: CreateInstancePoolResponse | 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, unmarshalCreateInstancePoolResponseSchema);\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 instance pool permanently. The idle instances in the pool are terminated asynchronously. */\n async deleteInstancePool(\n req: DeleteInstancePoolRequest,\n options?: CallOptions\n ): Promise<DeleteInstancePoolResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/instance-pools/delete`;\n const body = marshalRequest(req, marshalDeleteInstancePoolRequestSchema);\n let resp: DeleteInstancePoolResponse | 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, unmarshalDeleteInstancePoolResponseSchema);\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 /** Modifies the configuration of an existing instance pool. */\n async editInstancePool(\n req: EditInstancePoolRequest,\n options?: CallOptions\n ): Promise<EditInstancePoolResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/instance-pools/edit`;\n const body = marshalRequest(req, marshalEditInstancePoolRequestSchema);\n let resp: EditInstancePoolResponse | 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, unmarshalEditInstancePoolResponseSchema);\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 /** Retrieve the information for an instance pool based on its identifier. */\n async getInstancePool(\n req: GetInstancePoolRequest,\n options?: CallOptions\n ): Promise<GetInstancePoolResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/instance-pools/get`;\n const params = new URLSearchParams();\n if (req.instancePoolId !== undefined) {\n params.append('instance_pool_id', req.instancePoolId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: GetInstancePoolResponse | 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, unmarshalGetInstancePoolResponseSchema);\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 list of instance pools with their statistics. */\n async listInstancePools(\n _req: ListInstancePoolsRequest,\n options?: CallOptions\n ): Promise<ListInstancePoolsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/instance-pools/list`;\n let resp: ListInstancePoolsResponse | 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, unmarshalListInstancePoolsResponseSchema);\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":";;;;;;;;;AA0CA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,sBAAb,MAAiC;CAC/B,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;;;CAId,MAAM,mBACJ,KACA,SACqC;EACrC,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK;EACpB,MAAM,OAAO,eAAe,KAAK,uCAAuC;EACxE,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,0CAA0C;;AAE3E,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO;;;CAIT,MAAM,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umeType, EbsVolumeType, GcpAvailability, InstancePoolState, } from './model';
6
- export type { CreateInstancePoolRequest, CreateInstancePoolResponse, DeleteInstancePoolRequest, DeleteInstancePoolResponse, DiskSpec, DiskType, DockerBasicAuth, DockerImage, EditInstancePoolRequest, EditInstancePoolResponse, GetInstancePoolRequest, GetInstancePoolResponse, InstancePoolAndStats, InstancePoolAwsAttributes, InstancePoolAzureAttributes, InstancePoolGcpAttributes, InstancePoolStats, InstancePoolStatus, ListInstancePoolsRequest, ListInstancePoolsResponse, NodeTypeFlexibility, PendingInstanceError, } from './model';
7
- //# sourceMappingURL=index.d.ts.map
1
+ import { AwsAvailability, AzureAvailability, AzureDiskVolumeType, CreateInstancePoolRequest, CreateInstancePoolResponse, DeleteInstancePoolRequest, DeleteInstancePoolResponse, DiskSpec, DiskType, DockerBasicAuth, DockerImage, EbsVolumeType, EditInstancePoolRequest, EditInstancePoolResponse, GcpAvailability, GetInstancePoolRequest, GetInstancePoolResponse, InstancePoolAndStats, InstancePoolAwsAttributes, InstancePoolAzureAttributes, InstancePoolGcpAttributes, InstancePoolState, InstancePoolStats, InstancePoolStatus, ListInstancePoolsRequest, ListInstancePoolsResponse, NodeTypeFlexibility, PendingInstanceError } from "./model.js";
2
+ import { InstancePoolsClient } from "./client.js";
3
+ export { AwsAvailability, AzureAvailability, AzureDiskVolumeType, type CreateInstancePoolRequest, type CreateInstancePoolResponse, type DeleteInstancePoolRequest, type DeleteInstancePoolResponse, type DiskSpec, type DiskType, type DockerBasicAuth, type DockerImage, EbsVolumeType, type EditInstancePoolRequest, type EditInstancePoolResponse, GcpAvailability, type GetInstancePoolRequest, type GetInstancePoolResponse, type InstancePoolAndStats, type InstancePoolAwsAttributes, type InstancePoolAzureAttributes, type InstancePoolGcpAttributes, InstancePoolState, type InstancePoolStats, type InstancePoolStatus, InstancePoolsClient, type ListInstancePoolsRequest, type ListInstancePoolsResponse, type NodeTypeFlexibility, type PendingInstanceError };
package/dist/v2/index.js CHANGED
@@ -1,7 +1,4 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- /**
3
- * @module v2
4
- */
5
- export { InstancePoolsClient } from './client';
6
- export { AwsAvailability, AzureAvailability, AzureDiskVolumeType, EbsVolumeType, GcpAvailability, InstancePoolState, } from './model';
7
- //# sourceMappingURL=index.js.map
1
+ import { AwsAvailability, AzureAvailability, AzureDiskVolumeType, EbsVolumeType, GcpAvailability, InstancePoolState } from "./model.js";
2
+ import { InstancePoolsClient } from "./client.js";
3
+
4
+ export { AwsAvailability, AzureAvailability, AzureDiskVolumeType, EbsVolumeType, GcpAvailability, InstancePoolState, InstancePoolsClient };