@maxim_mazurok/gapi.client.workflows-v1beta 0.0.20230419 → 0.0.20230503
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 +397 -199
- package/package.json +1 -1
- package/tests.ts +1 -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://workflows.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230503
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -27,114 +27,149 @@ declare namespace gapi.client {
|
|
|
27
27
|
}
|
|
28
28
|
interface ListLocationsResponse {
|
|
29
29
|
/** A list of locations that matches the specified filter in the request. */
|
|
30
|
-
locations?:
|
|
30
|
+
locations?:
|
|
31
|
+
Location[];
|
|
31
32
|
/** The standard List next-page token. */
|
|
32
|
-
nextPageToken?:
|
|
33
|
+
nextPageToken?:
|
|
34
|
+
string;
|
|
33
35
|
}
|
|
34
36
|
interface ListOperationsResponse {
|
|
35
37
|
/** The standard List next-page token. */
|
|
36
|
-
nextPageToken?:
|
|
38
|
+
nextPageToken?:
|
|
39
|
+
string;
|
|
37
40
|
/** A list of operations that matches the specified filter in the request. */
|
|
38
|
-
operations?:
|
|
41
|
+
operations?:
|
|
42
|
+
Operation[];
|
|
39
43
|
}
|
|
40
44
|
interface ListWorkflowsResponse {
|
|
41
45
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
42
|
-
nextPageToken?:
|
|
46
|
+
nextPageToken?:
|
|
47
|
+
string;
|
|
43
48
|
/** Unreachable resources. */
|
|
44
|
-
unreachable?:
|
|
49
|
+
unreachable?:
|
|
50
|
+
string[];
|
|
45
51
|
/** The workflows which match the request. */
|
|
46
|
-
workflows?:
|
|
52
|
+
workflows?:
|
|
53
|
+
Workflow[];
|
|
47
54
|
}
|
|
48
55
|
interface Location {
|
|
49
56
|
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
|
50
|
-
displayName?:
|
|
57
|
+
displayName?:
|
|
58
|
+
string;
|
|
51
59
|
/** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
|
|
52
|
-
labels?:
|
|
60
|
+
labels?:
|
|
61
|
+
{ [P in string]: string };
|
|
53
62
|
/** The canonical id for this location. For example: `"us-east1"`. */
|
|
54
|
-
locationId?:
|
|
63
|
+
locationId?:
|
|
64
|
+
string;
|
|
55
65
|
/** Service-specific metadata. For example the available capacity at the given location. */
|
|
56
|
-
metadata?:
|
|
66
|
+
metadata?:
|
|
67
|
+
{ [P in string]: any };
|
|
57
68
|
/** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
|
|
58
|
-
name?:
|
|
69
|
+
name?:
|
|
70
|
+
string;
|
|
59
71
|
}
|
|
60
72
|
interface Operation {
|
|
61
73
|
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
62
|
-
done?:
|
|
74
|
+
done?:
|
|
75
|
+
boolean;
|
|
63
76
|
/** The error result of the operation in case of failure or cancellation. */
|
|
64
|
-
error?:
|
|
77
|
+
error?:
|
|
78
|
+
Status;
|
|
65
79
|
/**
|
|
66
80
|
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
|
|
67
81
|
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
68
82
|
*/
|
|
69
|
-
metadata?:
|
|
83
|
+
metadata?:
|
|
84
|
+
{ [P in string]: any };
|
|
70
85
|
/**
|
|
71
86
|
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
|
|
72
87
|
* with `operations/{unique_id}`.
|
|
73
88
|
*/
|
|
74
|
-
name?:
|
|
89
|
+
name?:
|
|
90
|
+
string;
|
|
75
91
|
/**
|
|
76
92
|
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
|
|
77
93
|
* original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
|
|
78
94
|
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
79
95
|
*/
|
|
80
|
-
response?:
|
|
96
|
+
response?:
|
|
97
|
+
{ [P in string]: any };
|
|
81
98
|
}
|
|
82
99
|
interface OperationMetadata {
|
|
83
100
|
/** API version used to start the operation. */
|
|
84
|
-
apiVersion?:
|
|
101
|
+
apiVersion?:
|
|
102
|
+
string;
|
|
85
103
|
/** The time the operation was created. */
|
|
86
|
-
createTime?:
|
|
104
|
+
createTime?:
|
|
105
|
+
string;
|
|
87
106
|
/** The time the operation finished running. */
|
|
88
|
-
endTime?:
|
|
107
|
+
endTime?:
|
|
108
|
+
string;
|
|
89
109
|
/** Server-defined resource path for the target of the operation. */
|
|
90
|
-
target?:
|
|
110
|
+
target?:
|
|
111
|
+
string;
|
|
91
112
|
/** Name of the verb executed by the operation. */
|
|
92
|
-
verb?:
|
|
113
|
+
verb?:
|
|
114
|
+
string;
|
|
93
115
|
}
|
|
94
116
|
interface Status {
|
|
95
117
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
96
|
-
code?:
|
|
118
|
+
code?:
|
|
119
|
+
number;
|
|
97
120
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
98
|
-
details?:
|
|
121
|
+
details?:
|
|
122
|
+
Array<{ [P in string]: any }>;
|
|
99
123
|
/**
|
|
100
124
|
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
|
|
101
125
|
* client.
|
|
102
126
|
*/
|
|
103
|
-
message?:
|
|
127
|
+
message?:
|
|
128
|
+
string;
|
|
104
129
|
}
|
|
105
130
|
interface Workflow {
|
|
106
131
|
/** Output only. The timestamp of when the workflow was created. */
|
|
107
|
-
createTime?:
|
|
132
|
+
createTime?:
|
|
133
|
+
string;
|
|
108
134
|
/** Description of the workflow provided by the user. Must be at most 1000 unicode characters long. */
|
|
109
|
-
description?:
|
|
135
|
+
description?:
|
|
136
|
+
string;
|
|
110
137
|
/**
|
|
111
138
|
* Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric
|
|
112
139
|
* characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
|
|
113
140
|
*/
|
|
114
|
-
labels?:
|
|
141
|
+
labels?:
|
|
142
|
+
{ [P in string]: string };
|
|
115
143
|
/** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
116
|
-
name?:
|
|
144
|
+
name?:
|
|
145
|
+
string;
|
|
117
146
|
/** Output only. The timestamp that the latest revision of the workflow was created. */
|
|
118
|
-
revisionCreateTime?:
|
|
147
|
+
revisionCreateTime?:
|
|
148
|
+
string;
|
|
119
149
|
/**
|
|
120
150
|
* Output only. The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code
|
|
121
151
|
* to be executed The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random
|
|
122
152
|
* characters.
|
|
123
153
|
*/
|
|
124
|
-
revisionId?:
|
|
154
|
+
revisionId?:
|
|
155
|
+
string;
|
|
125
156
|
/**
|
|
126
157
|
* The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has.
|
|
127
158
|
* Format: projects/{project}/serviceAccounts/{account} or {account} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account.
|
|
128
159
|
* The `{account}` value can be the `email` address or the `unique_id` of the service account. If not provided, workflow will use the project's default service account. Modifying this
|
|
129
160
|
* field for an existing workflow results in a new workflow revision.
|
|
130
161
|
*/
|
|
131
|
-
serviceAccount?:
|
|
162
|
+
serviceAccount?:
|
|
163
|
+
string;
|
|
132
164
|
/** Workflow code to be executed. The size limit is 128KB. */
|
|
133
|
-
sourceContents?:
|
|
165
|
+
sourceContents?:
|
|
166
|
+
string;
|
|
134
167
|
/** Output only. State of the workflow deployment. */
|
|
135
|
-
state?:
|
|
168
|
+
state?:
|
|
169
|
+
string;
|
|
136
170
|
/** Output only. The last update timestamp of the workflow. */
|
|
137
|
-
updateTime?:
|
|
171
|
+
updateTime?:
|
|
172
|
+
string;
|
|
138
173
|
}
|
|
139
174
|
interface OperationsResource {
|
|
140
175
|
/**
|
|
@@ -143,255 +178,361 @@ declare namespace gapi.client {
|
|
|
143
178
|
*/
|
|
144
179
|
delete(request?: {
|
|
145
180
|
/** V1 error format. */
|
|
146
|
-
"$.xgafv"?:
|
|
181
|
+
"$.xgafv"?:
|
|
182
|
+
string;
|
|
147
183
|
/** OAuth access token. */
|
|
148
|
-
access_token?:
|
|
184
|
+
access_token?:
|
|
185
|
+
string;
|
|
149
186
|
/** Data format for response. */
|
|
150
|
-
alt?:
|
|
187
|
+
alt?:
|
|
188
|
+
string;
|
|
151
189
|
/** JSONP */
|
|
152
|
-
callback?:
|
|
190
|
+
callback?:
|
|
191
|
+
string;
|
|
153
192
|
/** Selector specifying which fields to include in a partial response. */
|
|
154
|
-
fields?:
|
|
193
|
+
fields?:
|
|
194
|
+
string;
|
|
155
195
|
/** 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. */
|
|
156
|
-
key?:
|
|
196
|
+
key?:
|
|
197
|
+
string;
|
|
157
198
|
/** The name of the operation resource to be deleted. */
|
|
158
|
-
name:
|
|
199
|
+
name:
|
|
200
|
+
string;
|
|
159
201
|
/** OAuth 2.0 token for the current user. */
|
|
160
|
-
oauth_token?:
|
|
202
|
+
oauth_token?:
|
|
203
|
+
string;
|
|
161
204
|
/** Returns response with indentations and line breaks. */
|
|
162
|
-
prettyPrint?:
|
|
205
|
+
prettyPrint?:
|
|
206
|
+
boolean;
|
|
163
207
|
/** 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. */
|
|
164
|
-
quotaUser?:
|
|
208
|
+
quotaUser?:
|
|
209
|
+
string;
|
|
165
210
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
166
|
-
upload_protocol?:
|
|
211
|
+
upload_protocol?:
|
|
212
|
+
string;
|
|
167
213
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
168
|
-
uploadType?:
|
|
214
|
+
uploadType?:
|
|
215
|
+
string;
|
|
169
216
|
}): Request<{}>;
|
|
170
217
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
171
218
|
get(request?: {
|
|
172
219
|
/** V1 error format. */
|
|
173
|
-
"$.xgafv"?:
|
|
220
|
+
"$.xgafv"?:
|
|
221
|
+
string;
|
|
174
222
|
/** OAuth access token. */
|
|
175
|
-
access_token?:
|
|
223
|
+
access_token?:
|
|
224
|
+
string;
|
|
176
225
|
/** Data format for response. */
|
|
177
|
-
alt?:
|
|
226
|
+
alt?:
|
|
227
|
+
string;
|
|
178
228
|
/** JSONP */
|
|
179
|
-
callback?:
|
|
229
|
+
callback?:
|
|
230
|
+
string;
|
|
180
231
|
/** Selector specifying which fields to include in a partial response. */
|
|
181
|
-
fields?:
|
|
232
|
+
fields?:
|
|
233
|
+
string;
|
|
182
234
|
/** 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. */
|
|
183
|
-
key?:
|
|
235
|
+
key?:
|
|
236
|
+
string;
|
|
184
237
|
/** The name of the operation resource. */
|
|
185
|
-
name:
|
|
238
|
+
name:
|
|
239
|
+
string;
|
|
186
240
|
/** OAuth 2.0 token for the current user. */
|
|
187
|
-
oauth_token?:
|
|
241
|
+
oauth_token?:
|
|
242
|
+
string;
|
|
188
243
|
/** Returns response with indentations and line breaks. */
|
|
189
|
-
prettyPrint?:
|
|
244
|
+
prettyPrint?:
|
|
245
|
+
boolean;
|
|
190
246
|
/** 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. */
|
|
191
|
-
quotaUser?:
|
|
247
|
+
quotaUser?:
|
|
248
|
+
string;
|
|
192
249
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
193
|
-
upload_protocol?:
|
|
250
|
+
upload_protocol?:
|
|
251
|
+
string;
|
|
194
252
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
195
|
-
uploadType?:
|
|
253
|
+
uploadType?:
|
|
254
|
+
string;
|
|
196
255
|
}): Request<Operation>;
|
|
197
256
|
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
198
257
|
list(request?: {
|
|
199
258
|
/** V1 error format. */
|
|
200
|
-
"$.xgafv"?:
|
|
259
|
+
"$.xgafv"?:
|
|
260
|
+
string;
|
|
201
261
|
/** OAuth access token. */
|
|
202
|
-
access_token?:
|
|
262
|
+
access_token?:
|
|
263
|
+
string;
|
|
203
264
|
/** Data format for response. */
|
|
204
|
-
alt?:
|
|
265
|
+
alt?:
|
|
266
|
+
string;
|
|
205
267
|
/** JSONP */
|
|
206
|
-
callback?:
|
|
268
|
+
callback?:
|
|
269
|
+
string;
|
|
207
270
|
/** Selector specifying which fields to include in a partial response. */
|
|
208
|
-
fields?:
|
|
271
|
+
fields?:
|
|
272
|
+
string;
|
|
209
273
|
/** The standard list filter. */
|
|
210
|
-
filter?:
|
|
274
|
+
filter?:
|
|
275
|
+
string;
|
|
211
276
|
/** 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. */
|
|
212
|
-
key?:
|
|
277
|
+
key?:
|
|
278
|
+
string;
|
|
213
279
|
/** The name of the operation's parent resource. */
|
|
214
|
-
name:
|
|
280
|
+
name:
|
|
281
|
+
string;
|
|
215
282
|
/** OAuth 2.0 token for the current user. */
|
|
216
|
-
oauth_token?:
|
|
283
|
+
oauth_token?:
|
|
284
|
+
string;
|
|
217
285
|
/** The standard list page size. */
|
|
218
|
-
pageSize?:
|
|
286
|
+
pageSize?:
|
|
287
|
+
number;
|
|
219
288
|
/** The standard list page token. */
|
|
220
|
-
pageToken?:
|
|
289
|
+
pageToken?:
|
|
290
|
+
string;
|
|
221
291
|
/** Returns response with indentations and line breaks. */
|
|
222
|
-
prettyPrint?:
|
|
292
|
+
prettyPrint?:
|
|
293
|
+
boolean;
|
|
223
294
|
/** 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. */
|
|
224
|
-
quotaUser?:
|
|
295
|
+
quotaUser?:
|
|
296
|
+
string;
|
|
225
297
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
226
|
-
upload_protocol?:
|
|
298
|
+
upload_protocol?:
|
|
299
|
+
string;
|
|
227
300
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
228
|
-
uploadType?:
|
|
301
|
+
uploadType?:
|
|
302
|
+
string;
|
|
229
303
|
}): Request<ListOperationsResponse>;
|
|
230
304
|
}
|
|
231
305
|
interface WorkflowsResource {
|
|
232
306
|
/** Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return ALREADY_EXISTS error. */
|
|
233
307
|
create(request: {
|
|
234
308
|
/** V1 error format. */
|
|
235
|
-
"$.xgafv"?:
|
|
309
|
+
"$.xgafv"?:
|
|
310
|
+
string;
|
|
236
311
|
/** OAuth access token. */
|
|
237
|
-
access_token?:
|
|
312
|
+
access_token?:
|
|
313
|
+
string;
|
|
238
314
|
/** Data format for response. */
|
|
239
|
-
alt?:
|
|
315
|
+
alt?:
|
|
316
|
+
string;
|
|
240
317
|
/** JSONP */
|
|
241
|
-
callback?:
|
|
318
|
+
callback?:
|
|
319
|
+
string;
|
|
242
320
|
/** Selector specifying which fields to include in a partial response. */
|
|
243
|
-
fields?:
|
|
321
|
+
fields?:
|
|
322
|
+
string;
|
|
244
323
|
/** 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. */
|
|
245
|
-
key?:
|
|
324
|
+
key?:
|
|
325
|
+
string;
|
|
246
326
|
/** OAuth 2.0 token for the current user. */
|
|
247
|
-
oauth_token?:
|
|
327
|
+
oauth_token?:
|
|
328
|
+
string;
|
|
248
329
|
/** Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} */
|
|
249
|
-
parent:
|
|
330
|
+
parent:
|
|
331
|
+
string;
|
|
250
332
|
/** Returns response with indentations and line breaks. */
|
|
251
|
-
prettyPrint?:
|
|
333
|
+
prettyPrint?:
|
|
334
|
+
boolean;
|
|
252
335
|
/** 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. */
|
|
253
|
-
quotaUser?:
|
|
336
|
+
quotaUser?:
|
|
337
|
+
string;
|
|
254
338
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
255
|
-
upload_protocol?:
|
|
339
|
+
upload_protocol?:
|
|
340
|
+
string;
|
|
256
341
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
257
|
-
uploadType?:
|
|
342
|
+
uploadType?:
|
|
343
|
+
string;
|
|
258
344
|
/**
|
|
259
345
|
* Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a
|
|
260
346
|
* letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
|
|
261
347
|
*/
|
|
262
|
-
workflowId?:
|
|
348
|
+
workflowId?:
|
|
349
|
+
string;
|
|
263
350
|
/** Request body */
|
|
264
|
-
resource:
|
|
351
|
+
resource:
|
|
352
|
+
Workflow;
|
|
265
353
|
}): Request<Operation>;
|
|
266
354
|
create(request: {
|
|
267
355
|
/** V1 error format. */
|
|
268
|
-
"$.xgafv"?:
|
|
356
|
+
"$.xgafv"?:
|
|
357
|
+
string;
|
|
269
358
|
/** OAuth access token. */
|
|
270
|
-
access_token?:
|
|
359
|
+
access_token?:
|
|
360
|
+
string;
|
|
271
361
|
/** Data format for response. */
|
|
272
|
-
alt?:
|
|
362
|
+
alt?:
|
|
363
|
+
string;
|
|
273
364
|
/** JSONP */
|
|
274
|
-
callback?:
|
|
365
|
+
callback?:
|
|
366
|
+
string;
|
|
275
367
|
/** Selector specifying which fields to include in a partial response. */
|
|
276
|
-
fields?:
|
|
368
|
+
fields?:
|
|
369
|
+
string;
|
|
277
370
|
/** 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. */
|
|
278
|
-
key?:
|
|
371
|
+
key?:
|
|
372
|
+
string;
|
|
279
373
|
/** OAuth 2.0 token for the current user. */
|
|
280
|
-
oauth_token?:
|
|
374
|
+
oauth_token?:
|
|
375
|
+
string;
|
|
281
376
|
/** Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} */
|
|
282
|
-
parent:
|
|
377
|
+
parent:
|
|
378
|
+
string;
|
|
283
379
|
/** Returns response with indentations and line breaks. */
|
|
284
|
-
prettyPrint?:
|
|
380
|
+
prettyPrint?:
|
|
381
|
+
boolean;
|
|
285
382
|
/** 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. */
|
|
286
|
-
quotaUser?:
|
|
383
|
+
quotaUser?:
|
|
384
|
+
string;
|
|
287
385
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
288
|
-
upload_protocol?:
|
|
386
|
+
upload_protocol?:
|
|
387
|
+
string;
|
|
289
388
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
290
|
-
uploadType?:
|
|
389
|
+
uploadType?:
|
|
390
|
+
string;
|
|
291
391
|
/**
|
|
292
392
|
* Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a
|
|
293
393
|
* letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
|
|
294
394
|
*/
|
|
295
|
-
workflowId?:
|
|
395
|
+
workflowId?:
|
|
396
|
+
string;
|
|
296
397
|
},
|
|
297
398
|
body: Workflow): Request<Operation>;
|
|
298
399
|
/** Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow. */
|
|
299
400
|
delete(request?: {
|
|
300
401
|
/** V1 error format. */
|
|
301
|
-
"$.xgafv"?:
|
|
402
|
+
"$.xgafv"?:
|
|
403
|
+
string;
|
|
302
404
|
/** OAuth access token. */
|
|
303
|
-
access_token?:
|
|
405
|
+
access_token?:
|
|
406
|
+
string;
|
|
304
407
|
/** Data format for response. */
|
|
305
|
-
alt?:
|
|
408
|
+
alt?:
|
|
409
|
+
string;
|
|
306
410
|
/** JSONP */
|
|
307
|
-
callback?:
|
|
411
|
+
callback?:
|
|
412
|
+
string;
|
|
308
413
|
/** Selector specifying which fields to include in a partial response. */
|
|
309
|
-
fields?:
|
|
414
|
+
fields?:
|
|
415
|
+
string;
|
|
310
416
|
/** 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. */
|
|
311
|
-
key?:
|
|
417
|
+
key?:
|
|
418
|
+
string;
|
|
312
419
|
/** Required. Name of the workflow to be deleted. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
313
|
-
name:
|
|
420
|
+
name:
|
|
421
|
+
string;
|
|
314
422
|
/** OAuth 2.0 token for the current user. */
|
|
315
|
-
oauth_token?:
|
|
423
|
+
oauth_token?:
|
|
424
|
+
string;
|
|
316
425
|
/** Returns response with indentations and line breaks. */
|
|
317
|
-
prettyPrint?:
|
|
426
|
+
prettyPrint?:
|
|
427
|
+
boolean;
|
|
318
428
|
/** 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. */
|
|
319
|
-
quotaUser?:
|
|
429
|
+
quotaUser?:
|
|
430
|
+
string;
|
|
320
431
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
321
|
-
upload_protocol?:
|
|
432
|
+
upload_protocol?:
|
|
433
|
+
string;
|
|
322
434
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
323
|
-
uploadType?:
|
|
435
|
+
uploadType?:
|
|
436
|
+
string;
|
|
324
437
|
}): Request<Operation>;
|
|
325
438
|
/** Gets details of a single Workflow. */
|
|
326
439
|
get(request?: {
|
|
327
440
|
/** V1 error format. */
|
|
328
|
-
"$.xgafv"?:
|
|
441
|
+
"$.xgafv"?:
|
|
442
|
+
string;
|
|
329
443
|
/** OAuth access token. */
|
|
330
|
-
access_token?:
|
|
444
|
+
access_token?:
|
|
445
|
+
string;
|
|
331
446
|
/** Data format for response. */
|
|
332
|
-
alt?:
|
|
447
|
+
alt?:
|
|
448
|
+
string;
|
|
333
449
|
/** JSONP */
|
|
334
|
-
callback?:
|
|
450
|
+
callback?:
|
|
451
|
+
string;
|
|
335
452
|
/** Selector specifying which fields to include in a partial response. */
|
|
336
|
-
fields?:
|
|
453
|
+
fields?:
|
|
454
|
+
string;
|
|
337
455
|
/** 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. */
|
|
338
|
-
key?:
|
|
456
|
+
key?:
|
|
457
|
+
string;
|
|
339
458
|
/** Required. Name of the workflow which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
340
|
-
name:
|
|
459
|
+
name:
|
|
460
|
+
string;
|
|
341
461
|
/** OAuth 2.0 token for the current user. */
|
|
342
|
-
oauth_token?:
|
|
462
|
+
oauth_token?:
|
|
463
|
+
string;
|
|
343
464
|
/** Returns response with indentations and line breaks. */
|
|
344
|
-
prettyPrint?:
|
|
465
|
+
prettyPrint?:
|
|
466
|
+
boolean;
|
|
345
467
|
/** 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. */
|
|
346
|
-
quotaUser?:
|
|
468
|
+
quotaUser?:
|
|
469
|
+
string;
|
|
347
470
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
348
|
-
upload_protocol?:
|
|
471
|
+
upload_protocol?:
|
|
472
|
+
string;
|
|
349
473
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
350
|
-
uploadType?:
|
|
474
|
+
uploadType?:
|
|
475
|
+
string;
|
|
351
476
|
}): Request<Workflow>;
|
|
352
477
|
/** Lists Workflows in a given project and location. The default order is not specified. */
|
|
353
478
|
list(request?: {
|
|
354
479
|
/** V1 error format. */
|
|
355
|
-
"$.xgafv"?:
|
|
480
|
+
"$.xgafv"?:
|
|
481
|
+
string;
|
|
356
482
|
/** OAuth access token. */
|
|
357
|
-
access_token?:
|
|
483
|
+
access_token?:
|
|
484
|
+
string;
|
|
358
485
|
/** Data format for response. */
|
|
359
|
-
alt?:
|
|
486
|
+
alt?:
|
|
487
|
+
string;
|
|
360
488
|
/** JSONP */
|
|
361
|
-
callback?:
|
|
489
|
+
callback?:
|
|
490
|
+
string;
|
|
362
491
|
/** Selector specifying which fields to include in a partial response. */
|
|
363
|
-
fields?:
|
|
492
|
+
fields?:
|
|
493
|
+
string;
|
|
364
494
|
/** Filter to restrict results to specific workflows. */
|
|
365
|
-
filter?:
|
|
495
|
+
filter?:
|
|
496
|
+
string;
|
|
366
497
|
/** 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. */
|
|
367
|
-
key?:
|
|
498
|
+
key?:
|
|
499
|
+
string;
|
|
368
500
|
/** OAuth 2.0 token for the current user. */
|
|
369
|
-
oauth_token?:
|
|
501
|
+
oauth_token?:
|
|
502
|
+
string;
|
|
370
503
|
/**
|
|
371
504
|
* Comma-separated list of fields that that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a "
|
|
372
505
|
* desc" suffix. If not specified, the results will be returned in an unspecified order.
|
|
373
506
|
*/
|
|
374
|
-
orderBy?:
|
|
507
|
+
orderBy?:
|
|
508
|
+
string;
|
|
375
509
|
/**
|
|
376
510
|
* Maximum number of workflows to return per call. The service may return fewer than this value. If the value is not specified, a default value of 500 will be used. The maximum
|
|
377
511
|
* permitted value is 1000 and values greater than 1000 will be coerced down to 1000.
|
|
378
512
|
*/
|
|
379
|
-
pageSize?:
|
|
513
|
+
pageSize?:
|
|
514
|
+
number;
|
|
380
515
|
/**
|
|
381
516
|
* A page token, received from a previous `ListWorkflows` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflows` must
|
|
382
517
|
* match the call that provided the page token.
|
|
383
518
|
*/
|
|
384
|
-
pageToken?:
|
|
519
|
+
pageToken?:
|
|
520
|
+
string;
|
|
385
521
|
/** Required. Project and location from which the workflows should be listed. Format: projects/{project}/locations/{location} */
|
|
386
|
-
parent:
|
|
522
|
+
parent:
|
|
523
|
+
string;
|
|
387
524
|
/** Returns response with indentations and line breaks. */
|
|
388
|
-
prettyPrint?:
|
|
525
|
+
prettyPrint?:
|
|
526
|
+
boolean;
|
|
389
527
|
/** 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. */
|
|
390
|
-
quotaUser?:
|
|
528
|
+
quotaUser?:
|
|
529
|
+
string;
|
|
391
530
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
392
|
-
upload_protocol?:
|
|
531
|
+
upload_protocol?:
|
|
532
|
+
string;
|
|
393
533
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
394
|
-
uploadType?:
|
|
534
|
+
uploadType?:
|
|
535
|
+
string;
|
|
395
536
|
}): Request<ListWorkflowsResponse>;
|
|
396
537
|
/**
|
|
397
538
|
* Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow may be created as a result of a
|
|
@@ -399,61 +540,88 @@ declare namespace gapi.client {
|
|
|
399
540
|
*/
|
|
400
541
|
patch(request: {
|
|
401
542
|
/** V1 error format. */
|
|
402
|
-
"$.xgafv"?:
|
|
543
|
+
"$.xgafv"?:
|
|
544
|
+
string;
|
|
403
545
|
/** OAuth access token. */
|
|
404
|
-
access_token?:
|
|
546
|
+
access_token?:
|
|
547
|
+
string;
|
|
405
548
|
/** Data format for response. */
|
|
406
|
-
alt?:
|
|
549
|
+
alt?:
|
|
550
|
+
string;
|
|
407
551
|
/** JSONP */
|
|
408
|
-
callback?:
|
|
552
|
+
callback?:
|
|
553
|
+
string;
|
|
409
554
|
/** Selector specifying which fields to include in a partial response. */
|
|
410
|
-
fields?:
|
|
555
|
+
fields?:
|
|
556
|
+
string;
|
|
411
557
|
/** 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. */
|
|
412
|
-
key?:
|
|
558
|
+
key?:
|
|
559
|
+
string;
|
|
413
560
|
/** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
414
|
-
name:
|
|
561
|
+
name:
|
|
562
|
+
string;
|
|
415
563
|
/** OAuth 2.0 token for the current user. */
|
|
416
|
-
oauth_token?:
|
|
564
|
+
oauth_token?:
|
|
565
|
+
string;
|
|
417
566
|
/** Returns response with indentations and line breaks. */
|
|
418
|
-
prettyPrint?:
|
|
567
|
+
prettyPrint?:
|
|
568
|
+
boolean;
|
|
419
569
|
/** 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. */
|
|
420
|
-
quotaUser?:
|
|
570
|
+
quotaUser?:
|
|
571
|
+
string;
|
|
421
572
|
/** List of fields to be updated. If not present, the entire workflow will be updated. */
|
|
422
|
-
updateMask?:
|
|
573
|
+
updateMask?:
|
|
574
|
+
string;
|
|
423
575
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
424
|
-
upload_protocol?:
|
|
576
|
+
upload_protocol?:
|
|
577
|
+
string;
|
|
425
578
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
426
|
-
uploadType?:
|
|
579
|
+
uploadType?:
|
|
580
|
+
string;
|
|
427
581
|
/** Request body */
|
|
428
|
-
resource:
|
|
582
|
+
resource:
|
|
583
|
+
Workflow;
|
|
429
584
|
}): Request<Operation>;
|
|
430
585
|
patch(request: {
|
|
431
586
|
/** V1 error format. */
|
|
432
|
-
"$.xgafv"?:
|
|
587
|
+
"$.xgafv"?:
|
|
588
|
+
string;
|
|
433
589
|
/** OAuth access token. */
|
|
434
|
-
access_token?:
|
|
590
|
+
access_token?:
|
|
591
|
+
string;
|
|
435
592
|
/** Data format for response. */
|
|
436
|
-
alt?:
|
|
593
|
+
alt?:
|
|
594
|
+
string;
|
|
437
595
|
/** JSONP */
|
|
438
|
-
callback?:
|
|
596
|
+
callback?:
|
|
597
|
+
string;
|
|
439
598
|
/** Selector specifying which fields to include in a partial response. */
|
|
440
|
-
fields?:
|
|
599
|
+
fields?:
|
|
600
|
+
string;
|
|
441
601
|
/** 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. */
|
|
442
|
-
key?:
|
|
602
|
+
key?:
|
|
603
|
+
string;
|
|
443
604
|
/** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
444
|
-
name:
|
|
605
|
+
name:
|
|
606
|
+
string;
|
|
445
607
|
/** OAuth 2.0 token for the current user. */
|
|
446
|
-
oauth_token?:
|
|
608
|
+
oauth_token?:
|
|
609
|
+
string;
|
|
447
610
|
/** Returns response with indentations and line breaks. */
|
|
448
|
-
prettyPrint?:
|
|
611
|
+
prettyPrint?:
|
|
612
|
+
boolean;
|
|
449
613
|
/** 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. */
|
|
450
|
-
quotaUser?:
|
|
614
|
+
quotaUser?:
|
|
615
|
+
string;
|
|
451
616
|
/** List of fields to be updated. If not present, the entire workflow will be updated. */
|
|
452
|
-
updateMask?:
|
|
617
|
+
updateMask?:
|
|
618
|
+
string;
|
|
453
619
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
454
|
-
upload_protocol?:
|
|
620
|
+
upload_protocol?:
|
|
621
|
+
string;
|
|
455
622
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
456
|
-
uploadType?:
|
|
623
|
+
uploadType?:
|
|
624
|
+
string;
|
|
457
625
|
},
|
|
458
626
|
body: Workflow): Request<Operation>;
|
|
459
627
|
}
|
|
@@ -461,71 +629,101 @@ declare namespace gapi.client {
|
|
|
461
629
|
/** Gets information about a location. */
|
|
462
630
|
get(request?: {
|
|
463
631
|
/** V1 error format. */
|
|
464
|
-
"$.xgafv"?:
|
|
632
|
+
"$.xgafv"?:
|
|
633
|
+
string;
|
|
465
634
|
/** OAuth access token. */
|
|
466
|
-
access_token?:
|
|
635
|
+
access_token?:
|
|
636
|
+
string;
|
|
467
637
|
/** Data format for response. */
|
|
468
|
-
alt?:
|
|
638
|
+
alt?:
|
|
639
|
+
string;
|
|
469
640
|
/** JSONP */
|
|
470
|
-
callback?:
|
|
641
|
+
callback?:
|
|
642
|
+
string;
|
|
471
643
|
/** Selector specifying which fields to include in a partial response. */
|
|
472
|
-
fields?:
|
|
644
|
+
fields?:
|
|
645
|
+
string;
|
|
473
646
|
/** 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. */
|
|
474
|
-
key?:
|
|
647
|
+
key?:
|
|
648
|
+
string;
|
|
475
649
|
/** Resource name for the location. */
|
|
476
|
-
name:
|
|
650
|
+
name:
|
|
651
|
+
string;
|
|
477
652
|
/** OAuth 2.0 token for the current user. */
|
|
478
|
-
oauth_token?:
|
|
653
|
+
oauth_token?:
|
|
654
|
+
string;
|
|
479
655
|
/** Returns response with indentations and line breaks. */
|
|
480
|
-
prettyPrint?:
|
|
656
|
+
prettyPrint?:
|
|
657
|
+
boolean;
|
|
481
658
|
/** 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. */
|
|
482
|
-
quotaUser?:
|
|
659
|
+
quotaUser?:
|
|
660
|
+
string;
|
|
483
661
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
484
|
-
upload_protocol?:
|
|
662
|
+
upload_protocol?:
|
|
663
|
+
string;
|
|
485
664
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
486
|
-
uploadType?:
|
|
665
|
+
uploadType?:
|
|
666
|
+
string;
|
|
487
667
|
}): Request<Location>;
|
|
488
668
|
/** Lists information about the supported locations for this service. */
|
|
489
669
|
list(request?: {
|
|
490
670
|
/** V1 error format. */
|
|
491
|
-
"$.xgafv"?:
|
|
671
|
+
"$.xgafv"?:
|
|
672
|
+
string;
|
|
492
673
|
/** OAuth access token. */
|
|
493
|
-
access_token?:
|
|
674
|
+
access_token?:
|
|
675
|
+
string;
|
|
494
676
|
/** Data format for response. */
|
|
495
|
-
alt?:
|
|
677
|
+
alt?:
|
|
678
|
+
string;
|
|
496
679
|
/** JSONP */
|
|
497
|
-
callback?:
|
|
680
|
+
callback?:
|
|
681
|
+
string;
|
|
498
682
|
/** Selector specifying which fields to include in a partial response. */
|
|
499
|
-
fields?:
|
|
683
|
+
fields?:
|
|
684
|
+
string;
|
|
500
685
|
/**
|
|
501
686
|
* A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
|
|
502
687
|
* [AIP-160](https://google.aip.dev/160).
|
|
503
688
|
*/
|
|
504
|
-
filter?:
|
|
689
|
+
filter?:
|
|
690
|
+
string;
|
|
505
691
|
/** 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. */
|
|
506
|
-
key?:
|
|
692
|
+
key?:
|
|
693
|
+
string;
|
|
507
694
|
/** The resource that owns the locations collection, if applicable. */
|
|
508
|
-
name:
|
|
695
|
+
name:
|
|
696
|
+
string;
|
|
509
697
|
/** OAuth 2.0 token for the current user. */
|
|
510
|
-
oauth_token?:
|
|
698
|
+
oauth_token?:
|
|
699
|
+
string;
|
|
511
700
|
/** The maximum number of results to return. If not set, the service selects a default. */
|
|
512
|
-
pageSize?:
|
|
701
|
+
pageSize?:
|
|
702
|
+
number;
|
|
513
703
|
/** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
|
|
514
|
-
pageToken?:
|
|
704
|
+
pageToken?:
|
|
705
|
+
string;
|
|
515
706
|
/** Returns response with indentations and line breaks. */
|
|
516
|
-
prettyPrint?:
|
|
707
|
+
prettyPrint?:
|
|
708
|
+
boolean;
|
|
517
709
|
/** 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. */
|
|
518
|
-
quotaUser?:
|
|
710
|
+
quotaUser?:
|
|
711
|
+
string;
|
|
519
712
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
520
|
-
upload_protocol?:
|
|
713
|
+
upload_protocol?:
|
|
714
|
+
string;
|
|
521
715
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
522
|
-
uploadType?:
|
|
716
|
+
uploadType?:
|
|
717
|
+
string;
|
|
523
718
|
}): Request<ListLocationsResponse>;
|
|
524
|
-
operations:
|
|
525
|
-
|
|
719
|
+
operations:
|
|
720
|
+
OperationsResource;
|
|
721
|
+
workflows:
|
|
722
|
+
WorkflowsResource;
|
|
526
723
|
}
|
|
527
724
|
interface ProjectsResource {
|
|
528
|
-
locations:
|
|
725
|
+
locations:
|
|
726
|
+
LocationsResource;
|
|
529
727
|
}
|
|
530
728
|
|
|
531
729
|
const projects: ProjectsResource;
|
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: 20230503
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|