@databricks/sdk-jobs 0.7.0 → 0.8.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.
Files changed (2) hide show
  1. package/dist/v2/client.js +10 -10
  2. package/package.json +4 -4
package/dist/v2/client.js CHANGED
@@ -163,7 +163,7 @@ export class JobsClient {
163
163
  */
164
164
  async cancelAllRuns(req, options) {
165
165
  const { host, workspaceId, httpClient } = await this.resolveConfig();
166
- const url = `${host}/api/2.0/jobs/runs/cancel-all`;
166
+ const url = `${host}/api/2.2/jobs/runs/cancel-all`;
167
167
  const body = marshalRequest(req, marshalCancelAllRunsRequestSchema);
168
168
  let resp;
169
169
  const call = async (callSignal) => {
@@ -192,7 +192,7 @@ export class JobsClient {
192
192
  */
193
193
  async cancelRunBase(req, options) {
194
194
  const { host, workspaceId, httpClient } = await this.resolveConfig();
195
- const url = `${host}/api/2.0/jobs/runs/cancel`;
195
+ const url = `${host}/api/2.2/jobs/runs/cancel`;
196
196
  const body = marshalRequest(req, marshalCancelRunRequestSchema);
197
197
  let resp;
198
198
  const call = async (callSignal) => {
@@ -229,7 +229,7 @@ export class JobsClient {
229
229
  /** Create a new job. */
230
230
  async createJob(req, options) {
231
231
  const { host, workspaceId, httpClient } = await this.resolveConfig();
232
- const url = `${host}/api/2.0/jobs/create`;
232
+ const url = `${host}/api/2.2/jobs/create`;
233
233
  const body = marshalRequest(req, marshalCreateJobRequestSchema);
234
234
  let resp;
235
235
  const call = async (callSignal) => {
@@ -255,7 +255,7 @@ export class JobsClient {
255
255
  /** Deletes a job. */
256
256
  async deleteJob(req, options) {
257
257
  const { host, workspaceId, httpClient } = await this.resolveConfig();
258
- const url = `${host}/api/2.0/jobs/delete`;
258
+ const url = `${host}/api/2.2/jobs/delete`;
259
259
  const body = marshalRequest(req, marshalDeleteJobRequestSchema);
260
260
  let resp;
261
261
  const call = async (callSignal) => {
@@ -281,7 +281,7 @@ export class JobsClient {
281
281
  /** Deletes a non-active run. Returns an error if the run is active. */
282
282
  async deleteRun(req, options) {
283
283
  const { host, workspaceId, httpClient } = await this.resolveConfig();
284
- const url = `${host}/api/2.0/jobs/runs/delete`;
284
+ const url = `${host}/api/2.2/jobs/runs/delete`;
285
285
  const body = marshalRequest(req, marshalDeleteRunRequestSchema);
286
286
  let resp;
287
287
  const call = async (callSignal) => {
@@ -604,7 +604,7 @@ export class JobsClient {
604
604
  */
605
605
  async repairBase(req, options) {
606
606
  const { host, workspaceId, httpClient } = await this.resolveConfig();
607
- const url = `${host}/api/2.1/jobs/runs/repair`;
607
+ const url = `${host}/api/2.2/jobs/runs/repair`;
608
608
  const body = marshalRequest(req, marshalRepairRunRequestSchema);
609
609
  let resp;
610
610
  const call = async (callSignal) => {
@@ -642,7 +642,7 @@ export class JobsClient {
642
642
  /** Overwrite all settings for the given job. Use the [_Update_ endpoint](:method:jobs/update) to update job settings partially. */
643
643
  async resetJob(req, options) {
644
644
  const { host, workspaceId, httpClient } = await this.resolveConfig();
645
- const url = `${host}/api/2.0/jobs/reset`;
645
+ const url = `${host}/api/2.2/jobs/reset`;
646
646
  const body = marshalRequest(req, marshalResetJobRequestSchema);
647
647
  let resp;
648
648
  const call = async (callSignal) => {
@@ -668,7 +668,7 @@ export class JobsClient {
668
668
  /** Run a job and return the `run_id` of the triggered run. */
669
669
  async runNowBase(req, options) {
670
670
  const { host, workspaceId, httpClient } = await this.resolveConfig();
671
- const url = `${host}/api/2.0/jobs/run-now`;
671
+ const url = `${host}/api/2.2/jobs/run-now`;
672
672
  const body = marshalRequest(req, marshalRunNowRequestSchema);
673
673
  let resp;
674
674
  const call = async (callSignal) => {
@@ -714,7 +714,7 @@ export class JobsClient {
714
714
  */
715
715
  async submitRunBase(req, options) {
716
716
  const { host, workspaceId, httpClient } = await this.resolveConfig();
717
- const url = `${host}/api/2.0/jobs/runs/submit`;
717
+ const url = `${host}/api/2.2/jobs/runs/submit`;
718
718
  const body = marshalRequest(req, marshalSubmitRunRequestSchema);
719
719
  let resp;
720
720
  const call = async (callSignal) => {
@@ -760,7 +760,7 @@ export class JobsClient {
760
760
  /** Add, update, or remove specific settings of an existing job. Use the [_Reset_ endpoint](:method:jobs/reset) to overwrite all job settings. */
761
761
  async updateJob(req, options) {
762
762
  const { host, workspaceId, httpClient } = await this.resolveConfig();
763
- const url = `${host}/api/2.0/jobs/update`;
763
+ const url = `${host}/api/2.2/jobs/update`;
764
764
  const body = marshalRequest(req, marshalUpdateJobRequestSchema);
765
765
  let resp;
766
766
  const call = async (callSignal) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-jobs",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,9 +33,9 @@
33
33
  "directory": "packages/jobs"
34
34
  },
35
35
  "dependencies": {
36
- "@databricks/sdk-auth": ">=0.7.0 <1.0.0",
37
- "@databricks/sdk-core": ">=0.7.0 <1.0.0",
38
- "@databricks/sdk-options": ">=0.7.0 <1.0.0",
36
+ "@databricks/sdk-auth": ">=0.8.0 <1.0.0",
37
+ "@databricks/sdk-core": ">=0.8.0 <1.0.0",
38
+ "@databricks/sdk-options": ">=0.8.0 <1.0.0",
39
39
  "@js-temporal/polyfill": "^0.5.0",
40
40
  "json-bigint": "^1.0.0",
41
41
  "zod": "^4.3.6"