@databricks/sdk-pipelines 0.1.0-dev.2 → 0.1.0-dev.3

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/src/v2/client.ts CHANGED
@@ -21,31 +21,31 @@ import {
21
21
  import pkgJson from '../../package.json' with {type: 'json'};
22
22
  import type {
23
23
  ApplyEnvironmentRequest,
24
- ApplyEnvironmentRequest_Response,
24
+ ApplyEnvironmentResponse,
25
25
  ClonePipelineRequest,
26
- ClonePipelineRequest_Response,
26
+ ClonePipelineResponse,
27
27
  CreatePipelineRequest,
28
- CreatePipelineRequest_Response,
28
+ CreatePipelineResponse,
29
29
  DeletePipelineRequest,
30
- DeletePipelineRequest_Response,
30
+ DeletePipelineResponse,
31
31
  EditPipelineRequest,
32
- EditPipelineRequest_Response,
32
+ EditPipelineResponse,
33
33
  GetPipelineRequest,
34
- GetPipelineRequest_Response,
34
+ GetPipelineResponse,
35
35
  GetUpdateRequest,
36
- GetUpdateRequest_Response,
36
+ GetUpdateResponse,
37
37
  ListPipelineEventsRequest,
38
- ListPipelineEventsRequest_Response,
38
+ ListPipelineEventsResponse,
39
39
  ListPipelinesRequest,
40
- ListPipelinesRequest_Response,
40
+ ListPipelinesResponse,
41
41
  ListUpdatesRequest,
42
- ListUpdatesRequest_Response,
42
+ ListUpdatesResponse,
43
43
  PipelineEvent,
44
44
  PipelineStateInfo,
45
45
  StartUpdateRequest,
46
- StartUpdateRequest_Response,
46
+ StartUpdateResponse,
47
47
  StopPipelineRequest,
48
- StopPipelineRequest_Response,
48
+ StopPipelineResponse,
49
49
  } from './model';
50
50
  import {
51
51
  PipelineState_PipelineState,
@@ -55,18 +55,18 @@ import {
55
55
  marshalEditPipelineRequestSchema,
56
56
  marshalStartUpdateRequestSchema,
57
57
  marshalStopPipelineRequestSchema,
58
- unmarshalApplyEnvironmentRequest_ResponseSchema,
59
- unmarshalClonePipelineRequest_ResponseSchema,
60
- unmarshalCreatePipelineRequest_ResponseSchema,
61
- unmarshalDeletePipelineRequest_ResponseSchema,
62
- unmarshalEditPipelineRequest_ResponseSchema,
63
- unmarshalGetPipelineRequest_ResponseSchema,
64
- unmarshalGetUpdateRequest_ResponseSchema,
65
- unmarshalListPipelineEventsRequest_ResponseSchema,
66
- unmarshalListPipelinesRequest_ResponseSchema,
67
- unmarshalListUpdatesRequest_ResponseSchema,
68
- unmarshalStartUpdateRequest_ResponseSchema,
69
- unmarshalStopPipelineRequest_ResponseSchema,
58
+ unmarshalApplyEnvironmentResponseSchema,
59
+ unmarshalClonePipelineResponseSchema,
60
+ unmarshalCreatePipelineResponseSchema,
61
+ unmarshalDeletePipelineResponseSchema,
62
+ unmarshalEditPipelineResponseSchema,
63
+ unmarshalGetPipelineResponseSchema,
64
+ unmarshalGetUpdateResponseSchema,
65
+ unmarshalListPipelineEventsResponseSchema,
66
+ unmarshalListPipelinesResponseSchema,
67
+ unmarshalListUpdatesResponseSchema,
68
+ unmarshalStartUpdateResponseSchema,
69
+ unmarshalStopPipelineResponseSchema,
70
70
  } from './model';
71
71
 
72
72
  // Package identity segment for this client to be used in the User-Agent header.
@@ -111,10 +111,10 @@ export class PipelinesClient {
111
111
  async applyEnvironment(
112
112
  req: ApplyEnvironmentRequest,
113
113
  options?: CallOptions
114
- ): Promise<ApplyEnvironmentRequest_Response> {
114
+ ): Promise<ApplyEnvironmentResponse> {
115
115
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}/environment/apply`;
116
116
  const body = marshalRequest(req, marshalApplyEnvironmentRequestSchema);
117
- let resp: ApplyEnvironmentRequest_Response | undefined;
117
+ let resp: ApplyEnvironmentResponse | undefined;
118
118
  const call = async (callSignal?: AbortSignal): Promise<void> => {
119
119
  const headers = new Headers({'Content-Type': 'application/json'});
120
120
  if (this.workspaceId !== undefined) {
@@ -127,10 +127,7 @@ export class PipelinesClient {
127
127
  httpClient: this.httpClient,
128
128
  logger: this.logger,
129
129
  });
130
- resp = parseResponse(
131
- respBody,
132
- unmarshalApplyEnvironmentRequest_ResponseSchema
133
- );
130
+ resp = parseResponse(respBody, unmarshalApplyEnvironmentResponseSchema);
134
131
  };
135
132
  await executeCall(call, options);
136
133
  if (resp === undefined) {
@@ -147,10 +144,10 @@ export class PipelinesClient {
147
144
  async clone(
148
145
  req: ClonePipelineRequest,
149
146
  options?: CallOptions
150
- ): Promise<ClonePipelineRequest_Response> {
147
+ ): Promise<ClonePipelineResponse> {
151
148
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}/clone`;
152
149
  const body = marshalRequest(req, marshalClonePipelineRequestSchema);
153
- let resp: ClonePipelineRequest_Response | undefined;
150
+ let resp: ClonePipelineResponse | undefined;
154
151
  const call = async (callSignal?: AbortSignal): Promise<void> => {
155
152
  const headers = new Headers({'Content-Type': 'application/json'});
156
153
  if (this.workspaceId !== undefined) {
@@ -163,10 +160,7 @@ export class PipelinesClient {
163
160
  httpClient: this.httpClient,
164
161
  logger: this.logger,
165
162
  });
166
- resp = parseResponse(
167
- respBody,
168
- unmarshalClonePipelineRequest_ResponseSchema
169
- );
163
+ resp = parseResponse(respBody, unmarshalClonePipelineResponseSchema);
170
164
  };
171
165
  await executeCall(call, options);
172
166
  if (resp === undefined) {
@@ -182,10 +176,10 @@ export class PipelinesClient {
182
176
  async create(
183
177
  req: CreatePipelineRequest,
184
178
  options?: CallOptions
185
- ): Promise<CreatePipelineRequest_Response> {
179
+ ): Promise<CreatePipelineResponse> {
186
180
  const url = `${this.host}/api/2.0/pipelines`;
187
181
  const body = marshalRequest(req, marshalCreatePipelineRequestSchema);
188
- let resp: CreatePipelineRequest_Response | undefined;
182
+ let resp: CreatePipelineResponse | undefined;
189
183
  const call = async (callSignal?: AbortSignal): Promise<void> => {
190
184
  const headers = new Headers({'Content-Type': 'application/json'});
191
185
  if (this.workspaceId !== undefined) {
@@ -198,10 +192,7 @@ export class PipelinesClient {
198
192
  httpClient: this.httpClient,
199
193
  logger: this.logger,
200
194
  });
201
- resp = parseResponse(
202
- respBody,
203
- unmarshalCreatePipelineRequest_ResponseSchema
204
- );
195
+ resp = parseResponse(respBody, unmarshalCreatePipelineResponseSchema);
205
196
  };
206
197
  await executeCall(call, options);
207
198
  if (resp === undefined) {
@@ -217,7 +208,7 @@ export class PipelinesClient {
217
208
  async delete(
218
209
  req: DeletePipelineRequest,
219
210
  options?: CallOptions
220
- ): Promise<DeletePipelineRequest_Response> {
211
+ ): Promise<DeletePipelineResponse> {
221
212
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}`;
222
213
  const params = new URLSearchParams();
223
214
  if (req.force !== undefined) {
@@ -228,7 +219,7 @@ export class PipelinesClient {
228
219
  }
229
220
  const query = params.toString();
230
221
  const fullUrl = query !== '' ? `${url}?${query}` : url;
231
- let resp: DeletePipelineRequest_Response | undefined;
222
+ let resp: DeletePipelineResponse | undefined;
232
223
  const call = async (callSignal?: AbortSignal): Promise<void> => {
233
224
  const headers = new Headers();
234
225
  if (this.workspaceId !== undefined) {
@@ -241,10 +232,7 @@ export class PipelinesClient {
241
232
  httpClient: this.httpClient,
242
233
  logger: this.logger,
243
234
  });
244
- resp = parseResponse(
245
- respBody,
246
- unmarshalDeletePipelineRequest_ResponseSchema
247
- );
235
+ resp = parseResponse(respBody, unmarshalDeletePipelineResponseSchema);
248
236
  };
249
237
  await executeCall(call, options);
250
238
  if (resp === undefined) {
@@ -257,10 +245,10 @@ export class PipelinesClient {
257
245
  async edit(
258
246
  req: EditPipelineRequest,
259
247
  options?: CallOptions
260
- ): Promise<EditPipelineRequest_Response> {
248
+ ): Promise<EditPipelineResponse> {
261
249
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}`;
262
250
  const body = marshalRequest(req, marshalEditPipelineRequestSchema);
263
- let resp: EditPipelineRequest_Response | undefined;
251
+ let resp: EditPipelineResponse | undefined;
264
252
  const call = async (callSignal?: AbortSignal): Promise<void> => {
265
253
  const headers = new Headers({'Content-Type': 'application/json'});
266
254
  if (this.workspaceId !== undefined) {
@@ -273,10 +261,7 @@ export class PipelinesClient {
273
261
  httpClient: this.httpClient,
274
262
  logger: this.logger,
275
263
  });
276
- resp = parseResponse(
277
- respBody,
278
- unmarshalEditPipelineRequest_ResponseSchema
279
- );
264
+ resp = parseResponse(respBody, unmarshalEditPipelineResponseSchema);
280
265
  };
281
266
  await executeCall(call, options);
282
267
  if (resp === undefined) {
@@ -289,7 +274,7 @@ export class PipelinesClient {
289
274
  async events(
290
275
  req: ListPipelineEventsRequest,
291
276
  options?: CallOptions
292
- ): Promise<ListPipelineEventsRequest_Response> {
277
+ ): Promise<ListPipelineEventsResponse> {
293
278
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}/events`;
294
279
  const params = new URLSearchParams();
295
280
  if (req.pageToken !== undefined) {
@@ -306,7 +291,7 @@ export class PipelinesClient {
306
291
  }
307
292
  const query = params.toString();
308
293
  const fullUrl = query !== '' ? `${url}?${query}` : url;
309
- let resp: ListPipelineEventsRequest_Response | undefined;
294
+ let resp: ListPipelineEventsResponse | undefined;
310
295
  const call = async (callSignal?: AbortSignal): Promise<void> => {
311
296
  const headers = new Headers();
312
297
  if (this.workspaceId !== undefined) {
@@ -319,10 +304,7 @@ export class PipelinesClient {
319
304
  httpClient: this.httpClient,
320
305
  logger: this.logger,
321
306
  });
322
- resp = parseResponse(
323
- respBody,
324
- unmarshalListPipelineEventsRequest_ResponseSchema
325
- );
307
+ resp = parseResponse(respBody, unmarshalListPipelineEventsResponseSchema);
326
308
  };
327
309
  await executeCall(call, options);
328
310
  if (resp === undefined) {
@@ -352,9 +334,9 @@ export class PipelinesClient {
352
334
  async get(
353
335
  req: GetPipelineRequest,
354
336
  options?: CallOptions
355
- ): Promise<GetPipelineRequest_Response> {
337
+ ): Promise<GetPipelineResponse> {
356
338
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}`;
357
- let resp: GetPipelineRequest_Response | undefined;
339
+ let resp: GetPipelineResponse | undefined;
358
340
  const call = async (callSignal?: AbortSignal): Promise<void> => {
359
341
  const headers = new Headers();
360
342
  if (this.workspaceId !== undefined) {
@@ -367,10 +349,7 @@ export class PipelinesClient {
367
349
  httpClient: this.httpClient,
368
350
  logger: this.logger,
369
351
  });
370
- resp = parseResponse(
371
- respBody,
372
- unmarshalGetPipelineRequest_ResponseSchema
373
- );
352
+ resp = parseResponse(respBody, unmarshalGetPipelineResponseSchema);
374
353
  };
375
354
  await executeCall(call, options);
376
355
  if (resp === undefined) {
@@ -383,9 +362,9 @@ export class PipelinesClient {
383
362
  async getUpdate(
384
363
  req: GetUpdateRequest,
385
364
  options?: CallOptions
386
- ): Promise<GetUpdateRequest_Response> {
365
+ ): Promise<GetUpdateResponse> {
387
366
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}/updates/${req.updateId ?? ''}`;
388
- let resp: GetUpdateRequest_Response | undefined;
367
+ let resp: GetUpdateResponse | undefined;
389
368
  const call = async (callSignal?: AbortSignal): Promise<void> => {
390
369
  const headers = new Headers();
391
370
  if (this.workspaceId !== undefined) {
@@ -398,7 +377,7 @@ export class PipelinesClient {
398
377
  httpClient: this.httpClient,
399
378
  logger: this.logger,
400
379
  });
401
- resp = parseResponse(respBody, unmarshalGetUpdateRequest_ResponseSchema);
380
+ resp = parseResponse(respBody, unmarshalGetUpdateResponseSchema);
402
381
  };
403
382
  await executeCall(call, options);
404
383
  if (resp === undefined) {
@@ -411,7 +390,7 @@ export class PipelinesClient {
411
390
  async list(
412
391
  req: ListPipelinesRequest,
413
392
  options?: CallOptions
414
- ): Promise<ListPipelinesRequest_Response> {
393
+ ): Promise<ListPipelinesResponse> {
415
394
  const url = `${this.host}/api/2.0/pipelines`;
416
395
  const params = new URLSearchParams();
417
396
  if (req.pageToken !== undefined) {
@@ -428,7 +407,7 @@ export class PipelinesClient {
428
407
  }
429
408
  const query = params.toString();
430
409
  const fullUrl = query !== '' ? `${url}?${query}` : url;
431
- let resp: ListPipelinesRequest_Response | undefined;
410
+ let resp: ListPipelinesResponse | undefined;
432
411
  const call = async (callSignal?: AbortSignal): Promise<void> => {
433
412
  const headers = new Headers();
434
413
  if (this.workspaceId !== undefined) {
@@ -441,10 +420,7 @@ export class PipelinesClient {
441
420
  httpClient: this.httpClient,
442
421
  logger: this.logger,
443
422
  });
444
- resp = parseResponse(
445
- respBody,
446
- unmarshalListPipelinesRequest_ResponseSchema
447
- );
423
+ resp = parseResponse(respBody, unmarshalListPipelinesResponseSchema);
448
424
  };
449
425
  await executeCall(call, options);
450
426
  if (resp === undefined) {
@@ -474,7 +450,7 @@ export class PipelinesClient {
474
450
  async listUpdates(
475
451
  req: ListUpdatesRequest,
476
452
  options?: CallOptions
477
- ): Promise<ListUpdatesRequest_Response> {
453
+ ): Promise<ListUpdatesResponse> {
478
454
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}/updates`;
479
455
  const params = new URLSearchParams();
480
456
  if (req.pageToken !== undefined) {
@@ -488,7 +464,7 @@ export class PipelinesClient {
488
464
  }
489
465
  const query = params.toString();
490
466
  const fullUrl = query !== '' ? `${url}?${query}` : url;
491
- let resp: ListUpdatesRequest_Response | undefined;
467
+ let resp: ListUpdatesResponse | undefined;
492
468
  const call = async (callSignal?: AbortSignal): Promise<void> => {
493
469
  const headers = new Headers();
494
470
  if (this.workspaceId !== undefined) {
@@ -501,10 +477,7 @@ export class PipelinesClient {
501
477
  httpClient: this.httpClient,
502
478
  logger: this.logger,
503
479
  });
504
- resp = parseResponse(
505
- respBody,
506
- unmarshalListUpdatesRequest_ResponseSchema
507
- );
480
+ resp = parseResponse(respBody, unmarshalListUpdatesResponseSchema);
508
481
  };
509
482
  await executeCall(call, options);
510
483
  if (resp === undefined) {
@@ -517,10 +490,10 @@ export class PipelinesClient {
517
490
  async start(
518
491
  req: StartUpdateRequest,
519
492
  options?: CallOptions
520
- ): Promise<StartUpdateRequest_Response> {
493
+ ): Promise<StartUpdateResponse> {
521
494
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}/updates`;
522
495
  const body = marshalRequest(req, marshalStartUpdateRequestSchema);
523
- let resp: StartUpdateRequest_Response | undefined;
496
+ let resp: StartUpdateResponse | undefined;
524
497
  const call = async (callSignal?: AbortSignal): Promise<void> => {
525
498
  const headers = new Headers({'Content-Type': 'application/json'});
526
499
  if (this.workspaceId !== undefined) {
@@ -533,10 +506,7 @@ export class PipelinesClient {
533
506
  httpClient: this.httpClient,
534
507
  logger: this.logger,
535
508
  });
536
- resp = parseResponse(
537
- respBody,
538
- unmarshalStartUpdateRequest_ResponseSchema
539
- );
509
+ resp = parseResponse(respBody, unmarshalStartUpdateResponseSchema);
540
510
  };
541
511
  await executeCall(call, options);
542
512
  if (resp === undefined) {
@@ -549,10 +519,10 @@ export class PipelinesClient {
549
519
  private async stop(
550
520
  req: StopPipelineRequest,
551
521
  options?: CallOptions
552
- ): Promise<StopPipelineRequest_Response> {
522
+ ): Promise<StopPipelineResponse> {
553
523
  const url = `${this.host}/api/2.0/pipelines/${req.pipelineId ?? ''}/stop`;
554
524
  const body = marshalRequest(req, marshalStopPipelineRequestSchema);
555
- let resp: StopPipelineRequest_Response | undefined;
525
+ let resp: StopPipelineResponse | undefined;
556
526
  const call = async (callSignal?: AbortSignal): Promise<void> => {
557
527
  const headers = new Headers({'Content-Type': 'application/json'});
558
528
  if (this.workspaceId !== undefined) {
@@ -565,10 +535,7 @@ export class PipelinesClient {
565
535
  httpClient: this.httpClient,
566
536
  logger: this.logger,
567
537
  });
568
- resp = parseResponse(
569
- respBody,
570
- unmarshalStopPipelineRequest_ResponseSchema
571
- );
538
+ resp = parseResponse(respBody, unmarshalStopPipelineResponseSchema);
572
539
  };
573
540
  await executeCall(call, options);
574
541
  if (resp === undefined) {
@@ -602,8 +569,8 @@ export class StopWaiter {
602
569
  *
603
570
  * Throws if a failure state is reached.
604
571
  */
605
- async wait(options?: LroOptions): Promise<GetPipelineRequest_Response> {
606
- let result: GetPipelineRequest_Response | undefined;
572
+ async wait(options?: LroOptions): Promise<GetPipelineResponse> {
573
+ let result: GetPipelineResponse | undefined;
607
574
 
608
575
  const call = async (callSignal?: AbortSignal): Promise<void> => {
609
576
  const pollResp = await this.client.get(
package/src/v2/index.ts CHANGED
@@ -33,30 +33,30 @@ export {
33
33
 
34
34
  export type {
35
35
  ApplyEnvironmentRequest,
36
- ApplyEnvironmentRequest_Response,
36
+ ApplyEnvironmentResponse,
37
37
  AutoFullRefreshPolicy,
38
38
  ClonePipelineRequest,
39
39
  ClonePipelineRequest_ConfigurationEntry,
40
- ClonePipelineRequest_Response,
41
40
  ClonePipelineRequest_TagsEntry,
41
+ ClonePipelineResponse,
42
42
  ConfluenceConnectorOptions,
43
43
  ConnectionParameters,
44
44
  ConnectorOptions,
45
45
  CreatePipelineRequest,
46
46
  CreatePipelineRequest_ConfigurationEntry,
47
47
  CreatePipelineRequest_ParametersEntry,
48
- CreatePipelineRequest_Response,
49
48
  CreatePipelineRequest_TagsEntry,
49
+ CreatePipelineResponse,
50
50
  CronTrigger,
51
51
  DataPlaneId,
52
52
  DataStagingOptions,
53
53
  DeletePipelineRequest,
54
- DeletePipelineRequest_Response,
54
+ DeletePipelineResponse,
55
55
  EditPipelineRequest,
56
56
  EditPipelineRequest_ConfigurationEntry,
57
57
  EditPipelineRequest_ParametersEntry,
58
- EditPipelineRequest_Response,
59
58
  EditPipelineRequest_TagsEntry,
59
+ EditPipelineResponse,
60
60
  ErrorDetail,
61
61
  EventLogSpec,
62
62
  FileFilter,
@@ -64,10 +64,10 @@ export type {
64
64
  FileIngestionOptions_FormatOptionsEntry,
65
65
  Filters,
66
66
  GetPipelineRequest,
67
- GetPipelineRequest_Response,
68
- GetPipelineRequest_Response_ParametersEntry,
67
+ GetPipelineResponse,
68
+ GetPipelineResponse_ParametersEntry,
69
69
  GetUpdateRequest,
70
- GetUpdateRequest_Response,
70
+ GetUpdateResponse,
71
71
  GoogleAdsConfig,
72
72
  GoogleAdsOptions,
73
73
  GoogleDriveOptions,
@@ -87,11 +87,11 @@ export type {
87
87
  KafkaOptions,
88
88
  KafkaOptions_ClientConfigEntry,
89
89
  ListPipelineEventsRequest,
90
- ListPipelineEventsRequest_Response,
90
+ ListPipelineEventsResponse,
91
91
  ListPipelinesRequest,
92
- ListPipelinesRequest_Response,
92
+ ListPipelinesResponse,
93
93
  ListUpdatesRequest,
94
- ListUpdatesRequest_Response,
94
+ ListUpdatesResponse,
95
95
  ManualTrigger,
96
96
  MetaMarketingOptions,
97
97
  NotebookLibrary,
@@ -140,9 +140,9 @@ export type {
140
140
  StackFrame,
141
141
  StartUpdateRequest,
142
142
  StartUpdateRequest_ParametersEntry,
143
- StartUpdateRequest_Response,
143
+ StartUpdateResponse,
144
144
  StopPipelineRequest,
145
- StopPipelineRequest_Response,
145
+ StopPipelineResponse,
146
146
  TikTokAdsOptions,
147
147
  Transformer,
148
148
  Truncation,