@maxim_mazurok/gapi.client.workflowexecutions-v1 0.0.20231003 → 0.0.20231017
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/index.d.ts +198 -5
- package/package.json +1 -1
- package/tests.ts +14 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://workflowexecutions.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231017
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -50,6 +50,11 @@ declare namespace gapi.client {
|
|
|
50
50
|
stackTrace?:
|
|
51
51
|
StackTrace;
|
|
52
52
|
}
|
|
53
|
+
interface Exception {
|
|
54
|
+
/** Error message represented as a JSON string. */
|
|
55
|
+
payload?:
|
|
56
|
+
string;
|
|
57
|
+
}
|
|
53
58
|
interface Execution {
|
|
54
59
|
/**
|
|
55
60
|
* Input parameters of the execution represented as a JSON string. The size limit is 32KB. *Note*: If you are using the REST API directly to run your workflow, you must escape any JSON
|
|
@@ -122,6 +127,34 @@ declare namespace gapi.client {
|
|
|
122
127
|
nextPageToken?:
|
|
123
128
|
string;
|
|
124
129
|
}
|
|
130
|
+
interface ListStepEntriesResponse {
|
|
131
|
+
/**
|
|
132
|
+
* A token to retrieve next page of results. Pass this value in the ListStepEntriesRequest.page_token field in the subsequent call to `ListStepEntries` method to retrieve the next page
|
|
133
|
+
* of results.
|
|
134
|
+
*/
|
|
135
|
+
nextPageToken?:
|
|
136
|
+
string;
|
|
137
|
+
/** The list of entries. */
|
|
138
|
+
stepEntries?:
|
|
139
|
+
StepEntry[];
|
|
140
|
+
/** Indicates the total number of StepEntries that matched the request filter. For running executions, this number shows the number of StepEntries that are executed thus far. */
|
|
141
|
+
totalSize?:
|
|
142
|
+
number;
|
|
143
|
+
}
|
|
144
|
+
interface NavigationInfo {
|
|
145
|
+
/** Step entries that can be reached by "stepping into" e.g. a subworkflow call. */
|
|
146
|
+
children?:
|
|
147
|
+
string[];
|
|
148
|
+
/** The index of the next step in the current workflow, if any. */
|
|
149
|
+
next?:
|
|
150
|
+
string;
|
|
151
|
+
/** The step entry, if any, that can be reached by "stepping out" of the current workflow being executed. */
|
|
152
|
+
parent?:
|
|
153
|
+
string;
|
|
154
|
+
/** The index of the previous step in the current workflow, if any. */
|
|
155
|
+
previous?:
|
|
156
|
+
string;
|
|
157
|
+
}
|
|
125
158
|
interface Position {
|
|
126
159
|
/** The source code column position (of the line) the current instruction was generated from. */
|
|
127
160
|
column?:
|
|
@@ -198,6 +231,55 @@ declare namespace gapi.client {
|
|
|
198
231
|
step?:
|
|
199
232
|
string;
|
|
200
233
|
}
|
|
234
|
+
interface StepEntry {
|
|
235
|
+
/** Output only. The creation time of the step entry. */
|
|
236
|
+
createTime?:
|
|
237
|
+
string;
|
|
238
|
+
/** Output only. The numeric ID of this step entry, used for navigation. */
|
|
239
|
+
entryId?:
|
|
240
|
+
string;
|
|
241
|
+
/** Output only. The exception thrown by the step entry. */
|
|
242
|
+
exception?:
|
|
243
|
+
Exception;
|
|
244
|
+
/**
|
|
245
|
+
* Output only. The full resource name of the step entry. Each step entry has a unique entry ID, which is a monotonically increasing counter. Step entry names have the format:
|
|
246
|
+
* `projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/{step_entry}`.
|
|
247
|
+
*/
|
|
248
|
+
name?:
|
|
249
|
+
string;
|
|
250
|
+
/** Output only. The NavigationInfo associated to this step. */
|
|
251
|
+
navigationInfo?:
|
|
252
|
+
NavigationInfo;
|
|
253
|
+
/** Output only. The name of the routine this step entry belongs to. A routine name is the subworkflow name defined in the YAML source code. The top level routine name is `main`. */
|
|
254
|
+
routine?:
|
|
255
|
+
string;
|
|
256
|
+
/** Output only. The state of the step entry. */
|
|
257
|
+
state?:
|
|
258
|
+
string;
|
|
259
|
+
/** Output only. The name of the step this step entry belongs to. */
|
|
260
|
+
step?:
|
|
261
|
+
string;
|
|
262
|
+
/** Output only. The StepEntryMetadata associated to this step. */
|
|
263
|
+
stepEntryMetadata?:
|
|
264
|
+
StepEntryMetadata;
|
|
265
|
+
/** Output only. The type of the step this step entry belongs to. */
|
|
266
|
+
stepType?:
|
|
267
|
+
string;
|
|
268
|
+
/** Output only. The most recently updated time of the step entry. */
|
|
269
|
+
updateTime?:
|
|
270
|
+
string;
|
|
271
|
+
}
|
|
272
|
+
interface StepEntryMetadata {
|
|
273
|
+
/** Progress number represents the current state of the current progress. eg: A step entry represents the 4th iteration in a progress of PROGRESS_TYPE_FOR. */
|
|
274
|
+
progressNumber?:
|
|
275
|
+
string;
|
|
276
|
+
/** Progress type of this step entry. */
|
|
277
|
+
progressType?:
|
|
278
|
+
string;
|
|
279
|
+
/** Child thread id that this step entry belongs to. */
|
|
280
|
+
threadId?:
|
|
281
|
+
string;
|
|
282
|
+
}
|
|
201
283
|
interface TriggerPubsubExecutionRequest {
|
|
202
284
|
/**
|
|
203
285
|
* The number of attempts that have been made to deliver this message. This is set by Pub/Sub for subscriptions that have the "dead letter" feature enabled, and hence provided here for
|
|
@@ -265,6 +347,114 @@ declare namespace gapi.client {
|
|
|
265
347
|
string;
|
|
266
348
|
}): Request<ListCallbacksResponse>;
|
|
267
349
|
}
|
|
350
|
+
interface StepEntriesResource {
|
|
351
|
+
/** Gets a step entry. */
|
|
352
|
+
get(request?: {
|
|
353
|
+
/** V1 error format. */
|
|
354
|
+
"$.xgafv"?:
|
|
355
|
+
string;
|
|
356
|
+
/** OAuth access token. */
|
|
357
|
+
access_token?:
|
|
358
|
+
string;
|
|
359
|
+
/** Data format for response. */
|
|
360
|
+
alt?:
|
|
361
|
+
string;
|
|
362
|
+
/** JSONP */
|
|
363
|
+
callback?:
|
|
364
|
+
string;
|
|
365
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
366
|
+
fields?:
|
|
367
|
+
string;
|
|
368
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
369
|
+
key?:
|
|
370
|
+
string;
|
|
371
|
+
/** Required. The name of the step entry to retrieve. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/{step_entry} */
|
|
372
|
+
name:
|
|
373
|
+
string;
|
|
374
|
+
/** OAuth 2.0 token for the current user. */
|
|
375
|
+
oauth_token?:
|
|
376
|
+
string;
|
|
377
|
+
/** Returns response with indentations and line breaks. */
|
|
378
|
+
prettyPrint?:
|
|
379
|
+
boolean;
|
|
380
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
381
|
+
quotaUser?:
|
|
382
|
+
string;
|
|
383
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
384
|
+
upload_protocol?:
|
|
385
|
+
string;
|
|
386
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
387
|
+
uploadType?:
|
|
388
|
+
string;
|
|
389
|
+
}): Request<StepEntry>;
|
|
390
|
+
/** Lists step entries for the corresponding workflow execution. Returned entries are ordered by their create_time. */
|
|
391
|
+
list(request?: {
|
|
392
|
+
/** V1 error format. */
|
|
393
|
+
"$.xgafv"?:
|
|
394
|
+
string;
|
|
395
|
+
/** OAuth access token. */
|
|
396
|
+
access_token?:
|
|
397
|
+
string;
|
|
398
|
+
/** Data format for response. */
|
|
399
|
+
alt?:
|
|
400
|
+
string;
|
|
401
|
+
/** JSONP */
|
|
402
|
+
callback?:
|
|
403
|
+
string;
|
|
404
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
405
|
+
fields?:
|
|
406
|
+
string;
|
|
407
|
+
/**
|
|
408
|
+
* Optional. Filters applied to the `[StepEntries.ListStepEntries]` results. The following fields are supported for filtering: `entryId`, `createTime`, `updateTime`, `routine`,
|
|
409
|
+
* `step`, `stepType`, `state`. For details, see AIP-160. For example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or `createTime>"2023-08-01" AND
|
|
410
|
+
* state="FAILED"`
|
|
411
|
+
*/
|
|
412
|
+
filter?:
|
|
413
|
+
string;
|
|
414
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
415
|
+
key?:
|
|
416
|
+
string;
|
|
417
|
+
/** OAuth 2.0 token for the current user. */
|
|
418
|
+
oauth_token?:
|
|
419
|
+
string;
|
|
420
|
+
/**
|
|
421
|
+
* Optional. Comma-separated list of fields that specify the ordering applied to the `[StepEntries.ListStepEntries]` results. By default the ordering is based on ascending
|
|
422
|
+
* `entryId`. The following fields are supported for ordering: `entryId`, `createTime`, `updateTime`, `routine`, `step`, `stepType`, `state`. For details, see AIP-132.
|
|
423
|
+
*/
|
|
424
|
+
orderBy?:
|
|
425
|
+
string;
|
|
426
|
+
/** Optional. Number of step entries to return per call. The default max is 1000. */
|
|
427
|
+
pageSize?:
|
|
428
|
+
number;
|
|
429
|
+
/**
|
|
430
|
+
* Optional. A page token, received from a previous `ListStepEntries` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
|
|
431
|
+
* `ListStepEntries` must match the call that provided the page token.
|
|
432
|
+
*/
|
|
433
|
+
pageToken?:
|
|
434
|
+
string;
|
|
435
|
+
/** Required. Name of the workflow execution to list entries for. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/ */
|
|
436
|
+
parent:
|
|
437
|
+
string;
|
|
438
|
+
/** Returns response with indentations and line breaks. */
|
|
439
|
+
prettyPrint?:
|
|
440
|
+
boolean;
|
|
441
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
442
|
+
quotaUser?:
|
|
443
|
+
string;
|
|
444
|
+
/**
|
|
445
|
+
* Optional. The number of step entries to skip. It can be used with or without a pageToken. If used with a pageToken, then it indicates the number of step entries to skip starting
|
|
446
|
+
* from the requested page.
|
|
447
|
+
*/
|
|
448
|
+
skip?:
|
|
449
|
+
number;
|
|
450
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
451
|
+
upload_protocol?:
|
|
452
|
+
string;
|
|
453
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
454
|
+
uploadType?:
|
|
455
|
+
string;
|
|
456
|
+
}): Request<ListStepEntriesResponse>;
|
|
457
|
+
}
|
|
268
458
|
interface ExecutionsResource {
|
|
269
459
|
/** Cancels an execution of the given name. */
|
|
270
460
|
cancel(request: {
|
|
@@ -536,8 +726,9 @@ declare namespace gapi.client {
|
|
|
536
726
|
fields?:
|
|
537
727
|
string;
|
|
538
728
|
/**
|
|
539
|
-
* Optional. Filters applied to the [Executions.ListExecutions] results. The following fields are supported for filtering:
|
|
540
|
-
*
|
|
729
|
+
* Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `startTime`, `endTime`,
|
|
730
|
+
* `duration`, `workflowRevisionId`, `stepName`, and `label`. For details, see AIP-160. For example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or
|
|
731
|
+
* `startTime>"2023-08-01" AND state="FAILED"`
|
|
541
732
|
*/
|
|
542
733
|
filter?:
|
|
543
734
|
string;
|
|
@@ -548,8 +739,8 @@ declare namespace gapi.client {
|
|
|
548
739
|
oauth_token?:
|
|
549
740
|
string;
|
|
550
741
|
/**
|
|
551
|
-
* Optional.
|
|
552
|
-
*
|
|
742
|
+
* Optional. Comma-separated list of fields that specify the ordering applied to the `[Executions.ListExecutions]` results. By default the ordering is based on descending
|
|
743
|
+
* `startTime`. The following fields are supported for ordering: `executionId`, `state`, `startTime`, `endTime`, `duration`, and `workflowRevisionId`. For details, see AIP-132.
|
|
553
744
|
*/
|
|
554
745
|
orderBy?:
|
|
555
746
|
string;
|
|
@@ -586,6 +777,8 @@ declare namespace gapi.client {
|
|
|
586
777
|
}): Request<ListExecutionsResponse>;
|
|
587
778
|
callbacks:
|
|
588
779
|
CallbacksResource;
|
|
780
|
+
stepEntries:
|
|
781
|
+
StepEntriesResource;
|
|
589
782
|
}
|
|
590
783
|
interface WorkflowsResource {
|
|
591
784
|
/** Triggers a new execution using the latest revision of the given workflow by a Pub/Sub push notification. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20231017
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -124,5 +124,18 @@ gapi.load('client', async () => {
|
|
|
124
124
|
pageToken: "Test string",
|
|
125
125
|
parent: "Test string",
|
|
126
126
|
});
|
|
127
|
+
/** Gets a step entry. */
|
|
128
|
+
await gapi.client.workflowexecutions.projects.locations.workflows.executions.stepEntries.get({
|
|
129
|
+
name: "Test string",
|
|
130
|
+
});
|
|
131
|
+
/** Lists step entries for the corresponding workflow execution. Returned entries are ordered by their create_time. */
|
|
132
|
+
await gapi.client.workflowexecutions.projects.locations.workflows.executions.stepEntries.list({
|
|
133
|
+
filter: "Test string",
|
|
134
|
+
orderBy: "Test string",
|
|
135
|
+
pageSize: 42,
|
|
136
|
+
pageToken: "Test string",
|
|
137
|
+
parent: "Test string",
|
|
138
|
+
skip: 42,
|
|
139
|
+
});
|
|
127
140
|
}
|
|
128
141
|
});
|