@databricks/sdk-pipelines 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.
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v2/client.d.ts +69 -65
- package/dist/v2/client.d.ts.map +1 -1
- package/dist/v2/client.js +374 -499
- package/dist/v2/client.js.map +1 -1
- package/dist/v2/index.d.ts +3 -7
- package/dist/v2/index.js +4 -7
- package/dist/v2/model.d.ts +2467 -2501
- package/dist/v2/model.d.ts.map +1 -1
- package/dist/v2/model.js +2314 -3130
- package/dist/v2/model.js.map +1 -1
- package/dist/v2/transport.d.ts +21 -17
- package/dist/v2/transport.d.ts.map +1 -1
- package/dist/v2/transport.js +60 -69
- package/dist/v2/transport.js.map +1 -1
- package/dist/v2/utils.d.ts +21 -18
- package/dist/v2/utils.d.ts.map +1 -1
- package/dist/v2/utils.js +90 -118
- package/dist/v2/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v2/index.d.ts.map +0 -1
- package/dist/v2/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/v2/client.d.ts
CHANGED
|
@@ -1,68 +1,72 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import { ApplyEnvironmentRequest, ApplyEnvironmentResponse, ClonePipelineRequest, ClonePipelineResponse, CreatePipelineRequest, CreatePipelineResponse, DeletePipelineRequest, DeletePipelineResponse, EditPipelineRequest, EditPipelineResponse, GetPipelineRequest, GetPipelineResponse, GetUpdateRequest, GetUpdateResponse, ListPipelineEventsRequest, ListPipelineEventsResponse, ListPipelinesRequest, ListPipelinesResponse, ListUpdatesRequest, ListUpdatesResponse, PipelineEvent, PipelineStateInfo, StartUpdateRequest, StartUpdateResponse, StopPipelineRequest } from "./model.js";
|
|
2
|
+
import { CallOptions } from "@databricks/sdk-options/call";
|
|
3
|
+
import { ClientOptions } from "@databricks/sdk-options/client";
|
|
4
|
+
import { LroOptions } from "@databricks/sdk-options/lro";
|
|
5
|
+
|
|
6
|
+
//#region src/v2/client.d.ts
|
|
7
|
+
declare class PipelinesClient {
|
|
8
|
+
private readonly options;
|
|
9
|
+
private readonly logger;
|
|
10
|
+
private readonly userAgent;
|
|
11
|
+
private config;
|
|
12
|
+
constructor(options: ClientOptions);
|
|
13
|
+
private resolveConfig;
|
|
14
|
+
/**
|
|
15
|
+
* *
|
|
16
|
+
* Applies the current pipeline environment onto the pipeline compute. The environment applied can be used by subsequent
|
|
17
|
+
* dev-mode updates.
|
|
18
|
+
*/
|
|
19
|
+
applyEnvironment(req: ApplyEnvironmentRequest, options?: CallOptions): Promise<ApplyEnvironmentResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new pipeline using Unity Catalog from a pipeline using Hive Metastore.
|
|
22
|
+
* This method returns the ID of the newly created clone.
|
|
23
|
+
* Additionally, this method starts an update for the newly created pipeline.
|
|
24
|
+
*/
|
|
25
|
+
clone(req: ClonePipelineRequest, options?: CallOptions): Promise<ClonePipelineResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new data processing pipeline based on the requested configuration. If successful, this method returns
|
|
28
|
+
* the ID of the new pipeline.
|
|
29
|
+
*/
|
|
30
|
+
create(req: CreatePipelineRequest, options?: CallOptions): Promise<CreatePipelineResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Deletes a pipeline. If the pipeline publishes to Unity Catalog, pipeline deletion will cascade to
|
|
33
|
+
* all pipeline tables. Please reach out to <Databricks> support for assistance to undo this action.
|
|
34
|
+
*/
|
|
35
|
+
delete(req: DeletePipelineRequest, options?: CallOptions): Promise<DeletePipelineResponse>;
|
|
36
|
+
/** Updates a pipeline with the supplied configuration. */
|
|
37
|
+
edit(req: EditPipelineRequest, options?: CallOptions): Promise<EditPipelineResponse>;
|
|
38
|
+
/** Retrieves events for a pipeline. */
|
|
39
|
+
events(req: ListPipelineEventsRequest, options?: CallOptions): Promise<ListPipelineEventsResponse>;
|
|
40
|
+
eventsIter(req: ListPipelineEventsRequest, options?: CallOptions): AsyncGenerator<PipelineEvent>;
|
|
41
|
+
/** Get a pipeline. */
|
|
42
|
+
get(req: GetPipelineRequest, options?: CallOptions): Promise<GetPipelineResponse>;
|
|
43
|
+
/** Gets an update from an active pipeline. */
|
|
44
|
+
getUpdate(req: GetUpdateRequest, options?: CallOptions): Promise<GetUpdateResponse>;
|
|
45
|
+
/** Lists pipelines defined in the Spark Declarative Pipelines system. */
|
|
46
|
+
list(req: ListPipelinesRequest, options?: CallOptions): Promise<ListPipelinesResponse>;
|
|
47
|
+
listIter(req: ListPipelinesRequest, options?: CallOptions): AsyncGenerator<PipelineStateInfo>;
|
|
48
|
+
/** List updates for an active pipeline. */
|
|
49
|
+
listUpdates(req: ListUpdatesRequest, options?: CallOptions): Promise<ListUpdatesResponse>;
|
|
50
|
+
/** Starts a new update for the pipeline. If there is already an active update for the pipeline, the request will fail and the active update will remain running. */
|
|
51
|
+
start(req: StartUpdateRequest, options?: CallOptions): Promise<StartUpdateResponse>;
|
|
52
|
+
/** Stops the pipeline by canceling the active update. If there is no active update for the pipeline, this request is a no-op. */
|
|
53
|
+
private stopBase;
|
|
54
|
+
/** Stops the pipeline by canceling the active update. If there is no active update for the pipeline, this request is a no-op. */
|
|
55
|
+
stop(req: StopPipelineRequest, options?: CallOptions): Promise<StopWaiter>;
|
|
54
56
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
declare class StopWaiter {
|
|
58
|
+
private readonly client;
|
|
59
|
+
readonly pipelineId: string;
|
|
60
|
+
constructor(client: PipelinesClient, pipelineId: string);
|
|
61
|
+
/**
|
|
62
|
+
* Polls until the operation reaches a terminal state.
|
|
63
|
+
*
|
|
64
|
+
* Throws if a failure state is reached.
|
|
65
|
+
*/
|
|
66
|
+
wait(options?: LroOptions): Promise<GetPipelineResponse>;
|
|
67
|
+
/** Checks whether the operation has reached a terminal state. */
|
|
68
|
+
done(options?: CallOptions): Promise<boolean>;
|
|
67
69
|
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { PipelinesClient, StopWaiter };
|
|
68
72
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/v2/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v2/client.ts"],"mappings":";;;;;;cA8Ea,eAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAYI;;;;;EAFN,gBAAA,CACJ,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