@maxim_mazurok/gapi.client.workflows-v1 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 +409 -205
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230503
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -27,133 +27,173 @@ 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 that 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 StateError {
|
|
95
117
|
/** Provides specifics about the error. */
|
|
96
|
-
details?:
|
|
118
|
+
details?:
|
|
119
|
+
string;
|
|
97
120
|
/** The type of this state error. */
|
|
98
|
-
type?:
|
|
121
|
+
type?:
|
|
122
|
+
string;
|
|
99
123
|
}
|
|
100
124
|
interface Status {
|
|
101
125
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
102
|
-
code?:
|
|
126
|
+
code?:
|
|
127
|
+
number;
|
|
103
128
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
104
|
-
details?:
|
|
129
|
+
details?:
|
|
130
|
+
Array<{ [P in string]: any }>;
|
|
105
131
|
/**
|
|
106
132
|
* 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
|
|
107
133
|
* client.
|
|
108
134
|
*/
|
|
109
|
-
message?:
|
|
135
|
+
message?:
|
|
136
|
+
string;
|
|
110
137
|
}
|
|
111
138
|
interface Workflow {
|
|
112
139
|
/**
|
|
113
140
|
* Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging
|
|
114
141
|
* level, the execution level takes precedence.
|
|
115
142
|
*/
|
|
116
|
-
callLogLevel?:
|
|
143
|
+
callLogLevel?:
|
|
144
|
+
string;
|
|
117
145
|
/** Output only. The timestamp for when the workflow was created. */
|
|
118
|
-
createTime?:
|
|
146
|
+
createTime?:
|
|
147
|
+
string;
|
|
119
148
|
/**
|
|
120
149
|
* Optional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow. Format:
|
|
121
150
|
* projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from
|
|
122
151
|
* the account. If not provided, data associated with the workflow will not be CMEK-encrypted.
|
|
123
152
|
*/
|
|
124
|
-
cryptoKeyName?:
|
|
153
|
+
cryptoKeyName?:
|
|
154
|
+
string;
|
|
125
155
|
/** Description of the workflow provided by the user. Must be at most 1000 unicode characters long. */
|
|
126
|
-
description?:
|
|
156
|
+
description?:
|
|
157
|
+
string;
|
|
127
158
|
/**
|
|
128
159
|
* 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
|
|
129
160
|
* characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed.
|
|
130
161
|
*/
|
|
131
|
-
labels?:
|
|
162
|
+
labels?:
|
|
163
|
+
{ [P in string]: string };
|
|
132
164
|
/** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
133
|
-
name?:
|
|
165
|
+
name?:
|
|
166
|
+
string;
|
|
134
167
|
/** Output only. The timestamp for the latest revision of the workflow's creation. */
|
|
135
|
-
revisionCreateTime?:
|
|
168
|
+
revisionCreateTime?:
|
|
169
|
+
string;
|
|
136
170
|
/**
|
|
137
171
|
* 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
|
|
138
172
|
* 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
|
|
139
173
|
* characters.
|
|
140
174
|
*/
|
|
141
|
-
revisionId?:
|
|
175
|
+
revisionId?:
|
|
176
|
+
string;
|
|
142
177
|
/**
|
|
143
178
|
* 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.
|
|
144
179
|
* 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.
|
|
145
180
|
* 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
|
|
146
181
|
* field for an existing workflow results in a new workflow revision.
|
|
147
182
|
*/
|
|
148
|
-
serviceAccount?:
|
|
183
|
+
serviceAccount?:
|
|
184
|
+
string;
|
|
149
185
|
/** Workflow code to be executed. The size limit is 128KB. */
|
|
150
|
-
sourceContents?:
|
|
186
|
+
sourceContents?:
|
|
187
|
+
string;
|
|
151
188
|
/** Output only. State of the workflow deployment. */
|
|
152
|
-
state?:
|
|
189
|
+
state?:
|
|
190
|
+
string;
|
|
153
191
|
/** Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions. */
|
|
154
|
-
stateError?:
|
|
192
|
+
stateError?:
|
|
193
|
+
StateError;
|
|
155
194
|
/** Output only. The timestamp for when the workflow was last updated. */
|
|
156
|
-
updateTime?:
|
|
195
|
+
updateTime?:
|
|
196
|
+
string;
|
|
157
197
|
}
|
|
158
198
|
interface OperationsResource {
|
|
159
199
|
/**
|
|
@@ -162,260 +202,367 @@ declare namespace gapi.client {
|
|
|
162
202
|
*/
|
|
163
203
|
delete(request?: {
|
|
164
204
|
/** V1 error format. */
|
|
165
|
-
"$.xgafv"?:
|
|
205
|
+
"$.xgafv"?:
|
|
206
|
+
string;
|
|
166
207
|
/** OAuth access token. */
|
|
167
|
-
access_token?:
|
|
208
|
+
access_token?:
|
|
209
|
+
string;
|
|
168
210
|
/** Data format for response. */
|
|
169
|
-
alt?:
|
|
211
|
+
alt?:
|
|
212
|
+
string;
|
|
170
213
|
/** JSONP */
|
|
171
|
-
callback?:
|
|
214
|
+
callback?:
|
|
215
|
+
string;
|
|
172
216
|
/** Selector specifying which fields to include in a partial response. */
|
|
173
|
-
fields?:
|
|
217
|
+
fields?:
|
|
218
|
+
string;
|
|
174
219
|
/** 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. */
|
|
175
|
-
key?:
|
|
220
|
+
key?:
|
|
221
|
+
string;
|
|
176
222
|
/** The name of the operation resource to be deleted. */
|
|
177
|
-
name:
|
|
223
|
+
name:
|
|
224
|
+
string;
|
|
178
225
|
/** OAuth 2.0 token for the current user. */
|
|
179
|
-
oauth_token?:
|
|
226
|
+
oauth_token?:
|
|
227
|
+
string;
|
|
180
228
|
/** Returns response with indentations and line breaks. */
|
|
181
|
-
prettyPrint?:
|
|
229
|
+
prettyPrint?:
|
|
230
|
+
boolean;
|
|
182
231
|
/** 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. */
|
|
183
|
-
quotaUser?:
|
|
232
|
+
quotaUser?:
|
|
233
|
+
string;
|
|
184
234
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
185
|
-
upload_protocol?:
|
|
235
|
+
upload_protocol?:
|
|
236
|
+
string;
|
|
186
237
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
187
|
-
uploadType?:
|
|
238
|
+
uploadType?:
|
|
239
|
+
string;
|
|
188
240
|
}): Request<{}>;
|
|
189
241
|
/** 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. */
|
|
190
242
|
get(request?: {
|
|
191
243
|
/** V1 error format. */
|
|
192
|
-
"$.xgafv"?:
|
|
244
|
+
"$.xgafv"?:
|
|
245
|
+
string;
|
|
193
246
|
/** OAuth access token. */
|
|
194
|
-
access_token?:
|
|
247
|
+
access_token?:
|
|
248
|
+
string;
|
|
195
249
|
/** Data format for response. */
|
|
196
|
-
alt?:
|
|
250
|
+
alt?:
|
|
251
|
+
string;
|
|
197
252
|
/** JSONP */
|
|
198
|
-
callback?:
|
|
253
|
+
callback?:
|
|
254
|
+
string;
|
|
199
255
|
/** Selector specifying which fields to include in a partial response. */
|
|
200
|
-
fields?:
|
|
256
|
+
fields?:
|
|
257
|
+
string;
|
|
201
258
|
/** 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. */
|
|
202
|
-
key?:
|
|
259
|
+
key?:
|
|
260
|
+
string;
|
|
203
261
|
/** The name of the operation resource. */
|
|
204
|
-
name:
|
|
262
|
+
name:
|
|
263
|
+
string;
|
|
205
264
|
/** OAuth 2.0 token for the current user. */
|
|
206
|
-
oauth_token?:
|
|
265
|
+
oauth_token?:
|
|
266
|
+
string;
|
|
207
267
|
/** Returns response with indentations and line breaks. */
|
|
208
|
-
prettyPrint?:
|
|
268
|
+
prettyPrint?:
|
|
269
|
+
boolean;
|
|
209
270
|
/** 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. */
|
|
210
|
-
quotaUser?:
|
|
271
|
+
quotaUser?:
|
|
272
|
+
string;
|
|
211
273
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
212
|
-
upload_protocol?:
|
|
274
|
+
upload_protocol?:
|
|
275
|
+
string;
|
|
213
276
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
214
|
-
uploadType?:
|
|
277
|
+
uploadType?:
|
|
278
|
+
string;
|
|
215
279
|
}): Request<Operation>;
|
|
216
280
|
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
217
281
|
list(request?: {
|
|
218
282
|
/** V1 error format. */
|
|
219
|
-
"$.xgafv"?:
|
|
283
|
+
"$.xgafv"?:
|
|
284
|
+
string;
|
|
220
285
|
/** OAuth access token. */
|
|
221
|
-
access_token?:
|
|
286
|
+
access_token?:
|
|
287
|
+
string;
|
|
222
288
|
/** Data format for response. */
|
|
223
|
-
alt?:
|
|
289
|
+
alt?:
|
|
290
|
+
string;
|
|
224
291
|
/** JSONP */
|
|
225
|
-
callback?:
|
|
292
|
+
callback?:
|
|
293
|
+
string;
|
|
226
294
|
/** Selector specifying which fields to include in a partial response. */
|
|
227
|
-
fields?:
|
|
295
|
+
fields?:
|
|
296
|
+
string;
|
|
228
297
|
/** The standard list filter. */
|
|
229
|
-
filter?:
|
|
298
|
+
filter?:
|
|
299
|
+
string;
|
|
230
300
|
/** 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. */
|
|
231
|
-
key?:
|
|
301
|
+
key?:
|
|
302
|
+
string;
|
|
232
303
|
/** The name of the operation's parent resource. */
|
|
233
|
-
name:
|
|
304
|
+
name:
|
|
305
|
+
string;
|
|
234
306
|
/** OAuth 2.0 token for the current user. */
|
|
235
|
-
oauth_token?:
|
|
307
|
+
oauth_token?:
|
|
308
|
+
string;
|
|
236
309
|
/** The standard list page size. */
|
|
237
|
-
pageSize?:
|
|
310
|
+
pageSize?:
|
|
311
|
+
number;
|
|
238
312
|
/** The standard list page token. */
|
|
239
|
-
pageToken?:
|
|
313
|
+
pageToken?:
|
|
314
|
+
string;
|
|
240
315
|
/** Returns response with indentations and line breaks. */
|
|
241
|
-
prettyPrint?:
|
|
316
|
+
prettyPrint?:
|
|
317
|
+
boolean;
|
|
242
318
|
/** 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. */
|
|
243
|
-
quotaUser?:
|
|
319
|
+
quotaUser?:
|
|
320
|
+
string;
|
|
244
321
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
245
|
-
upload_protocol?:
|
|
322
|
+
upload_protocol?:
|
|
323
|
+
string;
|
|
246
324
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
247
|
-
uploadType?:
|
|
325
|
+
uploadType?:
|
|
326
|
+
string;
|
|
248
327
|
}): Request<ListOperationsResponse>;
|
|
249
328
|
}
|
|
250
329
|
interface WorkflowsResource {
|
|
251
330
|
/** Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a ALREADY_EXISTS error. */
|
|
252
331
|
create(request: {
|
|
253
332
|
/** V1 error format. */
|
|
254
|
-
"$.xgafv"?:
|
|
333
|
+
"$.xgafv"?:
|
|
334
|
+
string;
|
|
255
335
|
/** OAuth access token. */
|
|
256
|
-
access_token?:
|
|
336
|
+
access_token?:
|
|
337
|
+
string;
|
|
257
338
|
/** Data format for response. */
|
|
258
|
-
alt?:
|
|
339
|
+
alt?:
|
|
340
|
+
string;
|
|
259
341
|
/** JSONP */
|
|
260
|
-
callback?:
|
|
342
|
+
callback?:
|
|
343
|
+
string;
|
|
261
344
|
/** Selector specifying which fields to include in a partial response. */
|
|
262
|
-
fields?:
|
|
345
|
+
fields?:
|
|
346
|
+
string;
|
|
263
347
|
/** 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. */
|
|
264
|
-
key?:
|
|
348
|
+
key?:
|
|
349
|
+
string;
|
|
265
350
|
/** OAuth 2.0 token for the current user. */
|
|
266
|
-
oauth_token?:
|
|
351
|
+
oauth_token?:
|
|
352
|
+
string;
|
|
267
353
|
/** Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} */
|
|
268
|
-
parent:
|
|
354
|
+
parent:
|
|
355
|
+
string;
|
|
269
356
|
/** Returns response with indentations and line breaks. */
|
|
270
|
-
prettyPrint?:
|
|
357
|
+
prettyPrint?:
|
|
358
|
+
boolean;
|
|
271
359
|
/** 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. */
|
|
272
|
-
quotaUser?:
|
|
360
|
+
quotaUser?:
|
|
361
|
+
string;
|
|
273
362
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
274
|
-
upload_protocol?:
|
|
363
|
+
upload_protocol?:
|
|
364
|
+
string;
|
|
275
365
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
276
|
-
uploadType?:
|
|
366
|
+
uploadType?:
|
|
367
|
+
string;
|
|
277
368
|
/**
|
|
278
369
|
* 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
|
|
279
370
|
* letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
|
|
280
371
|
*/
|
|
281
|
-
workflowId?:
|
|
372
|
+
workflowId?:
|
|
373
|
+
string;
|
|
282
374
|
/** Request body */
|
|
283
|
-
resource:
|
|
375
|
+
resource:
|
|
376
|
+
Workflow;
|
|
284
377
|
}): Request<Operation>;
|
|
285
378
|
create(request: {
|
|
286
379
|
/** V1 error format. */
|
|
287
|
-
"$.xgafv"?:
|
|
380
|
+
"$.xgafv"?:
|
|
381
|
+
string;
|
|
288
382
|
/** OAuth access token. */
|
|
289
|
-
access_token?:
|
|
383
|
+
access_token?:
|
|
384
|
+
string;
|
|
290
385
|
/** Data format for response. */
|
|
291
|
-
alt?:
|
|
386
|
+
alt?:
|
|
387
|
+
string;
|
|
292
388
|
/** JSONP */
|
|
293
|
-
callback?:
|
|
389
|
+
callback?:
|
|
390
|
+
string;
|
|
294
391
|
/** Selector specifying which fields to include in a partial response. */
|
|
295
|
-
fields?:
|
|
392
|
+
fields?:
|
|
393
|
+
string;
|
|
296
394
|
/** 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. */
|
|
297
|
-
key?:
|
|
395
|
+
key?:
|
|
396
|
+
string;
|
|
298
397
|
/** OAuth 2.0 token for the current user. */
|
|
299
|
-
oauth_token?:
|
|
398
|
+
oauth_token?:
|
|
399
|
+
string;
|
|
300
400
|
/** Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} */
|
|
301
|
-
parent:
|
|
401
|
+
parent:
|
|
402
|
+
string;
|
|
302
403
|
/** Returns response with indentations and line breaks. */
|
|
303
|
-
prettyPrint?:
|
|
404
|
+
prettyPrint?:
|
|
405
|
+
boolean;
|
|
304
406
|
/** 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. */
|
|
305
|
-
quotaUser?:
|
|
407
|
+
quotaUser?:
|
|
408
|
+
string;
|
|
306
409
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
307
|
-
upload_protocol?:
|
|
410
|
+
upload_protocol?:
|
|
411
|
+
string;
|
|
308
412
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
309
|
-
uploadType?:
|
|
413
|
+
uploadType?:
|
|
414
|
+
string;
|
|
310
415
|
/**
|
|
311
416
|
* 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
|
|
312
417
|
* letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
|
|
313
418
|
*/
|
|
314
|
-
workflowId?:
|
|
419
|
+
workflowId?:
|
|
420
|
+
string;
|
|
315
421
|
},
|
|
316
422
|
body: Workflow): Request<Operation>;
|
|
317
423
|
/** Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow. */
|
|
318
424
|
delete(request?: {
|
|
319
425
|
/** V1 error format. */
|
|
320
|
-
"$.xgafv"?:
|
|
426
|
+
"$.xgafv"?:
|
|
427
|
+
string;
|
|
321
428
|
/** OAuth access token. */
|
|
322
|
-
access_token?:
|
|
429
|
+
access_token?:
|
|
430
|
+
string;
|
|
323
431
|
/** Data format for response. */
|
|
324
|
-
alt?:
|
|
432
|
+
alt?:
|
|
433
|
+
string;
|
|
325
434
|
/** JSONP */
|
|
326
|
-
callback?:
|
|
435
|
+
callback?:
|
|
436
|
+
string;
|
|
327
437
|
/** Selector specifying which fields to include in a partial response. */
|
|
328
|
-
fields?:
|
|
438
|
+
fields?:
|
|
439
|
+
string;
|
|
329
440
|
/** 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. */
|
|
330
|
-
key?:
|
|
441
|
+
key?:
|
|
442
|
+
string;
|
|
331
443
|
/** Required. Name of the workflow to be deleted. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
332
|
-
name:
|
|
444
|
+
name:
|
|
445
|
+
string;
|
|
333
446
|
/** OAuth 2.0 token for the current user. */
|
|
334
|
-
oauth_token?:
|
|
447
|
+
oauth_token?:
|
|
448
|
+
string;
|
|
335
449
|
/** Returns response with indentations and line breaks. */
|
|
336
|
-
prettyPrint?:
|
|
450
|
+
prettyPrint?:
|
|
451
|
+
boolean;
|
|
337
452
|
/** 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. */
|
|
338
|
-
quotaUser?:
|
|
453
|
+
quotaUser?:
|
|
454
|
+
string;
|
|
339
455
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
340
|
-
upload_protocol?:
|
|
456
|
+
upload_protocol?:
|
|
457
|
+
string;
|
|
341
458
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
342
|
-
uploadType?:
|
|
459
|
+
uploadType?:
|
|
460
|
+
string;
|
|
343
461
|
}): Request<Operation>;
|
|
344
462
|
/** Gets details of a single workflow. */
|
|
345
463
|
get(request?: {
|
|
346
464
|
/** V1 error format. */
|
|
347
|
-
"$.xgafv"?:
|
|
465
|
+
"$.xgafv"?:
|
|
466
|
+
string;
|
|
348
467
|
/** OAuth access token. */
|
|
349
|
-
access_token?:
|
|
468
|
+
access_token?:
|
|
469
|
+
string;
|
|
350
470
|
/** Data format for response. */
|
|
351
|
-
alt?:
|
|
471
|
+
alt?:
|
|
472
|
+
string;
|
|
352
473
|
/** JSONP */
|
|
353
|
-
callback?:
|
|
474
|
+
callback?:
|
|
475
|
+
string;
|
|
354
476
|
/** Selector specifying which fields to include in a partial response. */
|
|
355
|
-
fields?:
|
|
477
|
+
fields?:
|
|
478
|
+
string;
|
|
356
479
|
/** 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. */
|
|
357
|
-
key?:
|
|
480
|
+
key?:
|
|
481
|
+
string;
|
|
358
482
|
/** Required. Name of the workflow for which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
359
|
-
name:
|
|
483
|
+
name:
|
|
484
|
+
string;
|
|
360
485
|
/** OAuth 2.0 token for the current user. */
|
|
361
|
-
oauth_token?:
|
|
486
|
+
oauth_token?:
|
|
487
|
+
string;
|
|
362
488
|
/** Returns response with indentations and line breaks. */
|
|
363
|
-
prettyPrint?:
|
|
489
|
+
prettyPrint?:
|
|
490
|
+
boolean;
|
|
364
491
|
/** 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. */
|
|
365
|
-
quotaUser?:
|
|
492
|
+
quotaUser?:
|
|
493
|
+
string;
|
|
366
494
|
/**
|
|
367
495
|
* Optional. Optional. The revision of the workflow to retrieve. If the revision_id is empty, the latest revision is retrieved. The format is "000001-a4d", where the first 6
|
|
368
496
|
* characters define the zero-padded decimal revision number. They are followed by a hyphen and 3 hexadecimal characters. (go/wf_adr_clh_1)
|
|
369
497
|
*/
|
|
370
|
-
revisionId?:
|
|
498
|
+
revisionId?:
|
|
499
|
+
string;
|
|
371
500
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
372
|
-
upload_protocol?:
|
|
501
|
+
upload_protocol?:
|
|
502
|
+
string;
|
|
373
503
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
374
|
-
uploadType?:
|
|
504
|
+
uploadType?:
|
|
505
|
+
string;
|
|
375
506
|
}): Request<Workflow>;
|
|
376
507
|
/** Lists workflows in a given project and location. The default order is not specified. */
|
|
377
508
|
list(request?: {
|
|
378
509
|
/** V1 error format. */
|
|
379
|
-
"$.xgafv"?:
|
|
510
|
+
"$.xgafv"?:
|
|
511
|
+
string;
|
|
380
512
|
/** OAuth access token. */
|
|
381
|
-
access_token?:
|
|
513
|
+
access_token?:
|
|
514
|
+
string;
|
|
382
515
|
/** Data format for response. */
|
|
383
|
-
alt?:
|
|
516
|
+
alt?:
|
|
517
|
+
string;
|
|
384
518
|
/** JSONP */
|
|
385
|
-
callback?:
|
|
519
|
+
callback?:
|
|
520
|
+
string;
|
|
386
521
|
/** Selector specifying which fields to include in a partial response. */
|
|
387
|
-
fields?:
|
|
522
|
+
fields?:
|
|
523
|
+
string;
|
|
388
524
|
/** Filter to restrict results to specific workflows. */
|
|
389
|
-
filter?:
|
|
525
|
+
filter?:
|
|
526
|
+
string;
|
|
390
527
|
/** 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. */
|
|
391
|
-
key?:
|
|
528
|
+
key?:
|
|
529
|
+
string;
|
|
392
530
|
/** OAuth 2.0 token for the current user. */
|
|
393
|
-
oauth_token?:
|
|
531
|
+
oauth_token?:
|
|
532
|
+
string;
|
|
394
533
|
/**
|
|
395
534
|
* Comma-separated list of fields that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a "desc"
|
|
396
535
|
* suffix. If not specified, the results are returned in an unspecified order.
|
|
397
536
|
*/
|
|
398
|
-
orderBy?:
|
|
537
|
+
orderBy?:
|
|
538
|
+
string;
|
|
399
539
|
/**
|
|
400
540
|
* Maximum number of workflows to return per call. The service might return fewer than this value even if not at the end of the collection. If a value is not specified, a default
|
|
401
541
|
* value of 500 is used. The maximum permitted value is 1000 and values greater than 1000 are coerced down to 1000.
|
|
402
542
|
*/
|
|
403
|
-
pageSize?:
|
|
543
|
+
pageSize?:
|
|
544
|
+
number;
|
|
404
545
|
/**
|
|
405
546
|
* 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
|
|
406
547
|
* match the call that provided the page token.
|
|
407
548
|
*/
|
|
408
|
-
pageToken?:
|
|
549
|
+
pageToken?:
|
|
550
|
+
string;
|
|
409
551
|
/** Required. Project and location from which the workflows should be listed. Format: projects/{project}/locations/{location} */
|
|
410
|
-
parent:
|
|
552
|
+
parent:
|
|
553
|
+
string;
|
|
411
554
|
/** Returns response with indentations and line breaks. */
|
|
412
|
-
prettyPrint?:
|
|
555
|
+
prettyPrint?:
|
|
556
|
+
boolean;
|
|
413
557
|
/** 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. */
|
|
414
|
-
quotaUser?:
|
|
558
|
+
quotaUser?:
|
|
559
|
+
string;
|
|
415
560
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
416
|
-
upload_protocol?:
|
|
561
|
+
upload_protocol?:
|
|
562
|
+
string;
|
|
417
563
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
418
|
-
uploadType?:
|
|
564
|
+
uploadType?:
|
|
565
|
+
string;
|
|
419
566
|
}): Request<ListWorkflowsResponse>;
|
|
420
567
|
/**
|
|
421
568
|
* Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a
|
|
@@ -423,61 +570,88 @@ declare namespace gapi.client {
|
|
|
423
570
|
*/
|
|
424
571
|
patch(request: {
|
|
425
572
|
/** V1 error format. */
|
|
426
|
-
"$.xgafv"?:
|
|
573
|
+
"$.xgafv"?:
|
|
574
|
+
string;
|
|
427
575
|
/** OAuth access token. */
|
|
428
|
-
access_token?:
|
|
576
|
+
access_token?:
|
|
577
|
+
string;
|
|
429
578
|
/** Data format for response. */
|
|
430
|
-
alt?:
|
|
579
|
+
alt?:
|
|
580
|
+
string;
|
|
431
581
|
/** JSONP */
|
|
432
|
-
callback?:
|
|
582
|
+
callback?:
|
|
583
|
+
string;
|
|
433
584
|
/** Selector specifying which fields to include in a partial response. */
|
|
434
|
-
fields?:
|
|
585
|
+
fields?:
|
|
586
|
+
string;
|
|
435
587
|
/** 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. */
|
|
436
|
-
key?:
|
|
588
|
+
key?:
|
|
589
|
+
string;
|
|
437
590
|
/** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
438
|
-
name:
|
|
591
|
+
name:
|
|
592
|
+
string;
|
|
439
593
|
/** OAuth 2.0 token for the current user. */
|
|
440
|
-
oauth_token?:
|
|
594
|
+
oauth_token?:
|
|
595
|
+
string;
|
|
441
596
|
/** Returns response with indentations and line breaks. */
|
|
442
|
-
prettyPrint?:
|
|
597
|
+
prettyPrint?:
|
|
598
|
+
boolean;
|
|
443
599
|
/** 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. */
|
|
444
|
-
quotaUser?:
|
|
600
|
+
quotaUser?:
|
|
601
|
+
string;
|
|
445
602
|
/** List of fields to be updated. If not present, the entire workflow will be updated. */
|
|
446
|
-
updateMask?:
|
|
603
|
+
updateMask?:
|
|
604
|
+
string;
|
|
447
605
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
448
|
-
upload_protocol?:
|
|
606
|
+
upload_protocol?:
|
|
607
|
+
string;
|
|
449
608
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
450
|
-
uploadType?:
|
|
609
|
+
uploadType?:
|
|
610
|
+
string;
|
|
451
611
|
/** Request body */
|
|
452
|
-
resource:
|
|
612
|
+
resource:
|
|
613
|
+
Workflow;
|
|
453
614
|
}): Request<Operation>;
|
|
454
615
|
patch(request: {
|
|
455
616
|
/** V1 error format. */
|
|
456
|
-
"$.xgafv"?:
|
|
617
|
+
"$.xgafv"?:
|
|
618
|
+
string;
|
|
457
619
|
/** OAuth access token. */
|
|
458
|
-
access_token?:
|
|
620
|
+
access_token?:
|
|
621
|
+
string;
|
|
459
622
|
/** Data format for response. */
|
|
460
|
-
alt?:
|
|
623
|
+
alt?:
|
|
624
|
+
string;
|
|
461
625
|
/** JSONP */
|
|
462
|
-
callback?:
|
|
626
|
+
callback?:
|
|
627
|
+
string;
|
|
463
628
|
/** Selector specifying which fields to include in a partial response. */
|
|
464
|
-
fields?:
|
|
629
|
+
fields?:
|
|
630
|
+
string;
|
|
465
631
|
/** 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. */
|
|
466
|
-
key?:
|
|
632
|
+
key?:
|
|
633
|
+
string;
|
|
467
634
|
/** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
|
|
468
|
-
name:
|
|
635
|
+
name:
|
|
636
|
+
string;
|
|
469
637
|
/** OAuth 2.0 token for the current user. */
|
|
470
|
-
oauth_token?:
|
|
638
|
+
oauth_token?:
|
|
639
|
+
string;
|
|
471
640
|
/** Returns response with indentations and line breaks. */
|
|
472
|
-
prettyPrint?:
|
|
641
|
+
prettyPrint?:
|
|
642
|
+
boolean;
|
|
473
643
|
/** 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. */
|
|
474
|
-
quotaUser?:
|
|
644
|
+
quotaUser?:
|
|
645
|
+
string;
|
|
475
646
|
/** List of fields to be updated. If not present, the entire workflow will be updated. */
|
|
476
|
-
updateMask?:
|
|
647
|
+
updateMask?:
|
|
648
|
+
string;
|
|
477
649
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
478
|
-
upload_protocol?:
|
|
650
|
+
upload_protocol?:
|
|
651
|
+
string;
|
|
479
652
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
480
|
-
uploadType?:
|
|
653
|
+
uploadType?:
|
|
654
|
+
string;
|
|
481
655
|
},
|
|
482
656
|
body: Workflow): Request<Operation>;
|
|
483
657
|
}
|
|
@@ -485,71 +659,101 @@ declare namespace gapi.client {
|
|
|
485
659
|
/** Gets information about a location. */
|
|
486
660
|
get(request?: {
|
|
487
661
|
/** V1 error format. */
|
|
488
|
-
"$.xgafv"?:
|
|
662
|
+
"$.xgafv"?:
|
|
663
|
+
string;
|
|
489
664
|
/** OAuth access token. */
|
|
490
|
-
access_token?:
|
|
665
|
+
access_token?:
|
|
666
|
+
string;
|
|
491
667
|
/** Data format for response. */
|
|
492
|
-
alt?:
|
|
668
|
+
alt?:
|
|
669
|
+
string;
|
|
493
670
|
/** JSONP */
|
|
494
|
-
callback?:
|
|
671
|
+
callback?:
|
|
672
|
+
string;
|
|
495
673
|
/** Selector specifying which fields to include in a partial response. */
|
|
496
|
-
fields?:
|
|
674
|
+
fields?:
|
|
675
|
+
string;
|
|
497
676
|
/** 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. */
|
|
498
|
-
key?:
|
|
677
|
+
key?:
|
|
678
|
+
string;
|
|
499
679
|
/** Resource name for the location. */
|
|
500
|
-
name:
|
|
680
|
+
name:
|
|
681
|
+
string;
|
|
501
682
|
/** OAuth 2.0 token for the current user. */
|
|
502
|
-
oauth_token?:
|
|
683
|
+
oauth_token?:
|
|
684
|
+
string;
|
|
503
685
|
/** Returns response with indentations and line breaks. */
|
|
504
|
-
prettyPrint?:
|
|
686
|
+
prettyPrint?:
|
|
687
|
+
boolean;
|
|
505
688
|
/** 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. */
|
|
506
|
-
quotaUser?:
|
|
689
|
+
quotaUser?:
|
|
690
|
+
string;
|
|
507
691
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
508
|
-
upload_protocol?:
|
|
692
|
+
upload_protocol?:
|
|
693
|
+
string;
|
|
509
694
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
510
|
-
uploadType?:
|
|
695
|
+
uploadType?:
|
|
696
|
+
string;
|
|
511
697
|
}): Request<Location>;
|
|
512
698
|
/** Lists information about the supported locations for this service. */
|
|
513
699
|
list(request?: {
|
|
514
700
|
/** V1 error format. */
|
|
515
|
-
"$.xgafv"?:
|
|
701
|
+
"$.xgafv"?:
|
|
702
|
+
string;
|
|
516
703
|
/** OAuth access token. */
|
|
517
|
-
access_token?:
|
|
704
|
+
access_token?:
|
|
705
|
+
string;
|
|
518
706
|
/** Data format for response. */
|
|
519
|
-
alt?:
|
|
707
|
+
alt?:
|
|
708
|
+
string;
|
|
520
709
|
/** JSONP */
|
|
521
|
-
callback?:
|
|
710
|
+
callback?:
|
|
711
|
+
string;
|
|
522
712
|
/** Selector specifying which fields to include in a partial response. */
|
|
523
|
-
fields?:
|
|
713
|
+
fields?:
|
|
714
|
+
string;
|
|
524
715
|
/**
|
|
525
716
|
* 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
|
|
526
717
|
* [AIP-160](https://google.aip.dev/160).
|
|
527
718
|
*/
|
|
528
|
-
filter?:
|
|
719
|
+
filter?:
|
|
720
|
+
string;
|
|
529
721
|
/** 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. */
|
|
530
|
-
key?:
|
|
722
|
+
key?:
|
|
723
|
+
string;
|
|
531
724
|
/** The resource that owns the locations collection, if applicable. */
|
|
532
|
-
name:
|
|
725
|
+
name:
|
|
726
|
+
string;
|
|
533
727
|
/** OAuth 2.0 token for the current user. */
|
|
534
|
-
oauth_token?:
|
|
728
|
+
oauth_token?:
|
|
729
|
+
string;
|
|
535
730
|
/** The maximum number of results to return. If not set, the service selects a default. */
|
|
536
|
-
pageSize?:
|
|
731
|
+
pageSize?:
|
|
732
|
+
number;
|
|
537
733
|
/** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
|
|
538
|
-
pageToken?:
|
|
734
|
+
pageToken?:
|
|
735
|
+
string;
|
|
539
736
|
/** Returns response with indentations and line breaks. */
|
|
540
|
-
prettyPrint?:
|
|
737
|
+
prettyPrint?:
|
|
738
|
+
boolean;
|
|
541
739
|
/** 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. */
|
|
542
|
-
quotaUser?:
|
|
740
|
+
quotaUser?:
|
|
741
|
+
string;
|
|
543
742
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
544
|
-
upload_protocol?:
|
|
743
|
+
upload_protocol?:
|
|
744
|
+
string;
|
|
545
745
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
546
|
-
uploadType?:
|
|
746
|
+
uploadType?:
|
|
747
|
+
string;
|
|
547
748
|
}): Request<ListLocationsResponse>;
|
|
548
|
-
operations:
|
|
549
|
-
|
|
749
|
+
operations:
|
|
750
|
+
OperationsResource;
|
|
751
|
+
workflows:
|
|
752
|
+
WorkflowsResource;
|
|
550
753
|
}
|
|
551
754
|
interface ProjectsResource {
|
|
552
|
-
locations:
|
|
755
|
+
locations:
|
|
756
|
+
LocationsResource;
|
|
553
757
|
}
|
|
554
758
|
|
|
555
759
|
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 */
|