@databricks/sdk-budgets 0.33.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 +25 -21
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +146 -179
- 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 +231 -189
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +226 -293
- 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,23 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { BudgetConfiguration, CreateBudgetConfigurationRequest, CreateBudgetConfigurationResponse, DeleteBudgetConfigurationRequest, DeleteBudgetConfigurationResponse, GetBudgetConfigurationRequest, GetBudgetConfigurationResponse, ListBudgetConfigurationsRequest, ListBudgetConfigurationsResponse, UpdateBudgetConfigurationRequest, UpdateBudgetConfigurationResponse } 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 BudgetsClient {
|
|
7
|
+
private readonly options;
|
|
8
|
+
private readonly logger;
|
|
9
|
+
private readonly userAgent;
|
|
10
|
+
private config;
|
|
11
|
+
constructor(options: ClientOptions);
|
|
12
|
+
private resolveConfig;
|
|
13
|
+
/** Create a new budget configuration for an account. For full details, see https://docs.databricks.com/en/admin/account-settings/budgets.html. */
|
|
14
|
+
createBudgetConfiguration(req: CreateBudgetConfigurationRequest, options?: CallOptions): Promise<CreateBudgetConfigurationResponse>;
|
|
15
|
+
/** Deletes a budget configuration for an account. Both account and budget configuration are specified by ID. This cannot be undone. */
|
|
16
|
+
deleteBudgetConfiguration(req: DeleteBudgetConfigurationRequest, options?: CallOptions): Promise<DeleteBudgetConfigurationResponse>;
|
|
17
|
+
/** Gets a budget configuration for an account. Both account and budget configuration are specified by ID. */
|
|
18
|
+
getBudgetConfiguration(req: GetBudgetConfigurationRequest, options?: CallOptions): Promise<GetBudgetConfigurationResponse>;
|
|
19
|
+
/** Gets all budgets associated with this account. */
|
|
20
|
+
listBudgetConfigurations(req: ListBudgetConfigurationsRequest, options?: CallOptions): Promise<ListBudgetConfigurationsResponse>;
|
|
21
|
+
listBudgetConfigurationsIter(req: ListBudgetConfigurationsRequest, options?: CallOptions): AsyncGenerator<BudgetConfiguration>;
|
|
22
|
+
/** Updates a budget configuration for an account. Both account and budget configuration are specified by ID. */
|
|
23
|
+
updateBudgetConfiguration(req: UpdateBudgetConfigurationRequest, options?: CallOptions): Promise<UpdateBudgetConfigurationResponse>;
|
|
22
24
|
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { BudgetsClient };
|
|
23
27
|
//# 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":";;;;;cA+Ca,aAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAQI;EAFN,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;EAAR;EA8BG,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;EADC;EA2BN,sBAAA,CACJ,GAAA,EAAK,6BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,8BAAA;EA7BR;EA6DG,wBAAA,CACJ,GAAA,EAAK,+BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,gCAAA;EAwCJ,4BAAA,CACL,GAAA,EAAK,+BAAA,EACL,OAAA,GAAU,WAAA,GACT,cAAA,CAAe,mBAAA;EA9EP;EA6FL,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;AAAA"}
|
package/dist/v1/client.js
CHANGED
|
@@ -1,182 +1,149 @@
|
|
|
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 { marshalCreateBudgetConfigurationRequestSchema, marshalUpdateBudgetConfigurationRequestSchema, unmarshalCreateBudgetConfigurationResponseSchema, unmarshalDeleteBudgetConfigurationResponseSchema, unmarshalGetBudgetConfigurationResponseSchema, unmarshalListBudgetConfigurationsResponseSchema, unmarshalUpdateBudgetConfigurationResponseSchema } 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
|
-
for (const item of resp.budgets ?? []) {
|
|
150
|
-
yield item;
|
|
151
|
-
}
|
|
152
|
-
if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
155
|
-
pageReq.pageToken = resp.nextPageToken;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/** Updates a budget configuration for an account. Both account and budget configuration are specified by ID. */
|
|
159
|
-
async updateBudgetConfiguration(req, options) {
|
|
160
|
-
const { host, accountId, httpClient } = await this.resolveConfig();
|
|
161
|
-
const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;
|
|
162
|
-
const body = marshalRequest(req, marshalUpdateBudgetConfigurationRequestSchema);
|
|
163
|
-
let resp;
|
|
164
|
-
const call = async (callSignal) => {
|
|
165
|
-
const headers = new Headers({ 'Content-Type': 'application/json' });
|
|
166
|
-
headers.set('User-Agent', this.userAgent);
|
|
167
|
-
const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);
|
|
168
|
-
const respBody = await executeHttpCall({
|
|
169
|
-
request: httpReq,
|
|
170
|
-
httpClient,
|
|
171
|
-
logger: this.logger,
|
|
172
|
-
});
|
|
173
|
-
resp = parseResponse(respBody, unmarshalUpdateBudgetConfigurationResponseSchema);
|
|
174
|
-
};
|
|
175
|
-
await executeCall(call, options);
|
|
176
|
-
if (resp === undefined) {
|
|
177
|
-
throw new Error('operation completed without a result.');
|
|
178
|
-
}
|
|
179
|
-
return resp;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
14
|
+
var BudgetsClient = 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
|
+
/** Create a new budget configuration for an account. For full details, see https://docs.databricks.com/en/admin/account-settings/budgets.html. */
|
|
35
|
+
async createBudgetConfiguration(req, options) {
|
|
36
|
+
const { host, accountId, httpClient } = await this.resolveConfig();
|
|
37
|
+
const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ""}/budgets`;
|
|
38
|
+
const body = marshalRequest(req, marshalCreateBudgetConfigurationRequestSchema);
|
|
39
|
+
let resp;
|
|
40
|
+
const call = async (callSignal) => {
|
|
41
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
42
|
+
headers.set("User-Agent", this.userAgent);
|
|
43
|
+
resp = parseResponse(await executeHttpCall({
|
|
44
|
+
request: buildHttpRequest("POST", url, headers, callSignal, body),
|
|
45
|
+
httpClient,
|
|
46
|
+
logger: this.logger
|
|
47
|
+
}), unmarshalCreateBudgetConfigurationResponseSchema);
|
|
48
|
+
};
|
|
49
|
+
await executeCall(call, options);
|
|
50
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
51
|
+
return resp;
|
|
52
|
+
}
|
|
53
|
+
/** Deletes a budget configuration for an account. Both account and budget configuration are specified by ID. This cannot be undone. */
|
|
54
|
+
async deleteBudgetConfiguration(req, options) {
|
|
55
|
+
const { host, accountId, httpClient } = await this.resolveConfig();
|
|
56
|
+
const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ""}/budgets/${req.budgetId ?? ""}`;
|
|
57
|
+
let resp;
|
|
58
|
+
const call = async (callSignal) => {
|
|
59
|
+
const headers = new Headers();
|
|
60
|
+
headers.set("User-Agent", this.userAgent);
|
|
61
|
+
resp = parseResponse(await executeHttpCall({
|
|
62
|
+
request: buildHttpRequest("DELETE", url, headers, callSignal),
|
|
63
|
+
httpClient,
|
|
64
|
+
logger: this.logger
|
|
65
|
+
}), unmarshalDeleteBudgetConfigurationResponseSchema);
|
|
66
|
+
};
|
|
67
|
+
await executeCall(call, options);
|
|
68
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
69
|
+
return resp;
|
|
70
|
+
}
|
|
71
|
+
/** Gets a budget configuration for an account. Both account and budget configuration are specified by ID. */
|
|
72
|
+
async getBudgetConfiguration(req, options) {
|
|
73
|
+
const { host, accountId, httpClient } = await this.resolveConfig();
|
|
74
|
+
const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ""}/budgets/${req.budgetId ?? ""}`;
|
|
75
|
+
const params = new URLSearchParams();
|
|
76
|
+
if (req.includeSpendStatus !== void 0) params.append("include_spend_status", String(req.includeSpendStatus));
|
|
77
|
+
const query = params.toString();
|
|
78
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
79
|
+
let resp;
|
|
80
|
+
const call = async (callSignal) => {
|
|
81
|
+
const headers = new Headers();
|
|
82
|
+
headers.set("User-Agent", this.userAgent);
|
|
83
|
+
resp = parseResponse(await executeHttpCall({
|
|
84
|
+
request: buildHttpRequest("GET", fullUrl, headers, callSignal),
|
|
85
|
+
httpClient,
|
|
86
|
+
logger: this.logger
|
|
87
|
+
}), unmarshalGetBudgetConfigurationResponseSchema);
|
|
88
|
+
};
|
|
89
|
+
await executeCall(call, options);
|
|
90
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
91
|
+
return resp;
|
|
92
|
+
}
|
|
93
|
+
/** Gets all budgets associated with this account. */
|
|
94
|
+
async listBudgetConfigurations(req, options) {
|
|
95
|
+
const { host, accountId, httpClient } = await this.resolveConfig();
|
|
96
|
+
const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ""}/budgets`;
|
|
97
|
+
const params = new URLSearchParams();
|
|
98
|
+
if (req.pageToken !== void 0) params.append("page_token", req.pageToken);
|
|
99
|
+
if (req.includeSpendStatus !== void 0) params.append("include_spend_status", String(req.includeSpendStatus));
|
|
100
|
+
if (req.includeWorkspaceBudgets !== void 0) params.append("include_workspace_budgets", String(req.includeWorkspaceBudgets));
|
|
101
|
+
const query = params.toString();
|
|
102
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
103
|
+
let resp;
|
|
104
|
+
const call = async (callSignal) => {
|
|
105
|
+
const headers = new Headers();
|
|
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
|
+
}), unmarshalListBudgetConfigurationsResponseSchema);
|
|
112
|
+
};
|
|
113
|
+
await executeCall(call, options);
|
|
114
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
115
|
+
return resp;
|
|
116
|
+
}
|
|
117
|
+
async *listBudgetConfigurationsIter(req, options) {
|
|
118
|
+
const pageReq = { ...req };
|
|
119
|
+
for (;;) {
|
|
120
|
+
const resp = await this.listBudgetConfigurations(pageReq, options);
|
|
121
|
+
for (const item of resp.budgets ?? []) yield item;
|
|
122
|
+
if (resp.nextPageToken === void 0 || resp.nextPageToken === "") return;
|
|
123
|
+
pageReq.pageToken = resp.nextPageToken;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/** Updates a budget configuration for an account. Both account and budget configuration are specified by ID. */
|
|
127
|
+
async updateBudgetConfiguration(req, options) {
|
|
128
|
+
const { host, accountId, httpClient } = await this.resolveConfig();
|
|
129
|
+
const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ""}/budgets/${req.budgetId ?? ""}`;
|
|
130
|
+
const body = marshalRequest(req, marshalUpdateBudgetConfigurationRequestSchema);
|
|
131
|
+
let resp;
|
|
132
|
+
const call = async (callSignal) => {
|
|
133
|
+
const headers = new Headers({ "Content-Type": "application/json" });
|
|
134
|
+
headers.set("User-Agent", this.userAgent);
|
|
135
|
+
resp = parseResponse(await executeHttpCall({
|
|
136
|
+
request: buildHttpRequest("PUT", url, headers, callSignal, body),
|
|
137
|
+
httpClient,
|
|
138
|
+
logger: this.logger
|
|
139
|
+
}), unmarshalUpdateBudgetConfigurationResponseSchema);
|
|
140
|
+
};
|
|
141
|
+
await executeCall(call, options);
|
|
142
|
+
if (resp === void 0) throw new Error("operation completed without a result.");
|
|
143
|
+
return resp;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
//#endregion
|
|
148
|
+
export { BudgetsClient };
|
|
182
149
|
//# 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;AAc7D,OAAO,EACL,6CAA6C,EAC7C,6CAA6C,EAC7C,gDAAgD,EAChD,gDAAgD,EAChD,6CAA6C,EAC7C,+CAA+C,EAC/C,gDAAgD,GACjD,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,MAAM,OAAO,aAAa;IACP,OAAO,CAAgB;IACvB,MAAM,CAAS;IAChC,8DAA8D;IAC9D,qEAAqE;IACrE,qBAAqB;IACJ,SAAS,CAAS;IACnC,6EAA6E;IAC7E,yEAAyE;IACzE,yDAAyD;IACjD,MAAM,CAA4C;IAE1D,YAAY,OAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IA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/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 BudgetConfiguration,\n CreateBudgetConfigurationRequest,\n CreateBudgetConfigurationResponse,\n DeleteBudgetConfigurationRequest,\n DeleteBudgetConfigurationResponse,\n GetBudgetConfigurationRequest,\n GetBudgetConfigurationResponse,\n ListBudgetConfigurationsRequest,\n ListBudgetConfigurationsResponse,\n UpdateBudgetConfigurationRequest,\n UpdateBudgetConfigurationResponse,\n} from './model';\nimport {\n marshalCreateBudgetConfigurationRequestSchema,\n marshalUpdateBudgetConfigurationRequestSchema,\n unmarshalCreateBudgetConfigurationResponseSchema,\n unmarshalDeleteBudgetConfigurationResponseSchema,\n unmarshalGetBudgetConfigurationResponseSchema,\n unmarshalListBudgetConfigurationsResponseSchema,\n unmarshalUpdateBudgetConfigurationResponseSchema,\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 BudgetsClient {\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 /** Create a new budget configuration for an account. For full details, see https://docs.databricks.com/en/admin/account-settings/budgets.html. */\n async createBudgetConfiguration(\n req: CreateBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<CreateBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ''}/budgets`;\n const body = marshalRequest(\n req,\n marshalCreateBudgetConfigurationRequestSchema\n );\n let resp: CreateBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\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(\n respBody,\n unmarshalCreateBudgetConfigurationResponseSchema\n );\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 a budget configuration for an account. Both account and budget configuration are specified by ID. This cannot be undone. */\n async deleteBudgetConfiguration(\n req: DeleteBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<DeleteBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n let resp: DeleteBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalDeleteBudgetConfigurationResponseSchema\n );\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 budget configuration for an account. Both account and budget configuration are specified by ID. */\n async getBudgetConfiguration(\n req: GetBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<GetBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n const params = new URLSearchParams();\n if (req.includeSpendStatus !== undefined) {\n params.append('include_spend_status', String(req.includeSpendStatus));\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: GetBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalGetBudgetConfigurationResponseSchema\n );\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 all budgets associated with this account. */\n async listBudgetConfigurations(\n req: ListBudgetConfigurationsRequest,\n options?: CallOptions\n ): Promise<ListBudgetConfigurationsResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets`;\n const params = new URLSearchParams();\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.includeSpendStatus !== undefined) {\n params.append('include_spend_status', String(req.includeSpendStatus));\n }\n if (req.includeWorkspaceBudgets !== undefined) {\n params.append(\n 'include_workspace_budgets',\n String(req.includeWorkspaceBudgets)\n );\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListBudgetConfigurationsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\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(\n respBody,\n unmarshalListBudgetConfigurationsResponseSchema\n );\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 *listBudgetConfigurationsIter(\n req: ListBudgetConfigurationsRequest,\n options?: CallOptions\n ): AsyncGenerator<BudgetConfiguration> {\n const pageReq: ListBudgetConfigurationsRequest = {...req};\n for (;;) {\n const resp = await this.listBudgetConfigurations(pageReq, options);\n for (const item of resp.budgets ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates a budget configuration for an account. Both account and budget configuration are specified by ID. */\n async updateBudgetConfiguration(\n req: UpdateBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<UpdateBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n const body = marshalRequest(\n req,\n marshalUpdateBudgetConfigurationRequestSchema\n );\n let resp: UpdateBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalUpdateBudgetConfigurationResponseSchema\n );\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,gBAAb,MAA2B;CACzB,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,0BACJ,KACA,SAC4C;EAC5C,MAAM,EAAC,MAAM,WAAW,eAAc,MAAM,KAAK,eAAe;EAChE,MAAM,MAAM,GAAG,KAAK,oBAAoB,IAAI,QAAQ,aAAa,aAAa,GAAG;EACjF,MAAM,OAAO,eACX,KACA,8CACD;EACD,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,QAAQ,KAAK,SAAS,YAAY,KAAK;IAGtE;IACA,QAAQ,KAAK;IACd,CAAC,EAGA,iDACD;;AAEH,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO;;;CAIT,MAAM,0BACJ,KACA,SAC4C;EAC5C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;EACD,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,OAAO,KAAK,SAAS,YAAY,KAAK;IAGrE;IACA,QAAQ,KAAK;IACd,CAAC,EAGA,iDACD;;AAEH,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 { BudgetsClient } from './client';
|
|
5
|
-
export { ActionConfigurationType, AlertConfigurationQuantityType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfigurationFilter_Operator, } from './model';
|
|
6
|
-
export type { ActionConfiguration, AlertConfiguration, BudgetConfiguration, BudgetConfigurationFilter, BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_TagClause, BudgetConfigurationFilter_WorkspaceIdClause, CreateBudgetConfigurationBudget, CreateBudgetConfigurationRequest, CreateBudgetConfigurationResponse, DeleteBudgetConfigurationRequest, DeleteBudgetConfigurationResponse, GetBudgetConfigurationRequest, GetBudgetConfigurationResponse, ListBudgetConfigurationsRequest, ListBudgetConfigurationsResponse, UpdateBudgetConfigurationBudget, UpdateBudgetConfigurationRequest, UpdateBudgetConfigurationResponse, } from './model';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { ActionConfiguration, ActionConfigurationType, AlertConfiguration, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfiguration, BudgetConfigurationFilter, BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_Operator, BudgetConfigurationFilter_TagClause, BudgetConfigurationFilter_WorkspaceIdClause, BudgetResourceType, CreateBudgetConfigurationBudget, CreateBudgetConfigurationRequest, CreateBudgetConfigurationResponse, DeleteBudgetConfigurationRequest, DeleteBudgetConfigurationResponse, GetBudgetConfigurationRequest, GetBudgetConfigurationResponse, ListBudgetConfigurationsRequest, ListBudgetConfigurationsResponse, PrincipalOverride, UpdateBudgetConfigurationBudget, UpdateBudgetConfigurationRequest, UpdateBudgetConfigurationResponse } from "./model.js";
|
|
2
|
+
import { BudgetsClient } from "./client.js";
|
|
3
|
+
export { type ActionConfiguration, ActionConfigurationType, type AlertConfiguration, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, type BudgetConfiguration, type BudgetConfigurationFilter, type BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_Operator, type BudgetConfigurationFilter_TagClause, type BudgetConfigurationFilter_WorkspaceIdClause, BudgetResourceType, BudgetsClient, type CreateBudgetConfigurationBudget, type CreateBudgetConfigurationRequest, type CreateBudgetConfigurationResponse, type DeleteBudgetConfigurationRequest, type DeleteBudgetConfigurationResponse, type GetBudgetConfigurationRequest, type GetBudgetConfigurationResponse, type ListBudgetConfigurationsRequest, type ListBudgetConfigurationsResponse, type PrincipalOverride, type UpdateBudgetConfigurationBudget, type UpdateBudgetConfigurationRequest, type UpdateBudgetConfigurationResponse };
|
package/dist/v1/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { BudgetsClient } from './client';
|
|
6
|
-
export { ActionConfigurationType, AlertConfigurationQuantityType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfigurationFilter_Operator, } from './model';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { ActionConfigurationType, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfigurationFilter_Operator, BudgetResourceType } from "./model.js";
|
|
2
|
+
import { BudgetsClient } from "./client.js";
|
|
3
|
+
|
|
4
|
+
export { ActionConfigurationType, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfigurationFilter_Operator, BudgetResourceType, BudgetsClient };
|