@maxim_mazurok/gapi.client.dataflow-v1b3 0.0.20220806
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 +4182 -0
- package/package.json +20 -0
- package/readme.md +87 -0
- package/tests.ts +2751 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,4182 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Dataflow API v1b3 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/dataflow
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://dataflow.googleapis.com/$discovery/rest?version=v1b3
|
|
13
|
+
// Revision: 20220806
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Dataflow API v1b3 */
|
|
19
|
+
function load(urlOrObject: "https://dataflow.googleapis.com/$discovery/rest?version=v1b3"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "dataflow", version: "v1b3"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "dataflow", version: "v1b3", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace dataflow {
|
|
26
|
+
interface ApproximateProgress {
|
|
27
|
+
/** Obsolete. */
|
|
28
|
+
percentComplete?: number;
|
|
29
|
+
/** Obsolete. */
|
|
30
|
+
position?: Position;
|
|
31
|
+
/** Obsolete. */
|
|
32
|
+
remainingTime?: string;
|
|
33
|
+
}
|
|
34
|
+
interface ApproximateReportedProgress {
|
|
35
|
+
/**
|
|
36
|
+
* Total amount of parallelism in the portion of input of this task that has already been consumed and is no longer active. In the first two examples above (see remaining_parallelism),
|
|
37
|
+
* the value should be 29 or 2 respectively. The sum of remaining_parallelism and consumed_parallelism should equal the total amount of parallelism in this work item. If specified,
|
|
38
|
+
* must be finite.
|
|
39
|
+
*/
|
|
40
|
+
consumedParallelism?: ReportedParallelism;
|
|
41
|
+
/** Completion as fraction of the input consumed, from 0.0 (beginning, nothing consumed), to 1.0 (end of the input, entire input consumed). */
|
|
42
|
+
fractionConsumed?: number;
|
|
43
|
+
/** A Position within the work to represent a progress. */
|
|
44
|
+
position?: Position;
|
|
45
|
+
/**
|
|
46
|
+
* Total amount of parallelism in the input of this task that remains, (i.e. can be delegated to this task and any new tasks via dynamic splitting). Always at least 1 for non-finished
|
|
47
|
+
* work items and 0 for finished. "Amount of parallelism" refers to how many non-empty parts of the input can be read in parallel. This does not necessarily equal number of records. An
|
|
48
|
+
* input that can be read in parallel down to the individual records is called "perfectly splittable". An example of non-perfectly parallelizable input is a block-compressed file
|
|
49
|
+
* format where a block of records has to be read as a whole, but different blocks can be read in parallel. Examples: * If we are processing record #30 (starting at 1) out of 50 in a
|
|
50
|
+
* perfectly splittable 50-record input, this value should be 21 (20 remaining + 1 current). * If we are reading through block 3 in a block-compressed file consisting of 5 blocks, this
|
|
51
|
+
* value should be 3 (since blocks 4 and 5 can be processed in parallel by new tasks via dynamic splitting and the current task remains processing block 3). * If we are reading through
|
|
52
|
+
* the last block in a block-compressed file, or reading or processing the last record in a perfectly splittable input, this value should be 1, because apart from the current task, no
|
|
53
|
+
* additional remainder can be split off.
|
|
54
|
+
*/
|
|
55
|
+
remainingParallelism?: ReportedParallelism;
|
|
56
|
+
}
|
|
57
|
+
interface ApproximateSplitRequest {
|
|
58
|
+
/** A fraction at which to split the work item, from 0.0 (beginning of the input) to 1.0 (end of the input). */
|
|
59
|
+
fractionConsumed?: number;
|
|
60
|
+
/** The fraction of the remainder of work to split the work item at, from 0.0 (split at the current position) to 1.0 (end of the input). */
|
|
61
|
+
fractionOfRemainder?: number;
|
|
62
|
+
/** A Position at which to split the work item. */
|
|
63
|
+
position?: Position;
|
|
64
|
+
}
|
|
65
|
+
interface AutoscalingEvent {
|
|
66
|
+
/** The current number of workers the job has. */
|
|
67
|
+
currentNumWorkers?: string;
|
|
68
|
+
/** A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers. */
|
|
69
|
+
description?: StructuredMessage;
|
|
70
|
+
/** The type of autoscaling event to report. */
|
|
71
|
+
eventType?: string;
|
|
72
|
+
/** The target number of workers the worker pool wants to resize to use. */
|
|
73
|
+
targetNumWorkers?: string;
|
|
74
|
+
/** The time this event was emitted to indicate a new target or current num_workers value. */
|
|
75
|
+
time?: string;
|
|
76
|
+
/** A short and friendly name for the worker pool this event refers to. */
|
|
77
|
+
workerPool?: string;
|
|
78
|
+
}
|
|
79
|
+
interface AutoscalingSettings {
|
|
80
|
+
/** The algorithm to use for autoscaling. */
|
|
81
|
+
algorithm?: string;
|
|
82
|
+
/** The maximum number of workers to cap scaling at. */
|
|
83
|
+
maxNumWorkers?: number;
|
|
84
|
+
}
|
|
85
|
+
interface BigQueryIODetails {
|
|
86
|
+
/** Dataset accessed in the connection. */
|
|
87
|
+
dataset?: string;
|
|
88
|
+
/** Project accessed in the connection. */
|
|
89
|
+
projectId?: string;
|
|
90
|
+
/** Query used to access data in the connection. */
|
|
91
|
+
query?: string;
|
|
92
|
+
/** Table accessed in the connection. */
|
|
93
|
+
table?: string;
|
|
94
|
+
}
|
|
95
|
+
interface BigTableIODetails {
|
|
96
|
+
/** InstanceId accessed in the connection. */
|
|
97
|
+
instanceId?: string;
|
|
98
|
+
/** ProjectId accessed in the connection. */
|
|
99
|
+
projectId?: string;
|
|
100
|
+
/** TableId accessed in the connection. */
|
|
101
|
+
tableId?: string;
|
|
102
|
+
}
|
|
103
|
+
interface ComponentSource {
|
|
104
|
+
/** Dataflow service generated name for this source. */
|
|
105
|
+
name?: string;
|
|
106
|
+
/** User name for the original user transform or collection with which this source is most closely associated. */
|
|
107
|
+
originalTransformOrCollection?: string;
|
|
108
|
+
/** Human-readable name for this transform; may be user or system generated. */
|
|
109
|
+
userName?: string;
|
|
110
|
+
}
|
|
111
|
+
interface ComponentTransform {
|
|
112
|
+
/** Dataflow service generated name for this source. */
|
|
113
|
+
name?: string;
|
|
114
|
+
/** User name for the original user transform with which this transform is most closely associated. */
|
|
115
|
+
originalTransform?: string;
|
|
116
|
+
/** Human-readable name for this transform; may be user or system generated. */
|
|
117
|
+
userName?: string;
|
|
118
|
+
}
|
|
119
|
+
interface ComputationTopology {
|
|
120
|
+
/** The ID of the computation. */
|
|
121
|
+
computationId?: string;
|
|
122
|
+
/** The inputs to the computation. */
|
|
123
|
+
inputs?: StreamLocation[];
|
|
124
|
+
/** The key ranges processed by the computation. */
|
|
125
|
+
keyRanges?: KeyRangeLocation[];
|
|
126
|
+
/** The outputs from the computation. */
|
|
127
|
+
outputs?: StreamLocation[];
|
|
128
|
+
/** The state family values. */
|
|
129
|
+
stateFamilies?: StateFamilyConfig[];
|
|
130
|
+
/** The system stage name. */
|
|
131
|
+
systemStageName?: string;
|
|
132
|
+
}
|
|
133
|
+
interface ConcatPosition {
|
|
134
|
+
/** Index of the inner source. */
|
|
135
|
+
index?: number;
|
|
136
|
+
/** Position within the inner source. */
|
|
137
|
+
position?: Position;
|
|
138
|
+
}
|
|
139
|
+
interface ContainerSpec {
|
|
140
|
+
/** Default runtime environment for the job. */
|
|
141
|
+
defaultEnvironment?: FlexTemplateRuntimeEnvironment;
|
|
142
|
+
/** Name of the docker container image. E.g., gcr.io/project/some-image */
|
|
143
|
+
image?: string;
|
|
144
|
+
/** Cloud Storage path to self-signed certificate of private registry. */
|
|
145
|
+
imageRepositoryCertPath?: string;
|
|
146
|
+
/** Secret Manager secret id for password to authenticate to private registry. */
|
|
147
|
+
imageRepositoryPasswordSecretId?: string;
|
|
148
|
+
/** Secret Manager secret id for username to authenticate to private registry. */
|
|
149
|
+
imageRepositoryUsernameSecretId?: string;
|
|
150
|
+
/** Metadata describing a template including description and validation rules. */
|
|
151
|
+
metadata?: TemplateMetadata;
|
|
152
|
+
/** Required. SDK info of the Flex Template. */
|
|
153
|
+
sdkInfo?: SDKInfo;
|
|
154
|
+
}
|
|
155
|
+
interface CounterMetadata {
|
|
156
|
+
/** Human-readable description of the counter semantics. */
|
|
157
|
+
description?: string;
|
|
158
|
+
/** Counter aggregation kind. */
|
|
159
|
+
kind?: string;
|
|
160
|
+
/** A string referring to the unit type. */
|
|
161
|
+
otherUnits?: string;
|
|
162
|
+
/** System defined Units, see above enum. */
|
|
163
|
+
standardUnits?: string;
|
|
164
|
+
}
|
|
165
|
+
interface CounterStructuredName {
|
|
166
|
+
/** Name of the optimized step being executed by the workers. */
|
|
167
|
+
componentStepName?: string;
|
|
168
|
+
/** Name of the stage. An execution step contains multiple component steps. */
|
|
169
|
+
executionStepName?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Index of an input collection that's being read from/written to as a side input. The index identifies a step's side inputs starting by 1 (e.g. the first side input has input_index 1,
|
|
172
|
+
* the third has input_index 3). Side inputs are identified by a pair of (original_step_name, input_index). This field helps uniquely identify them.
|
|
173
|
+
*/
|
|
174
|
+
inputIndex?: number;
|
|
175
|
+
/** Counter name. Not necessarily globally-unique, but unique within the context of the other fields. Required. */
|
|
176
|
+
name?: string;
|
|
177
|
+
/** One of the standard Origins defined above. */
|
|
178
|
+
origin?: string;
|
|
179
|
+
/** The step name requesting an operation, such as GBK. I.e. the ParDo causing a read/write from shuffle to occur, or a read from side inputs. */
|
|
180
|
+
originalRequestingStepName?: string;
|
|
181
|
+
/** System generated name of the original step in the user's graph, before optimization. */
|
|
182
|
+
originalStepName?: string;
|
|
183
|
+
/** A string containing a more specific namespace of the counter's origin. */
|
|
184
|
+
originNamespace?: string;
|
|
185
|
+
/** Portion of this counter, either key or value. */
|
|
186
|
+
portion?: string;
|
|
187
|
+
/** ID of a particular worker. */
|
|
188
|
+
workerId?: string;
|
|
189
|
+
}
|
|
190
|
+
interface CounterStructuredNameAndMetadata {
|
|
191
|
+
/** Metadata associated with a counter */
|
|
192
|
+
metadata?: CounterMetadata;
|
|
193
|
+
/** Structured name of the counter. */
|
|
194
|
+
name?: CounterStructuredName;
|
|
195
|
+
}
|
|
196
|
+
interface CounterUpdate {
|
|
197
|
+
/** Boolean value for And, Or. */
|
|
198
|
+
boolean?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* True if this counter is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that
|
|
201
|
+
* this counter is reported as a delta.
|
|
202
|
+
*/
|
|
203
|
+
cumulative?: boolean;
|
|
204
|
+
/** Distribution data */
|
|
205
|
+
distribution?: DistributionUpdate;
|
|
206
|
+
/** Floating point value for Sum, Max, Min. */
|
|
207
|
+
floatingPoint?: number;
|
|
208
|
+
/** List of floating point numbers, for Set. */
|
|
209
|
+
floatingPointList?: FloatingPointList;
|
|
210
|
+
/** Floating point mean aggregation value for Mean. */
|
|
211
|
+
floatingPointMean?: FloatingPointMean;
|
|
212
|
+
/** Integer value for Sum, Max, Min. */
|
|
213
|
+
integer?: SplitInt64;
|
|
214
|
+
/** Gauge data */
|
|
215
|
+
integerGauge?: IntegerGauge;
|
|
216
|
+
/** List of integers, for Set. */
|
|
217
|
+
integerList?: IntegerList;
|
|
218
|
+
/** Integer mean aggregation value for Mean. */
|
|
219
|
+
integerMean?: IntegerMean;
|
|
220
|
+
/** Value for internally-defined counters used by the Dataflow service. */
|
|
221
|
+
internal?: any;
|
|
222
|
+
/** Counter name and aggregation type. */
|
|
223
|
+
nameAndKind?: NameAndKind;
|
|
224
|
+
/** The service-generated short identifier for this counter. The short_id -> (name, metadata) mapping is constant for the lifetime of a job. */
|
|
225
|
+
shortId?: string;
|
|
226
|
+
/** List of strings, for Set. */
|
|
227
|
+
stringList?: StringList;
|
|
228
|
+
/** Counter structured name and metadata. */
|
|
229
|
+
structuredNameAndMetadata?: CounterStructuredNameAndMetadata;
|
|
230
|
+
}
|
|
231
|
+
interface CPUTime {
|
|
232
|
+
/** Average CPU utilization rate (% non-idle cpu / second) since previous sample. */
|
|
233
|
+
rate?: number;
|
|
234
|
+
/** Timestamp of the measurement. */
|
|
235
|
+
timestamp?: string;
|
|
236
|
+
/** Total active CPU time across all cores (ie., non-idle) in milliseconds since start-up. */
|
|
237
|
+
totalMs?: string;
|
|
238
|
+
}
|
|
239
|
+
interface CreateJobFromTemplateRequest {
|
|
240
|
+
/** The runtime environment for the job. */
|
|
241
|
+
environment?: RuntimeEnvironment;
|
|
242
|
+
/** Required. A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with `gs://`. */
|
|
243
|
+
gcsPath?: string;
|
|
244
|
+
/** Required. The job name to use for the created job. */
|
|
245
|
+
jobName?: string;
|
|
246
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
247
|
+
location?: string;
|
|
248
|
+
/** The runtime parameters to pass to the job. */
|
|
249
|
+
parameters?: { [P in string]: string };
|
|
250
|
+
}
|
|
251
|
+
interface CustomSourceLocation {
|
|
252
|
+
/** Whether this source is stateful. */
|
|
253
|
+
stateful?: boolean;
|
|
254
|
+
}
|
|
255
|
+
interface DataDiskAssignment {
|
|
256
|
+
/**
|
|
257
|
+
* Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted to, for example the list of {
|
|
258
|
+
* "myproject-1014-104817-4c2-harness-0-disk-0" }, { "myproject-1014-104817-4c2-harness-0-disk-1" }.
|
|
259
|
+
*/
|
|
260
|
+
dataDisks?: string[];
|
|
261
|
+
/** VM instance name the data disks mounted to, for example "myproject-1014-104817-4c2-harness-0". */
|
|
262
|
+
vmInstance?: string;
|
|
263
|
+
}
|
|
264
|
+
interface DatastoreIODetails {
|
|
265
|
+
/** Namespace used in the connection. */
|
|
266
|
+
namespace?: string;
|
|
267
|
+
/** ProjectId accessed in the connection. */
|
|
268
|
+
projectId?: string;
|
|
269
|
+
}
|
|
270
|
+
interface DebugOptions {
|
|
271
|
+
/** When true, enables the logging of the literal hot key to the user's Cloud Logging. */
|
|
272
|
+
enableHotKeyLogging?: boolean;
|
|
273
|
+
}
|
|
274
|
+
// tslint:disable-next-line:no-empty-interface
|
|
275
|
+
interface DeleteSnapshotResponse {
|
|
276
|
+
}
|
|
277
|
+
interface DerivedSource {
|
|
278
|
+
/** What source to base the produced source on (if any). */
|
|
279
|
+
derivationMode?: string;
|
|
280
|
+
/** Specification of the source. */
|
|
281
|
+
source?: Source;
|
|
282
|
+
}
|
|
283
|
+
interface Disk {
|
|
284
|
+
/**
|
|
285
|
+
* Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the
|
|
286
|
+
* service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in "pd-standard". If SSD persistent disks are
|
|
287
|
+
* available, the resource name typically ends with "pd-ssd". The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google
|
|
288
|
+
* Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to
|
|
289
|
+
* a particular project in a particular zone, and so the resource name will typically look something like this:
|
|
290
|
+
* compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
|
|
291
|
+
*/
|
|
292
|
+
diskType?: string;
|
|
293
|
+
/** Directory in a VM where disk is mounted. */
|
|
294
|
+
mountPoint?: string;
|
|
295
|
+
/** Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default. */
|
|
296
|
+
sizeGb?: number;
|
|
297
|
+
}
|
|
298
|
+
interface DisplayData {
|
|
299
|
+
/** Contains value if the data is of a boolean type. */
|
|
300
|
+
boolValue?: boolean;
|
|
301
|
+
/** Contains value if the data is of duration type. */
|
|
302
|
+
durationValue?: string;
|
|
303
|
+
/** Contains value if the data is of float type. */
|
|
304
|
+
floatValue?: number;
|
|
305
|
+
/** Contains value if the data is of int64 type. */
|
|
306
|
+
int64Value?: string;
|
|
307
|
+
/** Contains value if the data is of java class type. */
|
|
308
|
+
javaClassValue?: string;
|
|
309
|
+
/** The key identifying the display data. This is intended to be used as a label for the display data when viewed in a dax monitoring system. */
|
|
310
|
+
key?: string;
|
|
311
|
+
/** An optional label to display in a dax UI for the element. */
|
|
312
|
+
label?: string;
|
|
313
|
+
/**
|
|
314
|
+
* The namespace for the key. This is usually a class name or programming language namespace (i.e. python module) which defines the display data. This allows a dax monitoring system to
|
|
315
|
+
* specially handle the data and perform custom rendering.
|
|
316
|
+
*/
|
|
317
|
+
namespace?: string;
|
|
318
|
+
/**
|
|
319
|
+
* A possible additional shorter value to display. For example a java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn as the short_str_value and
|
|
320
|
+
* com.mypackage.MyDoFn as the java_class_name value. short_str_value can be displayed and java_class_name_value will be displayed as a tooltip.
|
|
321
|
+
*/
|
|
322
|
+
shortStrValue?: string;
|
|
323
|
+
/** Contains value if the data is of string type. */
|
|
324
|
+
strValue?: string;
|
|
325
|
+
/** Contains value if the data is of timestamp type. */
|
|
326
|
+
timestampValue?: string;
|
|
327
|
+
/** An optional full URL. */
|
|
328
|
+
url?: string;
|
|
329
|
+
}
|
|
330
|
+
interface DistributionUpdate {
|
|
331
|
+
/** The count of the number of elements present in the distribution. */
|
|
332
|
+
count?: SplitInt64;
|
|
333
|
+
/** (Optional) Histogram of value counts for the distribution. */
|
|
334
|
+
histogram?: Histogram;
|
|
335
|
+
/** The maximum value present in the distribution. */
|
|
336
|
+
max?: SplitInt64;
|
|
337
|
+
/** The minimum value present in the distribution. */
|
|
338
|
+
min?: SplitInt64;
|
|
339
|
+
/** Use an int64 since we'd prefer the added precision. If overflow is a common problem we can detect it and use an additional int64 or a double. */
|
|
340
|
+
sum?: SplitInt64;
|
|
341
|
+
/** Use a double since the sum of squares is likely to overflow int64. */
|
|
342
|
+
sumOfSquares?: number;
|
|
343
|
+
}
|
|
344
|
+
interface DynamicSourceSplit {
|
|
345
|
+
/** Primary part (continued to be processed by worker). Specified relative to the previously-current source. Becomes current. */
|
|
346
|
+
primary?: DerivedSource;
|
|
347
|
+
/** Residual part (returned to the pool of work). Specified relative to the previously-current source. */
|
|
348
|
+
residual?: DerivedSource;
|
|
349
|
+
}
|
|
350
|
+
interface Environment {
|
|
351
|
+
/**
|
|
352
|
+
* The type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g.
|
|
353
|
+
* "compute.googleapis.com".
|
|
354
|
+
*/
|
|
355
|
+
clusterManagerApiService?: string;
|
|
356
|
+
/** The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset} */
|
|
357
|
+
dataset?: string;
|
|
358
|
+
/** Any debugging options to be supplied to the job. */
|
|
359
|
+
debugOptions?: DebugOptions;
|
|
360
|
+
/**
|
|
361
|
+
* The list of experiments to enable. This field should be used for SDK related experiments and not for service related experiments. The proper field for service related experiments is
|
|
362
|
+
* service_options.
|
|
363
|
+
*/
|
|
364
|
+
experiments?: string[];
|
|
365
|
+
/** Which Flexible Resource Scheduling mode to run in. */
|
|
366
|
+
flexResourceSchedulingGoal?: string;
|
|
367
|
+
/** Experimental settings. */
|
|
368
|
+
internalExperiments?: { [P in string]: any };
|
|
369
|
+
/**
|
|
370
|
+
* The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a
|
|
371
|
+
* language agnostic and platform independent way.
|
|
372
|
+
*/
|
|
373
|
+
sdkPipelineOptions?: { [P in string]: any };
|
|
374
|
+
/** Identity to run virtual machines as. Defaults to the default account. */
|
|
375
|
+
serviceAccountEmail?: string;
|
|
376
|
+
/**
|
|
377
|
+
* If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format:
|
|
378
|
+
* projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
|
|
379
|
+
*/
|
|
380
|
+
serviceKmsKeyName?: string;
|
|
381
|
+
/**
|
|
382
|
+
* The list of service options to enable. This field should be used for service related experiments only. These experiments, when graduating to GA, should be replaced by dedicated
|
|
383
|
+
* fields or become default (i.e. always on).
|
|
384
|
+
*/
|
|
385
|
+
serviceOptions?: string[];
|
|
386
|
+
/** Output only. The shuffle mode used for the job. */
|
|
387
|
+
shuffleMode?: string;
|
|
388
|
+
/**
|
|
389
|
+
* The prefix of the resources the system should use for temporary storage. The system will append the suffix "/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of
|
|
390
|
+
* the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will
|
|
391
|
+
* override the value in taskrunner_settings. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
|
|
392
|
+
*/
|
|
393
|
+
tempStoragePrefix?: string;
|
|
394
|
+
/** A description of the process that generated the request. */
|
|
395
|
+
userAgent?: { [P in string]: any };
|
|
396
|
+
/** A structure describing which components and their versions of the service are required in order to run the job. */
|
|
397
|
+
version?: { [P in string]: any };
|
|
398
|
+
/** The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. */
|
|
399
|
+
workerPools?: WorkerPool[];
|
|
400
|
+
/**
|
|
401
|
+
* The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with
|
|
402
|
+
* worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region.
|
|
403
|
+
*/
|
|
404
|
+
workerRegion?: string;
|
|
405
|
+
/**
|
|
406
|
+
* The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with
|
|
407
|
+
* worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity.
|
|
408
|
+
*/
|
|
409
|
+
workerZone?: string;
|
|
410
|
+
}
|
|
411
|
+
interface ExecutionStageState {
|
|
412
|
+
/** The time at which the stage transitioned to this state. */
|
|
413
|
+
currentStateTime?: string;
|
|
414
|
+
/** The name of the execution stage. */
|
|
415
|
+
executionStageName?: string;
|
|
416
|
+
/** Executions stage states allow the same set of values as JobState. */
|
|
417
|
+
executionStageState?: string;
|
|
418
|
+
}
|
|
419
|
+
interface ExecutionStageSummary {
|
|
420
|
+
/** Collections produced and consumed by component transforms of this stage. */
|
|
421
|
+
componentSource?: ComponentSource[];
|
|
422
|
+
/** Transforms that comprise this execution stage. */
|
|
423
|
+
componentTransform?: ComponentTransform[];
|
|
424
|
+
/** Dataflow service generated id for this stage. */
|
|
425
|
+
id?: string;
|
|
426
|
+
/** Input sources for this stage. */
|
|
427
|
+
inputSource?: StageSource[];
|
|
428
|
+
/** Type of transform this stage is executing. */
|
|
429
|
+
kind?: string;
|
|
430
|
+
/** Dataflow service generated name for this stage. */
|
|
431
|
+
name?: string;
|
|
432
|
+
/** Output sources for this stage. */
|
|
433
|
+
outputSource?: StageSource[];
|
|
434
|
+
/** Other stages that must complete before this stage can run. */
|
|
435
|
+
prerequisiteStage?: string[];
|
|
436
|
+
}
|
|
437
|
+
interface FailedLocation {
|
|
438
|
+
/** The name of the [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond. */
|
|
439
|
+
name?: string;
|
|
440
|
+
}
|
|
441
|
+
interface FileIODetails {
|
|
442
|
+
/** File Pattern used to access files by the connector. */
|
|
443
|
+
filePattern?: string;
|
|
444
|
+
}
|
|
445
|
+
interface FlattenInstruction {
|
|
446
|
+
/** Describes the inputs to the flatten instruction. */
|
|
447
|
+
inputs?: InstructionInput[];
|
|
448
|
+
}
|
|
449
|
+
interface FlexTemplateRuntimeEnvironment {
|
|
450
|
+
/** Additional experiment flags for the job. */
|
|
451
|
+
additionalExperiments?: string[];
|
|
452
|
+
/**
|
|
453
|
+
* Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling
|
|
454
|
+
* restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass":
|
|
455
|
+
* "1kg", "count": "3" }.
|
|
456
|
+
*/
|
|
457
|
+
additionalUserLabels?: { [P in string]: string };
|
|
458
|
+
/** The algorithm to use for autoscaling */
|
|
459
|
+
autoscalingAlgorithm?: string;
|
|
460
|
+
/** Worker disk size, in gigabytes. */
|
|
461
|
+
diskSizeGb?: number;
|
|
462
|
+
/**
|
|
463
|
+
* If true, when processing time is spent almost entirely on garbage collection (GC), saves a heap dump before ending the thread or process. If false, ends the thread or process
|
|
464
|
+
* without saving a heap dump. Does not save a heap dump when the Java Virtual Machine (JVM) has an out of memory error during processing. The location of the heap file is either
|
|
465
|
+
* echoed back to the user, or the user is given the opportunity to download the heap file.
|
|
466
|
+
*/
|
|
467
|
+
dumpHeapOnOom?: boolean;
|
|
468
|
+
/** Whether to enable Streaming Engine for the job. */
|
|
469
|
+
enableStreamingEngine?: boolean;
|
|
470
|
+
/** Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs */
|
|
471
|
+
flexrsGoal?: string;
|
|
472
|
+
/** Configuration for VM IPs. */
|
|
473
|
+
ipConfiguration?: string;
|
|
474
|
+
/** Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ */
|
|
475
|
+
kmsKeyName?: string;
|
|
476
|
+
/** The machine type to use for launching the job. The default is n1-standard-1. */
|
|
477
|
+
launcherMachineType?: string;
|
|
478
|
+
/** The machine type to use for the job. Defaults to the value from the template if not specified. */
|
|
479
|
+
machineType?: string;
|
|
480
|
+
/** The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. */
|
|
481
|
+
maxWorkers?: number;
|
|
482
|
+
/** Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". */
|
|
483
|
+
network?: string;
|
|
484
|
+
/** The initial number of Google Compute Engine instances for the job. */
|
|
485
|
+
numWorkers?: number;
|
|
486
|
+
/** Cloud Storage bucket (directory) to upload heap dumps to. Enabling this field implies that `dump_heap_on_oom` is set to true. */
|
|
487
|
+
saveHeapDumpsToGcsPath?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Docker registry location of container image to use for the 'worker harness. Default is the container for the version of the SDK. Note this field is only valid for portable
|
|
490
|
+
* pipelines.
|
|
491
|
+
*/
|
|
492
|
+
sdkContainerImage?: string;
|
|
493
|
+
/** The email address of the service account to run the job as. */
|
|
494
|
+
serviceAccountEmail?: string;
|
|
495
|
+
/** The Cloud Storage path for staging local files. Must be a valid Cloud Storage URL, beginning with `gs://`. */
|
|
496
|
+
stagingLocation?: string;
|
|
497
|
+
/**
|
|
498
|
+
* Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form
|
|
499
|
+
* "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a
|
|
500
|
+
* Shared VPC network, you must use the complete URL.
|
|
501
|
+
*/
|
|
502
|
+
subnetwork?: string;
|
|
503
|
+
/** The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. */
|
|
504
|
+
tempLocation?: string;
|
|
505
|
+
/**
|
|
506
|
+
* The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with
|
|
507
|
+
* worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region.
|
|
508
|
+
*/
|
|
509
|
+
workerRegion?: string;
|
|
510
|
+
/**
|
|
511
|
+
* The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with
|
|
512
|
+
* worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. If both `worker_zone` and `zone`
|
|
513
|
+
* are set, `worker_zone` takes precedence.
|
|
514
|
+
*/
|
|
515
|
+
workerZone?: string;
|
|
516
|
+
/**
|
|
517
|
+
* The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future,
|
|
518
|
+
* worker_zone will take precedence.
|
|
519
|
+
*/
|
|
520
|
+
zone?: string;
|
|
521
|
+
}
|
|
522
|
+
interface FloatingPointList {
|
|
523
|
+
/** Elements of the list. */
|
|
524
|
+
elements?: number[];
|
|
525
|
+
}
|
|
526
|
+
interface FloatingPointMean {
|
|
527
|
+
/** The number of values being aggregated. */
|
|
528
|
+
count?: SplitInt64;
|
|
529
|
+
/** The sum of all values being aggregated. */
|
|
530
|
+
sum?: number;
|
|
531
|
+
}
|
|
532
|
+
interface GetDebugConfigRequest {
|
|
533
|
+
/** The internal component id for which debug configuration is requested. */
|
|
534
|
+
componentId?: string;
|
|
535
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
536
|
+
location?: string;
|
|
537
|
+
/** The worker id, i.e., VM hostname. */
|
|
538
|
+
workerId?: string;
|
|
539
|
+
}
|
|
540
|
+
interface GetDebugConfigResponse {
|
|
541
|
+
/** The encoded debug configuration for the requested component. */
|
|
542
|
+
config?: string;
|
|
543
|
+
}
|
|
544
|
+
interface GetTemplateResponse {
|
|
545
|
+
/** The template metadata describing the template name, available parameters, etc. */
|
|
546
|
+
metadata?: TemplateMetadata;
|
|
547
|
+
/** Describes the runtime metadata with SDKInfo and available parameters. */
|
|
548
|
+
runtimeMetadata?: RuntimeMetadata;
|
|
549
|
+
/** The status of the get template request. Any problems with the request will be indicated in the error_details. */
|
|
550
|
+
status?: Status;
|
|
551
|
+
/** Template Type. */
|
|
552
|
+
templateType?: string;
|
|
553
|
+
}
|
|
554
|
+
interface Histogram {
|
|
555
|
+
/**
|
|
556
|
+
* Counts of values in each bucket. For efficiency, prefix and trailing buckets with count = 0 are elided. Buckets can store the full range of values of an unsigned long, with
|
|
557
|
+
* ULLONG_MAX falling into the 59th bucket with range [1e19, 2e19).
|
|
558
|
+
*/
|
|
559
|
+
bucketCounts?: string[];
|
|
560
|
+
/** Starting index of first stored bucket. The non-inclusive upper-bound of the ith bucket is given by: pow(10,(i-first_bucket_offset)/3) * (1,2,5)[(i-first_bucket_offset)%3] */
|
|
561
|
+
firstBucketOffset?: number;
|
|
562
|
+
}
|
|
563
|
+
interface HotKeyDebuggingInfo {
|
|
564
|
+
/** Debugging information for each detected hot key. Keyed by a hash of the key. */
|
|
565
|
+
detectedHotKeys?: { [P in string]: HotKeyInfo };
|
|
566
|
+
}
|
|
567
|
+
interface HotKeyDetection {
|
|
568
|
+
/** The age of the hot key measured from when it was first detected. */
|
|
569
|
+
hotKeyAge?: string;
|
|
570
|
+
/** System-defined name of the step containing this hot key. Unique across the workflow. */
|
|
571
|
+
systemName?: string;
|
|
572
|
+
/** User-provided name of the step that contains this hot key. */
|
|
573
|
+
userStepName?: string;
|
|
574
|
+
}
|
|
575
|
+
interface HotKeyInfo {
|
|
576
|
+
/** The age of the hot key measured from when it was first detected. */
|
|
577
|
+
hotKeyAge?: string;
|
|
578
|
+
/** A detected hot key that is causing limited parallelism. This field will be populated only if the following flag is set to true: "--enable_hot_key_logging". */
|
|
579
|
+
key?: string;
|
|
580
|
+
/** If true, then the above key is truncated and cannot be deserialized. This occurs if the key above is populated and the key size is >5MB. */
|
|
581
|
+
keyTruncated?: boolean;
|
|
582
|
+
}
|
|
583
|
+
interface InstructionInput {
|
|
584
|
+
/** The output index (origin zero) within the producer. */
|
|
585
|
+
outputNum?: number;
|
|
586
|
+
/**
|
|
587
|
+
* The index (origin zero) of the parallel instruction that produces the output to be consumed by this input. This index is relative to the list of instructions in this input's
|
|
588
|
+
* instruction's containing MapTask.
|
|
589
|
+
*/
|
|
590
|
+
producerInstructionIndex?: number;
|
|
591
|
+
}
|
|
592
|
+
interface InstructionOutput {
|
|
593
|
+
/** The codec to use to encode data being written via this output. */
|
|
594
|
+
codec?: { [P in string]: any };
|
|
595
|
+
/** The user-provided name of this output. */
|
|
596
|
+
name?: string;
|
|
597
|
+
/** For system-generated byte and mean byte metrics, certain instructions should only report the key size. */
|
|
598
|
+
onlyCountKeyBytes?: boolean;
|
|
599
|
+
/** For system-generated byte and mean byte metrics, certain instructions should only report the value size. */
|
|
600
|
+
onlyCountValueBytes?: boolean;
|
|
601
|
+
/** System-defined name for this output in the original workflow graph. Outputs that do not contribute to an original instruction do not set this. */
|
|
602
|
+
originalName?: string;
|
|
603
|
+
/** System-defined name of this output. Unique across the workflow. */
|
|
604
|
+
systemName?: string;
|
|
605
|
+
}
|
|
606
|
+
interface IntegerGauge {
|
|
607
|
+
/** The time at which this value was measured. Measured as msecs from epoch. */
|
|
608
|
+
timestamp?: string;
|
|
609
|
+
/** The value of the variable represented by this gauge. */
|
|
610
|
+
value?: SplitInt64;
|
|
611
|
+
}
|
|
612
|
+
interface IntegerList {
|
|
613
|
+
/** Elements of the list. */
|
|
614
|
+
elements?: SplitInt64[];
|
|
615
|
+
}
|
|
616
|
+
interface IntegerMean {
|
|
617
|
+
/** The number of values being aggregated. */
|
|
618
|
+
count?: SplitInt64;
|
|
619
|
+
/** The sum of all values being aggregated. */
|
|
620
|
+
sum?: SplitInt64;
|
|
621
|
+
}
|
|
622
|
+
interface Job {
|
|
623
|
+
/**
|
|
624
|
+
* The client's unique identifier of the job, re-used across retried attempts. If this field is set, the service will ensure its uniqueness. The request to create a job will fail if
|
|
625
|
+
* the service has knowledge of a previously submitted job with the same client's ID and job name. The caller may use this field to ensure idempotence of job creation across retried
|
|
626
|
+
* attempts to create a job. By default, the field is empty and, in that case, the service ignores it.
|
|
627
|
+
*/
|
|
628
|
+
clientRequestId?: string;
|
|
629
|
+
/** If this is specified, the job's initial state is populated from the given snapshot. */
|
|
630
|
+
createdFromSnapshotId?: string;
|
|
631
|
+
/** The timestamp when the job was initially created. Immutable and set by the Cloud Dataflow service. */
|
|
632
|
+
createTime?: string;
|
|
633
|
+
/**
|
|
634
|
+
* The current state of the job. Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may asynchronously enter a
|
|
635
|
+
* terminal state. After a job has reached a terminal state, no further state updates may be made. This field may be mutated by the Cloud Dataflow service; callers cannot mutate it.
|
|
636
|
+
*/
|
|
637
|
+
currentState?: string;
|
|
638
|
+
/** The timestamp associated with the current state. */
|
|
639
|
+
currentStateTime?: string;
|
|
640
|
+
/** The environment for the job. */
|
|
641
|
+
environment?: Environment;
|
|
642
|
+
/** Deprecated. */
|
|
643
|
+
executionInfo?: JobExecutionInfo;
|
|
644
|
+
/** The unique ID of this job. This field is set by the Cloud Dataflow service when the Job is created, and is immutable for the life of the job. */
|
|
645
|
+
id?: string;
|
|
646
|
+
/** This field is populated by the Dataflow service to support filtering jobs by the metadata values provided here. Populated for ListJobs and all GetJob views SUMMARY and higher. */
|
|
647
|
+
jobMetadata?: JobMetadata;
|
|
648
|
+
/**
|
|
649
|
+
* User-defined labels for this job. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the following restrictions: * Keys
|
|
650
|
+
* must conform to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally constrained to be <= 128 bytes in
|
|
651
|
+
* size.
|
|
652
|
+
*/
|
|
653
|
+
labels?: { [P in string]: string };
|
|
654
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
655
|
+
location?: string;
|
|
656
|
+
/**
|
|
657
|
+
* The user-specified Cloud Dataflow job name. Only one Job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same
|
|
658
|
+
* name. If a caller attempts to create a Job with the same name as an already-existing Job, the attempt returns the existing Job. The name must match the regular expression
|
|
659
|
+
* `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`
|
|
660
|
+
*/
|
|
661
|
+
name?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Preliminary field: The format of this data may change at any time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service.
|
|
664
|
+
* Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
|
|
665
|
+
*/
|
|
666
|
+
pipelineDescription?: PipelineDescription;
|
|
667
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
668
|
+
projectId?: string;
|
|
669
|
+
/** If another job is an update of this job (and thus, this job is in `JOB_STATE_UPDATED`), this field contains the ID of that job. */
|
|
670
|
+
replacedByJobId?: string;
|
|
671
|
+
/**
|
|
672
|
+
* If this job is an update of an existing job, this field is the job ID of the job it replaced. When sending a `CreateJobRequest`, you can update a job by specifying it here. The job
|
|
673
|
+
* named here is stopped, and its intermediate state is transferred to this job.
|
|
674
|
+
*/
|
|
675
|
+
replaceJobId?: string;
|
|
676
|
+
/**
|
|
677
|
+
* The job's requested state. `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may also be used
|
|
678
|
+
* to directly set a job's requested state to `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if it has not already reached a terminal state.
|
|
679
|
+
*/
|
|
680
|
+
requestedState?: string;
|
|
681
|
+
/** Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests. */
|
|
682
|
+
satisfiesPzs?: boolean;
|
|
683
|
+
/** This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. */
|
|
684
|
+
stageStates?: ExecutionStageState[];
|
|
685
|
+
/**
|
|
686
|
+
* The timestamp when the job was started (transitioned to JOB_STATE_PENDING). Flexible resource scheduling jobs are started with some delay after job creation, so start_time is unset
|
|
687
|
+
* before start and is updated when the job is started by the Cloud Dataflow service. For other jobs, start_time always equals to create_time and is immutable and set by the Cloud
|
|
688
|
+
* Dataflow service.
|
|
689
|
+
*/
|
|
690
|
+
startTime?: string;
|
|
691
|
+
/** Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only retrieved with JOB_VIEW_ALL. */
|
|
692
|
+
steps?: Step[];
|
|
693
|
+
/** The Cloud Storage location where the steps are stored. */
|
|
694
|
+
stepsLocation?: string;
|
|
695
|
+
/**
|
|
696
|
+
* A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job completion. No duplicates are allowed. No file
|
|
697
|
+
* patterns are supported. The supported files are: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
|
|
698
|
+
*/
|
|
699
|
+
tempFiles?: string[];
|
|
700
|
+
/** The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. */
|
|
701
|
+
transformNameMapping?: { [P in string]: string };
|
|
702
|
+
/** The type of Cloud Dataflow job. */
|
|
703
|
+
type?: string;
|
|
704
|
+
}
|
|
705
|
+
interface JobExecutionDetails {
|
|
706
|
+
/** If present, this response does not contain all requested tasks. To obtain the next page of results, repeat the request with page_token set to this value. */
|
|
707
|
+
nextPageToken?: string;
|
|
708
|
+
/** The stages of the job execution. */
|
|
709
|
+
stages?: StageSummary[];
|
|
710
|
+
}
|
|
711
|
+
interface JobExecutionInfo {
|
|
712
|
+
/** A mapping from each stage to the information about that stage. */
|
|
713
|
+
stages?: { [P in string]: JobExecutionStageInfo };
|
|
714
|
+
}
|
|
715
|
+
interface JobExecutionStageInfo {
|
|
716
|
+
/** The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage. */
|
|
717
|
+
stepName?: string[];
|
|
718
|
+
}
|
|
719
|
+
interface JobMessage {
|
|
720
|
+
/** Deprecated. */
|
|
721
|
+
id?: string;
|
|
722
|
+
/** Importance level of the message. */
|
|
723
|
+
messageImportance?: string;
|
|
724
|
+
/** The text of the message. */
|
|
725
|
+
messageText?: string;
|
|
726
|
+
/** The timestamp of the message. */
|
|
727
|
+
time?: string;
|
|
728
|
+
}
|
|
729
|
+
interface JobMetadata {
|
|
730
|
+
/** Identification of a BigQuery source used in the Dataflow job. */
|
|
731
|
+
bigqueryDetails?: BigQueryIODetails[];
|
|
732
|
+
/** Identification of a Cloud Bigtable source used in the Dataflow job. */
|
|
733
|
+
bigTableDetails?: BigTableIODetails[];
|
|
734
|
+
/** Identification of a Datastore source used in the Dataflow job. */
|
|
735
|
+
datastoreDetails?: DatastoreIODetails[];
|
|
736
|
+
/** Identification of a File source used in the Dataflow job. */
|
|
737
|
+
fileDetails?: FileIODetails[];
|
|
738
|
+
/** Identification of a Pub/Sub source used in the Dataflow job. */
|
|
739
|
+
pubsubDetails?: PubSubIODetails[];
|
|
740
|
+
/** The SDK version used to run the job. */
|
|
741
|
+
sdkVersion?: SdkVersion;
|
|
742
|
+
/** Identification of a Spanner source used in the Dataflow job. */
|
|
743
|
+
spannerDetails?: SpannerIODetails[];
|
|
744
|
+
}
|
|
745
|
+
interface JobMetrics {
|
|
746
|
+
/** All metrics for this job. */
|
|
747
|
+
metrics?: MetricUpdate[];
|
|
748
|
+
/** Timestamp as of which metric values are current. */
|
|
749
|
+
metricTime?: string;
|
|
750
|
+
}
|
|
751
|
+
interface KeyRangeDataDiskAssignment {
|
|
752
|
+
/**
|
|
753
|
+
* The name of the data disk where data for this range is stored. This name is local to the Google Cloud Platform project and uniquely identifies the disk within that project, for
|
|
754
|
+
* example "myproject-1014-104817-4c2-harness-0-disk-1".
|
|
755
|
+
*/
|
|
756
|
+
dataDisk?: string;
|
|
757
|
+
/** The end (exclusive) of the key range. */
|
|
758
|
+
end?: string;
|
|
759
|
+
/** The start (inclusive) of the key range. */
|
|
760
|
+
start?: string;
|
|
761
|
+
}
|
|
762
|
+
interface KeyRangeLocation {
|
|
763
|
+
/**
|
|
764
|
+
* The name of the data disk where data for this range is stored. This name is local to the Google Cloud Platform project and uniquely identifies the disk within that project, for
|
|
765
|
+
* example "myproject-1014-104817-4c2-harness-0-disk-1".
|
|
766
|
+
*/
|
|
767
|
+
dataDisk?: string;
|
|
768
|
+
/** The physical location of this range assignment to be used for streaming computation cross-worker message delivery. */
|
|
769
|
+
deliveryEndpoint?: string;
|
|
770
|
+
/** DEPRECATED. The location of the persistent state for this range, as a persistent directory in the worker local filesystem. */
|
|
771
|
+
deprecatedPersistentDirectory?: string;
|
|
772
|
+
/** The end (exclusive) of the key range. */
|
|
773
|
+
end?: string;
|
|
774
|
+
/** The start (inclusive) of the key range. */
|
|
775
|
+
start?: string;
|
|
776
|
+
}
|
|
777
|
+
interface LaunchFlexTemplateParameter {
|
|
778
|
+
/** Spec about the container image to launch. */
|
|
779
|
+
containerSpec?: ContainerSpec;
|
|
780
|
+
/** Cloud Storage path to a file with json serialized ContainerSpec as content. */
|
|
781
|
+
containerSpecGcsPath?: string;
|
|
782
|
+
/** The runtime environment for the FlexTemplate job */
|
|
783
|
+
environment?: FlexTemplateRuntimeEnvironment;
|
|
784
|
+
/** Required. The job name to use for the created job. For update job request, job name should be same as the existing running job. */
|
|
785
|
+
jobName?: string;
|
|
786
|
+
/** Launch options for this flex template job. This is a common set of options across languages and templates. This should not be used to pass job parameters. */
|
|
787
|
+
launchOptions?: { [P in string]: string };
|
|
788
|
+
/** The parameters for FlexTemplate. Ex. {"num_workers":"5"} */
|
|
789
|
+
parameters?: { [P in string]: string };
|
|
790
|
+
/** Use this to pass transform_name_mappings for streaming update jobs. Ex:{"oldTransformName":"newTransformName",...}' */
|
|
791
|
+
transformNameMappings?: { [P in string]: string };
|
|
792
|
+
/** Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. */
|
|
793
|
+
update?: boolean;
|
|
794
|
+
}
|
|
795
|
+
interface LaunchFlexTemplateRequest {
|
|
796
|
+
/** Required. Parameter to launch a job form Flex Template. */
|
|
797
|
+
launchParameter?: LaunchFlexTemplateParameter;
|
|
798
|
+
/** If true, the request is validated but not actually executed. Defaults to false. */
|
|
799
|
+
validateOnly?: boolean;
|
|
800
|
+
}
|
|
801
|
+
interface LaunchFlexTemplateResponse {
|
|
802
|
+
/** The job that was launched, if the request was not a dry run and the job was successfully launched. */
|
|
803
|
+
job?: Job;
|
|
804
|
+
}
|
|
805
|
+
interface LaunchTemplateParameters {
|
|
806
|
+
/** The runtime environment for the job. */
|
|
807
|
+
environment?: RuntimeEnvironment;
|
|
808
|
+
/** Required. The job name to use for the created job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` */
|
|
809
|
+
jobName?: string;
|
|
810
|
+
/** The runtime parameters to pass to the job. */
|
|
811
|
+
parameters?: { [P in string]: string };
|
|
812
|
+
/** Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. */
|
|
813
|
+
transformNameMapping?: { [P in string]: string };
|
|
814
|
+
/** If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. */
|
|
815
|
+
update?: boolean;
|
|
816
|
+
}
|
|
817
|
+
interface LaunchTemplateResponse {
|
|
818
|
+
/** The job that was launched, if the request was not a dry run and the job was successfully launched. */
|
|
819
|
+
job?: Job;
|
|
820
|
+
}
|
|
821
|
+
interface LeaseWorkItemRequest {
|
|
822
|
+
/** The current timestamp at the worker. */
|
|
823
|
+
currentWorkerTime?: string;
|
|
824
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job. */
|
|
825
|
+
location?: string;
|
|
826
|
+
/** The initial lease period. */
|
|
827
|
+
requestedLeaseDuration?: string;
|
|
828
|
+
/** Untranslated bag-of-bytes WorkRequest from UnifiedWorker. */
|
|
829
|
+
unifiedWorkerRequest?: { [P in string]: any };
|
|
830
|
+
/** Worker capabilities. WorkItems might be limited to workers with specific capabilities. */
|
|
831
|
+
workerCapabilities?: string[];
|
|
832
|
+
/** Identifies the worker leasing work -- typically the ID of the virtual machine running the worker. */
|
|
833
|
+
workerId?: string;
|
|
834
|
+
/** Filter for WorkItem type. */
|
|
835
|
+
workItemTypes?: string[];
|
|
836
|
+
}
|
|
837
|
+
interface LeaseWorkItemResponse {
|
|
838
|
+
/** Untranslated bag-of-bytes WorkResponse for UnifiedWorker. */
|
|
839
|
+
unifiedWorkerResponse?: { [P in string]: any };
|
|
840
|
+
/** A list of the leased WorkItems. */
|
|
841
|
+
workItems?: WorkItem[];
|
|
842
|
+
}
|
|
843
|
+
interface ListJobMessagesResponse {
|
|
844
|
+
/** Autoscaling events in ascending timestamp order. */
|
|
845
|
+
autoscalingEvents?: AutoscalingEvent[];
|
|
846
|
+
/** Messages in ascending timestamp order. */
|
|
847
|
+
jobMessages?: JobMessage[];
|
|
848
|
+
/** The token to obtain the next page of results if there are more. */
|
|
849
|
+
nextPageToken?: string;
|
|
850
|
+
}
|
|
851
|
+
interface ListJobsResponse {
|
|
852
|
+
/** Zero or more messages describing the [regional endpoints] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond. */
|
|
853
|
+
failedLocation?: FailedLocation[];
|
|
854
|
+
/** A subset of the requested job information. */
|
|
855
|
+
jobs?: Job[];
|
|
856
|
+
/** Set if there may be more results than fit in this response. */
|
|
857
|
+
nextPageToken?: string;
|
|
858
|
+
}
|
|
859
|
+
interface ListSnapshotsResponse {
|
|
860
|
+
/** Returned snapshots. */
|
|
861
|
+
snapshots?: Snapshot[];
|
|
862
|
+
}
|
|
863
|
+
interface MapTask {
|
|
864
|
+
/** Counter prefix that can be used to prefix counters. Not currently used in Dataflow. */
|
|
865
|
+
counterPrefix?: string;
|
|
866
|
+
/** The instructions in the MapTask. */
|
|
867
|
+
instructions?: ParallelInstruction[];
|
|
868
|
+
/** System-defined name of the stage containing this MapTask. Unique across the workflow. */
|
|
869
|
+
stageName?: string;
|
|
870
|
+
/** System-defined name of this MapTask. Unique across the workflow. */
|
|
871
|
+
systemName?: string;
|
|
872
|
+
}
|
|
873
|
+
interface MemInfo {
|
|
874
|
+
/** Instantenous memory limit in bytes. */
|
|
875
|
+
currentLimitBytes?: string;
|
|
876
|
+
/** Number of Out of Memory (OOM) events recorded since the previous measurement. */
|
|
877
|
+
currentOoms?: string;
|
|
878
|
+
/** Instantenous memory (RSS) size in bytes. */
|
|
879
|
+
currentRssBytes?: string;
|
|
880
|
+
/** Timestamp of the measurement. */
|
|
881
|
+
timestamp?: string;
|
|
882
|
+
/** Total memory (RSS) usage since start up in GB * ms. */
|
|
883
|
+
totalGbMs?: string;
|
|
884
|
+
}
|
|
885
|
+
interface MetricShortId {
|
|
886
|
+
/** The index of the corresponding metric in the ReportWorkItemStatusRequest. Required. */
|
|
887
|
+
metricIndex?: number;
|
|
888
|
+
/** The service-generated short identifier for the metric. */
|
|
889
|
+
shortId?: string;
|
|
890
|
+
}
|
|
891
|
+
interface MetricStructuredName {
|
|
892
|
+
/**
|
|
893
|
+
* Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated
|
|
894
|
+
* with steps will have context['step'] = . Counters associated with PCollections in the SDK will have context['pcollection'] = .
|
|
895
|
+
*/
|
|
896
|
+
context?: { [P in string]: string };
|
|
897
|
+
/** Worker-defined metric name. */
|
|
898
|
+
name?: string;
|
|
899
|
+
/** Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK. */
|
|
900
|
+
origin?: string;
|
|
901
|
+
}
|
|
902
|
+
interface MetricUpdate {
|
|
903
|
+
/**
|
|
904
|
+
* True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this
|
|
905
|
+
* metric is reported as a delta that is not associated with any WorkItem.
|
|
906
|
+
*/
|
|
907
|
+
cumulative?: boolean;
|
|
908
|
+
/** A struct value describing properties of a distribution of numeric values. */
|
|
909
|
+
distribution?: any;
|
|
910
|
+
/** A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value. */
|
|
911
|
+
gauge?: any;
|
|
912
|
+
/** Worker-computed aggregate value for internal use by the Dataflow service. */
|
|
913
|
+
internal?: any;
|
|
914
|
+
/**
|
|
915
|
+
* Metric aggregation kind. The possible metric aggregation kinds are "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". The specified aggregation kind is
|
|
916
|
+
* case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value.
|
|
917
|
+
*/
|
|
918
|
+
kind?: string;
|
|
919
|
+
/**
|
|
920
|
+
* Worker-computed aggregate value for the "Mean" aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual
|
|
921
|
+
* mean aggregate value. The only possible value type is Long.
|
|
922
|
+
*/
|
|
923
|
+
meanCount?: any;
|
|
924
|
+
/**
|
|
925
|
+
* Worker-computed aggregate value for the "Mean" aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual
|
|
926
|
+
* mean aggregate value. The only possible value types are Long and Double.
|
|
927
|
+
*/
|
|
928
|
+
meanSum?: any;
|
|
929
|
+
/** Name of the metric. */
|
|
930
|
+
name?: MetricStructuredName;
|
|
931
|
+
/** Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or". The possible value types are Long, Double, and Boolean. */
|
|
932
|
+
scalar?: any;
|
|
933
|
+
/**
|
|
934
|
+
* Worker-computed aggregate value for the "Set" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric's
|
|
935
|
+
* type. All Values in the list must be of the same type.
|
|
936
|
+
*/
|
|
937
|
+
set?: any;
|
|
938
|
+
/** Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API. */
|
|
939
|
+
updateTime?: string;
|
|
940
|
+
}
|
|
941
|
+
interface MountedDataDisk {
|
|
942
|
+
/**
|
|
943
|
+
* The name of the data disk. This name is local to the Google Cloud Platform project and uniquely identifies the disk within that project, for example
|
|
944
|
+
* "myproject-1014-104817-4c2-harness-0-disk-1".
|
|
945
|
+
*/
|
|
946
|
+
dataDisk?: string;
|
|
947
|
+
}
|
|
948
|
+
interface MultiOutputInfo {
|
|
949
|
+
/** The id of the tag the user code will emit to this output by; this should correspond to the tag of some SideInputInfo. */
|
|
950
|
+
tag?: string;
|
|
951
|
+
}
|
|
952
|
+
interface NameAndKind {
|
|
953
|
+
/** Counter aggregation kind. */
|
|
954
|
+
kind?: string;
|
|
955
|
+
/** Name of the counter. */
|
|
956
|
+
name?: string;
|
|
957
|
+
}
|
|
958
|
+
interface Package {
|
|
959
|
+
/** The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/ */
|
|
960
|
+
location?: string;
|
|
961
|
+
/** The name of the package. */
|
|
962
|
+
name?: string;
|
|
963
|
+
}
|
|
964
|
+
interface ParallelInstruction {
|
|
965
|
+
/** Additional information for Flatten instructions. */
|
|
966
|
+
flatten?: FlattenInstruction;
|
|
967
|
+
/** User-provided name of this operation. */
|
|
968
|
+
name?: string;
|
|
969
|
+
/** System-defined name for the operation in the original workflow graph. */
|
|
970
|
+
originalName?: string;
|
|
971
|
+
/** Describes the outputs of the instruction. */
|
|
972
|
+
outputs?: InstructionOutput[];
|
|
973
|
+
/** Additional information for ParDo instructions. */
|
|
974
|
+
parDo?: ParDoInstruction;
|
|
975
|
+
/** Additional information for PartialGroupByKey instructions. */
|
|
976
|
+
partialGroupByKey?: PartialGroupByKeyInstruction;
|
|
977
|
+
/** Additional information for Read instructions. */
|
|
978
|
+
read?: ReadInstruction;
|
|
979
|
+
/** System-defined name of this operation. Unique across the workflow. */
|
|
980
|
+
systemName?: string;
|
|
981
|
+
/** Additional information for Write instructions. */
|
|
982
|
+
write?: WriteInstruction;
|
|
983
|
+
}
|
|
984
|
+
interface Parameter {
|
|
985
|
+
/** Key or name for this parameter. */
|
|
986
|
+
key?: string;
|
|
987
|
+
/** Value for this parameter. */
|
|
988
|
+
value?: any;
|
|
989
|
+
}
|
|
990
|
+
interface ParameterMetadata {
|
|
991
|
+
/** Optional. Additional metadata for describing this parameter. */
|
|
992
|
+
customMetadata?: { [P in string]: string };
|
|
993
|
+
/** Required. The help text to display for the parameter. */
|
|
994
|
+
helpText?: string;
|
|
995
|
+
/** Optional. Whether the parameter is optional. Defaults to false. */
|
|
996
|
+
isOptional?: boolean;
|
|
997
|
+
/** Required. The label to display for the parameter. */
|
|
998
|
+
label?: string;
|
|
999
|
+
/** Required. The name of the parameter. */
|
|
1000
|
+
name?: string;
|
|
1001
|
+
/** Optional. The type of the parameter. Used for selecting input picker. */
|
|
1002
|
+
paramType?: string;
|
|
1003
|
+
/** Optional. Regexes that the parameter must match. */
|
|
1004
|
+
regexes?: string[];
|
|
1005
|
+
}
|
|
1006
|
+
interface ParDoInstruction {
|
|
1007
|
+
/** The input. */
|
|
1008
|
+
input?: InstructionInput;
|
|
1009
|
+
/** Information about each of the outputs, if user_fn is a MultiDoFn. */
|
|
1010
|
+
multiOutputInfos?: MultiOutputInfo[];
|
|
1011
|
+
/** The number of outputs. */
|
|
1012
|
+
numOutputs?: number;
|
|
1013
|
+
/** Zero or more side inputs. */
|
|
1014
|
+
sideInputs?: SideInputInfo[];
|
|
1015
|
+
/** The user function to invoke. */
|
|
1016
|
+
userFn?: { [P in string]: any };
|
|
1017
|
+
}
|
|
1018
|
+
interface PartialGroupByKeyInstruction {
|
|
1019
|
+
/** Describes the input to the partial group-by-key instruction. */
|
|
1020
|
+
input?: InstructionInput;
|
|
1021
|
+
/** The codec to use for interpreting an element in the input PTable. */
|
|
1022
|
+
inputElementCodec?: { [P in string]: any };
|
|
1023
|
+
/** If this instruction includes a combining function this is the name of the intermediate store between the GBK and the CombineValues. */
|
|
1024
|
+
originalCombineValuesInputStoreName?: string;
|
|
1025
|
+
/** If this instruction includes a combining function, this is the name of the CombineValues instruction lifted into this instruction. */
|
|
1026
|
+
originalCombineValuesStepName?: string;
|
|
1027
|
+
/** Zero or more side inputs. */
|
|
1028
|
+
sideInputs?: SideInputInfo[];
|
|
1029
|
+
/** The value combining function to invoke. */
|
|
1030
|
+
valueCombiningFn?: { [P in string]: any };
|
|
1031
|
+
}
|
|
1032
|
+
interface PipelineDescription {
|
|
1033
|
+
/** Pipeline level display data. */
|
|
1034
|
+
displayData?: DisplayData[];
|
|
1035
|
+
/** Description of each stage of execution of the pipeline. */
|
|
1036
|
+
executionPipelineStage?: ExecutionStageSummary[];
|
|
1037
|
+
/** Description of each transform in the pipeline and collections between them. */
|
|
1038
|
+
originalPipelineTransform?: TransformSummary[];
|
|
1039
|
+
}
|
|
1040
|
+
interface Point {
|
|
1041
|
+
/** The timestamp of the point. */
|
|
1042
|
+
time?: string;
|
|
1043
|
+
/** The value of the point. */
|
|
1044
|
+
value?: number;
|
|
1045
|
+
}
|
|
1046
|
+
interface Position {
|
|
1047
|
+
/** Position is a byte offset. */
|
|
1048
|
+
byteOffset?: string;
|
|
1049
|
+
/** CloudPosition is a concat position. */
|
|
1050
|
+
concatPosition?: ConcatPosition;
|
|
1051
|
+
/** Position is past all other positions. Also useful for the end position of an unbounded range. */
|
|
1052
|
+
end?: boolean;
|
|
1053
|
+
/** Position is a string key, ordered lexicographically. */
|
|
1054
|
+
key?: string;
|
|
1055
|
+
/** Position is a record index. */
|
|
1056
|
+
recordIndex?: string;
|
|
1057
|
+
/** CloudPosition is a base64 encoded BatchShufflePosition (with FIXED sharding). */
|
|
1058
|
+
shufflePosition?: string;
|
|
1059
|
+
}
|
|
1060
|
+
interface ProgressTimeseries {
|
|
1061
|
+
/** The current progress of the component, in the range [0,1]. */
|
|
1062
|
+
currentProgress?: number;
|
|
1063
|
+
/** History of progress for the component. Points are sorted by time. */
|
|
1064
|
+
dataPoints?: Point[];
|
|
1065
|
+
}
|
|
1066
|
+
interface PubSubIODetails {
|
|
1067
|
+
/** Subscription used in the connection. */
|
|
1068
|
+
subscription?: string;
|
|
1069
|
+
/** Topic accessed in the connection. */
|
|
1070
|
+
topic?: string;
|
|
1071
|
+
}
|
|
1072
|
+
interface PubsubLocation {
|
|
1073
|
+
/** Indicates whether the pipeline allows late-arriving data. */
|
|
1074
|
+
dropLateData?: boolean;
|
|
1075
|
+
/** If set, contains a pubsub label from which to extract record ids. If left empty, record deduplication will be strictly best effort. */
|
|
1076
|
+
idLabel?: string;
|
|
1077
|
+
/** A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions//" */
|
|
1078
|
+
subscription?: string;
|
|
1079
|
+
/** If set, contains a pubsub label from which to extract record timestamps. If left empty, record timestamps will be generated upon arrival. */
|
|
1080
|
+
timestampLabel?: string;
|
|
1081
|
+
/** A pubsub topic, in the form of "pubsub.googleapis.com/topics//" */
|
|
1082
|
+
topic?: string;
|
|
1083
|
+
/** If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation. */
|
|
1084
|
+
trackingSubscription?: string;
|
|
1085
|
+
/** If true, then the client has requested to get pubsub attributes. */
|
|
1086
|
+
withAttributes?: boolean;
|
|
1087
|
+
}
|
|
1088
|
+
interface PubsubSnapshotMetadata {
|
|
1089
|
+
/** The expire time of the Pubsub snapshot. */
|
|
1090
|
+
expireTime?: string;
|
|
1091
|
+
/** The name of the Pubsub snapshot. */
|
|
1092
|
+
snapshotName?: string;
|
|
1093
|
+
/** The name of the Pubsub topic. */
|
|
1094
|
+
topicName?: string;
|
|
1095
|
+
}
|
|
1096
|
+
interface QueryInfo {
|
|
1097
|
+
/** Includes an entry for each satisfied QueryProperty. */
|
|
1098
|
+
queryProperty?: string[];
|
|
1099
|
+
}
|
|
1100
|
+
interface ReadInstruction {
|
|
1101
|
+
/** The source to read from. */
|
|
1102
|
+
source?: Source;
|
|
1103
|
+
}
|
|
1104
|
+
interface ReportedParallelism {
|
|
1105
|
+
/**
|
|
1106
|
+
* Specifies whether the parallelism is infinite. If true, "value" is ignored. Infinite parallelism means the service will assume that the work item can always be split into more
|
|
1107
|
+
* non-empty work items by dynamic splitting. This is a work-around for lack of support for infinity by the current JSON-based Java RPC stack.
|
|
1108
|
+
*/
|
|
1109
|
+
isInfinite?: boolean;
|
|
1110
|
+
/** Specifies the level of parallelism in case it is finite. */
|
|
1111
|
+
value?: number;
|
|
1112
|
+
}
|
|
1113
|
+
interface ReportWorkItemStatusRequest {
|
|
1114
|
+
/** The current timestamp at the worker. */
|
|
1115
|
+
currentWorkerTime?: string;
|
|
1116
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job. */
|
|
1117
|
+
location?: string;
|
|
1118
|
+
/** Untranslated bag-of-bytes WorkProgressUpdateRequest from UnifiedWorker. */
|
|
1119
|
+
unifiedWorkerRequest?: { [P in string]: any };
|
|
1120
|
+
/**
|
|
1121
|
+
* The ID of the worker reporting the WorkItem status. If this does not match the ID of the worker which the Dataflow service believes currently has the lease on the WorkItem, the
|
|
1122
|
+
* report will be dropped (with an error response).
|
|
1123
|
+
*/
|
|
1124
|
+
workerId?: string;
|
|
1125
|
+
/** The order is unimportant, except that the order of the WorkItemServiceState messages in the ReportWorkItemStatusResponse corresponds to the order of WorkItemStatus messages here. */
|
|
1126
|
+
workItemStatuses?: WorkItemStatus[];
|
|
1127
|
+
}
|
|
1128
|
+
interface ReportWorkItemStatusResponse {
|
|
1129
|
+
/** Untranslated bag-of-bytes WorkProgressUpdateResponse for UnifiedWorker. */
|
|
1130
|
+
unifiedWorkerResponse?: { [P in string]: any };
|
|
1131
|
+
/**
|
|
1132
|
+
* A set of messages indicating the service-side state for each WorkItem whose status was reported, in the same order as the WorkItemStatus messages in the ReportWorkItemStatusRequest
|
|
1133
|
+
* which resulting in this response.
|
|
1134
|
+
*/
|
|
1135
|
+
workItemServiceStates?: WorkItemServiceState[];
|
|
1136
|
+
}
|
|
1137
|
+
interface ResourceUtilizationReport {
|
|
1138
|
+
/** Per container information. Key: container name. */
|
|
1139
|
+
containers?: { [P in string]: ResourceUtilizationReport };
|
|
1140
|
+
/** CPU utilization samples. */
|
|
1141
|
+
cpuTime?: CPUTime[];
|
|
1142
|
+
/** Memory utilization samples. */
|
|
1143
|
+
memoryInfo?: MemInfo[];
|
|
1144
|
+
}
|
|
1145
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1146
|
+
interface ResourceUtilizationReportResponse {
|
|
1147
|
+
}
|
|
1148
|
+
interface RuntimeEnvironment {
|
|
1149
|
+
/** Additional experiment flags for the job, specified with the `--experiments` option. */
|
|
1150
|
+
additionalExperiments?: string[];
|
|
1151
|
+
/**
|
|
1152
|
+
* Additional user labels to be specified for the job. Keys and values should follow the restrictions specified in the [labeling
|
|
1153
|
+
* restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass":
|
|
1154
|
+
* "1kg", "count": "3" }.
|
|
1155
|
+
*/
|
|
1156
|
+
additionalUserLabels?: { [P in string]: string };
|
|
1157
|
+
/** Whether to bypass the safety checks for the job's temporary directory. Use with caution. */
|
|
1158
|
+
bypassTempDirValidation?: boolean;
|
|
1159
|
+
/** Whether to enable Streaming Engine for the job. */
|
|
1160
|
+
enableStreamingEngine?: boolean;
|
|
1161
|
+
/** Configuration for VM IPs. */
|
|
1162
|
+
ipConfiguration?: string;
|
|
1163
|
+
/** Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ */
|
|
1164
|
+
kmsKeyName?: string;
|
|
1165
|
+
/** The machine type to use for the job. Defaults to the value from the template if not specified. */
|
|
1166
|
+
machineType?: string;
|
|
1167
|
+
/** The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. */
|
|
1168
|
+
maxWorkers?: number;
|
|
1169
|
+
/** Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". */
|
|
1170
|
+
network?: string;
|
|
1171
|
+
/** The initial number of Google Compute Engine instances for the job. */
|
|
1172
|
+
numWorkers?: number;
|
|
1173
|
+
/** The email address of the service account to run the job as. */
|
|
1174
|
+
serviceAccountEmail?: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form
|
|
1177
|
+
* "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a
|
|
1178
|
+
* Shared VPC network, you must use the complete URL.
|
|
1179
|
+
*/
|
|
1180
|
+
subnetwork?: string;
|
|
1181
|
+
/** The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. */
|
|
1182
|
+
tempLocation?: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with
|
|
1185
|
+
* worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region.
|
|
1186
|
+
*/
|
|
1187
|
+
workerRegion?: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with
|
|
1190
|
+
* worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. If both `worker_zone` and `zone`
|
|
1191
|
+
* are set, `worker_zone` takes precedence.
|
|
1192
|
+
*/
|
|
1193
|
+
workerZone?: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future,
|
|
1196
|
+
* worker_zone will take precedence.
|
|
1197
|
+
*/
|
|
1198
|
+
zone?: string;
|
|
1199
|
+
}
|
|
1200
|
+
interface RuntimeMetadata {
|
|
1201
|
+
/** The parameters for the template. */
|
|
1202
|
+
parameters?: ParameterMetadata[];
|
|
1203
|
+
/** SDK Info for the template. */
|
|
1204
|
+
sdkInfo?: SDKInfo;
|
|
1205
|
+
}
|
|
1206
|
+
interface SdkHarnessContainerImage {
|
|
1207
|
+
/**
|
|
1208
|
+
* The set of capabilities enumerated in the above Environment proto. See also
|
|
1209
|
+
* [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
|
|
1210
|
+
*/
|
|
1211
|
+
capabilities?: string[];
|
|
1212
|
+
/** A docker container image that resides in Google Container Registry. */
|
|
1213
|
+
containerImage?: string;
|
|
1214
|
+
/** Environment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness. */
|
|
1215
|
+
environmentId?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container
|
|
1218
|
+
* instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
|
|
1219
|
+
*/
|
|
1220
|
+
useSingleCorePerContainer?: boolean;
|
|
1221
|
+
}
|
|
1222
|
+
interface SDKInfo {
|
|
1223
|
+
/** Required. The SDK Language. */
|
|
1224
|
+
language?: string;
|
|
1225
|
+
/** Optional. The SDK version. */
|
|
1226
|
+
version?: string;
|
|
1227
|
+
}
|
|
1228
|
+
interface SdkVersion {
|
|
1229
|
+
/** The support status for this SDK version. */
|
|
1230
|
+
sdkSupportStatus?: string;
|
|
1231
|
+
/** The version of the SDK used to run the job. */
|
|
1232
|
+
version?: string;
|
|
1233
|
+
/** A readable string describing the version of the SDK. */
|
|
1234
|
+
versionDisplayName?: string;
|
|
1235
|
+
}
|
|
1236
|
+
interface SendDebugCaptureRequest {
|
|
1237
|
+
/** The internal component id for which debug information is sent. */
|
|
1238
|
+
componentId?: string;
|
|
1239
|
+
/** The encoded debug information. */
|
|
1240
|
+
data?: string;
|
|
1241
|
+
/** Format for the data field above (id=5). */
|
|
1242
|
+
dataFormat?: string;
|
|
1243
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
1244
|
+
location?: string;
|
|
1245
|
+
/** The worker id, i.e., VM hostname. */
|
|
1246
|
+
workerId?: string;
|
|
1247
|
+
}
|
|
1248
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1249
|
+
interface SendDebugCaptureResponse {
|
|
1250
|
+
}
|
|
1251
|
+
interface SendWorkerMessagesRequest {
|
|
1252
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job. */
|
|
1253
|
+
location?: string;
|
|
1254
|
+
/** The WorkerMessages to send. */
|
|
1255
|
+
workerMessages?: WorkerMessage[];
|
|
1256
|
+
}
|
|
1257
|
+
interface SendWorkerMessagesResponse {
|
|
1258
|
+
/** The servers response to the worker messages. */
|
|
1259
|
+
workerMessageResponses?: WorkerMessageResponse[];
|
|
1260
|
+
}
|
|
1261
|
+
interface SeqMapTask {
|
|
1262
|
+
/** Information about each of the inputs. */
|
|
1263
|
+
inputs?: SideInputInfo[];
|
|
1264
|
+
/** The user-provided name of the SeqDo operation. */
|
|
1265
|
+
name?: string;
|
|
1266
|
+
/** Information about each of the outputs. */
|
|
1267
|
+
outputInfos?: SeqMapTaskOutputInfo[];
|
|
1268
|
+
/** System-defined name of the stage containing the SeqDo operation. Unique across the workflow. */
|
|
1269
|
+
stageName?: string;
|
|
1270
|
+
/** System-defined name of the SeqDo operation. Unique across the workflow. */
|
|
1271
|
+
systemName?: string;
|
|
1272
|
+
/** The user function to invoke. */
|
|
1273
|
+
userFn?: { [P in string]: any };
|
|
1274
|
+
}
|
|
1275
|
+
interface SeqMapTaskOutputInfo {
|
|
1276
|
+
/** The sink to write the output value to. */
|
|
1277
|
+
sink?: Sink;
|
|
1278
|
+
/** The id of the TupleTag the user code will tag the output value by. */
|
|
1279
|
+
tag?: string;
|
|
1280
|
+
}
|
|
1281
|
+
interface ShellTask {
|
|
1282
|
+
/** The shell command to run. */
|
|
1283
|
+
command?: string;
|
|
1284
|
+
/** Exit code for the task. */
|
|
1285
|
+
exitCode?: number;
|
|
1286
|
+
}
|
|
1287
|
+
interface SideInputInfo {
|
|
1288
|
+
/** How to interpret the source element(s) as a side input value. */
|
|
1289
|
+
kind?: { [P in string]: any };
|
|
1290
|
+
/**
|
|
1291
|
+
* The source(s) to read element(s) from to get the value of this side input. If more than one source, then the elements are taken from the sources, in the specified order if order
|
|
1292
|
+
* matters. At least one source is required.
|
|
1293
|
+
*/
|
|
1294
|
+
sources?: Source[];
|
|
1295
|
+
/** The id of the tag the user code will access this side input by; this should correspond to the tag of some MultiOutputInfo. */
|
|
1296
|
+
tag?: string;
|
|
1297
|
+
}
|
|
1298
|
+
interface Sink {
|
|
1299
|
+
/** The codec to use to encode data written to the sink. */
|
|
1300
|
+
codec?: { [P in string]: any };
|
|
1301
|
+
/** The sink to write to, plus its parameters. */
|
|
1302
|
+
spec?: { [P in string]: any };
|
|
1303
|
+
}
|
|
1304
|
+
interface Snapshot {
|
|
1305
|
+
/** The time this snapshot was created. */
|
|
1306
|
+
creationTime?: string;
|
|
1307
|
+
/** User specified description of the snapshot. Maybe empty. */
|
|
1308
|
+
description?: string;
|
|
1309
|
+
/** The disk byte size of the snapshot. Only available for snapshots in READY state. */
|
|
1310
|
+
diskSizeBytes?: string;
|
|
1311
|
+
/** The unique ID of this snapshot. */
|
|
1312
|
+
id?: string;
|
|
1313
|
+
/** The project this snapshot belongs to. */
|
|
1314
|
+
projectId?: string;
|
|
1315
|
+
/** Pub/Sub snapshot metadata. */
|
|
1316
|
+
pubsubMetadata?: PubsubSnapshotMetadata[];
|
|
1317
|
+
/** Cloud region where this snapshot lives in, e.g., "us-central1". */
|
|
1318
|
+
region?: string;
|
|
1319
|
+
/** The job this snapshot was created from. */
|
|
1320
|
+
sourceJobId?: string;
|
|
1321
|
+
/** State of the snapshot. */
|
|
1322
|
+
state?: string;
|
|
1323
|
+
/** The time after which this snapshot will be automatically deleted. */
|
|
1324
|
+
ttl?: string;
|
|
1325
|
+
}
|
|
1326
|
+
interface SnapshotJobRequest {
|
|
1327
|
+
/** User specified description of the snapshot. Maybe empty. */
|
|
1328
|
+
description?: string;
|
|
1329
|
+
/** The location that contains this job. */
|
|
1330
|
+
location?: string;
|
|
1331
|
+
/** If true, perform snapshots for sources which support this. */
|
|
1332
|
+
snapshotSources?: boolean;
|
|
1333
|
+
/** TTL for the snapshot. */
|
|
1334
|
+
ttl?: string;
|
|
1335
|
+
}
|
|
1336
|
+
interface Source {
|
|
1337
|
+
/**
|
|
1338
|
+
* While splitting, sources may specify the produced bundles as differences against another source, in order to save backend-side memory and allow bigger jobs. For details, see
|
|
1339
|
+
* SourceSplitRequest. To support this use case, the full set of parameters of the source is logically obtained by taking the latest explicitly specified value of each parameter in the
|
|
1340
|
+
* order: base_specs (later items win), spec (overrides anything in base_specs).
|
|
1341
|
+
*/
|
|
1342
|
+
baseSpecs?: Array<{ [P in string]: any }>;
|
|
1343
|
+
/** The codec to use to decode data read from the source. */
|
|
1344
|
+
codec?: { [P in string]: any };
|
|
1345
|
+
/**
|
|
1346
|
+
* Setting this value to true hints to the framework that the source doesn't need splitting, and using SourceSplitRequest on it would yield SOURCE_SPLIT_OUTCOME_USE_CURRENT. E.g. a
|
|
1347
|
+
* file splitter may set this to true when splitting a single file into a set of byte ranges of appropriate size, and set this to false when splitting a filepattern into individual
|
|
1348
|
+
* files. However, for efficiency, a file splitter may decide to produce file subranges directly from the filepattern to avoid a splitting round-trip. See SourceSplitRequest for an
|
|
1349
|
+
* overview of the splitting process. This field is meaningful only in the Source objects populated by the user (e.g. when filling in a DerivedSource). Source objects supplied by the
|
|
1350
|
+
* framework to the user don't have this field populated.
|
|
1351
|
+
*/
|
|
1352
|
+
doesNotNeedSplitting?: boolean;
|
|
1353
|
+
/**
|
|
1354
|
+
* Optionally, metadata for this source can be supplied right away, avoiding a SourceGetMetadataOperation roundtrip (see SourceOperationRequest). This field is meaningful only in the
|
|
1355
|
+
* Source objects populated by the user (e.g. when filling in a DerivedSource). Source objects supplied by the framework to the user don't have this field populated.
|
|
1356
|
+
*/
|
|
1357
|
+
metadata?: SourceMetadata;
|
|
1358
|
+
/** The source to read from, plus its parameters. */
|
|
1359
|
+
spec?: { [P in string]: any };
|
|
1360
|
+
}
|
|
1361
|
+
interface SourceFork {
|
|
1362
|
+
/** DEPRECATED */
|
|
1363
|
+
primary?: SourceSplitShard;
|
|
1364
|
+
/** DEPRECATED */
|
|
1365
|
+
primarySource?: DerivedSource;
|
|
1366
|
+
/** DEPRECATED */
|
|
1367
|
+
residual?: SourceSplitShard;
|
|
1368
|
+
/** DEPRECATED */
|
|
1369
|
+
residualSource?: DerivedSource;
|
|
1370
|
+
}
|
|
1371
|
+
interface SourceGetMetadataRequest {
|
|
1372
|
+
/** Specification of the source whose metadata should be computed. */
|
|
1373
|
+
source?: Source;
|
|
1374
|
+
}
|
|
1375
|
+
interface SourceGetMetadataResponse {
|
|
1376
|
+
/** The computed metadata. */
|
|
1377
|
+
metadata?: SourceMetadata;
|
|
1378
|
+
}
|
|
1379
|
+
interface SourceMetadata {
|
|
1380
|
+
/**
|
|
1381
|
+
* An estimate of the total size (in bytes) of the data that would be read from this source. This estimate is in terms of external storage size, before any decompression or other
|
|
1382
|
+
* processing done by the reader.
|
|
1383
|
+
*/
|
|
1384
|
+
estimatedSizeBytes?: string;
|
|
1385
|
+
/** Specifies that the size of this source is known to be infinite (this is a streaming source). */
|
|
1386
|
+
infinite?: boolean;
|
|
1387
|
+
/** Whether this source is known to produce key/value pairs with the (encoded) keys in lexicographically sorted order. */
|
|
1388
|
+
producesSortedKeys?: boolean;
|
|
1389
|
+
}
|
|
1390
|
+
interface SourceOperationRequest {
|
|
1391
|
+
/** Information about a request to get metadata about a source. */
|
|
1392
|
+
getMetadata?: SourceGetMetadataRequest;
|
|
1393
|
+
/** User-provided name of the Read instruction for this source. */
|
|
1394
|
+
name?: string;
|
|
1395
|
+
/** System-defined name for the Read instruction for this source in the original workflow graph. */
|
|
1396
|
+
originalName?: string;
|
|
1397
|
+
/** Information about a request to split a source. */
|
|
1398
|
+
split?: SourceSplitRequest;
|
|
1399
|
+
/** System-defined name of the stage containing the source operation. Unique across the workflow. */
|
|
1400
|
+
stageName?: string;
|
|
1401
|
+
/** System-defined name of the Read instruction for this source. Unique across the workflow. */
|
|
1402
|
+
systemName?: string;
|
|
1403
|
+
}
|
|
1404
|
+
interface SourceOperationResponse {
|
|
1405
|
+
/** A response to a request to get metadata about a source. */
|
|
1406
|
+
getMetadata?: SourceGetMetadataResponse;
|
|
1407
|
+
/** A response to a request to split a source. */
|
|
1408
|
+
split?: SourceSplitResponse;
|
|
1409
|
+
}
|
|
1410
|
+
interface SourceSplitOptions {
|
|
1411
|
+
/** The source should be split into a set of bundles where the estimated size of each is approximately this many bytes. */
|
|
1412
|
+
desiredBundleSizeBytes?: string;
|
|
1413
|
+
/** DEPRECATED in favor of desired_bundle_size_bytes. */
|
|
1414
|
+
desiredShardSizeBytes?: string;
|
|
1415
|
+
}
|
|
1416
|
+
interface SourceSplitRequest {
|
|
1417
|
+
/** Hints for tuning the splitting process. */
|
|
1418
|
+
options?: SourceSplitOptions;
|
|
1419
|
+
/** Specification of the source to be split. */
|
|
1420
|
+
source?: Source;
|
|
1421
|
+
}
|
|
1422
|
+
interface SourceSplitResponse {
|
|
1423
|
+
/**
|
|
1424
|
+
* If outcome is SPLITTING_HAPPENED, then this is a list of bundles into which the source was split. Otherwise this field is ignored. This list can be empty, which means the source
|
|
1425
|
+
* represents an empty input.
|
|
1426
|
+
*/
|
|
1427
|
+
bundles?: DerivedSource[];
|
|
1428
|
+
/**
|
|
1429
|
+
* Indicates whether splitting happened and produced a list of bundles. If this is USE_CURRENT_SOURCE_AS_IS, the current source should be processed "as is" without splitting. "bundles"
|
|
1430
|
+
* is ignored in this case. If this is SPLITTING_HAPPENED, then "bundles" contains a list of bundles into which the source was split.
|
|
1431
|
+
*/
|
|
1432
|
+
outcome?: string;
|
|
1433
|
+
/** DEPRECATED in favor of bundles. */
|
|
1434
|
+
shards?: SourceSplitShard[];
|
|
1435
|
+
}
|
|
1436
|
+
interface SourceSplitShard {
|
|
1437
|
+
/** DEPRECATED */
|
|
1438
|
+
derivationMode?: string;
|
|
1439
|
+
/** DEPRECATED */
|
|
1440
|
+
source?: Source;
|
|
1441
|
+
}
|
|
1442
|
+
interface SpannerIODetails {
|
|
1443
|
+
/** DatabaseId accessed in the connection. */
|
|
1444
|
+
databaseId?: string;
|
|
1445
|
+
/** InstanceId accessed in the connection. */
|
|
1446
|
+
instanceId?: string;
|
|
1447
|
+
/** ProjectId accessed in the connection. */
|
|
1448
|
+
projectId?: string;
|
|
1449
|
+
}
|
|
1450
|
+
interface SplitInt64 {
|
|
1451
|
+
/** The high order bits, including the sign: n >> 32. */
|
|
1452
|
+
highBits?: number;
|
|
1453
|
+
/** The low order bits: n & 0xffffffff. */
|
|
1454
|
+
lowBits?: number;
|
|
1455
|
+
}
|
|
1456
|
+
interface StageExecutionDetails {
|
|
1457
|
+
/** If present, this response does not contain all requested tasks. To obtain the next page of results, repeat the request with page_token set to this value. */
|
|
1458
|
+
nextPageToken?: string;
|
|
1459
|
+
/** Workers that have done work on the stage. */
|
|
1460
|
+
workers?: WorkerDetails[];
|
|
1461
|
+
}
|
|
1462
|
+
interface StageSource {
|
|
1463
|
+
/** Dataflow service generated name for this source. */
|
|
1464
|
+
name?: string;
|
|
1465
|
+
/** User name for the original user transform or collection with which this source is most closely associated. */
|
|
1466
|
+
originalTransformOrCollection?: string;
|
|
1467
|
+
/** Size of the source, if measurable. */
|
|
1468
|
+
sizeBytes?: string;
|
|
1469
|
+
/** Human-readable name for this source; may be user or system generated. */
|
|
1470
|
+
userName?: string;
|
|
1471
|
+
}
|
|
1472
|
+
interface StageSummary {
|
|
1473
|
+
/** End time of this stage. If the work item is completed, this is the actual end time of the stage. Otherwise, it is the predicted end time. */
|
|
1474
|
+
endTime?: string;
|
|
1475
|
+
/** Metrics for this stage. */
|
|
1476
|
+
metrics?: MetricUpdate[];
|
|
1477
|
+
/** Progress for this stage. Only applicable to Batch jobs. */
|
|
1478
|
+
progress?: ProgressTimeseries;
|
|
1479
|
+
/** ID of this stage */
|
|
1480
|
+
stageId?: string;
|
|
1481
|
+
/** Start time of this stage. */
|
|
1482
|
+
startTime?: string;
|
|
1483
|
+
/** State of this stage. */
|
|
1484
|
+
state?: string;
|
|
1485
|
+
/** Straggler summary for this stage. */
|
|
1486
|
+
stragglerSummary?: StragglerSummary;
|
|
1487
|
+
}
|
|
1488
|
+
interface StateFamilyConfig {
|
|
1489
|
+
/** If true, this family corresponds to a read operation. */
|
|
1490
|
+
isRead?: boolean;
|
|
1491
|
+
/** The state family value. */
|
|
1492
|
+
stateFamily?: string;
|
|
1493
|
+
}
|
|
1494
|
+
interface Status {
|
|
1495
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1496
|
+
code?: number;
|
|
1497
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1498
|
+
details?: Array<{ [P in string]: any }>;
|
|
1499
|
+
/**
|
|
1500
|
+
* 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
|
|
1501
|
+
* client.
|
|
1502
|
+
*/
|
|
1503
|
+
message?: string;
|
|
1504
|
+
}
|
|
1505
|
+
interface Step {
|
|
1506
|
+
/** The kind of step in the Cloud Dataflow job. */
|
|
1507
|
+
kind?: string;
|
|
1508
|
+
/** The name that identifies the step. This must be unique for each step with respect to all other steps in the Cloud Dataflow job. */
|
|
1509
|
+
name?: string;
|
|
1510
|
+
/** Named properties associated with the step. Each kind of predefined step has its own required set of properties. Must be provided on Create. Only retrieved with JOB_VIEW_ALL. */
|
|
1511
|
+
properties?: { [P in string]: any };
|
|
1512
|
+
}
|
|
1513
|
+
interface StragglerDebuggingInfo {
|
|
1514
|
+
/** Hot key debugging details. */
|
|
1515
|
+
hotKey?: HotKeyDebuggingInfo;
|
|
1516
|
+
}
|
|
1517
|
+
interface StragglerInfo {
|
|
1518
|
+
/** The straggler causes, keyed by the string representation of the StragglerCause enum and contains specialized debugging information for each straggler cause. */
|
|
1519
|
+
causes?: { [P in string]: StragglerDebuggingInfo };
|
|
1520
|
+
/** The time when the work item attempt became a straggler. */
|
|
1521
|
+
startTime?: string;
|
|
1522
|
+
}
|
|
1523
|
+
interface StragglerSummary {
|
|
1524
|
+
/** Aggregated counts of straggler causes, keyed by the string representation of the StragglerCause enum. */
|
|
1525
|
+
stragglerCauseCount?: { [P in string]: string };
|
|
1526
|
+
/** The total count of stragglers. */
|
|
1527
|
+
totalStragglerCount?: string;
|
|
1528
|
+
}
|
|
1529
|
+
interface StreamingApplianceSnapshotConfig {
|
|
1530
|
+
/** Indicates which endpoint is used to import appliance state. */
|
|
1531
|
+
importStateEndpoint?: string;
|
|
1532
|
+
/** If set, indicates the snapshot id for the snapshot being performed. */
|
|
1533
|
+
snapshotId?: string;
|
|
1534
|
+
}
|
|
1535
|
+
interface StreamingComputationConfig {
|
|
1536
|
+
/** Unique identifier for this computation. */
|
|
1537
|
+
computationId?: string;
|
|
1538
|
+
/** Instructions that comprise the computation. */
|
|
1539
|
+
instructions?: ParallelInstruction[];
|
|
1540
|
+
/** Stage name of this computation. */
|
|
1541
|
+
stageName?: string;
|
|
1542
|
+
/** System defined name for this computation. */
|
|
1543
|
+
systemName?: string;
|
|
1544
|
+
/** Map from user name of stateful transforms in this stage to their state family. */
|
|
1545
|
+
transformUserNameToStateFamily?: { [P in string]: string };
|
|
1546
|
+
}
|
|
1547
|
+
interface StreamingComputationRanges {
|
|
1548
|
+
/** The ID of the computation. */
|
|
1549
|
+
computationId?: string;
|
|
1550
|
+
/** Data disk assignments for ranges from this computation. */
|
|
1551
|
+
rangeAssignments?: KeyRangeDataDiskAssignment[];
|
|
1552
|
+
}
|
|
1553
|
+
interface StreamingComputationTask {
|
|
1554
|
+
/** Contains ranges of a streaming computation this task should apply to. */
|
|
1555
|
+
computationRanges?: StreamingComputationRanges[];
|
|
1556
|
+
/** Describes the set of data disks this task should apply to. */
|
|
1557
|
+
dataDisks?: MountedDataDisk[];
|
|
1558
|
+
/** A type of streaming computation task. */
|
|
1559
|
+
taskType?: string;
|
|
1560
|
+
}
|
|
1561
|
+
interface StreamingConfigTask {
|
|
1562
|
+
/** Chunk size for commit streams from the harness to windmill. */
|
|
1563
|
+
commitStreamChunkSizeBytes?: string;
|
|
1564
|
+
/** Chunk size for get data streams from the harness to windmill. */
|
|
1565
|
+
getDataStreamChunkSizeBytes?: string;
|
|
1566
|
+
/** Maximum size for work item commit supported windmill storage layer. */
|
|
1567
|
+
maxWorkItemCommitBytes?: string;
|
|
1568
|
+
/** Set of computation configuration information. */
|
|
1569
|
+
streamingComputationConfigs?: StreamingComputationConfig[];
|
|
1570
|
+
/** Map from user step names to state families. */
|
|
1571
|
+
userStepToStateFamilyNameMap?: { [P in string]: string };
|
|
1572
|
+
/** If present, the worker must use this endpoint to communicate with Windmill Service dispatchers, otherwise the worker must continue to use whatever endpoint it had been using. */
|
|
1573
|
+
windmillServiceEndpoint?: string;
|
|
1574
|
+
/** If present, the worker must use this port to communicate with Windmill Service dispatchers. Only applicable when windmill_service_endpoint is specified. */
|
|
1575
|
+
windmillServicePort?: string;
|
|
1576
|
+
}
|
|
1577
|
+
interface StreamingSetupTask {
|
|
1578
|
+
/** The user has requested drain. */
|
|
1579
|
+
drain?: boolean;
|
|
1580
|
+
/** The TCP port on which the worker should listen for messages from other streaming computation workers. */
|
|
1581
|
+
receiveWorkPort?: number;
|
|
1582
|
+
/** Configures streaming appliance snapshot. */
|
|
1583
|
+
snapshotConfig?: StreamingApplianceSnapshotConfig;
|
|
1584
|
+
/** The global topology of the streaming Dataflow job. */
|
|
1585
|
+
streamingComputationTopology?: TopologyConfig;
|
|
1586
|
+
/** The TCP port used by the worker to communicate with the Dataflow worker harness. */
|
|
1587
|
+
workerHarnessPort?: number;
|
|
1588
|
+
}
|
|
1589
|
+
interface StreamingSideInputLocation {
|
|
1590
|
+
/** Identifies the state family where this side input is stored. */
|
|
1591
|
+
stateFamily?: string;
|
|
1592
|
+
/** Identifies the particular side input within the streaming Dataflow job. */
|
|
1593
|
+
tag?: string;
|
|
1594
|
+
}
|
|
1595
|
+
interface StreamingStageLocation {
|
|
1596
|
+
/** Identifies the particular stream within the streaming Dataflow job. */
|
|
1597
|
+
streamId?: string;
|
|
1598
|
+
}
|
|
1599
|
+
interface StreamLocation {
|
|
1600
|
+
/** The stream is a custom source. */
|
|
1601
|
+
customSourceLocation?: CustomSourceLocation;
|
|
1602
|
+
/** The stream is a pubsub stream. */
|
|
1603
|
+
pubsubLocation?: PubsubLocation;
|
|
1604
|
+
/** The stream is a streaming side input. */
|
|
1605
|
+
sideInputLocation?: StreamingSideInputLocation;
|
|
1606
|
+
/** The stream is part of another computation within the current streaming Dataflow job. */
|
|
1607
|
+
streamingStageLocation?: StreamingStageLocation;
|
|
1608
|
+
}
|
|
1609
|
+
interface StringList {
|
|
1610
|
+
/** Elements of the list. */
|
|
1611
|
+
elements?: string[];
|
|
1612
|
+
}
|
|
1613
|
+
interface StructuredMessage {
|
|
1614
|
+
/** Identifier for this message type. Used by external systems to internationalize or personalize message. */
|
|
1615
|
+
messageKey?: string;
|
|
1616
|
+
/** Human-readable version of message. */
|
|
1617
|
+
messageText?: string;
|
|
1618
|
+
/** The structured data associated with this message. */
|
|
1619
|
+
parameters?: Parameter[];
|
|
1620
|
+
}
|
|
1621
|
+
interface TaskRunnerSettings {
|
|
1622
|
+
/** Whether to also send taskrunner log info to stderr. */
|
|
1623
|
+
alsologtostderr?: boolean;
|
|
1624
|
+
/** The location on the worker for task-specific subdirectories. */
|
|
1625
|
+
baseTaskDir?: string;
|
|
1626
|
+
/**
|
|
1627
|
+
* The base URL for the taskrunner to use when accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified,
|
|
1628
|
+
* it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the
|
|
1629
|
+
* default value is "http://www.googleapis.com/"
|
|
1630
|
+
*/
|
|
1631
|
+
baseUrl?: string;
|
|
1632
|
+
/** The file to store preprocessing commands in. */
|
|
1633
|
+
commandlinesFileName?: string;
|
|
1634
|
+
/** Whether to continue taskrunner if an exception is hit. */
|
|
1635
|
+
continueOnException?: boolean;
|
|
1636
|
+
/** The API version of endpoint, e.g. "v1b3" */
|
|
1637
|
+
dataflowApiVersion?: string;
|
|
1638
|
+
/** The command to launch the worker harness. */
|
|
1639
|
+
harnessCommand?: string;
|
|
1640
|
+
/** The suggested backend language. */
|
|
1641
|
+
languageHint?: string;
|
|
1642
|
+
/** The directory on the VM to store logs. */
|
|
1643
|
+
logDir?: string;
|
|
1644
|
+
/** Whether to send taskrunner log info to Google Compute Engine VM serial console. */
|
|
1645
|
+
logToSerialconsole?: boolean;
|
|
1646
|
+
/**
|
|
1647
|
+
* Indicates where to put logs. If this is not specified, the logs will not be uploaded. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
|
|
1648
|
+
* bucket.storage.googleapis.com/{object}
|
|
1649
|
+
*/
|
|
1650
|
+
logUploadLocation?: string;
|
|
1651
|
+
/** The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. */
|
|
1652
|
+
oauthScopes?: string[];
|
|
1653
|
+
/** The settings to pass to the parallel worker harness. */
|
|
1654
|
+
parallelWorkerSettings?: WorkerSettings;
|
|
1655
|
+
/** The streaming worker main class name. */
|
|
1656
|
+
streamingWorkerMainClass?: string;
|
|
1657
|
+
/** The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". */
|
|
1658
|
+
taskGroup?: string;
|
|
1659
|
+
/** The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root". */
|
|
1660
|
+
taskUser?: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* The prefix of the resources the taskrunner should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
|
|
1663
|
+
* bucket.storage.googleapis.com/{object}
|
|
1664
|
+
*/
|
|
1665
|
+
tempStoragePrefix?: string;
|
|
1666
|
+
/** The ID string of the VM. */
|
|
1667
|
+
vmId?: string;
|
|
1668
|
+
/** The file to store the workflow in. */
|
|
1669
|
+
workflowFileName?: string;
|
|
1670
|
+
}
|
|
1671
|
+
interface TemplateMetadata {
|
|
1672
|
+
/** Optional. A description of the template. */
|
|
1673
|
+
description?: string;
|
|
1674
|
+
/** Required. The name of the template. */
|
|
1675
|
+
name?: string;
|
|
1676
|
+
/** The parameters for the template. */
|
|
1677
|
+
parameters?: ParameterMetadata[];
|
|
1678
|
+
}
|
|
1679
|
+
interface TopologyConfig {
|
|
1680
|
+
/** The computations associated with a streaming Dataflow job. */
|
|
1681
|
+
computations?: ComputationTopology[];
|
|
1682
|
+
/** The disks assigned to a streaming Dataflow job. */
|
|
1683
|
+
dataDiskAssignments?: DataDiskAssignment[];
|
|
1684
|
+
/** The size (in bits) of keys that will be assigned to source messages. */
|
|
1685
|
+
forwardingKeyBits?: number;
|
|
1686
|
+
/** Version number for persistent state. */
|
|
1687
|
+
persistentStateVersion?: number;
|
|
1688
|
+
/** Maps user stage names to stable computation names. */
|
|
1689
|
+
userStageToComputationNameMap?: { [P in string]: string };
|
|
1690
|
+
}
|
|
1691
|
+
interface TransformSummary {
|
|
1692
|
+
/** Transform-specific display data. */
|
|
1693
|
+
displayData?: DisplayData[];
|
|
1694
|
+
/** SDK generated id of this transform instance. */
|
|
1695
|
+
id?: string;
|
|
1696
|
+
/** User names for all collection inputs to this transform. */
|
|
1697
|
+
inputCollectionName?: string[];
|
|
1698
|
+
/** Type of transform. */
|
|
1699
|
+
kind?: string;
|
|
1700
|
+
/** User provided name for this transform instance. */
|
|
1701
|
+
name?: string;
|
|
1702
|
+
/** User names for all collection outputs to this transform. */
|
|
1703
|
+
outputCollectionName?: string[];
|
|
1704
|
+
}
|
|
1705
|
+
interface ValidateResponse {
|
|
1706
|
+
/** Will be empty if validation succeeds. */
|
|
1707
|
+
errorMessage?: string;
|
|
1708
|
+
/** Information about the validated query. Not defined if validation fails. */
|
|
1709
|
+
queryInfo?: QueryInfo;
|
|
1710
|
+
}
|
|
1711
|
+
interface WorkerDetails {
|
|
1712
|
+
/** Name of this worker */
|
|
1713
|
+
workerName?: string;
|
|
1714
|
+
/** Work items processed by this worker, sorted by time. */
|
|
1715
|
+
workItems?: WorkItemDetails[];
|
|
1716
|
+
}
|
|
1717
|
+
interface WorkerHealthReport {
|
|
1718
|
+
/** Message describing any unusual health reports. */
|
|
1719
|
+
msg?: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* The pods running on the worker. See: http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_pod This field is used by the worker to send the status of the indvidual
|
|
1722
|
+
* containers running on each worker.
|
|
1723
|
+
*/
|
|
1724
|
+
pods?: Array<{ [P in string]: any }>;
|
|
1725
|
+
/** The interval at which the worker is sending health reports. The default value of 0 should be interpreted as the field is not being explicitly set by the worker. */
|
|
1726
|
+
reportInterval?: string;
|
|
1727
|
+
/** Code to describe a specific reason, if known, that a VM has reported broken state. */
|
|
1728
|
+
vmBrokenCode?: string;
|
|
1729
|
+
/** Whether the VM is in a permanently broken state. Broken VMs should be abandoned or deleted ASAP to avoid assigning or completing any work. */
|
|
1730
|
+
vmIsBroken?: boolean;
|
|
1731
|
+
/** Whether the VM is currently healthy. */
|
|
1732
|
+
vmIsHealthy?: boolean;
|
|
1733
|
+
/** The time the VM was booted. */
|
|
1734
|
+
vmStartupTime?: string;
|
|
1735
|
+
}
|
|
1736
|
+
interface WorkerHealthReportResponse {
|
|
1737
|
+
/**
|
|
1738
|
+
* A positive value indicates the worker should change its reporting interval to the specified value. The default value of zero means no change in report rate is requested by the
|
|
1739
|
+
* server.
|
|
1740
|
+
*/
|
|
1741
|
+
reportInterval?: string;
|
|
1742
|
+
}
|
|
1743
|
+
interface WorkerLifecycleEvent {
|
|
1744
|
+
/** The start time of this container. All events will report this so that events can be grouped together across container/VM restarts. */
|
|
1745
|
+
containerStartTime?: string;
|
|
1746
|
+
/** The event being reported. */
|
|
1747
|
+
event?: string;
|
|
1748
|
+
/** Other stats that can accompany an event. E.g. { "downloaded_bytes" : "123456" } */
|
|
1749
|
+
metadata?: { [P in string]: string };
|
|
1750
|
+
}
|
|
1751
|
+
interface WorkerMessage {
|
|
1752
|
+
/**
|
|
1753
|
+
* Labels are used to group WorkerMessages. For example, a worker_message about a particular container might have the labels: { "JOB_ID": "2015-04-22", "WORKER_ID":
|
|
1754
|
+
* "wordcount-vm-2015…" "CONTAINER_TYPE": "worker", "CONTAINER_ID": "ac1234def"} Label tags typically correspond to Label enum values. However, for ease of development other strings
|
|
1755
|
+
* can be used as tags. LABEL_UNSPECIFIED should not be used here.
|
|
1756
|
+
*/
|
|
1757
|
+
labels?: { [P in string]: string };
|
|
1758
|
+
/** The timestamp of the worker_message. */
|
|
1759
|
+
time?: string;
|
|
1760
|
+
/** The health of a worker. */
|
|
1761
|
+
workerHealthReport?: WorkerHealthReport;
|
|
1762
|
+
/** Record of worker lifecycle events. */
|
|
1763
|
+
workerLifecycleEvent?: WorkerLifecycleEvent;
|
|
1764
|
+
/** A worker message code. */
|
|
1765
|
+
workerMessageCode?: WorkerMessageCode;
|
|
1766
|
+
/** Resource metrics reported by workers. */
|
|
1767
|
+
workerMetrics?: ResourceUtilizationReport;
|
|
1768
|
+
/** Shutdown notice by workers. */
|
|
1769
|
+
workerShutdownNotice?: WorkerShutdownNotice;
|
|
1770
|
+
}
|
|
1771
|
+
interface WorkerMessageCode {
|
|
1772
|
+
/**
|
|
1773
|
+
* The code is a string intended for consumption by a machine that identifies the type of message being sent. Examples: 1. "HARNESS_STARTED" might be used to indicate the worker
|
|
1774
|
+
* harness has started. 2. "GCS_DOWNLOAD_ERROR" might be used to indicate an error downloading a Cloud Storage file as part of the boot process of one of the worker containers. This is
|
|
1775
|
+
* a string and not an enum to make it easy to add new codes without waiting for an API change.
|
|
1776
|
+
*/
|
|
1777
|
+
code?: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* Parameters contains specific information about the code. This is a struct to allow parameters of different types. Examples: 1. For a "HARNESS_STARTED" message parameters might
|
|
1780
|
+
* provide the name of the worker and additional data like timing information. 2. For a "GCS_DOWNLOAD_ERROR" parameters might contain fields listing the Cloud Storage objects being
|
|
1781
|
+
* downloaded and fields containing errors. In general complex data structures should be avoided. If a worker needs to send a specific and complicated data structure then please
|
|
1782
|
+
* consider defining a new proto and adding it to the data oneof in WorkerMessageResponse. Conventions: Parameters should only be used for information that isn't typically passed as a
|
|
1783
|
+
* label. hostname and other worker identifiers should almost always be passed as labels since they will be included on most messages.
|
|
1784
|
+
*/
|
|
1785
|
+
parameters?: { [P in string]: any };
|
|
1786
|
+
}
|
|
1787
|
+
interface WorkerMessageResponse {
|
|
1788
|
+
/** The service's response to a worker's health report. */
|
|
1789
|
+
workerHealthReportResponse?: WorkerHealthReportResponse;
|
|
1790
|
+
/** Service's response to reporting worker metrics (currently empty). */
|
|
1791
|
+
workerMetricsResponse?: any;
|
|
1792
|
+
/** Service's response to shutdown notice (currently empty). */
|
|
1793
|
+
workerShutdownNoticeResponse?: any;
|
|
1794
|
+
}
|
|
1795
|
+
interface WorkerPool {
|
|
1796
|
+
/** Settings for autoscaling of this WorkerPool. */
|
|
1797
|
+
autoscalingSettings?: AutoscalingSettings;
|
|
1798
|
+
/** Data disks that are used by a VM in this workflow. */
|
|
1799
|
+
dataDisks?: Disk[];
|
|
1800
|
+
/** The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language. */
|
|
1801
|
+
defaultPackageSet?: string;
|
|
1802
|
+
/** Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default. */
|
|
1803
|
+
diskSizeGb?: number;
|
|
1804
|
+
/** Fully qualified source image for disks. */
|
|
1805
|
+
diskSourceImage?: string;
|
|
1806
|
+
/** Type of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default. */
|
|
1807
|
+
diskType?: string;
|
|
1808
|
+
/** Configuration for VM IPs. */
|
|
1809
|
+
ipConfiguration?: string;
|
|
1810
|
+
/** The kind of the worker pool; currently only `harness` and `shuffle` are supported. */
|
|
1811
|
+
kind?: string;
|
|
1812
|
+
/** Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default. */
|
|
1813
|
+
machineType?: string;
|
|
1814
|
+
/** Metadata to set on the Google Compute Engine VMs. */
|
|
1815
|
+
metadata?: { [P in string]: string };
|
|
1816
|
+
/** Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". */
|
|
1817
|
+
network?: string;
|
|
1818
|
+
/**
|
|
1819
|
+
* The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for
|
|
1820
|
+
* batch, or 1 by convention for streaming).
|
|
1821
|
+
*/
|
|
1822
|
+
numThreadsPerWorker?: number;
|
|
1823
|
+
/** Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default. */
|
|
1824
|
+
numWorkers?: number;
|
|
1825
|
+
/** The action to take on host maintenance, as defined by the Google Compute Engine API. */
|
|
1826
|
+
onHostMaintenance?: string;
|
|
1827
|
+
/** Packages to be installed on workers. */
|
|
1828
|
+
packages?: Package[];
|
|
1829
|
+
/** Extra arguments for this worker pool. */
|
|
1830
|
+
poolArgs?: { [P in string]: any };
|
|
1831
|
+
/**
|
|
1832
|
+
* Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry.
|
|
1833
|
+
* Cross-language pipelines will have two or more entries.
|
|
1834
|
+
*/
|
|
1835
|
+
sdkHarnessContainerImages?: SdkHarnessContainerImage[];
|
|
1836
|
+
/** Subnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK". */
|
|
1837
|
+
subnetwork?: string;
|
|
1838
|
+
/** Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field. */
|
|
1839
|
+
taskrunnerSettings?: TaskRunnerSettings;
|
|
1840
|
+
/**
|
|
1841
|
+
* Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are
|
|
1842
|
+
* always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn
|
|
1843
|
+
* down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user's project until they are explicitly
|
|
1844
|
+
* terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs. If unknown or unspecified, the service
|
|
1845
|
+
* will attempt to choose a reasonable default.
|
|
1846
|
+
*/
|
|
1847
|
+
teardownPolicy?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Required. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry. Deprecated for the Fn API path. Use
|
|
1850
|
+
* sdk_harness_container_images instead.
|
|
1851
|
+
*/
|
|
1852
|
+
workerHarnessContainerImage?: string;
|
|
1853
|
+
/** Zone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default. */
|
|
1854
|
+
zone?: string;
|
|
1855
|
+
}
|
|
1856
|
+
interface WorkerSettings {
|
|
1857
|
+
/**
|
|
1858
|
+
* The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to
|
|
1859
|
+
* use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value is
|
|
1860
|
+
* "http://www.googleapis.com/"
|
|
1861
|
+
*/
|
|
1862
|
+
baseUrl?: string;
|
|
1863
|
+
/** Whether to send work progress updates to the service. */
|
|
1864
|
+
reportingEnabled?: boolean;
|
|
1865
|
+
/** The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects". */
|
|
1866
|
+
servicePath?: string;
|
|
1867
|
+
/** The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1". */
|
|
1868
|
+
shuffleServicePath?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object}
|
|
1871
|
+
* bucket.storage.googleapis.com/{object}
|
|
1872
|
+
*/
|
|
1873
|
+
tempStoragePrefix?: string;
|
|
1874
|
+
/** The ID of the worker running this pipeline. */
|
|
1875
|
+
workerId?: string;
|
|
1876
|
+
}
|
|
1877
|
+
interface WorkerShutdownNotice {
|
|
1878
|
+
/**
|
|
1879
|
+
* The reason for the worker shutdown. Current possible values are: "UNKNOWN": shutdown reason is unknown. "PREEMPTION": shutdown reason is preemption. Other possible reasons may be
|
|
1880
|
+
* added in the future.
|
|
1881
|
+
*/
|
|
1882
|
+
reason?: string;
|
|
1883
|
+
}
|
|
1884
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1885
|
+
interface WorkerShutdownNoticeResponse {
|
|
1886
|
+
}
|
|
1887
|
+
interface WorkItem {
|
|
1888
|
+
/** Work item-specific configuration as an opaque blob. */
|
|
1889
|
+
configuration?: string;
|
|
1890
|
+
/** Identifies this WorkItem. */
|
|
1891
|
+
id?: string;
|
|
1892
|
+
/** The initial index to use when reporting the status of the WorkItem. */
|
|
1893
|
+
initialReportIndex?: string;
|
|
1894
|
+
/** Identifies the workflow job this WorkItem belongs to. */
|
|
1895
|
+
jobId?: string;
|
|
1896
|
+
/** Time when the lease on this Work will expire. */
|
|
1897
|
+
leaseExpireTime?: string;
|
|
1898
|
+
/** Additional information for MapTask WorkItems. */
|
|
1899
|
+
mapTask?: MapTask;
|
|
1900
|
+
/** Any required packages that need to be fetched in order to execute this WorkItem. */
|
|
1901
|
+
packages?: Package[];
|
|
1902
|
+
/** Identifies the cloud project this WorkItem belongs to. */
|
|
1903
|
+
projectId?: string;
|
|
1904
|
+
/** Recommended reporting interval. */
|
|
1905
|
+
reportStatusInterval?: string;
|
|
1906
|
+
/** Additional information for SeqMapTask WorkItems. */
|
|
1907
|
+
seqMapTask?: SeqMapTask;
|
|
1908
|
+
/** Additional information for ShellTask WorkItems. */
|
|
1909
|
+
shellTask?: ShellTask;
|
|
1910
|
+
/** Additional information for source operation WorkItems. */
|
|
1911
|
+
sourceOperationTask?: SourceOperationRequest;
|
|
1912
|
+
/** Additional information for StreamingComputationTask WorkItems. */
|
|
1913
|
+
streamingComputationTask?: StreamingComputationTask;
|
|
1914
|
+
/** Additional information for StreamingConfigTask WorkItems. */
|
|
1915
|
+
streamingConfigTask?: StreamingConfigTask;
|
|
1916
|
+
/** Additional information for StreamingSetupTask WorkItems. */
|
|
1917
|
+
streamingSetupTask?: StreamingSetupTask;
|
|
1918
|
+
}
|
|
1919
|
+
interface WorkItemDetails {
|
|
1920
|
+
/** Attempt ID of this work item */
|
|
1921
|
+
attemptId?: string;
|
|
1922
|
+
/** End time of this work item attempt. If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time. */
|
|
1923
|
+
endTime?: string;
|
|
1924
|
+
/** Metrics for this work item. */
|
|
1925
|
+
metrics?: MetricUpdate[];
|
|
1926
|
+
/** Progress of this work item. */
|
|
1927
|
+
progress?: ProgressTimeseries;
|
|
1928
|
+
/** Start time of this work item attempt. */
|
|
1929
|
+
startTime?: string;
|
|
1930
|
+
/** State of this work item. */
|
|
1931
|
+
state?: string;
|
|
1932
|
+
/** Information about straggler detections for this work item. */
|
|
1933
|
+
stragglerInfo?: StragglerInfo;
|
|
1934
|
+
/** Name of this work item. */
|
|
1935
|
+
taskId?: string;
|
|
1936
|
+
}
|
|
1937
|
+
interface WorkItemServiceState {
|
|
1938
|
+
/**
|
|
1939
|
+
* If set, a request to complete the work item with the given status. This will not be set to OK, unless supported by the specific kind of WorkItem. It can be used for the backend to
|
|
1940
|
+
* indicate a WorkItem must terminate, e.g., for aborting work.
|
|
1941
|
+
*/
|
|
1942
|
+
completeWorkStatus?: Status;
|
|
1943
|
+
/** Other data returned by the service, specific to the particular worker harness. */
|
|
1944
|
+
harnessData?: { [P in string]: any };
|
|
1945
|
+
/**
|
|
1946
|
+
* A hot key is a symptom of poor data distribution in which there are enough elements mapped to a single key to impact pipeline performance. When present, this field includes metadata
|
|
1947
|
+
* associated with any hot key.
|
|
1948
|
+
*/
|
|
1949
|
+
hotKeyDetection?: HotKeyDetection;
|
|
1950
|
+
/** Time at which the current lease will expire. */
|
|
1951
|
+
leaseExpireTime?: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* The short ids that workers should use in subsequent metric updates. Workers should strive to use short ids whenever possible, but it is ok to request the short_id again if a worker
|
|
1954
|
+
* lost track of it (e.g. if the worker is recovering from a crash). NOTE: it is possible that the response may have short ids for a subset of the metrics.
|
|
1955
|
+
*/
|
|
1956
|
+
metricShortId?: MetricShortId[];
|
|
1957
|
+
/** The index value to use for the next report sent by the worker. Note: If the report call fails for whatever reason, the worker should reuse this index for subsequent report attempts. */
|
|
1958
|
+
nextReportIndex?: string;
|
|
1959
|
+
/** New recommended reporting interval. */
|
|
1960
|
+
reportStatusInterval?: string;
|
|
1961
|
+
/** The progress point in the WorkItem where the Dataflow service suggests that the worker truncate the task. */
|
|
1962
|
+
splitRequest?: ApproximateSplitRequest;
|
|
1963
|
+
/** DEPRECATED in favor of split_request. */
|
|
1964
|
+
suggestedStopPoint?: ApproximateProgress;
|
|
1965
|
+
/** Obsolete, always empty. */
|
|
1966
|
+
suggestedStopPosition?: Position;
|
|
1967
|
+
}
|
|
1968
|
+
interface WorkItemStatus {
|
|
1969
|
+
/** True if the WorkItem was completed (successfully or unsuccessfully). */
|
|
1970
|
+
completed?: boolean;
|
|
1971
|
+
/** Worker output counters for this WorkItem. */
|
|
1972
|
+
counterUpdates?: CounterUpdate[];
|
|
1973
|
+
/** See documentation of stop_position. */
|
|
1974
|
+
dynamicSourceSplit?: DynamicSourceSplit;
|
|
1975
|
+
/** Specifies errors which occurred during processing. If errors are provided, and completed = true, then the WorkItem is considered to have failed. */
|
|
1976
|
+
errors?: Status[];
|
|
1977
|
+
/** DEPRECATED in favor of counter_updates. */
|
|
1978
|
+
metricUpdates?: MetricUpdate[];
|
|
1979
|
+
/** DEPRECATED in favor of reported_progress. */
|
|
1980
|
+
progress?: ApproximateProgress;
|
|
1981
|
+
/** The worker's progress through this WorkItem. */
|
|
1982
|
+
reportedProgress?: ApproximateReportedProgress;
|
|
1983
|
+
/**
|
|
1984
|
+
* The report index. When a WorkItem is leased, the lease will contain an initial report index. When a WorkItem's status is reported to the system, the report should be sent with that
|
|
1985
|
+
* report index, and the response will contain the index the worker should use for the next report. Reports received with unexpected index values will be rejected by the service. In
|
|
1986
|
+
* order to preserve idempotency, the worker should not alter the contents of a report, even if the worker must submit the same report multiple times before getting back a response.
|
|
1987
|
+
* The worker should not submit a subsequent report until the response for the previous report had been received from the service.
|
|
1988
|
+
*/
|
|
1989
|
+
reportIndex?: string;
|
|
1990
|
+
/** Amount of time the worker requests for its lease. */
|
|
1991
|
+
requestedLeaseDuration?: string;
|
|
1992
|
+
/** DEPRECATED in favor of dynamic_source_split. */
|
|
1993
|
+
sourceFork?: SourceFork;
|
|
1994
|
+
/** If the work item represented a SourceOperationRequest, and the work is completed, contains the result of the operation. */
|
|
1995
|
+
sourceOperationResponse?: SourceOperationResponse;
|
|
1996
|
+
/**
|
|
1997
|
+
* A worker may split an active map task in two parts, "primary" and "residual", continuing to process the primary part and returning the residual part into the pool of available work.
|
|
1998
|
+
* This event is called a "dynamic split" and is critical to the dynamic work rebalancing feature. The two obtained sub-tasks are called "parts" of the split. The parts, if
|
|
1999
|
+
* concatenated, must represent the same input as would be read by the current task if the split did not happen. The exact way in which the original task is decomposed into the two
|
|
2000
|
+
* parts is specified either as a position demarcating them (stop_position), or explicitly as two DerivedSources, if this task consumes a user-defined source type
|
|
2001
|
+
* (dynamic_source_split). The "current" task is adjusted as a result of the split: after a task with range [A, B) sends a stop_position update at C, its range is considered to be [A,
|
|
2002
|
+
* C), e.g.: * Progress should be interpreted relative to the new range, e.g. "75% completed" means "75% of [A, C) completed" * The worker should interpret proposed_stop_position
|
|
2003
|
+
* relative to the new range, e.g. "split at 68%" should be interpreted as "split at 68% of [A, C)". * If the worker chooses to split again using stop_position, only stop_positions in
|
|
2004
|
+
* [A, C) will be accepted. * Etc. dynamic_source_split has similar semantics: e.g., if a task with source S splits using dynamic_source_split into {P, R} (where P and R must be
|
|
2005
|
+
* together equivalent to S), then subsequent progress and proposed_stop_position should be interpreted relative to P, and in a potential subsequent dynamic_source_split into {P', R'},
|
|
2006
|
+
* P' and R' must be together equivalent to P, etc.
|
|
2007
|
+
*/
|
|
2008
|
+
stopPosition?: Position;
|
|
2009
|
+
/** Total time the worker spent being throttled by external systems. */
|
|
2010
|
+
totalThrottlerWaitTimeSeconds?: number;
|
|
2011
|
+
/** Identifies the WorkItem. */
|
|
2012
|
+
workItemId?: string;
|
|
2013
|
+
}
|
|
2014
|
+
interface WriteInstruction {
|
|
2015
|
+
/** The input. */
|
|
2016
|
+
input?: InstructionInput;
|
|
2017
|
+
/** The sink to write to. */
|
|
2018
|
+
sink?: Sink;
|
|
2019
|
+
}
|
|
2020
|
+
interface DebugResource {
|
|
2021
|
+
/** Get encoded debug configuration for component. Not cacheable. */
|
|
2022
|
+
getConfig(request: {
|
|
2023
|
+
/** V1 error format. */
|
|
2024
|
+
"$.xgafv"?: string;
|
|
2025
|
+
/** OAuth access token. */
|
|
2026
|
+
access_token?: string;
|
|
2027
|
+
/** Data format for response. */
|
|
2028
|
+
alt?: string;
|
|
2029
|
+
/** JSONP */
|
|
2030
|
+
callback?: string;
|
|
2031
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2032
|
+
fields?: string;
|
|
2033
|
+
/** The job id. */
|
|
2034
|
+
jobId: string;
|
|
2035
|
+
/** 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. */
|
|
2036
|
+
key?: string;
|
|
2037
|
+
/** OAuth 2.0 token for the current user. */
|
|
2038
|
+
oauth_token?: string;
|
|
2039
|
+
/** Returns response with indentations and line breaks. */
|
|
2040
|
+
prettyPrint?: boolean;
|
|
2041
|
+
/** The project id. */
|
|
2042
|
+
projectId: string;
|
|
2043
|
+
/** 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. */
|
|
2044
|
+
quotaUser?: string;
|
|
2045
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2046
|
+
upload_protocol?: string;
|
|
2047
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2048
|
+
uploadType?: string;
|
|
2049
|
+
/** Request body */
|
|
2050
|
+
resource: GetDebugConfigRequest;
|
|
2051
|
+
}): Request<GetDebugConfigResponse>;
|
|
2052
|
+
getConfig(request: {
|
|
2053
|
+
/** V1 error format. */
|
|
2054
|
+
"$.xgafv"?: string;
|
|
2055
|
+
/** OAuth access token. */
|
|
2056
|
+
access_token?: string;
|
|
2057
|
+
/** Data format for response. */
|
|
2058
|
+
alt?: string;
|
|
2059
|
+
/** JSONP */
|
|
2060
|
+
callback?: string;
|
|
2061
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2062
|
+
fields?: string;
|
|
2063
|
+
/** The job id. */
|
|
2064
|
+
jobId: string;
|
|
2065
|
+
/** 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. */
|
|
2066
|
+
key?: string;
|
|
2067
|
+
/** OAuth 2.0 token for the current user. */
|
|
2068
|
+
oauth_token?: string;
|
|
2069
|
+
/** Returns response with indentations and line breaks. */
|
|
2070
|
+
prettyPrint?: boolean;
|
|
2071
|
+
/** The project id. */
|
|
2072
|
+
projectId: string;
|
|
2073
|
+
/** 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. */
|
|
2074
|
+
quotaUser?: string;
|
|
2075
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2076
|
+
upload_protocol?: string;
|
|
2077
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2078
|
+
uploadType?: string;
|
|
2079
|
+
},
|
|
2080
|
+
body: GetDebugConfigRequest): Request<GetDebugConfigResponse>;
|
|
2081
|
+
/** Send encoded debug capture data for component. */
|
|
2082
|
+
sendCapture(request: {
|
|
2083
|
+
/** V1 error format. */
|
|
2084
|
+
"$.xgafv"?: string;
|
|
2085
|
+
/** OAuth access token. */
|
|
2086
|
+
access_token?: string;
|
|
2087
|
+
/** Data format for response. */
|
|
2088
|
+
alt?: string;
|
|
2089
|
+
/** JSONP */
|
|
2090
|
+
callback?: string;
|
|
2091
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2092
|
+
fields?: string;
|
|
2093
|
+
/** The job id. */
|
|
2094
|
+
jobId: string;
|
|
2095
|
+
/** 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. */
|
|
2096
|
+
key?: string;
|
|
2097
|
+
/** OAuth 2.0 token for the current user. */
|
|
2098
|
+
oauth_token?: string;
|
|
2099
|
+
/** Returns response with indentations and line breaks. */
|
|
2100
|
+
prettyPrint?: boolean;
|
|
2101
|
+
/** The project id. */
|
|
2102
|
+
projectId: string;
|
|
2103
|
+
/** 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. */
|
|
2104
|
+
quotaUser?: string;
|
|
2105
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2106
|
+
upload_protocol?: string;
|
|
2107
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2108
|
+
uploadType?: string;
|
|
2109
|
+
/** Request body */
|
|
2110
|
+
resource: SendDebugCaptureRequest;
|
|
2111
|
+
}): Request<{}>;
|
|
2112
|
+
sendCapture(request: {
|
|
2113
|
+
/** V1 error format. */
|
|
2114
|
+
"$.xgafv"?: string;
|
|
2115
|
+
/** OAuth access token. */
|
|
2116
|
+
access_token?: string;
|
|
2117
|
+
/** Data format for response. */
|
|
2118
|
+
alt?: string;
|
|
2119
|
+
/** JSONP */
|
|
2120
|
+
callback?: string;
|
|
2121
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2122
|
+
fields?: string;
|
|
2123
|
+
/** The job id. */
|
|
2124
|
+
jobId: string;
|
|
2125
|
+
/** 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. */
|
|
2126
|
+
key?: string;
|
|
2127
|
+
/** OAuth 2.0 token for the current user. */
|
|
2128
|
+
oauth_token?: string;
|
|
2129
|
+
/** Returns response with indentations and line breaks. */
|
|
2130
|
+
prettyPrint?: boolean;
|
|
2131
|
+
/** The project id. */
|
|
2132
|
+
projectId: string;
|
|
2133
|
+
/** 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. */
|
|
2134
|
+
quotaUser?: string;
|
|
2135
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2136
|
+
upload_protocol?: string;
|
|
2137
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2138
|
+
uploadType?: string;
|
|
2139
|
+
},
|
|
2140
|
+
body: SendDebugCaptureRequest): Request<{}>;
|
|
2141
|
+
}
|
|
2142
|
+
interface MessagesResource {
|
|
2143
|
+
/**
|
|
2144
|
+
* Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.messages.list` with a [regional endpoint]
|
|
2145
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.messages.list` is not recommended, as you can only request the status of jobs that are
|
|
2146
|
+
* running in `us-central1`.
|
|
2147
|
+
*/
|
|
2148
|
+
list(request?: {
|
|
2149
|
+
/** V1 error format. */
|
|
2150
|
+
"$.xgafv"?: string;
|
|
2151
|
+
/** OAuth access token. */
|
|
2152
|
+
access_token?: string;
|
|
2153
|
+
/** Data format for response. */
|
|
2154
|
+
alt?: string;
|
|
2155
|
+
/** JSONP */
|
|
2156
|
+
callback?: string;
|
|
2157
|
+
/** Return only messages with timestamps < end_time. The default is now (i.e. return up to the latest messages available). */
|
|
2158
|
+
endTime?: string;
|
|
2159
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2160
|
+
fields?: string;
|
|
2161
|
+
/** The job to get messages about. */
|
|
2162
|
+
jobId: string;
|
|
2163
|
+
/** 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. */
|
|
2164
|
+
key?: string;
|
|
2165
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
2166
|
+
location?: string;
|
|
2167
|
+
/** Filter to only get messages with importance >= level */
|
|
2168
|
+
minimumImportance?: string;
|
|
2169
|
+
/** OAuth 2.0 token for the current user. */
|
|
2170
|
+
oauth_token?: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* If specified, determines the maximum number of messages to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of
|
|
2173
|
+
* results.
|
|
2174
|
+
*/
|
|
2175
|
+
pageSize?: number;
|
|
2176
|
+
/** If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned. */
|
|
2177
|
+
pageToken?: string;
|
|
2178
|
+
/** Returns response with indentations and line breaks. */
|
|
2179
|
+
prettyPrint?: boolean;
|
|
2180
|
+
/** A project id. */
|
|
2181
|
+
projectId: string;
|
|
2182
|
+
/** 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. */
|
|
2183
|
+
quotaUser?: string;
|
|
2184
|
+
/** If specified, return only messages with timestamps >= start_time. The default is the job creation time (i.e. beginning of messages). */
|
|
2185
|
+
startTime?: string;
|
|
2186
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2187
|
+
upload_protocol?: string;
|
|
2188
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2189
|
+
uploadType?: string;
|
|
2190
|
+
}): Request<ListJobMessagesResponse>;
|
|
2191
|
+
}
|
|
2192
|
+
interface WorkItemsResource {
|
|
2193
|
+
/** Leases a dataflow WorkItem to run. */
|
|
2194
|
+
lease(request: {
|
|
2195
|
+
/** V1 error format. */
|
|
2196
|
+
"$.xgafv"?: string;
|
|
2197
|
+
/** OAuth access token. */
|
|
2198
|
+
access_token?: string;
|
|
2199
|
+
/** Data format for response. */
|
|
2200
|
+
alt?: string;
|
|
2201
|
+
/** JSONP */
|
|
2202
|
+
callback?: string;
|
|
2203
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2204
|
+
fields?: string;
|
|
2205
|
+
/** Identifies the workflow job this worker belongs to. */
|
|
2206
|
+
jobId: string;
|
|
2207
|
+
/** 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. */
|
|
2208
|
+
key?: string;
|
|
2209
|
+
/** OAuth 2.0 token for the current user. */
|
|
2210
|
+
oauth_token?: string;
|
|
2211
|
+
/** Returns response with indentations and line breaks. */
|
|
2212
|
+
prettyPrint?: boolean;
|
|
2213
|
+
/** Identifies the project this worker belongs to. */
|
|
2214
|
+
projectId: string;
|
|
2215
|
+
/** 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. */
|
|
2216
|
+
quotaUser?: string;
|
|
2217
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2218
|
+
upload_protocol?: string;
|
|
2219
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2220
|
+
uploadType?: string;
|
|
2221
|
+
/** Request body */
|
|
2222
|
+
resource: LeaseWorkItemRequest;
|
|
2223
|
+
}): Request<LeaseWorkItemResponse>;
|
|
2224
|
+
lease(request: {
|
|
2225
|
+
/** V1 error format. */
|
|
2226
|
+
"$.xgafv"?: string;
|
|
2227
|
+
/** OAuth access token. */
|
|
2228
|
+
access_token?: string;
|
|
2229
|
+
/** Data format for response. */
|
|
2230
|
+
alt?: string;
|
|
2231
|
+
/** JSONP */
|
|
2232
|
+
callback?: string;
|
|
2233
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2234
|
+
fields?: string;
|
|
2235
|
+
/** Identifies the workflow job this worker belongs to. */
|
|
2236
|
+
jobId: string;
|
|
2237
|
+
/** 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. */
|
|
2238
|
+
key?: string;
|
|
2239
|
+
/** OAuth 2.0 token for the current user. */
|
|
2240
|
+
oauth_token?: string;
|
|
2241
|
+
/** Returns response with indentations and line breaks. */
|
|
2242
|
+
prettyPrint?: boolean;
|
|
2243
|
+
/** Identifies the project this worker belongs to. */
|
|
2244
|
+
projectId: string;
|
|
2245
|
+
/** 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. */
|
|
2246
|
+
quotaUser?: string;
|
|
2247
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2248
|
+
upload_protocol?: string;
|
|
2249
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2250
|
+
uploadType?: string;
|
|
2251
|
+
},
|
|
2252
|
+
body: LeaseWorkItemRequest): Request<LeaseWorkItemResponse>;
|
|
2253
|
+
/** Reports the status of dataflow WorkItems leased by a worker. */
|
|
2254
|
+
reportStatus(request: {
|
|
2255
|
+
/** V1 error format. */
|
|
2256
|
+
"$.xgafv"?: string;
|
|
2257
|
+
/** OAuth access token. */
|
|
2258
|
+
access_token?: string;
|
|
2259
|
+
/** Data format for response. */
|
|
2260
|
+
alt?: string;
|
|
2261
|
+
/** JSONP */
|
|
2262
|
+
callback?: string;
|
|
2263
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2264
|
+
fields?: string;
|
|
2265
|
+
/** The job which the WorkItem is part of. */
|
|
2266
|
+
jobId: string;
|
|
2267
|
+
/** 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. */
|
|
2268
|
+
key?: string;
|
|
2269
|
+
/** OAuth 2.0 token for the current user. */
|
|
2270
|
+
oauth_token?: string;
|
|
2271
|
+
/** Returns response with indentations and line breaks. */
|
|
2272
|
+
prettyPrint?: boolean;
|
|
2273
|
+
/** The project which owns the WorkItem's job. */
|
|
2274
|
+
projectId: string;
|
|
2275
|
+
/** 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. */
|
|
2276
|
+
quotaUser?: string;
|
|
2277
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2278
|
+
upload_protocol?: string;
|
|
2279
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2280
|
+
uploadType?: string;
|
|
2281
|
+
/** Request body */
|
|
2282
|
+
resource: ReportWorkItemStatusRequest;
|
|
2283
|
+
}): Request<ReportWorkItemStatusResponse>;
|
|
2284
|
+
reportStatus(request: {
|
|
2285
|
+
/** V1 error format. */
|
|
2286
|
+
"$.xgafv"?: string;
|
|
2287
|
+
/** OAuth access token. */
|
|
2288
|
+
access_token?: string;
|
|
2289
|
+
/** Data format for response. */
|
|
2290
|
+
alt?: string;
|
|
2291
|
+
/** JSONP */
|
|
2292
|
+
callback?: string;
|
|
2293
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2294
|
+
fields?: string;
|
|
2295
|
+
/** The job which the WorkItem is part of. */
|
|
2296
|
+
jobId: string;
|
|
2297
|
+
/** 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. */
|
|
2298
|
+
key?: string;
|
|
2299
|
+
/** OAuth 2.0 token for the current user. */
|
|
2300
|
+
oauth_token?: string;
|
|
2301
|
+
/** Returns response with indentations and line breaks. */
|
|
2302
|
+
prettyPrint?: boolean;
|
|
2303
|
+
/** The project which owns the WorkItem's job. */
|
|
2304
|
+
projectId: string;
|
|
2305
|
+
/** 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. */
|
|
2306
|
+
quotaUser?: string;
|
|
2307
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2308
|
+
upload_protocol?: string;
|
|
2309
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2310
|
+
uploadType?: string;
|
|
2311
|
+
},
|
|
2312
|
+
body: ReportWorkItemStatusRequest): Request<ReportWorkItemStatusResponse>;
|
|
2313
|
+
}
|
|
2314
|
+
interface JobsResource {
|
|
2315
|
+
/** List the jobs of a project across all regions. */
|
|
2316
|
+
aggregated(request?: {
|
|
2317
|
+
/** V1 error format. */
|
|
2318
|
+
"$.xgafv"?: string;
|
|
2319
|
+
/** OAuth access token. */
|
|
2320
|
+
access_token?: string;
|
|
2321
|
+
/** Data format for response. */
|
|
2322
|
+
alt?: string;
|
|
2323
|
+
/** JSONP */
|
|
2324
|
+
callback?: string;
|
|
2325
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2326
|
+
fields?: string;
|
|
2327
|
+
/** The kind of filter to use. */
|
|
2328
|
+
filter?: string;
|
|
2329
|
+
/** 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. */
|
|
2330
|
+
key?: string;
|
|
2331
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
2332
|
+
location?: string;
|
|
2333
|
+
/** OAuth 2.0 token for the current user. */
|
|
2334
|
+
oauth_token?: string;
|
|
2335
|
+
/** If there are many jobs, limit response to at most this many. The actual number of jobs returned will be the lesser of max_responses and an unspecified server-defined limit. */
|
|
2336
|
+
pageSize?: number;
|
|
2337
|
+
/** Set this to the 'next_page_token' field of a previous response to request additional results in a long list. */
|
|
2338
|
+
pageToken?: string;
|
|
2339
|
+
/** Returns response with indentations and line breaks. */
|
|
2340
|
+
prettyPrint?: boolean;
|
|
2341
|
+
/** The project which owns the jobs. */
|
|
2342
|
+
projectId: string;
|
|
2343
|
+
/** 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. */
|
|
2344
|
+
quotaUser?: string;
|
|
2345
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2346
|
+
upload_protocol?: string;
|
|
2347
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2348
|
+
uploadType?: string;
|
|
2349
|
+
/** Deprecated. ListJobs always returns summaries now. Use GetJob for other JobViews. */
|
|
2350
|
+
view?: string;
|
|
2351
|
+
}): Request<ListJobsResponse>;
|
|
2352
|
+
/**
|
|
2353
|
+
* Creates a Cloud Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint]
|
|
2354
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`. Do not enter
|
|
2355
|
+
* confidential information when you supply string values using the API.
|
|
2356
|
+
*/
|
|
2357
|
+
create(request: {
|
|
2358
|
+
/** V1 error format. */
|
|
2359
|
+
"$.xgafv"?: string;
|
|
2360
|
+
/** OAuth access token. */
|
|
2361
|
+
access_token?: string;
|
|
2362
|
+
/** Data format for response. */
|
|
2363
|
+
alt?: string;
|
|
2364
|
+
/** JSONP */
|
|
2365
|
+
callback?: string;
|
|
2366
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2367
|
+
fields?: string;
|
|
2368
|
+
/** 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. */
|
|
2369
|
+
key?: string;
|
|
2370
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
2371
|
+
location?: string;
|
|
2372
|
+
/** OAuth 2.0 token for the current user. */
|
|
2373
|
+
oauth_token?: string;
|
|
2374
|
+
/** Returns response with indentations and line breaks. */
|
|
2375
|
+
prettyPrint?: boolean;
|
|
2376
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
2377
|
+
projectId: string;
|
|
2378
|
+
/** 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. */
|
|
2379
|
+
quotaUser?: string;
|
|
2380
|
+
/** Deprecated. This field is now in the Job message. */
|
|
2381
|
+
replaceJobId?: string;
|
|
2382
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2383
|
+
upload_protocol?: string;
|
|
2384
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2385
|
+
uploadType?: string;
|
|
2386
|
+
/** The level of information requested in response. */
|
|
2387
|
+
view?: string;
|
|
2388
|
+
/** Request body */
|
|
2389
|
+
resource: Job;
|
|
2390
|
+
}): Request<Job>;
|
|
2391
|
+
create(request: {
|
|
2392
|
+
/** V1 error format. */
|
|
2393
|
+
"$.xgafv"?: string;
|
|
2394
|
+
/** OAuth access token. */
|
|
2395
|
+
access_token?: string;
|
|
2396
|
+
/** Data format for response. */
|
|
2397
|
+
alt?: string;
|
|
2398
|
+
/** JSONP */
|
|
2399
|
+
callback?: string;
|
|
2400
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2401
|
+
fields?: string;
|
|
2402
|
+
/** 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. */
|
|
2403
|
+
key?: string;
|
|
2404
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
2405
|
+
location?: string;
|
|
2406
|
+
/** OAuth 2.0 token for the current user. */
|
|
2407
|
+
oauth_token?: string;
|
|
2408
|
+
/** Returns response with indentations and line breaks. */
|
|
2409
|
+
prettyPrint?: boolean;
|
|
2410
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
2411
|
+
projectId: string;
|
|
2412
|
+
/** 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. */
|
|
2413
|
+
quotaUser?: string;
|
|
2414
|
+
/** Deprecated. This field is now in the Job message. */
|
|
2415
|
+
replaceJobId?: string;
|
|
2416
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2417
|
+
upload_protocol?: string;
|
|
2418
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2419
|
+
uploadType?: string;
|
|
2420
|
+
/** The level of information requested in response. */
|
|
2421
|
+
view?: string;
|
|
2422
|
+
},
|
|
2423
|
+
body: Job): Request<Job>;
|
|
2424
|
+
/**
|
|
2425
|
+
* Gets the state of the specified Cloud Dataflow job. To get the state of a job, we recommend using `projects.locations.jobs.get` with a [regional endpoint]
|
|
2426
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.get` is not recommended, as you can only get the state of jobs that are running in
|
|
2427
|
+
* `us-central1`.
|
|
2428
|
+
*/
|
|
2429
|
+
get(request?: {
|
|
2430
|
+
/** V1 error format. */
|
|
2431
|
+
"$.xgafv"?: string;
|
|
2432
|
+
/** OAuth access token. */
|
|
2433
|
+
access_token?: string;
|
|
2434
|
+
/** Data format for response. */
|
|
2435
|
+
alt?: string;
|
|
2436
|
+
/** JSONP */
|
|
2437
|
+
callback?: string;
|
|
2438
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2439
|
+
fields?: string;
|
|
2440
|
+
/** The job ID. */
|
|
2441
|
+
jobId: string;
|
|
2442
|
+
/** 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. */
|
|
2443
|
+
key?: string;
|
|
2444
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
2445
|
+
location?: string;
|
|
2446
|
+
/** OAuth 2.0 token for the current user. */
|
|
2447
|
+
oauth_token?: string;
|
|
2448
|
+
/** Returns response with indentations and line breaks. */
|
|
2449
|
+
prettyPrint?: boolean;
|
|
2450
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
2451
|
+
projectId: string;
|
|
2452
|
+
/** 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. */
|
|
2453
|
+
quotaUser?: string;
|
|
2454
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2455
|
+
upload_protocol?: string;
|
|
2456
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2457
|
+
uploadType?: string;
|
|
2458
|
+
/** The level of information requested in response. */
|
|
2459
|
+
view?: string;
|
|
2460
|
+
}): Request<Job>;
|
|
2461
|
+
/**
|
|
2462
|
+
* Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.getMetrics` with a [regional endpoint]
|
|
2463
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.getMetrics` is not recommended, as you can only request the status of jobs that are
|
|
2464
|
+
* running in `us-central1`.
|
|
2465
|
+
*/
|
|
2466
|
+
getMetrics(request?: {
|
|
2467
|
+
/** V1 error format. */
|
|
2468
|
+
"$.xgafv"?: string;
|
|
2469
|
+
/** OAuth access token. */
|
|
2470
|
+
access_token?: string;
|
|
2471
|
+
/** Data format for response. */
|
|
2472
|
+
alt?: string;
|
|
2473
|
+
/** JSONP */
|
|
2474
|
+
callback?: string;
|
|
2475
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2476
|
+
fields?: string;
|
|
2477
|
+
/** The job to get metrics for. */
|
|
2478
|
+
jobId: string;
|
|
2479
|
+
/** 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. */
|
|
2480
|
+
key?: string;
|
|
2481
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
2482
|
+
location?: string;
|
|
2483
|
+
/** OAuth 2.0 token for the current user. */
|
|
2484
|
+
oauth_token?: string;
|
|
2485
|
+
/** Returns response with indentations and line breaks. */
|
|
2486
|
+
prettyPrint?: boolean;
|
|
2487
|
+
/** A project id. */
|
|
2488
|
+
projectId: string;
|
|
2489
|
+
/** 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. */
|
|
2490
|
+
quotaUser?: string;
|
|
2491
|
+
/** Return only metric data that has changed since this time. Default is to return all information about all metrics for the job. */
|
|
2492
|
+
startTime?: string;
|
|
2493
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2494
|
+
upload_protocol?: string;
|
|
2495
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2496
|
+
uploadType?: string;
|
|
2497
|
+
}): Request<JobMetrics>;
|
|
2498
|
+
/**
|
|
2499
|
+
* List the jobs of a project. To list the jobs of a project in a region, we recommend using `projects.locations.jobs.list` with a [regional endpoint]
|
|
2500
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list the all jobs across all regions, use `projects.jobs.aggregated`. Using `projects.jobs.list` is not
|
|
2501
|
+
* recommended, as you can only get the list of jobs that are running in `us-central1`.
|
|
2502
|
+
*/
|
|
2503
|
+
list(request?: {
|
|
2504
|
+
/** V1 error format. */
|
|
2505
|
+
"$.xgafv"?: string;
|
|
2506
|
+
/** OAuth access token. */
|
|
2507
|
+
access_token?: string;
|
|
2508
|
+
/** Data format for response. */
|
|
2509
|
+
alt?: string;
|
|
2510
|
+
/** JSONP */
|
|
2511
|
+
callback?: string;
|
|
2512
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2513
|
+
fields?: string;
|
|
2514
|
+
/** The kind of filter to use. */
|
|
2515
|
+
filter?: string;
|
|
2516
|
+
/** 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. */
|
|
2517
|
+
key?: string;
|
|
2518
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
2519
|
+
location?: string;
|
|
2520
|
+
/** OAuth 2.0 token for the current user. */
|
|
2521
|
+
oauth_token?: string;
|
|
2522
|
+
/** If there are many jobs, limit response to at most this many. The actual number of jobs returned will be the lesser of max_responses and an unspecified server-defined limit. */
|
|
2523
|
+
pageSize?: number;
|
|
2524
|
+
/** Set this to the 'next_page_token' field of a previous response to request additional results in a long list. */
|
|
2525
|
+
pageToken?: string;
|
|
2526
|
+
/** Returns response with indentations and line breaks. */
|
|
2527
|
+
prettyPrint?: boolean;
|
|
2528
|
+
/** The project which owns the jobs. */
|
|
2529
|
+
projectId: string;
|
|
2530
|
+
/** 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. */
|
|
2531
|
+
quotaUser?: string;
|
|
2532
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2533
|
+
upload_protocol?: string;
|
|
2534
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2535
|
+
uploadType?: string;
|
|
2536
|
+
/** Deprecated. ListJobs always returns summaries now. Use GetJob for other JobViews. */
|
|
2537
|
+
view?: string;
|
|
2538
|
+
}): Request<ListJobsResponse>;
|
|
2539
|
+
/** Snapshot the state of a streaming job. */
|
|
2540
|
+
snapshot(request: {
|
|
2541
|
+
/** V1 error format. */
|
|
2542
|
+
"$.xgafv"?: string;
|
|
2543
|
+
/** OAuth access token. */
|
|
2544
|
+
access_token?: string;
|
|
2545
|
+
/** Data format for response. */
|
|
2546
|
+
alt?: string;
|
|
2547
|
+
/** JSONP */
|
|
2548
|
+
callback?: string;
|
|
2549
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2550
|
+
fields?: string;
|
|
2551
|
+
/** The job to be snapshotted. */
|
|
2552
|
+
jobId: string;
|
|
2553
|
+
/** 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. */
|
|
2554
|
+
key?: string;
|
|
2555
|
+
/** OAuth 2.0 token for the current user. */
|
|
2556
|
+
oauth_token?: string;
|
|
2557
|
+
/** Returns response with indentations and line breaks. */
|
|
2558
|
+
prettyPrint?: boolean;
|
|
2559
|
+
/** The project which owns the job to be snapshotted. */
|
|
2560
|
+
projectId: string;
|
|
2561
|
+
/** 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. */
|
|
2562
|
+
quotaUser?: string;
|
|
2563
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2564
|
+
upload_protocol?: string;
|
|
2565
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2566
|
+
uploadType?: string;
|
|
2567
|
+
/** Request body */
|
|
2568
|
+
resource: SnapshotJobRequest;
|
|
2569
|
+
}): Request<Snapshot>;
|
|
2570
|
+
snapshot(request: {
|
|
2571
|
+
/** V1 error format. */
|
|
2572
|
+
"$.xgafv"?: string;
|
|
2573
|
+
/** OAuth access token. */
|
|
2574
|
+
access_token?: string;
|
|
2575
|
+
/** Data format for response. */
|
|
2576
|
+
alt?: string;
|
|
2577
|
+
/** JSONP */
|
|
2578
|
+
callback?: string;
|
|
2579
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2580
|
+
fields?: string;
|
|
2581
|
+
/** The job to be snapshotted. */
|
|
2582
|
+
jobId: string;
|
|
2583
|
+
/** 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. */
|
|
2584
|
+
key?: string;
|
|
2585
|
+
/** OAuth 2.0 token for the current user. */
|
|
2586
|
+
oauth_token?: string;
|
|
2587
|
+
/** Returns response with indentations and line breaks. */
|
|
2588
|
+
prettyPrint?: boolean;
|
|
2589
|
+
/** The project which owns the job to be snapshotted. */
|
|
2590
|
+
projectId: string;
|
|
2591
|
+
/** 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. */
|
|
2592
|
+
quotaUser?: string;
|
|
2593
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2594
|
+
upload_protocol?: string;
|
|
2595
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2596
|
+
uploadType?: string;
|
|
2597
|
+
},
|
|
2598
|
+
body: SnapshotJobRequest): Request<Snapshot>;
|
|
2599
|
+
/**
|
|
2600
|
+
* Updates the state of an existing Cloud Dataflow job. To update the state of an existing job, we recommend using `projects.locations.jobs.update` with a [regional endpoint]
|
|
2601
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.update` is not recommended, as you can only update the state of jobs that are running in
|
|
2602
|
+
* `us-central1`.
|
|
2603
|
+
*/
|
|
2604
|
+
update(request: {
|
|
2605
|
+
/** V1 error format. */
|
|
2606
|
+
"$.xgafv"?: string;
|
|
2607
|
+
/** OAuth access token. */
|
|
2608
|
+
access_token?: string;
|
|
2609
|
+
/** Data format for response. */
|
|
2610
|
+
alt?: string;
|
|
2611
|
+
/** JSONP */
|
|
2612
|
+
callback?: string;
|
|
2613
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2614
|
+
fields?: string;
|
|
2615
|
+
/** The job ID. */
|
|
2616
|
+
jobId: string;
|
|
2617
|
+
/** 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. */
|
|
2618
|
+
key?: string;
|
|
2619
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
2620
|
+
location?: string;
|
|
2621
|
+
/** OAuth 2.0 token for the current user. */
|
|
2622
|
+
oauth_token?: string;
|
|
2623
|
+
/** Returns response with indentations and line breaks. */
|
|
2624
|
+
prettyPrint?: boolean;
|
|
2625
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
2626
|
+
projectId: string;
|
|
2627
|
+
/** 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. */
|
|
2628
|
+
quotaUser?: string;
|
|
2629
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2630
|
+
upload_protocol?: string;
|
|
2631
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2632
|
+
uploadType?: string;
|
|
2633
|
+
/** Request body */
|
|
2634
|
+
resource: Job;
|
|
2635
|
+
}): Request<Job>;
|
|
2636
|
+
update(request: {
|
|
2637
|
+
/** V1 error format. */
|
|
2638
|
+
"$.xgafv"?: string;
|
|
2639
|
+
/** OAuth access token. */
|
|
2640
|
+
access_token?: string;
|
|
2641
|
+
/** Data format for response. */
|
|
2642
|
+
alt?: string;
|
|
2643
|
+
/** JSONP */
|
|
2644
|
+
callback?: string;
|
|
2645
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2646
|
+
fields?: string;
|
|
2647
|
+
/** The job ID. */
|
|
2648
|
+
jobId: string;
|
|
2649
|
+
/** 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. */
|
|
2650
|
+
key?: string;
|
|
2651
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
2652
|
+
location?: string;
|
|
2653
|
+
/** OAuth 2.0 token for the current user. */
|
|
2654
|
+
oauth_token?: string;
|
|
2655
|
+
/** Returns response with indentations and line breaks. */
|
|
2656
|
+
prettyPrint?: boolean;
|
|
2657
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
2658
|
+
projectId: string;
|
|
2659
|
+
/** 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. */
|
|
2660
|
+
quotaUser?: string;
|
|
2661
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2662
|
+
upload_protocol?: string;
|
|
2663
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2664
|
+
uploadType?: string;
|
|
2665
|
+
},
|
|
2666
|
+
body: Job): Request<Job>;
|
|
2667
|
+
debug: DebugResource;
|
|
2668
|
+
messages: MessagesResource;
|
|
2669
|
+
workItems: WorkItemsResource;
|
|
2670
|
+
}
|
|
2671
|
+
interface FlexTemplatesResource {
|
|
2672
|
+
/** Launch a job with a FlexTemplate. */
|
|
2673
|
+
launch(request: {
|
|
2674
|
+
/** V1 error format. */
|
|
2675
|
+
"$.xgafv"?: string;
|
|
2676
|
+
/** OAuth access token. */
|
|
2677
|
+
access_token?: string;
|
|
2678
|
+
/** Data format for response. */
|
|
2679
|
+
alt?: string;
|
|
2680
|
+
/** JSONP */
|
|
2681
|
+
callback?: string;
|
|
2682
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2683
|
+
fields?: string;
|
|
2684
|
+
/** 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. */
|
|
2685
|
+
key?: string;
|
|
2686
|
+
/** Required. The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. E.g., us-central1, us-west1. */
|
|
2687
|
+
location: string;
|
|
2688
|
+
/** OAuth 2.0 token for the current user. */
|
|
2689
|
+
oauth_token?: string;
|
|
2690
|
+
/** Returns response with indentations and line breaks. */
|
|
2691
|
+
prettyPrint?: boolean;
|
|
2692
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
2693
|
+
projectId: string;
|
|
2694
|
+
/** 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. */
|
|
2695
|
+
quotaUser?: string;
|
|
2696
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2697
|
+
upload_protocol?: string;
|
|
2698
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2699
|
+
uploadType?: string;
|
|
2700
|
+
/** Request body */
|
|
2701
|
+
resource: LaunchFlexTemplateRequest;
|
|
2702
|
+
}): Request<LaunchFlexTemplateResponse>;
|
|
2703
|
+
launch(request: {
|
|
2704
|
+
/** V1 error format. */
|
|
2705
|
+
"$.xgafv"?: string;
|
|
2706
|
+
/** OAuth access token. */
|
|
2707
|
+
access_token?: string;
|
|
2708
|
+
/** Data format for response. */
|
|
2709
|
+
alt?: string;
|
|
2710
|
+
/** JSONP */
|
|
2711
|
+
callback?: string;
|
|
2712
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2713
|
+
fields?: string;
|
|
2714
|
+
/** 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. */
|
|
2715
|
+
key?: string;
|
|
2716
|
+
/** Required. The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. E.g., us-central1, us-west1. */
|
|
2717
|
+
location: string;
|
|
2718
|
+
/** OAuth 2.0 token for the current user. */
|
|
2719
|
+
oauth_token?: string;
|
|
2720
|
+
/** Returns response with indentations and line breaks. */
|
|
2721
|
+
prettyPrint?: boolean;
|
|
2722
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
2723
|
+
projectId: string;
|
|
2724
|
+
/** 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. */
|
|
2725
|
+
quotaUser?: string;
|
|
2726
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2727
|
+
upload_protocol?: string;
|
|
2728
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2729
|
+
uploadType?: string;
|
|
2730
|
+
},
|
|
2731
|
+
body: LaunchFlexTemplateRequest): Request<LaunchFlexTemplateResponse>;
|
|
2732
|
+
}
|
|
2733
|
+
interface DebugResource {
|
|
2734
|
+
/** Get encoded debug configuration for component. Not cacheable. */
|
|
2735
|
+
getConfig(request: {
|
|
2736
|
+
/** V1 error format. */
|
|
2737
|
+
"$.xgafv"?: string;
|
|
2738
|
+
/** OAuth access token. */
|
|
2739
|
+
access_token?: string;
|
|
2740
|
+
/** Data format for response. */
|
|
2741
|
+
alt?: string;
|
|
2742
|
+
/** JSONP */
|
|
2743
|
+
callback?: string;
|
|
2744
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2745
|
+
fields?: string;
|
|
2746
|
+
/** The job id. */
|
|
2747
|
+
jobId: string;
|
|
2748
|
+
/** 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. */
|
|
2749
|
+
key?: string;
|
|
2750
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
2751
|
+
location: string;
|
|
2752
|
+
/** OAuth 2.0 token for the current user. */
|
|
2753
|
+
oauth_token?: string;
|
|
2754
|
+
/** Returns response with indentations and line breaks. */
|
|
2755
|
+
prettyPrint?: boolean;
|
|
2756
|
+
/** The project id. */
|
|
2757
|
+
projectId: string;
|
|
2758
|
+
/** 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. */
|
|
2759
|
+
quotaUser?: string;
|
|
2760
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2761
|
+
upload_protocol?: string;
|
|
2762
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2763
|
+
uploadType?: string;
|
|
2764
|
+
/** Request body */
|
|
2765
|
+
resource: GetDebugConfigRequest;
|
|
2766
|
+
}): Request<GetDebugConfigResponse>;
|
|
2767
|
+
getConfig(request: {
|
|
2768
|
+
/** V1 error format. */
|
|
2769
|
+
"$.xgafv"?: string;
|
|
2770
|
+
/** OAuth access token. */
|
|
2771
|
+
access_token?: string;
|
|
2772
|
+
/** Data format for response. */
|
|
2773
|
+
alt?: string;
|
|
2774
|
+
/** JSONP */
|
|
2775
|
+
callback?: string;
|
|
2776
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2777
|
+
fields?: string;
|
|
2778
|
+
/** The job id. */
|
|
2779
|
+
jobId: string;
|
|
2780
|
+
/** 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. */
|
|
2781
|
+
key?: string;
|
|
2782
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
2783
|
+
location: string;
|
|
2784
|
+
/** OAuth 2.0 token for the current user. */
|
|
2785
|
+
oauth_token?: string;
|
|
2786
|
+
/** Returns response with indentations and line breaks. */
|
|
2787
|
+
prettyPrint?: boolean;
|
|
2788
|
+
/** The project id. */
|
|
2789
|
+
projectId: string;
|
|
2790
|
+
/** 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. */
|
|
2791
|
+
quotaUser?: string;
|
|
2792
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2793
|
+
upload_protocol?: string;
|
|
2794
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2795
|
+
uploadType?: string;
|
|
2796
|
+
},
|
|
2797
|
+
body: GetDebugConfigRequest): Request<GetDebugConfigResponse>;
|
|
2798
|
+
/** Send encoded debug capture data for component. */
|
|
2799
|
+
sendCapture(request: {
|
|
2800
|
+
/** V1 error format. */
|
|
2801
|
+
"$.xgafv"?: string;
|
|
2802
|
+
/** OAuth access token. */
|
|
2803
|
+
access_token?: string;
|
|
2804
|
+
/** Data format for response. */
|
|
2805
|
+
alt?: string;
|
|
2806
|
+
/** JSONP */
|
|
2807
|
+
callback?: string;
|
|
2808
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2809
|
+
fields?: string;
|
|
2810
|
+
/** The job id. */
|
|
2811
|
+
jobId: string;
|
|
2812
|
+
/** 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. */
|
|
2813
|
+
key?: string;
|
|
2814
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
2815
|
+
location: string;
|
|
2816
|
+
/** OAuth 2.0 token for the current user. */
|
|
2817
|
+
oauth_token?: string;
|
|
2818
|
+
/** Returns response with indentations and line breaks. */
|
|
2819
|
+
prettyPrint?: boolean;
|
|
2820
|
+
/** The project id. */
|
|
2821
|
+
projectId: string;
|
|
2822
|
+
/** 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. */
|
|
2823
|
+
quotaUser?: string;
|
|
2824
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2825
|
+
upload_protocol?: string;
|
|
2826
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2827
|
+
uploadType?: string;
|
|
2828
|
+
/** Request body */
|
|
2829
|
+
resource: SendDebugCaptureRequest;
|
|
2830
|
+
}): Request<{}>;
|
|
2831
|
+
sendCapture(request: {
|
|
2832
|
+
/** V1 error format. */
|
|
2833
|
+
"$.xgafv"?: string;
|
|
2834
|
+
/** OAuth access token. */
|
|
2835
|
+
access_token?: string;
|
|
2836
|
+
/** Data format for response. */
|
|
2837
|
+
alt?: string;
|
|
2838
|
+
/** JSONP */
|
|
2839
|
+
callback?: string;
|
|
2840
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2841
|
+
fields?: string;
|
|
2842
|
+
/** The job id. */
|
|
2843
|
+
jobId: string;
|
|
2844
|
+
/** 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. */
|
|
2845
|
+
key?: string;
|
|
2846
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
2847
|
+
location: string;
|
|
2848
|
+
/** OAuth 2.0 token for the current user. */
|
|
2849
|
+
oauth_token?: string;
|
|
2850
|
+
/** Returns response with indentations and line breaks. */
|
|
2851
|
+
prettyPrint?: boolean;
|
|
2852
|
+
/** The project id. */
|
|
2853
|
+
projectId: string;
|
|
2854
|
+
/** 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. */
|
|
2855
|
+
quotaUser?: string;
|
|
2856
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2857
|
+
upload_protocol?: string;
|
|
2858
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2859
|
+
uploadType?: string;
|
|
2860
|
+
},
|
|
2861
|
+
body: SendDebugCaptureRequest): Request<{}>;
|
|
2862
|
+
}
|
|
2863
|
+
interface MessagesResource {
|
|
2864
|
+
/**
|
|
2865
|
+
* Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.messages.list` with a [regional endpoint]
|
|
2866
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.messages.list` is not recommended, as you can only request the status of jobs that are
|
|
2867
|
+
* running in `us-central1`.
|
|
2868
|
+
*/
|
|
2869
|
+
list(request?: {
|
|
2870
|
+
/** V1 error format. */
|
|
2871
|
+
"$.xgafv"?: string;
|
|
2872
|
+
/** OAuth access token. */
|
|
2873
|
+
access_token?: string;
|
|
2874
|
+
/** Data format for response. */
|
|
2875
|
+
alt?: string;
|
|
2876
|
+
/** JSONP */
|
|
2877
|
+
callback?: string;
|
|
2878
|
+
/** Return only messages with timestamps < end_time. The default is now (i.e. return up to the latest messages available). */
|
|
2879
|
+
endTime?: string;
|
|
2880
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2881
|
+
fields?: string;
|
|
2882
|
+
/** The job to get messages about. */
|
|
2883
|
+
jobId: string;
|
|
2884
|
+
/** 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. */
|
|
2885
|
+
key?: string;
|
|
2886
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
2887
|
+
location: string;
|
|
2888
|
+
/** Filter to only get messages with importance >= level */
|
|
2889
|
+
minimumImportance?: string;
|
|
2890
|
+
/** OAuth 2.0 token for the current user. */
|
|
2891
|
+
oauth_token?: string;
|
|
2892
|
+
/**
|
|
2893
|
+
* If specified, determines the maximum number of messages to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of
|
|
2894
|
+
* results.
|
|
2895
|
+
*/
|
|
2896
|
+
pageSize?: number;
|
|
2897
|
+
/** If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned. */
|
|
2898
|
+
pageToken?: string;
|
|
2899
|
+
/** Returns response with indentations and line breaks. */
|
|
2900
|
+
prettyPrint?: boolean;
|
|
2901
|
+
/** A project id. */
|
|
2902
|
+
projectId: string;
|
|
2903
|
+
/** 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. */
|
|
2904
|
+
quotaUser?: string;
|
|
2905
|
+
/** If specified, return only messages with timestamps >= start_time. The default is the job creation time (i.e. beginning of messages). */
|
|
2906
|
+
startTime?: string;
|
|
2907
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2908
|
+
upload_protocol?: string;
|
|
2909
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2910
|
+
uploadType?: string;
|
|
2911
|
+
}): Request<ListJobMessagesResponse>;
|
|
2912
|
+
}
|
|
2913
|
+
interface SnapshotsResource {
|
|
2914
|
+
/** Lists snapshots. */
|
|
2915
|
+
list(request?: {
|
|
2916
|
+
/** V1 error format. */
|
|
2917
|
+
"$.xgafv"?: string;
|
|
2918
|
+
/** OAuth access token. */
|
|
2919
|
+
access_token?: string;
|
|
2920
|
+
/** Data format for response. */
|
|
2921
|
+
alt?: string;
|
|
2922
|
+
/** JSONP */
|
|
2923
|
+
callback?: string;
|
|
2924
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2925
|
+
fields?: string;
|
|
2926
|
+
/** If specified, list snapshots created from this job. */
|
|
2927
|
+
jobId: string;
|
|
2928
|
+
/** 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. */
|
|
2929
|
+
key?: string;
|
|
2930
|
+
/** The location to list snapshots in. */
|
|
2931
|
+
location: string;
|
|
2932
|
+
/** OAuth 2.0 token for the current user. */
|
|
2933
|
+
oauth_token?: string;
|
|
2934
|
+
/** Returns response with indentations and line breaks. */
|
|
2935
|
+
prettyPrint?: boolean;
|
|
2936
|
+
/** The project ID to list snapshots for. */
|
|
2937
|
+
projectId: string;
|
|
2938
|
+
/** 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. */
|
|
2939
|
+
quotaUser?: string;
|
|
2940
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2941
|
+
upload_protocol?: string;
|
|
2942
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2943
|
+
uploadType?: string;
|
|
2944
|
+
}): Request<ListSnapshotsResponse>;
|
|
2945
|
+
}
|
|
2946
|
+
interface StagesResource {
|
|
2947
|
+
/** Request detailed information about the execution status of a stage of the job. EXPERIMENTAL. This API is subject to change or removal without notice. */
|
|
2948
|
+
getExecutionDetails(request?: {
|
|
2949
|
+
/** V1 error format. */
|
|
2950
|
+
"$.xgafv"?: string;
|
|
2951
|
+
/** OAuth access token. */
|
|
2952
|
+
access_token?: string;
|
|
2953
|
+
/** Data format for response. */
|
|
2954
|
+
alt?: string;
|
|
2955
|
+
/** JSONP */
|
|
2956
|
+
callback?: string;
|
|
2957
|
+
/** Upper time bound of work items to include, by start time. */
|
|
2958
|
+
endTime?: string;
|
|
2959
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2960
|
+
fields?: string;
|
|
2961
|
+
/** The job to get execution details for. */
|
|
2962
|
+
jobId: string;
|
|
2963
|
+
/** 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. */
|
|
2964
|
+
key?: string;
|
|
2965
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
2966
|
+
location: string;
|
|
2967
|
+
/** OAuth 2.0 token for the current user. */
|
|
2968
|
+
oauth_token?: string;
|
|
2969
|
+
/**
|
|
2970
|
+
* If specified, determines the maximum number of work items to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of
|
|
2971
|
+
* results.
|
|
2972
|
+
*/
|
|
2973
|
+
pageSize?: number;
|
|
2974
|
+
/** If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned. */
|
|
2975
|
+
pageToken?: string;
|
|
2976
|
+
/** Returns response with indentations and line breaks. */
|
|
2977
|
+
prettyPrint?: boolean;
|
|
2978
|
+
/** A project id. */
|
|
2979
|
+
projectId: string;
|
|
2980
|
+
/** 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. */
|
|
2981
|
+
quotaUser?: string;
|
|
2982
|
+
/** The stage for which to fetch information. */
|
|
2983
|
+
stageId: string;
|
|
2984
|
+
/** Lower time bound of work items to include, by start time. */
|
|
2985
|
+
startTime?: string;
|
|
2986
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2987
|
+
upload_protocol?: string;
|
|
2988
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2989
|
+
uploadType?: string;
|
|
2990
|
+
}): Request<StageExecutionDetails>;
|
|
2991
|
+
}
|
|
2992
|
+
interface WorkItemsResource {
|
|
2993
|
+
/** Leases a dataflow WorkItem to run. */
|
|
2994
|
+
lease(request: {
|
|
2995
|
+
/** V1 error format. */
|
|
2996
|
+
"$.xgafv"?: string;
|
|
2997
|
+
/** OAuth access token. */
|
|
2998
|
+
access_token?: string;
|
|
2999
|
+
/** Data format for response. */
|
|
3000
|
+
alt?: string;
|
|
3001
|
+
/** JSONP */
|
|
3002
|
+
callback?: string;
|
|
3003
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3004
|
+
fields?: string;
|
|
3005
|
+
/** Identifies the workflow job this worker belongs to. */
|
|
3006
|
+
jobId: string;
|
|
3007
|
+
/** 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. */
|
|
3008
|
+
key?: string;
|
|
3009
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job. */
|
|
3010
|
+
location: string;
|
|
3011
|
+
/** OAuth 2.0 token for the current user. */
|
|
3012
|
+
oauth_token?: string;
|
|
3013
|
+
/** Returns response with indentations and line breaks. */
|
|
3014
|
+
prettyPrint?: boolean;
|
|
3015
|
+
/** Identifies the project this worker belongs to. */
|
|
3016
|
+
projectId: string;
|
|
3017
|
+
/** 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. */
|
|
3018
|
+
quotaUser?: string;
|
|
3019
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3020
|
+
upload_protocol?: string;
|
|
3021
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3022
|
+
uploadType?: string;
|
|
3023
|
+
/** Request body */
|
|
3024
|
+
resource: LeaseWorkItemRequest;
|
|
3025
|
+
}): Request<LeaseWorkItemResponse>;
|
|
3026
|
+
lease(request: {
|
|
3027
|
+
/** V1 error format. */
|
|
3028
|
+
"$.xgafv"?: string;
|
|
3029
|
+
/** OAuth access token. */
|
|
3030
|
+
access_token?: string;
|
|
3031
|
+
/** Data format for response. */
|
|
3032
|
+
alt?: string;
|
|
3033
|
+
/** JSONP */
|
|
3034
|
+
callback?: string;
|
|
3035
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3036
|
+
fields?: string;
|
|
3037
|
+
/** Identifies the workflow job this worker belongs to. */
|
|
3038
|
+
jobId: string;
|
|
3039
|
+
/** 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. */
|
|
3040
|
+
key?: string;
|
|
3041
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job. */
|
|
3042
|
+
location: string;
|
|
3043
|
+
/** OAuth 2.0 token for the current user. */
|
|
3044
|
+
oauth_token?: string;
|
|
3045
|
+
/** Returns response with indentations and line breaks. */
|
|
3046
|
+
prettyPrint?: boolean;
|
|
3047
|
+
/** Identifies the project this worker belongs to. */
|
|
3048
|
+
projectId: string;
|
|
3049
|
+
/** 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. */
|
|
3050
|
+
quotaUser?: string;
|
|
3051
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3052
|
+
upload_protocol?: string;
|
|
3053
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3054
|
+
uploadType?: string;
|
|
3055
|
+
},
|
|
3056
|
+
body: LeaseWorkItemRequest): Request<LeaseWorkItemResponse>;
|
|
3057
|
+
/** Reports the status of dataflow WorkItems leased by a worker. */
|
|
3058
|
+
reportStatus(request: {
|
|
3059
|
+
/** V1 error format. */
|
|
3060
|
+
"$.xgafv"?: string;
|
|
3061
|
+
/** OAuth access token. */
|
|
3062
|
+
access_token?: string;
|
|
3063
|
+
/** Data format for response. */
|
|
3064
|
+
alt?: string;
|
|
3065
|
+
/** JSONP */
|
|
3066
|
+
callback?: string;
|
|
3067
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3068
|
+
fields?: string;
|
|
3069
|
+
/** The job which the WorkItem is part of. */
|
|
3070
|
+
jobId: string;
|
|
3071
|
+
/** 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. */
|
|
3072
|
+
key?: string;
|
|
3073
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job. */
|
|
3074
|
+
location: string;
|
|
3075
|
+
/** OAuth 2.0 token for the current user. */
|
|
3076
|
+
oauth_token?: string;
|
|
3077
|
+
/** Returns response with indentations and line breaks. */
|
|
3078
|
+
prettyPrint?: boolean;
|
|
3079
|
+
/** The project which owns the WorkItem's job. */
|
|
3080
|
+
projectId: string;
|
|
3081
|
+
/** 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. */
|
|
3082
|
+
quotaUser?: string;
|
|
3083
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3084
|
+
upload_protocol?: string;
|
|
3085
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3086
|
+
uploadType?: string;
|
|
3087
|
+
/** Request body */
|
|
3088
|
+
resource: ReportWorkItemStatusRequest;
|
|
3089
|
+
}): Request<ReportWorkItemStatusResponse>;
|
|
3090
|
+
reportStatus(request: {
|
|
3091
|
+
/** V1 error format. */
|
|
3092
|
+
"$.xgafv"?: string;
|
|
3093
|
+
/** OAuth access token. */
|
|
3094
|
+
access_token?: string;
|
|
3095
|
+
/** Data format for response. */
|
|
3096
|
+
alt?: string;
|
|
3097
|
+
/** JSONP */
|
|
3098
|
+
callback?: string;
|
|
3099
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3100
|
+
fields?: string;
|
|
3101
|
+
/** The job which the WorkItem is part of. */
|
|
3102
|
+
jobId: string;
|
|
3103
|
+
/** 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. */
|
|
3104
|
+
key?: string;
|
|
3105
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job. */
|
|
3106
|
+
location: string;
|
|
3107
|
+
/** OAuth 2.0 token for the current user. */
|
|
3108
|
+
oauth_token?: string;
|
|
3109
|
+
/** Returns response with indentations and line breaks. */
|
|
3110
|
+
prettyPrint?: boolean;
|
|
3111
|
+
/** The project which owns the WorkItem's job. */
|
|
3112
|
+
projectId: string;
|
|
3113
|
+
/** 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. */
|
|
3114
|
+
quotaUser?: string;
|
|
3115
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3116
|
+
upload_protocol?: string;
|
|
3117
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3118
|
+
uploadType?: string;
|
|
3119
|
+
},
|
|
3120
|
+
body: ReportWorkItemStatusRequest): Request<ReportWorkItemStatusResponse>;
|
|
3121
|
+
}
|
|
3122
|
+
interface JobsResource {
|
|
3123
|
+
/**
|
|
3124
|
+
* Creates a Cloud Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint]
|
|
3125
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`. Do not enter
|
|
3126
|
+
* confidential information when you supply string values using the API.
|
|
3127
|
+
*/
|
|
3128
|
+
create(request: {
|
|
3129
|
+
/** V1 error format. */
|
|
3130
|
+
"$.xgafv"?: string;
|
|
3131
|
+
/** OAuth access token. */
|
|
3132
|
+
access_token?: string;
|
|
3133
|
+
/** Data format for response. */
|
|
3134
|
+
alt?: string;
|
|
3135
|
+
/** JSONP */
|
|
3136
|
+
callback?: string;
|
|
3137
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3138
|
+
fields?: string;
|
|
3139
|
+
/** 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. */
|
|
3140
|
+
key?: string;
|
|
3141
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
3142
|
+
location: string;
|
|
3143
|
+
/** OAuth 2.0 token for the current user. */
|
|
3144
|
+
oauth_token?: string;
|
|
3145
|
+
/** Returns response with indentations and line breaks. */
|
|
3146
|
+
prettyPrint?: boolean;
|
|
3147
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
3148
|
+
projectId: string;
|
|
3149
|
+
/** 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. */
|
|
3150
|
+
quotaUser?: string;
|
|
3151
|
+
/** Deprecated. This field is now in the Job message. */
|
|
3152
|
+
replaceJobId?: string;
|
|
3153
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3154
|
+
upload_protocol?: string;
|
|
3155
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3156
|
+
uploadType?: string;
|
|
3157
|
+
/** The level of information requested in response. */
|
|
3158
|
+
view?: string;
|
|
3159
|
+
/** Request body */
|
|
3160
|
+
resource: Job;
|
|
3161
|
+
}): Request<Job>;
|
|
3162
|
+
create(request: {
|
|
3163
|
+
/** V1 error format. */
|
|
3164
|
+
"$.xgafv"?: string;
|
|
3165
|
+
/** OAuth access token. */
|
|
3166
|
+
access_token?: string;
|
|
3167
|
+
/** Data format for response. */
|
|
3168
|
+
alt?: string;
|
|
3169
|
+
/** JSONP */
|
|
3170
|
+
callback?: string;
|
|
3171
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3172
|
+
fields?: string;
|
|
3173
|
+
/** 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. */
|
|
3174
|
+
key?: string;
|
|
3175
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
3176
|
+
location: string;
|
|
3177
|
+
/** OAuth 2.0 token for the current user. */
|
|
3178
|
+
oauth_token?: string;
|
|
3179
|
+
/** Returns response with indentations and line breaks. */
|
|
3180
|
+
prettyPrint?: boolean;
|
|
3181
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
3182
|
+
projectId: string;
|
|
3183
|
+
/** 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. */
|
|
3184
|
+
quotaUser?: string;
|
|
3185
|
+
/** Deprecated. This field is now in the Job message. */
|
|
3186
|
+
replaceJobId?: string;
|
|
3187
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3188
|
+
upload_protocol?: string;
|
|
3189
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3190
|
+
uploadType?: string;
|
|
3191
|
+
/** The level of information requested in response. */
|
|
3192
|
+
view?: string;
|
|
3193
|
+
},
|
|
3194
|
+
body: Job): Request<Job>;
|
|
3195
|
+
/**
|
|
3196
|
+
* Gets the state of the specified Cloud Dataflow job. To get the state of a job, we recommend using `projects.locations.jobs.get` with a [regional endpoint]
|
|
3197
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.get` is not recommended, as you can only get the state of jobs that are running in
|
|
3198
|
+
* `us-central1`.
|
|
3199
|
+
*/
|
|
3200
|
+
get(request?: {
|
|
3201
|
+
/** V1 error format. */
|
|
3202
|
+
"$.xgafv"?: string;
|
|
3203
|
+
/** OAuth access token. */
|
|
3204
|
+
access_token?: string;
|
|
3205
|
+
/** Data format for response. */
|
|
3206
|
+
alt?: string;
|
|
3207
|
+
/** JSONP */
|
|
3208
|
+
callback?: string;
|
|
3209
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3210
|
+
fields?: string;
|
|
3211
|
+
/** The job ID. */
|
|
3212
|
+
jobId: string;
|
|
3213
|
+
/** 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. */
|
|
3214
|
+
key?: string;
|
|
3215
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
3216
|
+
location: string;
|
|
3217
|
+
/** OAuth 2.0 token for the current user. */
|
|
3218
|
+
oauth_token?: string;
|
|
3219
|
+
/** Returns response with indentations and line breaks. */
|
|
3220
|
+
prettyPrint?: boolean;
|
|
3221
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
3222
|
+
projectId: string;
|
|
3223
|
+
/** 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. */
|
|
3224
|
+
quotaUser?: string;
|
|
3225
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3226
|
+
upload_protocol?: string;
|
|
3227
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3228
|
+
uploadType?: string;
|
|
3229
|
+
/** The level of information requested in response. */
|
|
3230
|
+
view?: string;
|
|
3231
|
+
}): Request<Job>;
|
|
3232
|
+
/** Request detailed information about the execution status of the job. EXPERIMENTAL. This API is subject to change or removal without notice. */
|
|
3233
|
+
getExecutionDetails(request?: {
|
|
3234
|
+
/** V1 error format. */
|
|
3235
|
+
"$.xgafv"?: string;
|
|
3236
|
+
/** OAuth access token. */
|
|
3237
|
+
access_token?: string;
|
|
3238
|
+
/** Data format for response. */
|
|
3239
|
+
alt?: string;
|
|
3240
|
+
/** JSONP */
|
|
3241
|
+
callback?: string;
|
|
3242
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3243
|
+
fields?: string;
|
|
3244
|
+
/** The job to get execution details for. */
|
|
3245
|
+
jobId: string;
|
|
3246
|
+
/** 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. */
|
|
3247
|
+
key?: string;
|
|
3248
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
3249
|
+
location: string;
|
|
3250
|
+
/** OAuth 2.0 token for the current user. */
|
|
3251
|
+
oauth_token?: string;
|
|
3252
|
+
/**
|
|
3253
|
+
* If specified, determines the maximum number of stages to return. If unspecified, the service may choose an appropriate default, or may return an arbitrarily large number of
|
|
3254
|
+
* results.
|
|
3255
|
+
*/
|
|
3256
|
+
pageSize?: number;
|
|
3257
|
+
/** If supplied, this should be the value of next_page_token returned by an earlier call. This will cause the next page of results to be returned. */
|
|
3258
|
+
pageToken?: string;
|
|
3259
|
+
/** Returns response with indentations and line breaks. */
|
|
3260
|
+
prettyPrint?: boolean;
|
|
3261
|
+
/** A project id. */
|
|
3262
|
+
projectId: string;
|
|
3263
|
+
/** 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. */
|
|
3264
|
+
quotaUser?: string;
|
|
3265
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3266
|
+
upload_protocol?: string;
|
|
3267
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3268
|
+
uploadType?: string;
|
|
3269
|
+
}): Request<JobExecutionDetails>;
|
|
3270
|
+
/**
|
|
3271
|
+
* Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.getMetrics` with a [regional endpoint]
|
|
3272
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.getMetrics` is not recommended, as you can only request the status of jobs that are
|
|
3273
|
+
* running in `us-central1`.
|
|
3274
|
+
*/
|
|
3275
|
+
getMetrics(request?: {
|
|
3276
|
+
/** V1 error format. */
|
|
3277
|
+
"$.xgafv"?: string;
|
|
3278
|
+
/** OAuth access token. */
|
|
3279
|
+
access_token?: string;
|
|
3280
|
+
/** Data format for response. */
|
|
3281
|
+
alt?: string;
|
|
3282
|
+
/** JSONP */
|
|
3283
|
+
callback?: string;
|
|
3284
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3285
|
+
fields?: string;
|
|
3286
|
+
/** The job to get metrics for. */
|
|
3287
|
+
jobId: string;
|
|
3288
|
+
/** 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. */
|
|
3289
|
+
key?: string;
|
|
3290
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. */
|
|
3291
|
+
location: string;
|
|
3292
|
+
/** OAuth 2.0 token for the current user. */
|
|
3293
|
+
oauth_token?: string;
|
|
3294
|
+
/** Returns response with indentations and line breaks. */
|
|
3295
|
+
prettyPrint?: boolean;
|
|
3296
|
+
/** A project id. */
|
|
3297
|
+
projectId: string;
|
|
3298
|
+
/** 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. */
|
|
3299
|
+
quotaUser?: string;
|
|
3300
|
+
/** Return only metric data that has changed since this time. Default is to return all information about all metrics for the job. */
|
|
3301
|
+
startTime?: string;
|
|
3302
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3303
|
+
upload_protocol?: string;
|
|
3304
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3305
|
+
uploadType?: string;
|
|
3306
|
+
}): Request<JobMetrics>;
|
|
3307
|
+
/**
|
|
3308
|
+
* List the jobs of a project. To list the jobs of a project in a region, we recommend using `projects.locations.jobs.list` with a [regional endpoint]
|
|
3309
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list the all jobs across all regions, use `projects.jobs.aggregated`. Using `projects.jobs.list` is not
|
|
3310
|
+
* recommended, as you can only get the list of jobs that are running in `us-central1`.
|
|
3311
|
+
*/
|
|
3312
|
+
list(request?: {
|
|
3313
|
+
/** V1 error format. */
|
|
3314
|
+
"$.xgafv"?: string;
|
|
3315
|
+
/** OAuth access token. */
|
|
3316
|
+
access_token?: string;
|
|
3317
|
+
/** Data format for response. */
|
|
3318
|
+
alt?: string;
|
|
3319
|
+
/** JSONP */
|
|
3320
|
+
callback?: string;
|
|
3321
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3322
|
+
fields?: string;
|
|
3323
|
+
/** The kind of filter to use. */
|
|
3324
|
+
filter?: string;
|
|
3325
|
+
/** 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. */
|
|
3326
|
+
key?: string;
|
|
3327
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
3328
|
+
location: string;
|
|
3329
|
+
/** OAuth 2.0 token for the current user. */
|
|
3330
|
+
oauth_token?: string;
|
|
3331
|
+
/** If there are many jobs, limit response to at most this many. The actual number of jobs returned will be the lesser of max_responses and an unspecified server-defined limit. */
|
|
3332
|
+
pageSize?: number;
|
|
3333
|
+
/** Set this to the 'next_page_token' field of a previous response to request additional results in a long list. */
|
|
3334
|
+
pageToken?: string;
|
|
3335
|
+
/** Returns response with indentations and line breaks. */
|
|
3336
|
+
prettyPrint?: boolean;
|
|
3337
|
+
/** The project which owns the jobs. */
|
|
3338
|
+
projectId: string;
|
|
3339
|
+
/** 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. */
|
|
3340
|
+
quotaUser?: string;
|
|
3341
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3342
|
+
upload_protocol?: string;
|
|
3343
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3344
|
+
uploadType?: string;
|
|
3345
|
+
/** Deprecated. ListJobs always returns summaries now. Use GetJob for other JobViews. */
|
|
3346
|
+
view?: string;
|
|
3347
|
+
}): Request<ListJobsResponse>;
|
|
3348
|
+
/** Snapshot the state of a streaming job. */
|
|
3349
|
+
snapshot(request: {
|
|
3350
|
+
/** V1 error format. */
|
|
3351
|
+
"$.xgafv"?: string;
|
|
3352
|
+
/** OAuth access token. */
|
|
3353
|
+
access_token?: string;
|
|
3354
|
+
/** Data format for response. */
|
|
3355
|
+
alt?: string;
|
|
3356
|
+
/** JSONP */
|
|
3357
|
+
callback?: string;
|
|
3358
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3359
|
+
fields?: string;
|
|
3360
|
+
/** The job to be snapshotted. */
|
|
3361
|
+
jobId: string;
|
|
3362
|
+
/** 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. */
|
|
3363
|
+
key?: string;
|
|
3364
|
+
/** The location that contains this job. */
|
|
3365
|
+
location: string;
|
|
3366
|
+
/** OAuth 2.0 token for the current user. */
|
|
3367
|
+
oauth_token?: string;
|
|
3368
|
+
/** Returns response with indentations and line breaks. */
|
|
3369
|
+
prettyPrint?: boolean;
|
|
3370
|
+
/** The project which owns the job to be snapshotted. */
|
|
3371
|
+
projectId: string;
|
|
3372
|
+
/** 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. */
|
|
3373
|
+
quotaUser?: string;
|
|
3374
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3375
|
+
upload_protocol?: string;
|
|
3376
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3377
|
+
uploadType?: string;
|
|
3378
|
+
/** Request body */
|
|
3379
|
+
resource: SnapshotJobRequest;
|
|
3380
|
+
}): Request<Snapshot>;
|
|
3381
|
+
snapshot(request: {
|
|
3382
|
+
/** V1 error format. */
|
|
3383
|
+
"$.xgafv"?: string;
|
|
3384
|
+
/** OAuth access token. */
|
|
3385
|
+
access_token?: string;
|
|
3386
|
+
/** Data format for response. */
|
|
3387
|
+
alt?: string;
|
|
3388
|
+
/** JSONP */
|
|
3389
|
+
callback?: string;
|
|
3390
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3391
|
+
fields?: string;
|
|
3392
|
+
/** The job to be snapshotted. */
|
|
3393
|
+
jobId: string;
|
|
3394
|
+
/** 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. */
|
|
3395
|
+
key?: string;
|
|
3396
|
+
/** The location that contains this job. */
|
|
3397
|
+
location: string;
|
|
3398
|
+
/** OAuth 2.0 token for the current user. */
|
|
3399
|
+
oauth_token?: string;
|
|
3400
|
+
/** Returns response with indentations and line breaks. */
|
|
3401
|
+
prettyPrint?: boolean;
|
|
3402
|
+
/** The project which owns the job to be snapshotted. */
|
|
3403
|
+
projectId: string;
|
|
3404
|
+
/** 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. */
|
|
3405
|
+
quotaUser?: string;
|
|
3406
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3407
|
+
upload_protocol?: string;
|
|
3408
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3409
|
+
uploadType?: string;
|
|
3410
|
+
},
|
|
3411
|
+
body: SnapshotJobRequest): Request<Snapshot>;
|
|
3412
|
+
/**
|
|
3413
|
+
* Updates the state of an existing Cloud Dataflow job. To update the state of an existing job, we recommend using `projects.locations.jobs.update` with a [regional endpoint]
|
|
3414
|
+
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.update` is not recommended, as you can only update the state of jobs that are running in
|
|
3415
|
+
* `us-central1`.
|
|
3416
|
+
*/
|
|
3417
|
+
update(request: {
|
|
3418
|
+
/** V1 error format. */
|
|
3419
|
+
"$.xgafv"?: string;
|
|
3420
|
+
/** OAuth access token. */
|
|
3421
|
+
access_token?: string;
|
|
3422
|
+
/** Data format for response. */
|
|
3423
|
+
alt?: string;
|
|
3424
|
+
/** JSONP */
|
|
3425
|
+
callback?: string;
|
|
3426
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3427
|
+
fields?: string;
|
|
3428
|
+
/** The job ID. */
|
|
3429
|
+
jobId: string;
|
|
3430
|
+
/** 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. */
|
|
3431
|
+
key?: string;
|
|
3432
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
3433
|
+
location: string;
|
|
3434
|
+
/** OAuth 2.0 token for the current user. */
|
|
3435
|
+
oauth_token?: string;
|
|
3436
|
+
/** Returns response with indentations and line breaks. */
|
|
3437
|
+
prettyPrint?: boolean;
|
|
3438
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
3439
|
+
projectId: string;
|
|
3440
|
+
/** 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. */
|
|
3441
|
+
quotaUser?: string;
|
|
3442
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3443
|
+
upload_protocol?: string;
|
|
3444
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3445
|
+
uploadType?: string;
|
|
3446
|
+
/** Request body */
|
|
3447
|
+
resource: Job;
|
|
3448
|
+
}): Request<Job>;
|
|
3449
|
+
update(request: {
|
|
3450
|
+
/** V1 error format. */
|
|
3451
|
+
"$.xgafv"?: string;
|
|
3452
|
+
/** OAuth access token. */
|
|
3453
|
+
access_token?: string;
|
|
3454
|
+
/** Data format for response. */
|
|
3455
|
+
alt?: string;
|
|
3456
|
+
/** JSONP */
|
|
3457
|
+
callback?: string;
|
|
3458
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3459
|
+
fields?: string;
|
|
3460
|
+
/** The job ID. */
|
|
3461
|
+
jobId: string;
|
|
3462
|
+
/** 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. */
|
|
3463
|
+
key?: string;
|
|
3464
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. */
|
|
3465
|
+
location: string;
|
|
3466
|
+
/** OAuth 2.0 token for the current user. */
|
|
3467
|
+
oauth_token?: string;
|
|
3468
|
+
/** Returns response with indentations and line breaks. */
|
|
3469
|
+
prettyPrint?: boolean;
|
|
3470
|
+
/** The ID of the Cloud Platform project that the job belongs to. */
|
|
3471
|
+
projectId: string;
|
|
3472
|
+
/** 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. */
|
|
3473
|
+
quotaUser?: string;
|
|
3474
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3475
|
+
upload_protocol?: string;
|
|
3476
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3477
|
+
uploadType?: string;
|
|
3478
|
+
},
|
|
3479
|
+
body: Job): Request<Job>;
|
|
3480
|
+
debug: DebugResource;
|
|
3481
|
+
messages: MessagesResource;
|
|
3482
|
+
snapshots: SnapshotsResource;
|
|
3483
|
+
stages: StagesResource;
|
|
3484
|
+
workItems: WorkItemsResource;
|
|
3485
|
+
}
|
|
3486
|
+
interface SnapshotsResource {
|
|
3487
|
+
/** Deletes a snapshot. */
|
|
3488
|
+
delete(request?: {
|
|
3489
|
+
/** V1 error format. */
|
|
3490
|
+
"$.xgafv"?: string;
|
|
3491
|
+
/** OAuth access token. */
|
|
3492
|
+
access_token?: string;
|
|
3493
|
+
/** Data format for response. */
|
|
3494
|
+
alt?: string;
|
|
3495
|
+
/** JSONP */
|
|
3496
|
+
callback?: string;
|
|
3497
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3498
|
+
fields?: string;
|
|
3499
|
+
/** 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. */
|
|
3500
|
+
key?: string;
|
|
3501
|
+
/** The location that contains this snapshot. */
|
|
3502
|
+
location: string;
|
|
3503
|
+
/** OAuth 2.0 token for the current user. */
|
|
3504
|
+
oauth_token?: string;
|
|
3505
|
+
/** Returns response with indentations and line breaks. */
|
|
3506
|
+
prettyPrint?: boolean;
|
|
3507
|
+
/** The ID of the Cloud Platform project that the snapshot belongs to. */
|
|
3508
|
+
projectId: string;
|
|
3509
|
+
/** 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. */
|
|
3510
|
+
quotaUser?: string;
|
|
3511
|
+
/** The ID of the snapshot. */
|
|
3512
|
+
snapshotId: string;
|
|
3513
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3514
|
+
upload_protocol?: string;
|
|
3515
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3516
|
+
uploadType?: string;
|
|
3517
|
+
}): Request<{}>;
|
|
3518
|
+
/** Gets information about a snapshot. */
|
|
3519
|
+
get(request?: {
|
|
3520
|
+
/** V1 error format. */
|
|
3521
|
+
"$.xgafv"?: string;
|
|
3522
|
+
/** OAuth access token. */
|
|
3523
|
+
access_token?: string;
|
|
3524
|
+
/** Data format for response. */
|
|
3525
|
+
alt?: string;
|
|
3526
|
+
/** JSONP */
|
|
3527
|
+
callback?: string;
|
|
3528
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3529
|
+
fields?: string;
|
|
3530
|
+
/** 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. */
|
|
3531
|
+
key?: string;
|
|
3532
|
+
/** The location that contains this snapshot. */
|
|
3533
|
+
location: string;
|
|
3534
|
+
/** OAuth 2.0 token for the current user. */
|
|
3535
|
+
oauth_token?: string;
|
|
3536
|
+
/** Returns response with indentations and line breaks. */
|
|
3537
|
+
prettyPrint?: boolean;
|
|
3538
|
+
/** The ID of the Cloud Platform project that the snapshot belongs to. */
|
|
3539
|
+
projectId: string;
|
|
3540
|
+
/** 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. */
|
|
3541
|
+
quotaUser?: string;
|
|
3542
|
+
/** The ID of the snapshot. */
|
|
3543
|
+
snapshotId: string;
|
|
3544
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3545
|
+
upload_protocol?: string;
|
|
3546
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3547
|
+
uploadType?: string;
|
|
3548
|
+
}): Request<Snapshot>;
|
|
3549
|
+
/** Lists snapshots. */
|
|
3550
|
+
list(request?: {
|
|
3551
|
+
/** V1 error format. */
|
|
3552
|
+
"$.xgafv"?: string;
|
|
3553
|
+
/** OAuth access token. */
|
|
3554
|
+
access_token?: string;
|
|
3555
|
+
/** Data format for response. */
|
|
3556
|
+
alt?: string;
|
|
3557
|
+
/** JSONP */
|
|
3558
|
+
callback?: string;
|
|
3559
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3560
|
+
fields?: string;
|
|
3561
|
+
/** If specified, list snapshots created from this job. */
|
|
3562
|
+
jobId?: string;
|
|
3563
|
+
/** 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. */
|
|
3564
|
+
key?: string;
|
|
3565
|
+
/** The location to list snapshots in. */
|
|
3566
|
+
location: string;
|
|
3567
|
+
/** OAuth 2.0 token for the current user. */
|
|
3568
|
+
oauth_token?: string;
|
|
3569
|
+
/** Returns response with indentations and line breaks. */
|
|
3570
|
+
prettyPrint?: boolean;
|
|
3571
|
+
/** The project ID to list snapshots for. */
|
|
3572
|
+
projectId: string;
|
|
3573
|
+
/** 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. */
|
|
3574
|
+
quotaUser?: string;
|
|
3575
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3576
|
+
upload_protocol?: string;
|
|
3577
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3578
|
+
uploadType?: string;
|
|
3579
|
+
}): Request<ListSnapshotsResponse>;
|
|
3580
|
+
}
|
|
3581
|
+
interface SqlResource {
|
|
3582
|
+
/**
|
|
3583
|
+
* Validates a GoogleSQL query for Cloud Dataflow syntax. Will always confirm the given query parses correctly, and if able to look up schema information from DataCatalog, will
|
|
3584
|
+
* validate that the query analyzes properly as well.
|
|
3585
|
+
*/
|
|
3586
|
+
validate(request?: {
|
|
3587
|
+
/** V1 error format. */
|
|
3588
|
+
"$.xgafv"?: string;
|
|
3589
|
+
/** OAuth access token. */
|
|
3590
|
+
access_token?: string;
|
|
3591
|
+
/** Data format for response. */
|
|
3592
|
+
alt?: string;
|
|
3593
|
+
/** JSONP */
|
|
3594
|
+
callback?: string;
|
|
3595
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3596
|
+
fields?: string;
|
|
3597
|
+
/** 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. */
|
|
3598
|
+
key?: string;
|
|
3599
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
3600
|
+
location: string;
|
|
3601
|
+
/** OAuth 2.0 token for the current user. */
|
|
3602
|
+
oauth_token?: string;
|
|
3603
|
+
/** Returns response with indentations and line breaks. */
|
|
3604
|
+
prettyPrint?: boolean;
|
|
3605
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3606
|
+
projectId: string;
|
|
3607
|
+
/** The sql query to validate. */
|
|
3608
|
+
query?: string;
|
|
3609
|
+
/** 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. */
|
|
3610
|
+
quotaUser?: string;
|
|
3611
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3612
|
+
upload_protocol?: string;
|
|
3613
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3614
|
+
uploadType?: string;
|
|
3615
|
+
}): Request<ValidateResponse>;
|
|
3616
|
+
}
|
|
3617
|
+
interface TemplatesResource {
|
|
3618
|
+
/** Creates a Cloud Dataflow job from a template. Do not enter confidential information when you supply string values using the API. */
|
|
3619
|
+
create(request: {
|
|
3620
|
+
/** V1 error format. */
|
|
3621
|
+
"$.xgafv"?: string;
|
|
3622
|
+
/** OAuth access token. */
|
|
3623
|
+
access_token?: string;
|
|
3624
|
+
/** Data format for response. */
|
|
3625
|
+
alt?: string;
|
|
3626
|
+
/** JSONP */
|
|
3627
|
+
callback?: string;
|
|
3628
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3629
|
+
fields?: string;
|
|
3630
|
+
/** 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. */
|
|
3631
|
+
key?: string;
|
|
3632
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
3633
|
+
location: string;
|
|
3634
|
+
/** OAuth 2.0 token for the current user. */
|
|
3635
|
+
oauth_token?: string;
|
|
3636
|
+
/** Returns response with indentations and line breaks. */
|
|
3637
|
+
prettyPrint?: boolean;
|
|
3638
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3639
|
+
projectId: string;
|
|
3640
|
+
/** 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. */
|
|
3641
|
+
quotaUser?: string;
|
|
3642
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3643
|
+
upload_protocol?: string;
|
|
3644
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3645
|
+
uploadType?: string;
|
|
3646
|
+
/** Request body */
|
|
3647
|
+
resource: CreateJobFromTemplateRequest;
|
|
3648
|
+
}): Request<Job>;
|
|
3649
|
+
create(request: {
|
|
3650
|
+
/** V1 error format. */
|
|
3651
|
+
"$.xgafv"?: string;
|
|
3652
|
+
/** OAuth access token. */
|
|
3653
|
+
access_token?: string;
|
|
3654
|
+
/** Data format for response. */
|
|
3655
|
+
alt?: string;
|
|
3656
|
+
/** JSONP */
|
|
3657
|
+
callback?: string;
|
|
3658
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3659
|
+
fields?: string;
|
|
3660
|
+
/** 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. */
|
|
3661
|
+
key?: string;
|
|
3662
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
3663
|
+
location: string;
|
|
3664
|
+
/** OAuth 2.0 token for the current user. */
|
|
3665
|
+
oauth_token?: string;
|
|
3666
|
+
/** Returns response with indentations and line breaks. */
|
|
3667
|
+
prettyPrint?: boolean;
|
|
3668
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3669
|
+
projectId: string;
|
|
3670
|
+
/** 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. */
|
|
3671
|
+
quotaUser?: string;
|
|
3672
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3673
|
+
upload_protocol?: string;
|
|
3674
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3675
|
+
uploadType?: string;
|
|
3676
|
+
},
|
|
3677
|
+
body: CreateJobFromTemplateRequest): Request<Job>;
|
|
3678
|
+
/** Get the template associated with a template. */
|
|
3679
|
+
get(request?: {
|
|
3680
|
+
/** V1 error format. */
|
|
3681
|
+
"$.xgafv"?: string;
|
|
3682
|
+
/** OAuth access token. */
|
|
3683
|
+
access_token?: string;
|
|
3684
|
+
/** Data format for response. */
|
|
3685
|
+
alt?: string;
|
|
3686
|
+
/** JSONP */
|
|
3687
|
+
callback?: string;
|
|
3688
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3689
|
+
fields?: string;
|
|
3690
|
+
/** Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. */
|
|
3691
|
+
gcsPath?: string;
|
|
3692
|
+
/** 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. */
|
|
3693
|
+
key?: string;
|
|
3694
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
3695
|
+
location: string;
|
|
3696
|
+
/** OAuth 2.0 token for the current user. */
|
|
3697
|
+
oauth_token?: string;
|
|
3698
|
+
/** Returns response with indentations and line breaks. */
|
|
3699
|
+
prettyPrint?: boolean;
|
|
3700
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3701
|
+
projectId: string;
|
|
3702
|
+
/** 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. */
|
|
3703
|
+
quotaUser?: string;
|
|
3704
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3705
|
+
upload_protocol?: string;
|
|
3706
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3707
|
+
uploadType?: string;
|
|
3708
|
+
/** The view to retrieve. Defaults to METADATA_ONLY. */
|
|
3709
|
+
view?: string;
|
|
3710
|
+
}): Request<GetTemplateResponse>;
|
|
3711
|
+
/** Launch a template. */
|
|
3712
|
+
launch(request: {
|
|
3713
|
+
/** V1 error format. */
|
|
3714
|
+
"$.xgafv"?: string;
|
|
3715
|
+
/** OAuth access token. */
|
|
3716
|
+
access_token?: string;
|
|
3717
|
+
/** Data format for response. */
|
|
3718
|
+
alt?: string;
|
|
3719
|
+
/** JSONP */
|
|
3720
|
+
callback?: string;
|
|
3721
|
+
/** Path to dynamic template spec file on Cloud Storage. The file must be a Json serialized DynamicTemplateFieSpec object. */
|
|
3722
|
+
"dynamicTemplate.gcsPath"?: string;
|
|
3723
|
+
/** Cloud Storage path for staging dependencies. Must be a valid Cloud Storage URL, beginning with `gs://`. */
|
|
3724
|
+
"dynamicTemplate.stagingLocation"?: string;
|
|
3725
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3726
|
+
fields?: string;
|
|
3727
|
+
/** A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. */
|
|
3728
|
+
gcsPath?: string;
|
|
3729
|
+
/** 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. */
|
|
3730
|
+
key?: string;
|
|
3731
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
3732
|
+
location: string;
|
|
3733
|
+
/** OAuth 2.0 token for the current user. */
|
|
3734
|
+
oauth_token?: string;
|
|
3735
|
+
/** Returns response with indentations and line breaks. */
|
|
3736
|
+
prettyPrint?: boolean;
|
|
3737
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3738
|
+
projectId: string;
|
|
3739
|
+
/** 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. */
|
|
3740
|
+
quotaUser?: string;
|
|
3741
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3742
|
+
upload_protocol?: string;
|
|
3743
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3744
|
+
uploadType?: string;
|
|
3745
|
+
/** If true, the request is validated but not actually executed. Defaults to false. */
|
|
3746
|
+
validateOnly?: boolean;
|
|
3747
|
+
/** Request body */
|
|
3748
|
+
resource: LaunchTemplateParameters;
|
|
3749
|
+
}): Request<LaunchTemplateResponse>;
|
|
3750
|
+
launch(request: {
|
|
3751
|
+
/** V1 error format. */
|
|
3752
|
+
"$.xgafv"?: string;
|
|
3753
|
+
/** OAuth access token. */
|
|
3754
|
+
access_token?: string;
|
|
3755
|
+
/** Data format for response. */
|
|
3756
|
+
alt?: string;
|
|
3757
|
+
/** JSONP */
|
|
3758
|
+
callback?: string;
|
|
3759
|
+
/** Path to dynamic template spec file on Cloud Storage. The file must be a Json serialized DynamicTemplateFieSpec object. */
|
|
3760
|
+
"dynamicTemplate.gcsPath"?: string;
|
|
3761
|
+
/** Cloud Storage path for staging dependencies. Must be a valid Cloud Storage URL, beginning with `gs://`. */
|
|
3762
|
+
"dynamicTemplate.stagingLocation"?: string;
|
|
3763
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3764
|
+
fields?: string;
|
|
3765
|
+
/** A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. */
|
|
3766
|
+
gcsPath?: string;
|
|
3767
|
+
/** 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. */
|
|
3768
|
+
key?: string;
|
|
3769
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
3770
|
+
location: string;
|
|
3771
|
+
/** OAuth 2.0 token for the current user. */
|
|
3772
|
+
oauth_token?: string;
|
|
3773
|
+
/** Returns response with indentations and line breaks. */
|
|
3774
|
+
prettyPrint?: boolean;
|
|
3775
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3776
|
+
projectId: string;
|
|
3777
|
+
/** 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. */
|
|
3778
|
+
quotaUser?: string;
|
|
3779
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3780
|
+
upload_protocol?: string;
|
|
3781
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3782
|
+
uploadType?: string;
|
|
3783
|
+
/** If true, the request is validated but not actually executed. Defaults to false. */
|
|
3784
|
+
validateOnly?: boolean;
|
|
3785
|
+
},
|
|
3786
|
+
body: LaunchTemplateParameters): Request<LaunchTemplateResponse>;
|
|
3787
|
+
}
|
|
3788
|
+
interface LocationsResource {
|
|
3789
|
+
/** Send a worker_message to the service. */
|
|
3790
|
+
workerMessages(request: {
|
|
3791
|
+
/** V1 error format. */
|
|
3792
|
+
"$.xgafv"?: string;
|
|
3793
|
+
/** OAuth access token. */
|
|
3794
|
+
access_token?: string;
|
|
3795
|
+
/** Data format for response. */
|
|
3796
|
+
alt?: string;
|
|
3797
|
+
/** JSONP */
|
|
3798
|
+
callback?: string;
|
|
3799
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3800
|
+
fields?: string;
|
|
3801
|
+
/** 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. */
|
|
3802
|
+
key?: string;
|
|
3803
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job. */
|
|
3804
|
+
location: string;
|
|
3805
|
+
/** OAuth 2.0 token for the current user. */
|
|
3806
|
+
oauth_token?: string;
|
|
3807
|
+
/** Returns response with indentations and line breaks. */
|
|
3808
|
+
prettyPrint?: boolean;
|
|
3809
|
+
/** The project to send the WorkerMessages to. */
|
|
3810
|
+
projectId: string;
|
|
3811
|
+
/** 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. */
|
|
3812
|
+
quotaUser?: string;
|
|
3813
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3814
|
+
upload_protocol?: string;
|
|
3815
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3816
|
+
uploadType?: string;
|
|
3817
|
+
/** Request body */
|
|
3818
|
+
resource: SendWorkerMessagesRequest;
|
|
3819
|
+
}): Request<SendWorkerMessagesResponse>;
|
|
3820
|
+
workerMessages(request: {
|
|
3821
|
+
/** V1 error format. */
|
|
3822
|
+
"$.xgafv"?: string;
|
|
3823
|
+
/** OAuth access token. */
|
|
3824
|
+
access_token?: string;
|
|
3825
|
+
/** Data format for response. */
|
|
3826
|
+
alt?: string;
|
|
3827
|
+
/** JSONP */
|
|
3828
|
+
callback?: string;
|
|
3829
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3830
|
+
fields?: string;
|
|
3831
|
+
/** 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. */
|
|
3832
|
+
key?: string;
|
|
3833
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job. */
|
|
3834
|
+
location: string;
|
|
3835
|
+
/** OAuth 2.0 token for the current user. */
|
|
3836
|
+
oauth_token?: string;
|
|
3837
|
+
/** Returns response with indentations and line breaks. */
|
|
3838
|
+
prettyPrint?: boolean;
|
|
3839
|
+
/** The project to send the WorkerMessages to. */
|
|
3840
|
+
projectId: string;
|
|
3841
|
+
/** 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. */
|
|
3842
|
+
quotaUser?: string;
|
|
3843
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3844
|
+
upload_protocol?: string;
|
|
3845
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3846
|
+
uploadType?: string;
|
|
3847
|
+
},
|
|
3848
|
+
body: SendWorkerMessagesRequest): Request<SendWorkerMessagesResponse>;
|
|
3849
|
+
flexTemplates: FlexTemplatesResource;
|
|
3850
|
+
jobs: JobsResource;
|
|
3851
|
+
snapshots: SnapshotsResource;
|
|
3852
|
+
sql: SqlResource;
|
|
3853
|
+
templates: TemplatesResource;
|
|
3854
|
+
}
|
|
3855
|
+
interface SnapshotsResource {
|
|
3856
|
+
/** Gets information about a snapshot. */
|
|
3857
|
+
get(request?: {
|
|
3858
|
+
/** V1 error format. */
|
|
3859
|
+
"$.xgafv"?: string;
|
|
3860
|
+
/** OAuth access token. */
|
|
3861
|
+
access_token?: string;
|
|
3862
|
+
/** Data format for response. */
|
|
3863
|
+
alt?: string;
|
|
3864
|
+
/** JSONP */
|
|
3865
|
+
callback?: string;
|
|
3866
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3867
|
+
fields?: string;
|
|
3868
|
+
/** 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. */
|
|
3869
|
+
key?: string;
|
|
3870
|
+
/** The location that contains this snapshot. */
|
|
3871
|
+
location?: string;
|
|
3872
|
+
/** OAuth 2.0 token for the current user. */
|
|
3873
|
+
oauth_token?: string;
|
|
3874
|
+
/** Returns response with indentations and line breaks. */
|
|
3875
|
+
prettyPrint?: boolean;
|
|
3876
|
+
/** The ID of the Cloud Platform project that the snapshot belongs to. */
|
|
3877
|
+
projectId: string;
|
|
3878
|
+
/** 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. */
|
|
3879
|
+
quotaUser?: string;
|
|
3880
|
+
/** The ID of the snapshot. */
|
|
3881
|
+
snapshotId: string;
|
|
3882
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3883
|
+
upload_protocol?: string;
|
|
3884
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3885
|
+
uploadType?: string;
|
|
3886
|
+
}): Request<Snapshot>;
|
|
3887
|
+
/** Lists snapshots. */
|
|
3888
|
+
list(request?: {
|
|
3889
|
+
/** V1 error format. */
|
|
3890
|
+
"$.xgafv"?: string;
|
|
3891
|
+
/** OAuth access token. */
|
|
3892
|
+
access_token?: string;
|
|
3893
|
+
/** Data format for response. */
|
|
3894
|
+
alt?: string;
|
|
3895
|
+
/** JSONP */
|
|
3896
|
+
callback?: string;
|
|
3897
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3898
|
+
fields?: string;
|
|
3899
|
+
/** If specified, list snapshots created from this job. */
|
|
3900
|
+
jobId?: string;
|
|
3901
|
+
/** 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. */
|
|
3902
|
+
key?: string;
|
|
3903
|
+
/** The location to list snapshots in. */
|
|
3904
|
+
location?: string;
|
|
3905
|
+
/** OAuth 2.0 token for the current user. */
|
|
3906
|
+
oauth_token?: string;
|
|
3907
|
+
/** Returns response with indentations and line breaks. */
|
|
3908
|
+
prettyPrint?: boolean;
|
|
3909
|
+
/** The project ID to list snapshots for. */
|
|
3910
|
+
projectId: string;
|
|
3911
|
+
/** 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. */
|
|
3912
|
+
quotaUser?: string;
|
|
3913
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3914
|
+
upload_protocol?: string;
|
|
3915
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3916
|
+
uploadType?: string;
|
|
3917
|
+
}): Request<ListSnapshotsResponse>;
|
|
3918
|
+
}
|
|
3919
|
+
interface TemplatesResource {
|
|
3920
|
+
/** Creates a Cloud Dataflow job from a template. Do not enter confidential information when you supply string values using the API. */
|
|
3921
|
+
create(request: {
|
|
3922
|
+
/** V1 error format. */
|
|
3923
|
+
"$.xgafv"?: string;
|
|
3924
|
+
/** OAuth access token. */
|
|
3925
|
+
access_token?: string;
|
|
3926
|
+
/** Data format for response. */
|
|
3927
|
+
alt?: string;
|
|
3928
|
+
/** JSONP */
|
|
3929
|
+
callback?: string;
|
|
3930
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3931
|
+
fields?: string;
|
|
3932
|
+
/** 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. */
|
|
3933
|
+
key?: string;
|
|
3934
|
+
/** OAuth 2.0 token for the current user. */
|
|
3935
|
+
oauth_token?: string;
|
|
3936
|
+
/** Returns response with indentations and line breaks. */
|
|
3937
|
+
prettyPrint?: boolean;
|
|
3938
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3939
|
+
projectId: string;
|
|
3940
|
+
/** 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. */
|
|
3941
|
+
quotaUser?: string;
|
|
3942
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3943
|
+
upload_protocol?: string;
|
|
3944
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3945
|
+
uploadType?: string;
|
|
3946
|
+
/** Request body */
|
|
3947
|
+
resource: CreateJobFromTemplateRequest;
|
|
3948
|
+
}): Request<Job>;
|
|
3949
|
+
create(request: {
|
|
3950
|
+
/** V1 error format. */
|
|
3951
|
+
"$.xgafv"?: string;
|
|
3952
|
+
/** OAuth access token. */
|
|
3953
|
+
access_token?: string;
|
|
3954
|
+
/** Data format for response. */
|
|
3955
|
+
alt?: string;
|
|
3956
|
+
/** JSONP */
|
|
3957
|
+
callback?: string;
|
|
3958
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3959
|
+
fields?: string;
|
|
3960
|
+
/** 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. */
|
|
3961
|
+
key?: string;
|
|
3962
|
+
/** OAuth 2.0 token for the current user. */
|
|
3963
|
+
oauth_token?: string;
|
|
3964
|
+
/** Returns response with indentations and line breaks. */
|
|
3965
|
+
prettyPrint?: boolean;
|
|
3966
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3967
|
+
projectId: string;
|
|
3968
|
+
/** 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. */
|
|
3969
|
+
quotaUser?: string;
|
|
3970
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3971
|
+
upload_protocol?: string;
|
|
3972
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3973
|
+
uploadType?: string;
|
|
3974
|
+
},
|
|
3975
|
+
body: CreateJobFromTemplateRequest): Request<Job>;
|
|
3976
|
+
/** Get the template associated with a template. */
|
|
3977
|
+
get(request?: {
|
|
3978
|
+
/** V1 error format. */
|
|
3979
|
+
"$.xgafv"?: string;
|
|
3980
|
+
/** OAuth access token. */
|
|
3981
|
+
access_token?: string;
|
|
3982
|
+
/** Data format for response. */
|
|
3983
|
+
alt?: string;
|
|
3984
|
+
/** JSONP */
|
|
3985
|
+
callback?: string;
|
|
3986
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3987
|
+
fields?: string;
|
|
3988
|
+
/** Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. */
|
|
3989
|
+
gcsPath?: string;
|
|
3990
|
+
/** 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. */
|
|
3991
|
+
key?: string;
|
|
3992
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
3993
|
+
location?: string;
|
|
3994
|
+
/** OAuth 2.0 token for the current user. */
|
|
3995
|
+
oauth_token?: string;
|
|
3996
|
+
/** Returns response with indentations and line breaks. */
|
|
3997
|
+
prettyPrint?: boolean;
|
|
3998
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
3999
|
+
projectId: string;
|
|
4000
|
+
/** 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. */
|
|
4001
|
+
quotaUser?: string;
|
|
4002
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4003
|
+
upload_protocol?: string;
|
|
4004
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4005
|
+
uploadType?: string;
|
|
4006
|
+
/** The view to retrieve. Defaults to METADATA_ONLY. */
|
|
4007
|
+
view?: string;
|
|
4008
|
+
}): Request<GetTemplateResponse>;
|
|
4009
|
+
/** Launch a template. */
|
|
4010
|
+
launch(request: {
|
|
4011
|
+
/** V1 error format. */
|
|
4012
|
+
"$.xgafv"?: string;
|
|
4013
|
+
/** OAuth access token. */
|
|
4014
|
+
access_token?: string;
|
|
4015
|
+
/** Data format for response. */
|
|
4016
|
+
alt?: string;
|
|
4017
|
+
/** JSONP */
|
|
4018
|
+
callback?: string;
|
|
4019
|
+
/** Path to dynamic template spec file on Cloud Storage. The file must be a Json serialized DynamicTemplateFieSpec object. */
|
|
4020
|
+
"dynamicTemplate.gcsPath"?: string;
|
|
4021
|
+
/** Cloud Storage path for staging dependencies. Must be a valid Cloud Storage URL, beginning with `gs://`. */
|
|
4022
|
+
"dynamicTemplate.stagingLocation"?: string;
|
|
4023
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4024
|
+
fields?: string;
|
|
4025
|
+
/** A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. */
|
|
4026
|
+
gcsPath?: string;
|
|
4027
|
+
/** 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. */
|
|
4028
|
+
key?: string;
|
|
4029
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
4030
|
+
location?: string;
|
|
4031
|
+
/** OAuth 2.0 token for the current user. */
|
|
4032
|
+
oauth_token?: string;
|
|
4033
|
+
/** Returns response with indentations and line breaks. */
|
|
4034
|
+
prettyPrint?: boolean;
|
|
4035
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
4036
|
+
projectId: string;
|
|
4037
|
+
/** 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. */
|
|
4038
|
+
quotaUser?: string;
|
|
4039
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4040
|
+
upload_protocol?: string;
|
|
4041
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4042
|
+
uploadType?: string;
|
|
4043
|
+
/** If true, the request is validated but not actually executed. Defaults to false. */
|
|
4044
|
+
validateOnly?: boolean;
|
|
4045
|
+
/** Request body */
|
|
4046
|
+
resource: LaunchTemplateParameters;
|
|
4047
|
+
}): Request<LaunchTemplateResponse>;
|
|
4048
|
+
launch(request: {
|
|
4049
|
+
/** V1 error format. */
|
|
4050
|
+
"$.xgafv"?: string;
|
|
4051
|
+
/** OAuth access token. */
|
|
4052
|
+
access_token?: string;
|
|
4053
|
+
/** Data format for response. */
|
|
4054
|
+
alt?: string;
|
|
4055
|
+
/** JSONP */
|
|
4056
|
+
callback?: string;
|
|
4057
|
+
/** Path to dynamic template spec file on Cloud Storage. The file must be a Json serialized DynamicTemplateFieSpec object. */
|
|
4058
|
+
"dynamicTemplate.gcsPath"?: string;
|
|
4059
|
+
/** Cloud Storage path for staging dependencies. Must be a valid Cloud Storage URL, beginning with `gs://`. */
|
|
4060
|
+
"dynamicTemplate.stagingLocation"?: string;
|
|
4061
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4062
|
+
fields?: string;
|
|
4063
|
+
/** A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. */
|
|
4064
|
+
gcsPath?: string;
|
|
4065
|
+
/** 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. */
|
|
4066
|
+
key?: string;
|
|
4067
|
+
/** The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. */
|
|
4068
|
+
location?: string;
|
|
4069
|
+
/** OAuth 2.0 token for the current user. */
|
|
4070
|
+
oauth_token?: string;
|
|
4071
|
+
/** Returns response with indentations and line breaks. */
|
|
4072
|
+
prettyPrint?: boolean;
|
|
4073
|
+
/** Required. The ID of the Cloud Platform project that the job belongs to. */
|
|
4074
|
+
projectId: string;
|
|
4075
|
+
/** 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. */
|
|
4076
|
+
quotaUser?: string;
|
|
4077
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4078
|
+
upload_protocol?: string;
|
|
4079
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4080
|
+
uploadType?: string;
|
|
4081
|
+
/** If true, the request is validated but not actually executed. Defaults to false. */
|
|
4082
|
+
validateOnly?: boolean;
|
|
4083
|
+
},
|
|
4084
|
+
body: LaunchTemplateParameters): Request<LaunchTemplateResponse>;
|
|
4085
|
+
}
|
|
4086
|
+
interface ProjectsResource {
|
|
4087
|
+
/** Deletes a snapshot. */
|
|
4088
|
+
deleteSnapshots(request?: {
|
|
4089
|
+
/** V1 error format. */
|
|
4090
|
+
"$.xgafv"?: string;
|
|
4091
|
+
/** OAuth access token. */
|
|
4092
|
+
access_token?: string;
|
|
4093
|
+
/** Data format for response. */
|
|
4094
|
+
alt?: string;
|
|
4095
|
+
/** JSONP */
|
|
4096
|
+
callback?: string;
|
|
4097
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4098
|
+
fields?: string;
|
|
4099
|
+
/** 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. */
|
|
4100
|
+
key?: string;
|
|
4101
|
+
/** The location that contains this snapshot. */
|
|
4102
|
+
location?: string;
|
|
4103
|
+
/** OAuth 2.0 token for the current user. */
|
|
4104
|
+
oauth_token?: string;
|
|
4105
|
+
/** Returns response with indentations and line breaks. */
|
|
4106
|
+
prettyPrint?: boolean;
|
|
4107
|
+
/** The ID of the Cloud Platform project that the snapshot belongs to. */
|
|
4108
|
+
projectId: string;
|
|
4109
|
+
/** 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. */
|
|
4110
|
+
quotaUser?: string;
|
|
4111
|
+
/** The ID of the snapshot. */
|
|
4112
|
+
snapshotId?: string;
|
|
4113
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4114
|
+
upload_protocol?: string;
|
|
4115
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4116
|
+
uploadType?: string;
|
|
4117
|
+
}): Request<{}>;
|
|
4118
|
+
/** Send a worker_message to the service. */
|
|
4119
|
+
workerMessages(request: {
|
|
4120
|
+
/** V1 error format. */
|
|
4121
|
+
"$.xgafv"?: string;
|
|
4122
|
+
/** OAuth access token. */
|
|
4123
|
+
access_token?: string;
|
|
4124
|
+
/** Data format for response. */
|
|
4125
|
+
alt?: string;
|
|
4126
|
+
/** JSONP */
|
|
4127
|
+
callback?: string;
|
|
4128
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4129
|
+
fields?: string;
|
|
4130
|
+
/** 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. */
|
|
4131
|
+
key?: string;
|
|
4132
|
+
/** OAuth 2.0 token for the current user. */
|
|
4133
|
+
oauth_token?: string;
|
|
4134
|
+
/** Returns response with indentations and line breaks. */
|
|
4135
|
+
prettyPrint?: boolean;
|
|
4136
|
+
/** The project to send the WorkerMessages to. */
|
|
4137
|
+
projectId: string;
|
|
4138
|
+
/** 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. */
|
|
4139
|
+
quotaUser?: string;
|
|
4140
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4141
|
+
upload_protocol?: string;
|
|
4142
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4143
|
+
uploadType?: string;
|
|
4144
|
+
/** Request body */
|
|
4145
|
+
resource: SendWorkerMessagesRequest;
|
|
4146
|
+
}): Request<SendWorkerMessagesResponse>;
|
|
4147
|
+
workerMessages(request: {
|
|
4148
|
+
/** V1 error format. */
|
|
4149
|
+
"$.xgafv"?: string;
|
|
4150
|
+
/** OAuth access token. */
|
|
4151
|
+
access_token?: string;
|
|
4152
|
+
/** Data format for response. */
|
|
4153
|
+
alt?: string;
|
|
4154
|
+
/** JSONP */
|
|
4155
|
+
callback?: string;
|
|
4156
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4157
|
+
fields?: string;
|
|
4158
|
+
/** 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. */
|
|
4159
|
+
key?: string;
|
|
4160
|
+
/** OAuth 2.0 token for the current user. */
|
|
4161
|
+
oauth_token?: string;
|
|
4162
|
+
/** Returns response with indentations and line breaks. */
|
|
4163
|
+
prettyPrint?: boolean;
|
|
4164
|
+
/** The project to send the WorkerMessages to. */
|
|
4165
|
+
projectId: string;
|
|
4166
|
+
/** 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. */
|
|
4167
|
+
quotaUser?: string;
|
|
4168
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4169
|
+
upload_protocol?: string;
|
|
4170
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4171
|
+
uploadType?: string;
|
|
4172
|
+
},
|
|
4173
|
+
body: SendWorkerMessagesRequest): Request<SendWorkerMessagesResponse>;
|
|
4174
|
+
jobs: JobsResource;
|
|
4175
|
+
locations: LocationsResource;
|
|
4176
|
+
snapshots: SnapshotsResource;
|
|
4177
|
+
templates: TemplatesResource;
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
const projects: ProjectsResource;
|
|
4181
|
+
}
|
|
4182
|
+
}
|