on develop help sign in
Regenerating gogol-dataflow from latest service definition
1b1d102Brendan Hay
gen/model/dataflow/v1b3/dataflow-api.json+590−9
@@ -1,11 +1,11 @@
1{
1{
2 "kind": "discovery#restDescription",
2 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/-PCQObxeMXLhOncDOKreF3FN9IU\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/nyAIvoa96U0ZN0RtOOvIYO5jFfk\"",
4 "discoveryVersion": "v1",
4 "discoveryVersion": "v1",
5 "id": "dataflow:v1b3",
5 "id": "dataflow:v1b3",
6 "name": "dataflow",
6 "name": "dataflow",
7 "version": "v1b3",
7 "version": "v1b3",
8− "revision": "20160331",
8+ "revision": "20160923",
9 "title": "Google Dataflow API",
9 "title": "Google Dataflow API",
10 "description": "Develops and executes data processing patterns like ETL, batch computation, and continuous computation.",
10 "description": "Develops and executes data processing patterns like ETL, batch computation, and continuous computation.",
11 "ownerDomain": "google.com",
11 "ownerDomain": "google.com",
@@ -113,6 +113,56 @@
113 }
113 }
114 },
114 },
115 "schemas": {
115 "schemas": {
116+ "GetDebugConfigRequest": {
117+ "id": "GetDebugConfigRequest",
118+ "type": "object",
119+ "description": "Request to get updated debug configuration for component.",
120+ "properties": {
121+ "workerId": {
122+ "type": "string",
123+ "description": "The worker id, i.e., VM hostname."
124+ },
125+ "componentId": {
126+ "type": "string",
127+ "description": "The internal component id for which debug configuration is requested."
128+ }
129+ }
130+ },
131+ "GetDebugConfigResponse": {
132+ "id": "GetDebugConfigResponse",
133+ "type": "object",
134+ "description": "Response to a get debug configuration request.",
135+ "properties": {
136+ "config": {
137+ "type": "string",
138+ "description": "The encoded debug configuration for the requested component."
139+ }
140+ }
141+ },
142+ "SendDebugCaptureRequest": {
143+ "id": "SendDebugCaptureRequest",
144+ "type": "object",
145+ "description": "Request to send encoded debug information.",
146+ "properties": {
147+ "workerId": {
148+ "type": "string",
149+ "description": "The worker id, i.e., VM hostname."
150+ },
151+ "componentId": {
152+ "type": "string",
153+ "description": "The internal component id for which debug information is sent."
154+ },
155+ "data": {
156+ "type": "string",
157+ "description": "The encoded debug information."
158+ }
159+ }
160+ },
161+ "SendDebugCaptureResponse": {
162+ "id": "SendDebugCaptureResponse",
163+ "type": "object",
164+ "description": "Response to a send capture request. nothing"
165+ },
116 "Job": {
166 "Job": {
117 "id": "Job",
167 "id": "Job",
118 "type": "object",
168 "type": "object",
@@ -217,6 +267,13 @@
217 "items": {
267 "items": {
218 "type": "string"
268 "type": "string"
219 }
269 }
270+ },
271+ "labels": {
272+ "type": "object",
273+ "description": "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 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 \u003c= 128 bytes in size.",
274+ "additionalProperties": {
275+ "type": "string"
276+ }
220 }
277 }
221 }
278 }
222 },
279 },
@@ -280,8 +337,12 @@
280 "description": "Experimental settings.",
337 "description": "Experimental settings.",
281 "additionalProperties": {
338 "additionalProperties": {
282 "type": "any",
339 "type": "any",
283− "description": "Properties of the object. Contains field @ype with type URL."
340+ "description": "Properties of the object. Contains field @type with type URL."
284 }
341 }
342+ },
343+ "serviceAccountEmail": {
344+ "type": "string",
345+ "description": "Identity to run virtual machines as. Defaults to the default account."
285 }
346 }
286 }
347 }
287 },
348 },
@@ -378,7 +439,7 @@
378 "description": "Extra arguments for this worker pool.",
439 "description": "Extra arguments for this worker pool.",
379 "additionalProperties": {
440 "additionalProperties": {
380 "type": "any",
441 "type": "any",
381− "description": "Properties of the object. Contains field @ype with type URL."
442+ "description": "Properties of the object. Contains field @type with type URL."
382 }
443 }
383 },
444 },
384 "network": {
445 "network": {
@@ -387,7 +448,7 @@
387 },
448 },
388 "subnetwork": {
449 "subnetwork": {
389 "type": "string",
450 "type": "string",
390− "description": "Subnetwork to which VMs will be assigned, if desired. Expected to be of the form \"zones/ZONE/subnetworks/SUBNETWORK\"."
451+ "description": "Subnetwork to which VMs will be assigned, if desired. Expected to be of the form \"regions/REGION/subnetworks/SUBNETWORK\"."
391 },
452 },
392 "workerHarnessContainerImage": {
453 "workerHarnessContainerImage": {
393 "type": "string",
454 "type": "string",
@@ -397,6 +458,15 @@
397 "type": "integer",
458 "type": "integer",
398 "description": "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 batch, or 1 by convention for streaming).",
459 "description": "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 batch, or 1 by convention for streaming).",
399 "format": "int32"
460 "format": "int32"
461+ },
462+ "ipConfiguration": {
463+ "type": "string",
464+ "description": "Configuration for VM IPs.",
465+ "enum": [
466+ "WORKER_IP_UNSPECIFIED",
467+ "WORKER_IP_PUBLIC",
468+ "WORKER_IP_PRIVATE"
469+ ]
400 }
470 }
401 }
471 }
402 },
472 },
@@ -774,6 +844,24 @@
774 }
844 }
775 }
845 }
776 },
846 },
847+ "CreateJobFromTemplateRequest": {
848+ "id": "CreateJobFromTemplateRequest",
849+ "type": "object",
850+ "description": "Request to create a Dataflow job.",
851+ "properties": {
852+ "gcsPath": {
853+ "type": "string",
854+ "description": "A path to the serialized JSON representation of the job."
855+ },
856+ "parameters": {
857+ "type": "object",
858+ "description": "Dynamic parameterization of the job's runtime environment.",
859+ "additionalProperties": {
860+ "type": "string"
861+ }
862+ }
863+ }
864+ },
777 "ReportWorkItemStatusRequest": {
865 "ReportWorkItemStatusRequest": {
778 "id": "ReportWorkItemStatusRequest",
866 "id": "ReportWorkItemStatusRequest",
779 "type": "object",
867 "type": "object",
@@ -825,9 +913,16 @@
825 "$ref": "Status"
913 "$ref": "Status"
826 }
914 }
827 },
915 },
916+ "counterUpdates": {
917+ "type": "array",
918+ "description": "Worker output counters for this WorkItem.",
919+ "items": {
920+ "$ref": "CounterUpdate"
921+ }
922+ },
828 "metricUpdates": {
923 "metricUpdates": {
829 "type": "array",
924 "type": "array",
830− "description": "Worker output metrics (counters) for this WorkItem.",
925+ "description": "DEPRECATED in favor of counter_updates.",
831 "items": {
926 "items": {
832 "$ref": "MetricUpdate"
927 "$ref": "MetricUpdate"
833 }
928 }
@@ -879,12 +974,295 @@
879 "type": "object",
974 "type": "object",
880 "additionalProperties": {
975 "additionalProperties": {
881 "type": "any",
976 "type": "any",
882− "description": "Properties of the object. Contains field @ype with type URL."
977+ "description": "Properties of the object. Contains field @type with type URL."
883 }
978 }
884 }
979 }
885 }
980 }
886 }
981 }
887 },
982 },
983+ "CounterUpdate": {
984+ "id": "CounterUpdate",
985+ "type": "object",
986+ "description": "An update to a Counter sent from a worker.",
987+ "properties": {
988+ "nameAndKind": {
989+ "$ref": "NameAndKind",
990+ "description": "Counter name and aggregation type."
991+ },
992+ "shortId": {
993+ "type": "string",
994+ "description": "The service-generated short identifier for this counter. The short_id -\u003e (name, metadata) mapping is constant for the lifetime of a job.",
995+ "format": "int64"
996+ },
997+ "structuredNameAndMetadata": {
998+ "$ref": "CounterStructuredNameAndMetadata",
999+ "description": "Counter structured name and metadata."
1000+ },
1001+ "cumulative": {
1002+ "type": "boolean",
1003+ "description": "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 this counter is reported as a delta."
1004+ },
1005+ "integer": {
1006+ "$ref": "SplitInt64",
1007+ "description": "Integer value for Sum, Max, Min."
1008+ },
1009+ "floatingPoint": {
1010+ "type": "number",
1011+ "description": "Floating point value for Sum, Max, Min.",
1012+ "format": "double"
1013+ },
1014+ "boolean": {
1015+ "type": "boolean",
1016+ "description": "Boolean value for And, Or."
1017+ },
1018+ "integerMean": {
1019+ "$ref": "IntegerMean",
1020+ "description": "Integer mean aggregation value for Mean."
1021+ },
1022+ "floatingPointMean": {
1023+ "$ref": "FloatingPointMean",
1024+ "description": "Floating point mean aggregation value for Mean."
1025+ },
1026+ "integerList": {
1027+ "$ref": "IntegerList",
1028+ "description": "List of integers, for Set."
1029+ },
1030+ "floatingPointList": {
1031+ "$ref": "FloatingPointList",
1032+ "description": "List of floating point numbers, for Set."
1033+ },
1034+ "stringList": {
1035+ "$ref": "StringList",
1036+ "description": "List of strings, for Set."
1037+ },
1038+ "internal": {
1039+ "type": "any",
1040+ "description": "Value for internally-defined counters used by the Dataflow service."
1041+ }
1042+ }
1043+ },
1044+ "NameAndKind": {
1045+ "id": "NameAndKind",
1046+ "type": "object",
1047+ "description": "Basic metadata about a counter.",
1048+ "properties": {
1049+ "name": {
1050+ "type": "string",
1051+ "description": "Name of the counter."
1052+ },
1053+ "kind": {
1054+ "type": "string",
1055+ "description": "Counter aggregation kind.",
1056+ "enum": [
1057+ "INVALID",
1058+ "SUM",
1059+ "MAX",
1060+ "MIN",
1061+ "MEAN",
1062+ "OR",
1063+ "AND",
1064+ "SET"
1065+ ]
1066+ }
1067+ }
1068+ },
1069+ "CounterStructuredNameAndMetadata": {
1070+ "id": "CounterStructuredNameAndMetadata",
1071+ "type": "object",
1072+ "description": "A single message which encapsulates structured name and metadata for a given counter.",
1073+ "properties": {
1074+ "name": {
1075+ "$ref": "CounterStructuredName",
1076+ "description": "Structured name of the counter."
1077+ },
1078+ "metadata": {
1079+ "$ref": "CounterMetadata",
1080+ "description": "Metadata associated with a counter"
1081+ }
1082+ }
1083+ },
1084+ "CounterStructuredName": {
1085+ "id": "CounterStructuredName",
1086+ "type": "object",
1087+ "description": "Identifies a counter within a per-job namespace. Counters whose structured names are the same get merged into a single value for the job.",
1088+ "properties": {
1089+ "name": {
1090+ "type": "string",
1091+ "description": "Counter name. Not necessarily globally-unique, but unique within the context of the other fields. Required."
1092+ },
1093+ "standardOrigin": {
1094+ "type": "string",
1095+ "description": "One of the standard Origins defined above.",
1096+ "enum": [
1097+ "DATAFLOW",
1098+ "USER"
1099+ ]
1100+ },
1101+ "otherOrigin": {
1102+ "type": "string",
1103+ "description": "A string containing the origin of the counter."
1104+ },
1105+ "originalStepName": {
1106+ "type": "string",
1107+ "description": "System generated name of the original step in the user's graph, before optimization."
1108+ },
1109+ "componentStepName": {
1110+ "type": "string",
1111+ "description": "Name of the optimized step being executed by the workers."
1112+ },
1113+ "executionStepName": {
1114+ "type": "string",
1115+ "description": "Name of the stage. An execution step contains multiple component steps."
1116+ },
1117+ "workerId": {
1118+ "type": "string",
1119+ "description": "ID of a particular worker."
1120+ },
1121+ "portion": {
1122+ "type": "string",
1123+ "description": "Portion of this counter, either key or value.",
1124+ "enum": [
1125+ "ALL",
1126+ "KEY",
1127+ "VALUE"
1128+ ]
1129+ }
1130+ }
1131+ },
1132+ "CounterMetadata": {
1133+ "id": "CounterMetadata",
1134+ "type": "object",
1135+ "description": "CounterMetadata includes all static non-name non-value counter attributes.",
1136+ "properties": {
1137+ "kind": {
1138+ "type": "string",
1139+ "description": "Counter aggregation kind.",
1140+ "enum": [
1141+ "INVALID",
1142+ "SUM",
1143+ "MAX",
1144+ "MIN",
1145+ "MEAN",
1146+ "OR",
1147+ "AND",
1148+ "SET"
1149+ ]
1150+ },
1151+ "description": {
1152+ "type": "string",
1153+ "description": "Human-readable description of the counter semantics."
1154+ },
1155+ "standardUnits": {
1156+ "type": "string",
1157+ "description": "System defined Units, see above enum.",
1158+ "enum": [
1159+ "BYTES",
1160+ "BYTES_PER_SEC",
1161+ "MILLISECONDS",
1162+ "MICROSECONDS",
1163+ "NANOSECONDS",
1164+ "TIMESTAMP_MSEC",
1165+ "TIMESTAMP_USEC",
1166+ "TIMESTAMP_NSEC"
1167+ ]
1168+ },
1169+ "otherUnits": {
1170+ "type": "string",
1171+ "description": "A string referring to the unit type."
1172+ }
1173+ }
1174+ },
1175+ "SplitInt64": {
1176+ "id": "SplitInt64",
1177+ "type": "object",
1178+ "description": "A representation of an int64, n, that is immune to precision loss when encoded in JSON.",
1179+ "properties": {
1180+ "lowBits": {
1181+ "type": "integer",
1182+ "description": "The low order bits: n & 0xffffffff.",
1183+ "format": "uint32"
1184+ },
1185+ "highBits": {
1186+ "type": "integer",
1187+ "description": "The high order bits, including the sign: n \u003e\u003e 32.",
1188+ "format": "int32"
1189+ }
1190+ }
1191+ },
1192+ "IntegerMean": {
1193+ "id": "IntegerMean",
1194+ "type": "object",
1195+ "description": "A representation of an integer mean metric contribution.",
1196+ "properties": {
1197+ "sum": {
1198+ "$ref": "SplitInt64",
1199+ "description": "The sum of all values being aggregated."
1200+ },
1201+ "count": {
1202+ "$ref": "SplitInt64",
1203+ "description": "The number of values being aggregated."
1204+ }
1205+ }
1206+ },
1207+ "FloatingPointMean": {
1208+ "id": "FloatingPointMean",
1209+ "type": "object",
1210+ "description": "A representation of a floating point mean metric contribution.",
1211+ "properties": {
1212+ "sum": {
1213+ "type": "number",
1214+ "description": "The sum of all values being aggregated.",
1215+ "format": "double"
1216+ },
1217+ "count": {
1218+ "$ref": "SplitInt64",
1219+ "description": "The number of values being aggregated."
1220+ }
1221+ }
1222+ },
1223+ "IntegerList": {
1224+ "id": "IntegerList",
1225+ "type": "object",
1226+ "description": "A metric value representing a list of integers.",
1227+ "properties": {
1228+ "elements": {
1229+ "type": "array",
1230+ "description": "Elements of the list.",
1231+ "items": {
1232+ "$ref": "SplitInt64"
1233+ }
1234+ }
1235+ }
1236+ },
1237+ "FloatingPointList": {
1238+ "id": "FloatingPointList",
1239+ "type": "object",
1240+ "description": "A metric value representing a list of floating point numbers.",
1241+ "properties": {
1242+ "elements": {
1243+ "type": "array",
1244+ "description": "Elements of the list.",
1245+ "items": {
1246+ "type": "number",
1247+ "format": "double"
1248+ }
1249+ }
1250+ }
1251+ },
1252+ "StringList": {
1253+ "id": "StringList",
1254+ "type": "object",
1255+ "description": "A metric value representing a list of strings.",
1256+ "properties": {
1257+ "elements": {
1258+ "type": "array",
1259+ "description": "Elements of the list.",
1260+ "items": {
1261+ "type": "string"
1262+ }
1263+ }
1264+ }
1265+ },
888 "ApproximateReportedProgress": {
1266 "ApproximateReportedProgress": {
889 "id": "ApproximateReportedProgress",
1267 "id": "ApproximateReportedProgress",
890 "type": "object",
1268 "type": "object",
@@ -901,11 +1279,11 @@
901 },
1279 },
902 "remainingParallelism": {
1280 "remainingParallelism": {
903 "$ref": "ReportedParallelism",
1281 "$ref": "ReportedParallelism",
904− "description": "Total amount of parallelism in the input of this WorkItem that has not been consumed yet (i.e. can be delegated to a new WorkItem via dynamic splitting). \"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 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 format where a block of records has to be read as a whole, but different blocks can be read in parallel. Examples: * If we have read 30 records out of 50 in a perfectly splittable 50-record input, this value should be 20. * If we are reading through block 3 in a block-compressed file consisting of 5 blocks, this value should be 2 (since blocks 4 and 5 can be processed in parallel by new work items via dynamic splitting). * If we are reading through the last block in a block-compressed file, or reading or processing the last record in a perfectly splittable input, this value should be 0, because the remainder of the work item cannot be further split."
1282+ "description": "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 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 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 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 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 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 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 additional remainder can be split off."
905 },
1283 },
906 "consumedParallelism": {
1284 "consumedParallelism": {
907 "$ref": "ReportedParallelism",
1285 "$ref": "ReportedParallelism",
908− "description": "Total amount of parallelism in the portion of input of this work item that has already been consumed. In the first two examples above (see remaining_parallelism), the value should be 30 or 3 respectively. The sum of remaining_parallelism and consumed_parallelism should equal the total amount of parallelism in this work item. If specified, must be finite."
1286+ "description": "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), 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, must be finite."
909 }
1287 }
910 }
1288 }
911 },
1289 },
@@ -1236,6 +1614,13 @@
1236 "description": "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.",
1614 "description": "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.",
1237 "format": "int64"
1615 "format": "int64"
1238 },
1616 },
1617+ "metricShortId": {
1618+ "type": "array",
1619+ "description": "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 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.",
1620+ "items": {
1621+ "$ref": "MetricShortId"
1622+ }
1623+ },
1239 "suggestedStopPosition": {
1624 "suggestedStopPosition": {
1240 "$ref": "Position",
1625 "$ref": "Position",
1241 "description": "Obsolete, always empty."
1626 "description": "Obsolete, always empty."
@@ -1262,6 +1647,23 @@
1262 }
1647 }
1263 }
1648 }
1264 },
1649 },
1650+ "MetricShortId": {
1651+ "id": "MetricShortId",
1652+ "type": "object",
1653+ "description": "The metric short id is returned to the user alongside an offset into ReportWorkItemStatusRequest",
1654+ "properties": {
1655+ "metricIndex": {
1656+ "type": "integer",
1657+ "description": "The index of the corresponding metric in the ReportWorkItemStatusRequest. Required.",
1658+ "format": "int32"
1659+ },
1660+ "shortId": {
1661+ "type": "string",
1662+ "description": "The service-generated short identifier for the metric.",
1663+ "format": "int64"
1664+ }
1665+ }
1666+ },
1265 "LeaseWorkItemRequest": {
1667 "LeaseWorkItemRequest": {
1266 "id": "LeaseWorkItemRequest",
1668 "id": "LeaseWorkItemRequest",
1267 "type": "object",
1669 "type": "object",
@@ -1358,6 +1760,10 @@
1358 "$ref": "StreamingComputationTask",
1760 "$ref": "StreamingComputationTask",
1359 "description": "Additional information for StreamingComputationTask WorkItems."
1761 "description": "Additional information for StreamingComputationTask WorkItems."
1360 },
1762 },
1763+ "streamingConfigTask": {
1764+ "$ref": "StreamingConfigTask",
1765+ "description": "Additional information for StreamingConfigTask WorkItems."
1766+ },
1361 "reportStatusInterval": {
1767 "reportStatusInterval": {
1362 "type": "string",
1768 "type": "string",
1363 "description": "Recommended reporting interval."
1769 "description": "Recommended reporting interval."
@@ -1412,6 +1818,10 @@
1412 "type": "string",
1818 "type": "string",
1413 "description": "User-provided name of this operation."
1819 "description": "User-provided name of this operation."
1414 },
1820 },
1821+ "originalName": {
1822+ "type": "string",
1823+ "description": "System-defined name for the operation in the original workflow graph."
1824+ },
1415 "read": {
1825 "read": {
1416 "$ref": "ReadInstruction",
1826 "$ref": "ReadInstruction",
1417 "description": "Additional information for Read instructions."
1827 "description": "Additional information for Read instructions."
@@ -1613,6 +2023,14 @@
1613 "items": {
2023 "items": {
1614 "$ref": "SideInputInfo"
2024 "$ref": "SideInputInfo"
1615 }
2025 }
2026+ },
2027+ "originalCombineValuesStepName": {
2028+ "type": "string",
2029+ "description": "If this instruction includes a combining function, this is the name of the CombineValues instruction lifted into this instruction."
2030+ },
2031+ "originalCombineValuesInputStoreName": {
2032+ "type": "string",
2033+ "description": "If this instruction includes a combining function this is the name of the intermediate store between the GBK and the CombineValues."
1616 }
2034 }
1617 }
2035 }
1618 },
2036 },
@@ -1643,6 +2061,10 @@
1643 "type": "string",
2061 "type": "string",
1644 "description": "System-defined name of this output. Unique across the workflow."
2062 "description": "System-defined name of this output. Unique across the workflow."
1645 },
2063 },
2064+ "originalName": {
2065+ "type": "string",
2066+ "description": "System-defined name for this output in the original workflow graph. Outputs that do not contribute to an original instruction do not set this."
2067+ },
1646 "codec": {
2068 "codec": {
1647 "type": "object",
2069 "type": "object",
1648 "description": "The codec to use to encode data being written via this output.",
2070 "description": "The codec to use to encode data being written via this output.",
@@ -1650,6 +2072,14 @@
1650 "type": "any",
2072 "type": "any",
1651 "description": "Properties of the object."
2073 "description": "Properties of the object."
1652 }
2074 }
2075+ },
2076+ "onlyCountKeyBytes": {
2077+ "type": "boolean",
2078+ "description": "For system-generated byte and mean byte metrics, certain instructions should only report the key size."
2079+ },
2080+ "onlyCountValueBytes": {
2081+ "type": "boolean",
2082+ "description": "For system-generated byte and mean byte metrics, certain instructions should only report the value size."
1653 }
2083 }
1654 }
2084 }
1655 },
2085 },
@@ -2122,6 +2552,53 @@
2122 }
2552 }
2123 }
2553 }
2124 },
2554 },
2555+ "StreamingConfigTask": {
2556+ "id": "StreamingConfigTask",
2557+ "type": "object",
2558+ "description": "A task that carries configuration information for streaming computations.",
2559+ "properties": {
2560+ "streamingComputationConfigs": {
2561+ "type": "array",
2562+ "description": "Set of computation configuration information.",
2563+ "items": {
2564+ "$ref": "StreamingComputationConfig"
2565+ }
2566+ },
2567+ "userStepToStateFamilyNameMap": {
2568+ "type": "object",
2569+ "description": "Map from user step names to state families.",
2570+ "additionalProperties": {
2571+ "type": "string"
2572+ }
2573+ }
2574+ }
2575+ },
2576+ "StreamingComputationConfig": {
2577+ "id": "StreamingComputationConfig",
2578+ "type": "object",
2579+ "description": "Configuration information for a single streaming computation.",
2580+ "properties": {
2581+ "computationId": {
2582+ "type": "string",
2583+ "description": "Unique identifier for this computation."
2584+ },
2585+ "systemName": {
2586+ "type": "string",
2587+ "description": "System defined name for this computation."
2588+ },
2589+ "stageName": {
2590+ "type": "string",
2591+ "description": "Stage name of this computation."
2592+ },
2593+ "instructions": {
2594+ "type": "array",
2595+ "description": "Instructions that comprise the computation.",
2596+ "items": {
2597+ "$ref": "ParallelInstruction"
2598+ }
2599+ }
2600+ }
2601+ },
2125 "SendWorkerMessagesRequest": {
2602 "SendWorkerMessagesRequest": {
2126 "id": "SendWorkerMessagesRequest",
2603 "id": "SendWorkerMessagesRequest",
2127 "type": "object",
2604 "type": "object",
@@ -2415,6 +2892,7 @@
2415 "type": "string",
2892 "type": "string",
2416 "description": "The kind of filter to use.",
2893 "description": "The kind of filter to use.",
2417 "enum": [
2894 "enum": [
2895+ "UNKNOWN",
2418 "ALL",
2896 "ALL",
2419 "TERMINATED",
2897 "TERMINATED",
2420 "ACTIVE"
2898 "ACTIVE"
@@ -2492,6 +2970,78 @@
2492 }
2970 }
2493 },
2971 },
2494 "resources": {
2972 "resources": {
2973+ "debug": {
2974+ "methods": {
2975+ "getConfig": {
2976+ "id": "dataflow.projects.jobs.debug.getConfig",
2977+ "path": "v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig",
2978+ "httpMethod": "POST",
2979+ "description": "Get encoded debug configuration for component. Not cacheable.",
2980+ "parameters": {
2981+ "projectId": {
2982+ "type": "string",
2983+ "description": "The project id.",
2984+ "required": true,
2985+ "location": "path"
2986+ },
2987+ "jobId": {
2988+ "type": "string",
2989+ "description": "The job id.",
2990+ "required": true,
2991+ "location": "path"
2992+ }
2993+ },
2994+ "parameterOrder": [
2995+ "projectId",
2996+ "jobId"
2997+ ],
2998+ "request": {
2999+ "$ref": "GetDebugConfigRequest"
3000+ },
3001+ "response": {
3002+ "$ref": "GetDebugConfigResponse"
3003+ },
3004+ "scopes": [
3005+ "https://www.googleapis.com/auth/cloud-platform",
3006+ "https://www.googleapis.com/auth/userinfo.email"
3007+ ]
3008+ },
3009+ "sendCapture": {
3010+ "id": "dataflow.projects.jobs.debug.sendCapture",
3011+ "path": "v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture",
3012+ "httpMethod": "POST",
3013+ "description": "Send encoded debug capture data for component.",
3014+ "parameters": {
3015+ "projectId": {
3016+ "type": "string",
3017+ "description": "The project id.",
3018+ "required": true,
3019+ "location": "path"
3020+ },
3021+ "jobId": {
3022+ "type": "string",
3023+ "description": "The job id.",
3024+ "required": true,
3025+ "location": "path"
3026+ }
3027+ },
3028+ "parameterOrder": [
3029+ "projectId",
3030+ "jobId"
3031+ ],
3032+ "request": {
3033+ "$ref": "SendDebugCaptureRequest"
3034+ },
3035+ "response": {
3036+ "$ref": "SendDebugCaptureResponse"
3037+ },
3038+ "scopes": [
3039+ "https://www.googleapis.com/auth/cloud-platform",
3040+ "https://www.googleapis.com/auth/userinfo.email"
3041+ ]
3042+ }
3043+ }
3044+ },
2495 "messages": {
3045 "messages": {
2496 "methods": {
3046 "methods": {
2497 "list": {
3047 "list": {
@@ -2634,6 +3184,37 @@
2634 }
3184 }
2635 }
3185 }
2636 }
3186 }
3187+ },
3188+ "templates": {
3189+ "methods": {
3190+ "create": {
3191+ "id": "dataflow.projects.templates.create",
3192+ "path": "v1b3/projects/{projectId}/templates",
3193+ "httpMethod": "POST",
3194+ "description": "Creates a dataflow job from a template.",
3195+ "parameters": {
3196+ "projectId": {
3197+ "type": "string",
3198+ "description": "The project which owns the job.",
3199+ "required": true,
3200+ "location": "path"
3201+ }
3202+ },
3203+ "parameterOrder": [
3204+ "projectId"
3205+ ],
3206+ "request": {
3207+ "$ref": "CreateJobFromTemplateRequest"
3208+ },
3209+ "response": {
3210+ "$ref": "Job"
3211+ },
3212+ "scopes": [
3213+ "https://www.googleapis.com/auth/cloud-platform",
3214+ "https://www.googleapis.com/auth/userinfo.email"
3215+ ]
3216+ }
3217+ }
2637 }
3218 }
2638 }
3219 }
2639 }
3220 }
gogol-dataflow/gen/Network/Google/Dataflow.hs+174−2
@@ -34,6 +34,12 @@ module Network.Google.Dataflow
34 -- ** dataflow.projects.jobs.create
34 -- ** dataflow.projects.jobs.create
35 , module Network.Google.Resource.Dataflow.Projects.Jobs.Create
35 , module Network.Google.Resource.Dataflow.Projects.Jobs.Create
36
36
37+ -- ** dataflow.projects.jobs.debug.getConfig
38+ , module Network.Google.Resource.Dataflow.Projects.Jobs.Debug.GetConfig
39+
40+ -- ** dataflow.projects.jobs.debug.sendCapture
41+ , module Network.Google.Resource.Dataflow.Projects.Jobs.Debug.SendCapture
42+
37 -- ** dataflow.projects.jobs.get
43 -- ** dataflow.projects.jobs.get
38 , module Network.Google.Resource.Dataflow.Projects.Jobs.Get
44 , module Network.Google.Resource.Dataflow.Projects.Jobs.Get
39
45
@@ -55,6 +61,9 @@ module Network.Google.Dataflow
55 -- ** dataflow.projects.jobs.workItems.reportStatus
61 -- ** dataflow.projects.jobs.workItems.reportStatus
56 , module Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
62 , module Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
57
63
64+ -- ** dataflow.projects.templates.create
65+ , module Network.Google.Resource.Dataflow.Projects.Templates.Create
66+
58 -- ** dataflow.projects.workerMessages
67 -- ** dataflow.projects.workerMessages
59 , module Network.Google.Resource.Dataflow.Projects.WorkerMessages
68 , module Network.Google.Resource.Dataflow.Projects.WorkerMessages
60
69
@@ -83,6 +92,12 @@ module Network.Google.Dataflow
83 , ssrShards
92 , ssrShards
84 , ssrOutcome
93 , ssrOutcome
85
94
95+ -- ** CreateJobFromTemplateRequest
96+ , CreateJobFromTemplateRequest
97+ , createJobFromTemplateRequest
98+ , cjftrGcsPath
99+ , cjftrParameters
100+
86 -- ** Status
101 -- ** Status
87 , Status
102 , Status
88 , status
103 , status
@@ -90,6 +105,17 @@ module Network.Google.Dataflow
90 , sCode
105 , sCode
91 , sMessage
106 , sMessage
92
107
108+ -- ** NameAndKind
109+ , NameAndKind
110+ , nameAndKind
111+ , nakKind
112+ , nakName
113+
114+ -- ** IntegerList
115+ , IntegerList
116+ , integerList
117+ , ilElements
118+
93 -- ** WorkItem
119 -- ** WorkItem
94 , WorkItem
120 , WorkItem
95 , workItem
121 , workItem
@@ -106,6 +132,7 @@ module Network.Google.Dataflow
106 , wiProjectId
132 , wiProjectId
107 , wiLeaseExpireTime
133 , wiLeaseExpireTime
108 , wiConfiguration
134 , wiConfiguration
135+ , wiStreamingConfigTask
109 , wiSeqMapTask
136 , wiSeqMapTask
110
137
111 -- ** WorkerHealthReport
138 -- ** WorkerHealthReport
@@ -141,9 +168,12 @@ module Network.Google.Dataflow
141 -- ** InstructionOutput
168 -- ** InstructionOutput
142 , InstructionOutput
169 , InstructionOutput
143 , instructionOutput
170 , instructionOutput
171+ , ioOnlyCountValueBytes
144 , ioCodec
172 , ioCodec
145 , ioName
173 , ioName
146 , ioSystemName
174 , ioSystemName
175+ , ioOriginalName
176+ , ioOnlyCountKeyBytes
147
177
148 -- ** ReportWorkItemStatusRequest
178 -- ** ReportWorkItemStatusRequest
149 , ReportWorkItemStatusRequest
179 , ReportWorkItemStatusRequest
@@ -163,11 +193,25 @@ module Network.Google.Dataflow
163 , sCodec
193 , sCodec
164 , sSpec
194 , sSpec
165
195
196+ -- ** StringList
197+ , StringList
198+ , stringList
199+ , slElements
200+
166 -- ** WorkerHealthReportResponse
201 -- ** WorkerHealthReportResponse
167 , WorkerHealthReportResponse
202 , WorkerHealthReportResponse
168 , workerHealthReportResponse
203 , workerHealthReportResponse
169 , whrrReportInterval
204 , whrrReportInterval
170
205
206+ -- ** SendDebugCaptureResponse
207+ , SendDebugCaptureResponse
208+ , sendDebugCaptureResponse
209+
210+ -- ** JobLabels
211+ , JobLabels
212+ , jobLabels
213+ , jlAddtional
214+
171 -- ** MetricStructuredName
215 -- ** MetricStructuredName
172 , MetricStructuredName
216 , MetricStructuredName
173 , metricStructuredName
217 , metricStructuredName
@@ -175,6 +219,18 @@ module Network.Google.Dataflow
175 , msnContext
219 , msnContext
176 , msnName
220 , msnName
177
221
222+ -- ** CounterStructuredName
223+ , CounterStructuredName
224+ , counterStructuredName
225+ , csnStandardOrigin
226+ , csnComponentStepName
227+ , csnOtherOrigin
228+ , csnPortion
229+ , csnOriginalStepName
230+ , csnName
231+ , csnExecutionStepName
232+ , csnWorkerId
233+
178 -- ** WriteInstruction
234 -- ** WriteInstruction
179 , WriteInstruction
235 , WriteInstruction
180 , writeInstruction
236 , writeInstruction
@@ -221,6 +277,7 @@ module Network.Google.Dataflow
221 , eVersion
277 , eVersion
222 , eInternalExperiments
278 , eInternalExperiments
223 , eTempStoragePrefix
279 , eTempStoragePrefix
280+ , eServiceAccountEmail
224 , eUserAgent
281 , eUserAgent
225 , eSdkPipelineOptions
282 , eSdkPipelineOptions
226
283
@@ -235,6 +292,23 @@ module Network.Google.Dataflow
235 , metricStructuredNameContext
292 , metricStructuredNameContext
236 , msncAddtional
293 , msncAddtional
237
294
295+ -- ** CounterUpdate
296+ , CounterUpdate
297+ , counterUpdate
298+ , cuNameAndKind
299+ , cuIntegerList
300+ , cuFloatingPoint
301+ , cuInternal
302+ , cuStringList
303+ , cuShortId
304+ , cuCumulative
305+ , cuStructuredNameAndMetadata
306+ , cuFloatingPointMean
307+ , cuIntegerMean
308+ , cuBoolean
309+ , cuFloatingPointList
310+ , cuInteger
311+
238 -- ** StreamingStageLocation
312 -- ** StreamingStageLocation
239 , StreamingStageLocation
313 , StreamingStageLocation
240 , streamingStageLocation
314 , streamingStageLocation
@@ -252,6 +326,13 @@ module Network.Google.Dataflow
252 , jmMetrics
326 , jmMetrics
253 , jmMetricTime
327 , jmMetricTime
254
328
329+ -- ** SendDebugCaptureRequest
330+ , SendDebugCaptureRequest
331+ , sendDebugCaptureRequest
332+ , sdcrData
333+ , sdcrComponentId
334+ , sdcrWorkerId
335+
255 -- ** WorkItemStatus
336 -- ** WorkItemStatus
256 , WorkItemStatus
337 , WorkItemStatus
257 , workItemStatus
338 , workItemStatus
@@ -265,6 +346,7 @@ module Network.Google.Dataflow
265 , wisReportIndex
346 , wisReportIndex
266 , wisRequestedLeaseDuration
347 , wisRequestedLeaseDuration
267 , wisErrors
348 , wisErrors
349+ , wisCounterUpdates
268 , wisMetricUpdates
350 , wisMetricUpdates
269 , wisWorkItemId
351 , wisWorkItemId
270
352
@@ -329,11 +411,25 @@ module Network.Google.Dataflow
329 , trsParallelWorkerSettings
411 , trsParallelWorkerSettings
330 , trsLanguageHint
412 , trsLanguageHint
331
413
414+ -- ** StreamingComputationConfig
415+ , StreamingComputationConfig
416+ , streamingComputationConfig
417+ , sccInstructions
418+ , sccSystemName
419+ , sccComputationId
420+ , sccStageName
421+
332 -- ** EnvironmentSdkPipelineOptions
422 -- ** EnvironmentSdkPipelineOptions
333 , EnvironmentSdkPipelineOptions
423 , EnvironmentSdkPipelineOptions
334 , environmentSdkPipelineOptions
424 , environmentSdkPipelineOptions
335 , espoAddtional
425 , espoAddtional
336
426
427+ -- ** FloatingPointMean
428+ , FloatingPointMean
429+ , floatingPointMean
430+ , fpmCount
431+ , fpmSum
432+
337 -- ** LeaseWorkItemRequest
433 -- ** LeaseWorkItemRequest
338 , LeaseWorkItemRequest
434 , LeaseWorkItemRequest
339 , leaseWorkItemRequest
435 , leaseWorkItemRequest
@@ -391,6 +487,12 @@ module Network.Google.Dataflow
391 , asrFractionConsumed
487 , asrFractionConsumed
392 , asrPosition
488 , asrPosition
393
489
490+ -- ** SplitInt64
491+ , SplitInt64
492+ , splitInt64
493+ , siHighBits
494+ , siLowBits
495+
394 -- ** WorkerSettings
496 -- ** WorkerSettings
395 , WorkerSettings
497 , WorkerSettings
396 , workerSettings
498 , workerSettings
@@ -401,6 +503,11 @@ module Network.Google.Dataflow
401 , wsReportingEnabled
503 , wsReportingEnabled
402 , wsWorkerId
504 , wsWorkerId
403
505
506+ -- ** GetDebugConfigResponse
507+ , GetDebugConfigResponse
508+ , getDebugConfigResponse
509+ , gdcrConfig
510+
404 -- ** WorkItemServiceStateHarnessData
511 -- ** WorkItemServiceStateHarnessData
405 , WorkItemServiceStateHarnessData
512 , WorkItemServiceStateHarnessData
406 , workItemServiceStateHarnessData
513 , workItemServiceStateHarnessData
@@ -417,6 +524,11 @@ module Network.Google.Dataflow
417 , workerMessageResponse
524 , workerMessageResponse
418 , wmrWorkerHealthReportResponse
525 , wmrWorkerHealthReportResponse
419
526
527+ -- ** CreateJobFromTemplateRequestParameters
528+ , CreateJobFromTemplateRequestParameters
529+ , createJobFromTemplateRequestParameters
530+ , cjftrpAddtional
531+
420 -- ** WorkItemServiceState
532 -- ** WorkItemServiceState
421 , WorkItemServiceState
533 , WorkItemServiceState
422 , workItemServiceState
534 , workItemServiceState
@@ -427,6 +539,7 @@ module Network.Google.Dataflow
427 , wissSuggestedStopPosition
539 , wissSuggestedStopPosition
428 , wissLeaseExpireTime
540 , wissLeaseExpireTime
429 , wissSplitRequest
541 , wissSplitRequest
542+ , wissMetricShortId
430
543
431 -- ** StreamingSetupTask
544 -- ** StreamingSetupTask
432 , StreamingSetupTask
545 , StreamingSetupTask
@@ -458,6 +571,12 @@ module Network.Google.Dataflow
458 , sinkCodec
571 , sinkCodec
459 , scAddtional
572 , scAddtional
460
573
574+ -- ** IntegerMean
575+ , IntegerMean
576+ , integerMean
577+ , imCount
578+ , imSum
579+
461 -- ** WorkerHealthReportPodsItem
580 -- ** WorkerHealthReportPodsItem
462 , WorkerHealthReportPodsItem
581 , WorkerHealthReportPodsItem
463 , workerHealthReportPodsItem
582 , workerHealthReportPodsItem
@@ -486,6 +605,14 @@ module Network.Google.Dataflow
486 , workerPoolPoolArgs
605 , workerPoolPoolArgs
487 , wppaAddtional
606 , wppaAddtional
488
607
608+ -- ** CounterMetadata
609+ , CounterMetadata
610+ , counterMetadata
611+ , cmKind
612+ , cmDescription
613+ , cmStandardUnits
614+ , cmOtherUnits
615+
489 -- ** SendWorkerMessagesResponse
616 -- ** SendWorkerMessagesResponse
490 , SendWorkerMessagesResponse
617 , SendWorkerMessagesResponse
491 , sendWorkerMessagesResponse
618 , sendWorkerMessagesResponse
@@ -497,6 +624,18 @@ module Network.Google.Dataflow
497 , ssilTag
624 , ssilTag
498 , ssilStateFamily
625 , ssilStateFamily
499
626
627+ -- ** GetDebugConfigRequest
628+ , GetDebugConfigRequest
629+ , getDebugConfigRequest
630+ , gdcrComponentId
631+ , gdcrWorkerId
632+
633+ -- ** CounterStructuredNameAndMetadata
634+ , CounterStructuredNameAndMetadata
635+ , counterStructuredNameAndMetadata
636+ , csnamName
637+ , csnamMetadata
638+
500 -- ** StreamingComputationTask
639 -- ** StreamingComputationTask
501 , StreamingComputationTask
640 , StreamingComputationTask
502 , streamingComputationTask
641 , streamingComputationTask
@@ -547,6 +686,7 @@ module Network.Google.Dataflow
547 , jName
686 , jName
548 , jTransformNameMApping
687 , jTransformNameMApping
549 , jId
688 , jId
689+ , jLabels
550 , jProjectId
690 , jProjectId
551 , jType
691 , jType
552 , jCurrentStateTime
692 , jCurrentStateTime
@@ -582,6 +722,7 @@ module Network.Google.Dataflow
582 , wpNumWorkers
722 , wpNumWorkers
583 , wpNetwork
723 , wpNetwork
584 , wpZone
724 , wpZone
725+ , wpIPConfiguration
585 , wpPackages
726 , wpPackages
586 , wpOnHostMaintenance
727 , wpOnHostMaintenance
587 , wpDiskSourceImage
728 , wpDiskSourceImage
@@ -688,7 +829,9 @@ module Network.Google.Dataflow
688 , pgbkiValueCombiningFn
829 , pgbkiValueCombiningFn
689 , pgbkiSideInputs
830 , pgbkiSideInputs
690 , pgbkiInput
831 , pgbkiInput
832+ , pgbkiOriginalCombineValuesStepName
691 , pgbkiInputElementCodec
833 , pgbkiInputElementCodec
834+ , pgbkiOriginalCombineValuesInputStoreName
692
835
693 -- ** ParDoInstruction
836 -- ** ParDoInstruction
694 , ParDoInstruction
837 , ParDoInstruction
@@ -720,12 +863,25 @@ module Network.Google.Dataflow
720 , piName
863 , piName
721 , piSystemName
864 , piSystemName
722 , piFlatten
865 , piFlatten
866+ , piOriginalName
723
867
724 -- ** SideInputInfoKind
868 -- ** SideInputInfoKind
725 , SideInputInfoKind
869 , SideInputInfoKind
726 , sideInputInfoKind
870 , sideInputInfoKind
727 , siikAddtional
871 , siikAddtional
728
872
873+ -- ** StreamingConfigTask
874+ , StreamingConfigTask
875+ , streamingConfigTask
876+ , sctUserStepToStateFamilyNameMap
877+ , sctStreamingComputationConfigs
878+
879+ -- ** MetricShortId
880+ , MetricShortId
881+ , metricShortId
882+ , msiShortId
883+ , msiMetricIndex
884+
729 -- ** SendWorkerMessagesRequest
885 -- ** SendWorkerMessagesRequest
730 , SendWorkerMessagesRequest
886 , SendWorkerMessagesRequest
731 , sendWorkerMessagesRequest
887 , sendWorkerMessagesRequest
@@ -789,6 +945,11 @@ module Network.Google.Dataflow
789 , plTopic
945 , plTopic
790 , plSubscription
946 , plSubscription
791
947
948+ -- ** FloatingPointList
949+ , FloatingPointList
950+ , floatingPointList
951+ , fplElements
952+
792 -- ** InstructionInput
953 -- ** InstructionInput
793 , InstructionInput
954 , InstructionInput
794 , instructionInput
955 , instructionInput
@@ -805,6 +966,11 @@ module Network.Google.Dataflow
805 , smtStageName
966 , smtStageName
806 , smtUserFn
967 , smtUserFn
807
968
969+ -- ** StreamingConfigTaskUserStepToStateFamilyNameMap
970+ , StreamingConfigTaskUserStepToStateFamilyNameMap
971+ , streamingConfigTaskUserStepToStateFamilyNameMap
972+ , sctustsfnmAddtional
973+
808 -- ** SourceOperationRequest
974 -- ** SourceOperationRequest
809 , SourceOperationRequest
975 , SourceOperationRequest
810 , sourceOperationRequest
976 , sourceOperationRequest
@@ -830,6 +996,8 @@ module Network.Google.Dataflow
830import Network.Google.Dataflow.Types
996import Network.Google.Dataflow.Types
831import Network.Google.Prelude
997import Network.Google.Prelude
832import Network.Google.Resource.Dataflow.Projects.Jobs.Create
998import Network.Google.Resource.Dataflow.Projects.Jobs.Create
999+import Network.Google.Resource.Dataflow.Projects.Jobs.Debug.GetConfig
1000+import Network.Google.Resource.Dataflow.Projects.Jobs.Debug.SendCapture
833import Network.Google.Resource.Dataflow.Projects.Jobs.Get
1001import Network.Google.Resource.Dataflow.Projects.Jobs.Get
834import Network.Google.Resource.Dataflow.Projects.Jobs.GetMetrics
1002import Network.Google.Resource.Dataflow.Projects.Jobs.GetMetrics
835import Network.Google.Resource.Dataflow.Projects.Jobs.List
1003import Network.Google.Resource.Dataflow.Projects.Jobs.List
@@ -837,6 +1005,7 @@ import Network.Google.Resource.Dataflow.Projects.Jobs.Messages.List
837import Network.Google.Resource.Dataflow.Projects.Jobs.Update
1005import Network.Google.Resource.Dataflow.Projects.Jobs.Update
838import Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.Lease
1006import Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.Lease
839import Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
1007import Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
1008+import Network.Google.Resource.Dataflow.Projects.Templates.Create
840import Network.Google.Resource.Dataflow.Projects.WorkerMessages
1009import Network.Google.Resource.Dataflow.Projects.WorkerMessages
841
1010
842{- $resources
1011{- $resources
@@ -845,8 +1014,11 @@ TODO
845
1014
846-- | Represents the entirety of the methods and resources available for the Google Dataflow API service.
1015-- | Represents the entirety of the methods and resources available for the Google Dataflow API service.
847type DataflowAPI =
1016type DataflowAPI =
1017+ ProjectsTemplatesCreateResource :<|>
1018+ ProjectsJobsDebugGetConfigResource
1019+ :<|> ProjectsJobsDebugSendCaptureResource
848− ProjectsJobsWorkItemsLeaseResource :<|>
1020+ :<|> ProjectsJobsWorkItemsLeaseResource
849− ProjectsJobsWorkItemsReportStatusResource
1021+ :<|> ProjectsJobsWorkItemsReportStatusResource
850 :<|> ProjectsJobsMessagesListResource
1022 :<|> ProjectsJobsMessagesListResource
851 :<|> ProjectsJobsListResource
1023 :<|> ProjectsJobsListResource
852 :<|> ProjectsJobsGetResource
1024 :<|> ProjectsJobsGetResource
gogol-dataflow/gen/Network/Google/Dataflow/Types.hs+157
@@ -46,6 +46,12 @@ module Network.Google.Dataflow.Types
46 , ssrShards
46 , ssrShards
47 , ssrOutcome
47 , ssrOutcome
48
48
49+ -- * CreateJobFromTemplateRequest
50+ , CreateJobFromTemplateRequest
51+ , createJobFromTemplateRequest
52+ , cjftrGcsPath
53+ , cjftrParameters
54+
49 -- * Status
55 -- * Status
50 , Status
56 , Status
51 , status
57 , status
@@ -53,6 +59,17 @@ module Network.Google.Dataflow.Types
53 , sCode
59 , sCode
54 , sMessage
60 , sMessage
55
61
62+ -- * NameAndKind
63+ , NameAndKind
64+ , nameAndKind
65+ , nakKind
66+ , nakName
67+
68+ -- * IntegerList
69+ , IntegerList
70+ , integerList
71+ , ilElements
72+
56 -- * WorkItem
73 -- * WorkItem
57 , WorkItem
74 , WorkItem
58 , workItem
75 , workItem
@@ -69,6 +86,7 @@ module Network.Google.Dataflow.Types
69 , wiProjectId
86 , wiProjectId
70 , wiLeaseExpireTime
87 , wiLeaseExpireTime
71 , wiConfiguration
88 , wiConfiguration
89+ , wiStreamingConfigTask
72 , wiSeqMapTask
90 , wiSeqMapTask
73
91
74 -- * WorkerHealthReport
92 -- * WorkerHealthReport
@@ -104,9 +122,12 @@ module Network.Google.Dataflow.Types
104 -- * InstructionOutput
122 -- * InstructionOutput
105 , InstructionOutput
123 , InstructionOutput
106 , instructionOutput
124 , instructionOutput
125+ , ioOnlyCountValueBytes
107 , ioCodec
126 , ioCodec
108 , ioName
127 , ioName
109 , ioSystemName
128 , ioSystemName
129+ , ioOriginalName
130+ , ioOnlyCountKeyBytes
110
131
111 -- * ReportWorkItemStatusRequest
132 -- * ReportWorkItemStatusRequest
112 , ReportWorkItemStatusRequest
133 , ReportWorkItemStatusRequest
@@ -126,11 +147,25 @@ module Network.Google.Dataflow.Types
126 , sCodec
147 , sCodec
127 , sSpec
148 , sSpec
128
149
150+ -- * StringList
151+ , StringList
152+ , stringList
153+ , slElements
154+
129 -- * WorkerHealthReportResponse
155 -- * WorkerHealthReportResponse
130 , WorkerHealthReportResponse
156 , WorkerHealthReportResponse
131 , workerHealthReportResponse
157 , workerHealthReportResponse
132 , whrrReportInterval
158 , whrrReportInterval
133
159
160+ -- * SendDebugCaptureResponse
161+ , SendDebugCaptureResponse
162+ , sendDebugCaptureResponse
163+
164+ -- * JobLabels
165+ , JobLabels
166+ , jobLabels
167+ , jlAddtional
168+
134 -- * MetricStructuredName
169 -- * MetricStructuredName
135 , MetricStructuredName
170 , MetricStructuredName
136 , metricStructuredName
171 , metricStructuredName
@@ -138,6 +173,18 @@ module Network.Google.Dataflow.Types
138 , msnContext
173 , msnContext
139 , msnName
174 , msnName
140
175
176+ -- * CounterStructuredName
177+ , CounterStructuredName
178+ , counterStructuredName
179+ , csnStandardOrigin
180+ , csnComponentStepName
181+ , csnOtherOrigin
182+ , csnPortion
183+ , csnOriginalStepName
184+ , csnName
185+ , csnExecutionStepName
186+ , csnWorkerId
187+
141 -- * WriteInstruction
188 -- * WriteInstruction
142 , WriteInstruction
189 , WriteInstruction
143 , writeInstruction
190 , writeInstruction
@@ -184,6 +231,7 @@ module Network.Google.Dataflow.Types
184 , eVersion
231 , eVersion
185 , eInternalExperiments
232 , eInternalExperiments
186 , eTempStoragePrefix
233 , eTempStoragePrefix
234+ , eServiceAccountEmail
187 , eUserAgent
235 , eUserAgent
188 , eSdkPipelineOptions
236 , eSdkPipelineOptions
189
237
@@ -198,6 +246,23 @@ module Network.Google.Dataflow.Types
198 , metricStructuredNameContext
246 , metricStructuredNameContext
199 , msncAddtional
247 , msncAddtional
200
248
249+ -- * CounterUpdate
250+ , CounterUpdate
251+ , counterUpdate
252+ , cuNameAndKind
253+ , cuIntegerList
254+ , cuFloatingPoint
255+ , cuInternal
256+ , cuStringList
257+ , cuShortId
258+ , cuCumulative
259+ , cuStructuredNameAndMetadata
260+ , cuFloatingPointMean
261+ , cuIntegerMean
262+ , cuBoolean
263+ , cuFloatingPointList
264+ , cuInteger
265+
201 -- * StreamingStageLocation
266 -- * StreamingStageLocation
202 , StreamingStageLocation
267 , StreamingStageLocation
203 , streamingStageLocation
268 , streamingStageLocation
@@ -215,6 +280,13 @@ module Network.Google.Dataflow.Types
215 , jmMetrics
280 , jmMetrics
216 , jmMetricTime
281 , jmMetricTime
217
282
283+ -- * SendDebugCaptureRequest
284+ , SendDebugCaptureRequest
285+ , sendDebugCaptureRequest
286+ , sdcrData
287+ , sdcrComponentId
288+ , sdcrWorkerId
289+
218 -- * WorkItemStatus
290 -- * WorkItemStatus
219 , WorkItemStatus
291 , WorkItemStatus
220 , workItemStatus
292 , workItemStatus
@@ -228,6 +300,7 @@ module Network.Google.Dataflow.Types
228 , wisReportIndex
300 , wisReportIndex
229 , wisRequestedLeaseDuration
301 , wisRequestedLeaseDuration
230 , wisErrors
302 , wisErrors
303+ , wisCounterUpdates
231 , wisMetricUpdates
304 , wisMetricUpdates
232 , wisWorkItemId
305 , wisWorkItemId
233
306
@@ -292,11 +365,25 @@ module Network.Google.Dataflow.Types
292 , trsParallelWorkerSettings
365 , trsParallelWorkerSettings
293 , trsLanguageHint
366 , trsLanguageHint
294
367
368+ -- * StreamingComputationConfig
369+ , StreamingComputationConfig
370+ , streamingComputationConfig
371+ , sccInstructions
372+ , sccSystemName
373+ , sccComputationId
374+ , sccStageName
375+
295 -- * EnvironmentSdkPipelineOptions
376 -- * EnvironmentSdkPipelineOptions
296 , EnvironmentSdkPipelineOptions
377 , EnvironmentSdkPipelineOptions
297 , environmentSdkPipelineOptions
378 , environmentSdkPipelineOptions
298 , espoAddtional
379 , espoAddtional
299
380
381+ -- * FloatingPointMean
382+ , FloatingPointMean
383+ , floatingPointMean
384+ , fpmCount
385+ , fpmSum
386+
300 -- * LeaseWorkItemRequest
387 -- * LeaseWorkItemRequest
301 , LeaseWorkItemRequest
388 , LeaseWorkItemRequest
302 , leaseWorkItemRequest
389 , leaseWorkItemRequest
@@ -354,6 +441,12 @@ module Network.Google.Dataflow.Types
354 , asrFractionConsumed
441 , asrFractionConsumed
355 , asrPosition
442 , asrPosition
356
443
444+ -- * SplitInt64
445+ , SplitInt64
446+ , splitInt64
447+ , siHighBits
448+ , siLowBits
449+
357 -- * WorkerSettings
450 -- * WorkerSettings
358 , WorkerSettings
451 , WorkerSettings
359 , workerSettings
452 , workerSettings
@@ -364,6 +457,11 @@ module Network.Google.Dataflow.Types
364 , wsReportingEnabled
457 , wsReportingEnabled
365 , wsWorkerId
458 , wsWorkerId
366
459
460+ -- * GetDebugConfigResponse
461+ , GetDebugConfigResponse
462+ , getDebugConfigResponse
463+ , gdcrConfig
464+
367 -- * WorkItemServiceStateHarnessData
465 -- * WorkItemServiceStateHarnessData
368 , WorkItemServiceStateHarnessData
466 , WorkItemServiceStateHarnessData
369 , workItemServiceStateHarnessData
467 , workItemServiceStateHarnessData
@@ -380,6 +478,11 @@ module Network.Google.Dataflow.Types
380 , workerMessageResponse
478 , workerMessageResponse
381 , wmrWorkerHealthReportResponse
479 , wmrWorkerHealthReportResponse
382
480
481+ -- * CreateJobFromTemplateRequestParameters
482+ , CreateJobFromTemplateRequestParameters
483+ , createJobFromTemplateRequestParameters
484+ , cjftrpAddtional
485+
383 -- * WorkItemServiceState
486 -- * WorkItemServiceState
384 , WorkItemServiceState
487 , WorkItemServiceState
385 , workItemServiceState
488 , workItemServiceState
@@ -390,6 +493,7 @@ module Network.Google.Dataflow.Types
390 , wissSuggestedStopPosition
493 , wissSuggestedStopPosition
391 , wissLeaseExpireTime
494 , wissLeaseExpireTime
392 , wissSplitRequest
495 , wissSplitRequest
496+ , wissMetricShortId
393
497
394 -- * StreamingSetupTask
498 -- * StreamingSetupTask
395 , StreamingSetupTask
499 , StreamingSetupTask
@@ -421,6 +525,12 @@ module Network.Google.Dataflow.Types
421 , sinkCodec
525 , sinkCodec
422 , scAddtional
526 , scAddtional
423
527
528+ -- * IntegerMean
529+ , IntegerMean
530+ , integerMean
531+ , imCount
532+ , imSum
533+
424 -- * WorkerHealthReportPodsItem
534 -- * WorkerHealthReportPodsItem
425 , WorkerHealthReportPodsItem
535 , WorkerHealthReportPodsItem
426 , workerHealthReportPodsItem
536 , workerHealthReportPodsItem
@@ -449,6 +559,14 @@ module Network.Google.Dataflow.Types
449 , workerPoolPoolArgs
559 , workerPoolPoolArgs
450 , wppaAddtional
560 , wppaAddtional
451
561
562+ -- * CounterMetadata
563+ , CounterMetadata
564+ , counterMetadata
565+ , cmKind
566+ , cmDescription
567+ , cmStandardUnits
568+ , cmOtherUnits
569+
452 -- * SendWorkerMessagesResponse
570 -- * SendWorkerMessagesResponse
453 , SendWorkerMessagesResponse
571 , SendWorkerMessagesResponse
454 , sendWorkerMessagesResponse
572 , sendWorkerMessagesResponse
@@ -460,6 +578,18 @@ module Network.Google.Dataflow.Types
460 , ssilTag
578 , ssilTag
461 , ssilStateFamily
579 , ssilStateFamily
462
580
581+ -- * GetDebugConfigRequest
582+ , GetDebugConfigRequest
583+ , getDebugConfigRequest
584+ , gdcrComponentId
585+ , gdcrWorkerId
586+
587+ -- * CounterStructuredNameAndMetadata
588+ , CounterStructuredNameAndMetadata
589+ , counterStructuredNameAndMetadata
590+ , csnamName
591+ , csnamMetadata
592+
463 -- * StreamingComputationTask
593 -- * StreamingComputationTask
464 , StreamingComputationTask
594 , StreamingComputationTask
465 , streamingComputationTask
595 , streamingComputationTask
@@ -510,6 +640,7 @@ module Network.Google.Dataflow.Types
510 , jName
640 , jName
511 , jTransformNameMApping
641 , jTransformNameMApping
512 , jId
642 , jId
643+ , jLabels
513 , jProjectId
644 , jProjectId
514 , jType
645 , jType
515 , jCurrentStateTime
646 , jCurrentStateTime
@@ -545,6 +676,7 @@ module Network.Google.Dataflow.Types
545 , wpNumWorkers
676 , wpNumWorkers
546 , wpNetwork
677 , wpNetwork
547 , wpZone
678 , wpZone
679+ , wpIPConfiguration
548 , wpPackages
680 , wpPackages
549 , wpOnHostMaintenance
681 , wpOnHostMaintenance
550 , wpDiskSourceImage
682 , wpDiskSourceImage
@@ -651,7 +783,9 @@ module Network.Google.Dataflow.Types
651 , pgbkiValueCombiningFn
783 , pgbkiValueCombiningFn
652 , pgbkiSideInputs
784 , pgbkiSideInputs
653 , pgbkiInput
785 , pgbkiInput
786+ , pgbkiOriginalCombineValuesStepName
654 , pgbkiInputElementCodec
787 , pgbkiInputElementCodec
788+ , pgbkiOriginalCombineValuesInputStoreName
655
789
656 -- * ParDoInstruction
790 -- * ParDoInstruction
657 , ParDoInstruction
791 , ParDoInstruction
@@ -683,12 +817,25 @@ module Network.Google.Dataflow.Types
683 , piName
817 , piName
684 , piSystemName
818 , piSystemName
685 , piFlatten
819 , piFlatten
820+ , piOriginalName
686
821
687 -- * SideInputInfoKind
822 -- * SideInputInfoKind
688 , SideInputInfoKind
823 , SideInputInfoKind
689 , sideInputInfoKind
824 , sideInputInfoKind
690 , siikAddtional
825 , siikAddtional
691
826
827+ -- * StreamingConfigTask
828+ , StreamingConfigTask
829+ , streamingConfigTask
830+ , sctUserStepToStateFamilyNameMap
831+ , sctStreamingComputationConfigs
832+
833+ -- * MetricShortId
834+ , MetricShortId
835+ , metricShortId
836+ , msiShortId
837+ , msiMetricIndex
838+
692 -- * SendWorkerMessagesRequest
839 -- * SendWorkerMessagesRequest
693 , SendWorkerMessagesRequest
840 , SendWorkerMessagesRequest
694 , sendWorkerMessagesRequest
841 , sendWorkerMessagesRequest
@@ -752,6 +899,11 @@ module Network.Google.Dataflow.Types
752 , plTopic
899 , plTopic
753 , plSubscription
900 , plSubscription
754
901
902+ -- * FloatingPointList
903+ , FloatingPointList
904+ , floatingPointList
905+ , fplElements
906+
755 -- * InstructionInput
907 -- * InstructionInput
756 , InstructionInput
908 , InstructionInput
757 , instructionInput
909 , instructionInput
@@ -768,6 +920,11 @@ module Network.Google.Dataflow.Types
768 , smtStageName
920 , smtStageName
769 , smtUserFn
921 , smtUserFn
770
922
923+ -- * StreamingConfigTaskUserStepToStateFamilyNameMap
924+ , StreamingConfigTaskUserStepToStateFamilyNameMap
925+ , streamingConfigTaskUserStepToStateFamilyNameMap
926+ , sctustsfnmAddtional
927+
771 -- * SourceOperationRequest
928 -- * SourceOperationRequest
772 , SourceOperationRequest
929 , SourceOperationRequest
773 , sourceOperationRequest
930 , sourceOperationRequest
gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs+1434−43
@@ -239,6 +239,54 @@ instance ToJSON SourceSplitResponse where
239 ("shards" .=) <$> _ssrShards,
239 ("shards" .=) <$> _ssrShards,
240 ("outcome" .=) <$> _ssrOutcome])
240 ("outcome" .=) <$> _ssrOutcome])
241
241
242+-- | Request to create a Dataflow job.
243+--
244+-- /See:/ 'createJobFromTemplateRequest' smart constructor.
245+data CreateJobFromTemplateRequest = CreateJobFromTemplateRequest'
246+ { _cjftrGcsPath :: !(Maybe Text)
247+ , _cjftrParameters :: !(Maybe CreateJobFromTemplateRequestParameters)
248+ } deriving (Eq,Show,Data,Typeable,Generic)
249+
250+-- | Creates a value of 'CreateJobFromTemplateRequest' with the minimum fields required to make a request.
251+--
252+-- Use one of the following lenses to modify other fields as desired:
253+--
254+-- * 'cjftrGcsPath'
255+--
256+-- * 'cjftrParameters'
257+createJobFromTemplateRequest
258+ :: CreateJobFromTemplateRequest
259+createJobFromTemplateRequest =
260+ CreateJobFromTemplateRequest'
261+ { _cjftrGcsPath = Nothing
262+ , _cjftrParameters = Nothing
263+ }
264+
265+-- | A path to the serialized JSON representation of the job.
266+cjftrGcsPath :: Lens' CreateJobFromTemplateRequest (Maybe Text)
267+cjftrGcsPath
268+ = lens _cjftrGcsPath (\ s a -> s{_cjftrGcsPath = a})
269+
270+-- | Dynamic parameterization of the job\'s runtime environment.
271+cjftrParameters :: Lens' CreateJobFromTemplateRequest (Maybe CreateJobFromTemplateRequestParameters)
272+cjftrParameters
273+ = lens _cjftrParameters
274+ (\ s a -> s{_cjftrParameters = a})
275+
276+instance FromJSON CreateJobFromTemplateRequest where
277+ parseJSON
278+ = withObject "CreateJobFromTemplateRequest"
279+ (\ o ->
280+ CreateJobFromTemplateRequest' <$>
281+ (o .:? "gcsPath") <*> (o .:? "parameters"))
282+
283+instance ToJSON CreateJobFromTemplateRequest where
284+ toJSON CreateJobFromTemplateRequest'{..}
285+ = object
286+ (catMaybes
287+ [("gcsPath" .=) <$> _cjftrGcsPath,
288+ ("parameters" .=) <$> _cjftrParameters])
289+
242-- | The \`Status\` type defines a logical error model that is suitable for
290-- | The \`Status\` type defines a logical error model that is suitable for
243-- different programming environments, including REST APIs and RPC APIs. It
291-- different programming environments, including REST APIs and RPC APIs. It
244-- is used by [gRPC](https:\/\/github.com\/grpc). The error model is
292-- is used by [gRPC](https:\/\/github.com\/grpc). The error model is
@@ -336,6 +384,86 @@ instance ToJSON Status where
336 ("code" .=) <$> _sCode,
384 ("code" .=) <$> _sCode,
337 ("message" .=) <$> _sMessage])
385 ("message" .=) <$> _sMessage])
338
386
387+-- | Basic metadata about a counter.
388+--
389+-- /See:/ 'nameAndKind' smart constructor.
390+data NameAndKind = NameAndKind'
391+ { _nakKind :: !(Maybe Text)
392+ , _nakName :: !(Maybe Text)
393+ } deriving (Eq,Show,Data,Typeable,Generic)
394+
395+-- | Creates a value of 'NameAndKind' with the minimum fields required to make a request.
396+--
397+-- Use one of the following lenses to modify other fields as desired:
398+--
399+-- * 'nakKind'
400+--
401+-- * 'nakName'
402+nameAndKind
403+ :: NameAndKind
404+nameAndKind =
405+ NameAndKind'
406+ { _nakKind = Nothing
407+ , _nakName = Nothing
408+ }
409+
410+-- | Counter aggregation kind.
411+nakKind :: Lens' NameAndKind (Maybe Text)
412+nakKind = lens _nakKind (\ s a -> s{_nakKind = a})
413+
414+-- | Name of the counter.
415+nakName :: Lens' NameAndKind (Maybe Text)
416+nakName = lens _nakName (\ s a -> s{_nakName = a})
417+
418+instance FromJSON NameAndKind where
419+ parseJSON
420+ = withObject "NameAndKind"
421+ (\ o ->
422+ NameAndKind' <$> (o .:? "kind") <*> (o .:? "name"))
423+
424+instance ToJSON NameAndKind where
425+ toJSON NameAndKind'{..}
426+ = object
427+ (catMaybes
428+ [("kind" .=) <$> _nakKind, ("name" .=) <$> _nakName])
429+
430+-- | A metric value representing a list of integers.
431+--
432+-- /See:/ 'integerList' smart constructor.
433+newtype IntegerList = IntegerList'
434+ { _ilElements :: Maybe [SplitInt64]
435+ } deriving (Eq,Show,Data,Typeable,Generic)
436+
437+-- | Creates a value of 'IntegerList' with the minimum fields required to make a request.
438+--
439+-- Use one of the following lenses to modify other fields as desired:
440+--
441+-- * 'ilElements'
442+integerList
443+ :: IntegerList
444+integerList =
445+ IntegerList'
446+ { _ilElements = Nothing
447+ }
448+
449+-- | Elements of the list.
450+ilElements :: Lens' IntegerList [SplitInt64]
451+ilElements
452+ = lens _ilElements (\ s a -> s{_ilElements = a}) .
453+ _Default
454+ . _Coerce
455+
456+instance FromJSON IntegerList where
457+ parseJSON
458+ = withObject "IntegerList"
459+ (\ o ->
460+ IntegerList' <$> (o .:? "elements" .!= mempty))
461+
462+instance ToJSON IntegerList where
463+ toJSON IntegerList'{..}
464+ = object
465+ (catMaybes [("elements" .=) <$> _ilElements])
466+
339-- | WorkItem represents basic information about a WorkItem to be executed in
467-- | WorkItem represents basic information about a WorkItem to be executed in
340-- the cloud.
468-- the cloud.
341--
469--
@@ -354,6 +482,7 @@ data WorkItem = WorkItem'
354 , _wiProjectId :: !(Maybe Text)
482 , _wiProjectId :: !(Maybe Text)
355 , _wiLeaseExpireTime :: !(Maybe Text)
483 , _wiLeaseExpireTime :: !(Maybe Text)
356 , _wiConfiguration :: !(Maybe Text)
484 , _wiConfiguration :: !(Maybe Text)
485+ , _wiStreamingConfigTask :: !(Maybe StreamingConfigTask)
357 , _wiSeqMapTask :: !(Maybe SeqMapTask)
486 , _wiSeqMapTask :: !(Maybe SeqMapTask)
358 } deriving (Eq,Show,Data,Typeable,Generic)
487 } deriving (Eq,Show,Data,Typeable,Generic)
359
488
@@ -387,6 +516,8 @@ data WorkItem = WorkItem'
387--
516--
388-- * 'wiConfiguration'
517-- * 'wiConfiguration'
389--
518--
519+-- * 'wiStreamingConfigTask'
520+--
390-- * 'wiSeqMapTask'
521-- * 'wiSeqMapTask'
391workItem
522workItem
392 :: WorkItem
523 :: WorkItem
@@ -405,6 +536,7 @@ workItem =
405 , _wiProjectId = Nothing
536 , _wiProjectId = Nothing
406 , _wiLeaseExpireTime = Nothing
537 , _wiLeaseExpireTime = Nothing
407 , _wiConfiguration = Nothing
538 , _wiConfiguration = Nothing
539+ , _wiStreamingConfigTask = Nothing
408 , _wiSeqMapTask = Nothing
540 , _wiSeqMapTask = Nothing
409 }
541 }
410
542
@@ -484,6 +616,12 @@ wiConfiguration
484 = lens _wiConfiguration
616 = lens _wiConfiguration
485 (\ s a -> s{_wiConfiguration = a})
617 (\ s a -> s{_wiConfiguration = a})
486
618
619+-- | Additional information for StreamingConfigTask WorkItems.
620+wiStreamingConfigTask :: Lens' WorkItem (Maybe StreamingConfigTask)
621+wiStreamingConfigTask
622+ = lens _wiStreamingConfigTask
623+ (\ s a -> s{_wiStreamingConfigTask = a})
624+
487-- | Additional information for SeqMapTask WorkItems.
625-- | Additional information for SeqMapTask WorkItems.
488wiSeqMapTask :: Lens' WorkItem (Maybe SeqMapTask)
626wiSeqMapTask :: Lens' WorkItem (Maybe SeqMapTask)
489wiSeqMapTask
627wiSeqMapTask
@@ -506,6 +644,7 @@ instance FromJSON WorkItem where
506 <*> (o .:? "projectId")
644 <*> (o .:? "projectId")
507 <*> (o .:? "leaseExpireTime")
645 <*> (o .:? "leaseExpireTime")
508 <*> (o .:? "configuration")
646 <*> (o .:? "configuration")
647+ <*> (o .:? "streamingConfigTask")
509 <*> (o .:? "seqMapTask"))
648 <*> (o .:? "seqMapTask"))
510
649
511instance ToJSON WorkItem where
650instance ToJSON WorkItem where
@@ -528,6 +667,8 @@ instance ToJSON WorkItem where
528 ("projectId" .=) <$> _wiProjectId,
667 ("projectId" .=) <$> _wiProjectId,
529 ("leaseExpireTime" .=) <$> _wiLeaseExpireTime,
668 ("leaseExpireTime" .=) <$> _wiLeaseExpireTime,
530 ("configuration" .=) <$> _wiConfiguration,
669 ("configuration" .=) <$> _wiConfiguration,
670+ ("streamingConfigTask" .=) <$>
671+ _wiStreamingConfigTask,
531 ("seqMapTask" .=) <$> _wiSeqMapTask])
672 ("seqMapTask" .=) <$> _wiSeqMapTask])
532
673
533-- | WorkerHealthReport contains information about the health of a worker.
674-- | WorkerHealthReport contains information about the health of a worker.
@@ -793,29 +934,48 @@ instance ToJSON JobExecutionStageInfo where
793--
934--
794-- /See:/ 'instructionOutput' smart constructor.
935-- /See:/ 'instructionOutput' smart constructor.
795data InstructionOutput = InstructionOutput'
936data InstructionOutput = InstructionOutput'
937+ { _ioOnlyCountValueBytes :: !(Maybe Bool)
796− { _ioCodec :: !(Maybe InstructionOutputCodec)
938+ , _ioCodec :: !(Maybe InstructionOutputCodec)
797− , _ioName :: !(Maybe Text)
939+ , _ioName :: !(Maybe Text)
798− , _ioSystemName :: !(Maybe Text)
940+ , _ioSystemName :: !(Maybe Text)
941+ , _ioOriginalName :: !(Maybe Text)
942+ , _ioOnlyCountKeyBytes :: !(Maybe Bool)
799 } deriving (Eq,Show,Data,Typeable,Generic)
943 } deriving (Eq,Show,Data,Typeable,Generic)
800
944
801-- | Creates a value of 'InstructionOutput' with the minimum fields required to make a request.
945-- | Creates a value of 'InstructionOutput' with the minimum fields required to make a request.
802--
946--
803-- Use one of the following lenses to modify other fields as desired:
947-- Use one of the following lenses to modify other fields as desired:
804--
948--
949+-- * 'ioOnlyCountValueBytes'
950+--
805-- * 'ioCodec'
951-- * 'ioCodec'
806--
952--
807-- * 'ioName'
953-- * 'ioName'
808--
954--
809-- * 'ioSystemName'
955-- * 'ioSystemName'
956+--
957+-- * 'ioOriginalName'
958+--
959+-- * 'ioOnlyCountKeyBytes'
810instructionOutput
960instructionOutput
811 :: InstructionOutput
961 :: InstructionOutput
812instructionOutput =
962instructionOutput =
813 InstructionOutput'
963 InstructionOutput'
964+ { _ioOnlyCountValueBytes = Nothing
814− { _ioCodec = Nothing
965+ , _ioCodec = Nothing
815 , _ioName = Nothing
966 , _ioName = Nothing
816 , _ioSystemName = Nothing
967 , _ioSystemName = Nothing
968+ , _ioOriginalName = Nothing
969+ , _ioOnlyCountKeyBytes = Nothing
817 }
970 }
818
971
972+-- | For system-generated byte and mean byte metrics, certain instructions
973+-- should only report the value size.
974+ioOnlyCountValueBytes :: Lens' InstructionOutput (Maybe Bool)
975+ioOnlyCountValueBytes
976+ = lens _ioOnlyCountValueBytes
977+ (\ s a -> s{_ioOnlyCountValueBytes = a})
978+
819-- | The codec to use to encode data being written via this output.
979-- | The codec to use to encode data being written via this output.
820ioCodec :: Lens' InstructionOutput (Maybe InstructionOutputCodec)
980ioCodec :: Lens' InstructionOutput (Maybe InstructionOutputCodec)
821ioCodec = lens _ioCodec (\ s a -> s{_ioCodec = a})
981ioCodec = lens _ioCodec (\ s a -> s{_ioCodec = a})
@@ -829,20 +989,42 @@ ioSystemName :: Lens' InstructionOutput (Maybe Text)
829ioSystemName
989ioSystemName
830 = lens _ioSystemName (\ s a -> s{_ioSystemName = a})
990 = lens _ioSystemName (\ s a -> s{_ioSystemName = a})
831
991
992+-- | System-defined name for this output in the original workflow graph.
993+-- Outputs that do not contribute to an original instruction do not set
994+-- this.
995+ioOriginalName :: Lens' InstructionOutput (Maybe Text)
996+ioOriginalName
997+ = lens _ioOriginalName
998+ (\ s a -> s{_ioOriginalName = a})
999+
1000+-- | For system-generated byte and mean byte metrics, certain instructions
1001+-- should only report the key size.
1002+ioOnlyCountKeyBytes :: Lens' InstructionOutput (Maybe Bool)
1003+ioOnlyCountKeyBytes
1004+ = lens _ioOnlyCountKeyBytes
1005+ (\ s a -> s{_ioOnlyCountKeyBytes = a})
1006+
832instance FromJSON InstructionOutput where
1007instance FromJSON InstructionOutput where
833 parseJSON
1008 parseJSON
834 = withObject "InstructionOutput"
1009 = withObject "InstructionOutput"
835 (\ o ->
1010 (\ o ->
836 InstructionOutput' <$>
1011 InstructionOutput' <$>
1012+ (o .:? "onlyCountValueBytes") <*> (o .:? "codec") <*>
837− (o .:? "codec") <*> (o .:? "name") <*>
1013+ (o .:? "name")
838− (o .:? "systemName"))
1014+ <*> (o .:? "systemName")
1015+ <*> (o .:? "originalName")
1016+ <*> (o .:? "onlyCountKeyBytes"))
839
1017
840instance ToJSON InstructionOutput where
1018instance ToJSON InstructionOutput where
841 toJSON InstructionOutput'{..}
1019 toJSON InstructionOutput'{..}
842 = object
1020 = object
843 (catMaybes
1021 (catMaybes
1022+ [("onlyCountValueBytes" .=) <$>
1023+ _ioOnlyCountValueBytes,
844− [("codec" .=) <$> _ioCodec, ("name" .=) <$> _ioName,
1024+ ("codec" .=) <$> _ioCodec, ("name" .=) <$> _ioName,
845− ("systemName" .=) <$> _ioSystemName])
1025+ ("systemName" .=) <$> _ioSystemName,
1026+ ("originalName" .=) <$> _ioOriginalName,
1027+ ("onlyCountKeyBytes" .=) <$> _ioOnlyCountKeyBytes])
846
1028
847-- | Request to report the status of WorkItems.
1029-- | Request to report the status of WorkItems.
848--
1030--
@@ -991,6 +1173,43 @@ instance ToJSON Sink where
991 (catMaybes
1173 (catMaybes
992 [("codec" .=) <$> _sCodec, ("spec" .=) <$> _sSpec])
1174 [("codec" .=) <$> _sCodec, ("spec" .=) <$> _sSpec])
993
1175
1176+-- | A metric value representing a list of strings.
1177+--
1178+-- /See:/ 'stringList' smart constructor.
1179+newtype StringList = StringList'
1180+ { _slElements :: Maybe [Text]
1181+ } deriving (Eq,Show,Data,Typeable,Generic)
1182+
1183+-- | Creates a value of 'StringList' with the minimum fields required to make a request.
1184+--
1185+-- Use one of the following lenses to modify other fields as desired:
1186+--
1187+-- * 'slElements'
1188+stringList
1189+ :: StringList
1190+stringList =
1191+ StringList'
1192+ { _slElements = Nothing
1193+ }
1194+
1195+-- | Elements of the list.
1196+slElements :: Lens' StringList [Text]
1197+slElements
1198+ = lens _slElements (\ s a -> s{_slElements = a}) .
1199+ _Default
1200+ . _Coerce
1201+
1202+instance FromJSON StringList where
1203+ parseJSON
1204+ = withObject "StringList"
1205+ (\ o ->
1206+ StringList' <$> (o .:? "elements" .!= mempty))
1207+
1208+instance ToJSON StringList where
1209+ toJSON StringList'{..}
1210+ = object
1211+ (catMaybes [("elements" .=) <$> _slElements])
1212+
994-- | WorkerHealthReportResponse contains information returned to the worker
1213-- | WorkerHealthReportResponse contains information returned to the worker
995-- in response to a health ping.
1214-- in response to a health ping.
996--
1215--
@@ -1032,6 +1251,65 @@ instance ToJSON WorkerHealthReportResponse where
1032 (catMaybes
1251 (catMaybes
1033 [("reportInterval" .=) <$> _whrrReportInterval])
1252 [("reportInterval" .=) <$> _whrrReportInterval])
1034
1253
1254+-- | Response to a send capture request. nothing
1255+--
1256+-- /See:/ 'sendDebugCaptureResponse' smart constructor.
1257+data SendDebugCaptureResponse =
1258+ SendDebugCaptureResponse'
1259+ deriving (Eq,Show,Data,Typeable,Generic)
1260+
1261+-- | Creates a value of 'SendDebugCaptureResponse' with the minimum fields required to make a request.
1262+--
1263+sendDebugCaptureResponse
1264+ :: SendDebugCaptureResponse
1265+sendDebugCaptureResponse = SendDebugCaptureResponse'
1266+
1267+instance FromJSON SendDebugCaptureResponse where
1268+ parseJSON
1269+ = withObject "SendDebugCaptureResponse"
1270+ (\ o -> pure SendDebugCaptureResponse')
1271+
1272+instance ToJSON SendDebugCaptureResponse where
1273+ toJSON = const emptyObject
1274+
1275+-- | User-defined labels for this job. The labels map can contain no more
1276+-- than 64 entries. Entries of the labels map are UTF8 strings that comply
1277+-- with the following restrictions: * Keys must conform to regexp:
1278+-- \\p{Ll}\\p{Lo}{0,62} * Values must conform to regexp:
1279+-- [\\p{Ll}\\p{Lo}\\p{N}_-]{0,63} * Both keys and values are additionally
1280+-- constrained to be \<= 128 bytes in size.
1281+--
1282+-- /See:/ 'jobLabels' smart constructor.
1283+newtype JobLabels = JobLabels'
1284+ { _jlAddtional :: HashMap Text Text
1285+ } deriving (Eq,Show,Data,Typeable,Generic)
1286+
1287+-- | Creates a value of 'JobLabels' with the minimum fields required to make a request.
1288+--
1289+-- Use one of the following lenses to modify other fields as desired:
1290+--
1291+-- * 'jlAddtional'
1292+jobLabels
1293+ :: HashMap Text Text -- ^ 'jlAddtional'
1294+ -> JobLabels
1295+jobLabels pJlAddtional_ =
1296+ JobLabels'
1297+ { _jlAddtional = _Coerce # pJlAddtional_
1298+ }
1299+
1300+jlAddtional :: Lens' JobLabels (HashMap Text Text)
1301+jlAddtional
1302+ = lens _jlAddtional (\ s a -> s{_jlAddtional = a}) .
1303+ _Coerce
1304+
1305+instance FromJSON JobLabels where
1306+ parseJSON
1307+ = withObject "JobLabels"
1308+ (\ o -> JobLabels' <$> (parseJSONObject o))
1309+
1310+instance ToJSON JobLabels where
1311+ toJSON = toJSON . _jlAddtional
1312+
1035-- | Identifies a metric, by describing the source which generated the
1313-- | Identifies a metric, by describing the source which generated the
1036-- metric.
1314-- metric.
1037--
1315--
@@ -1095,6 +1373,128 @@ instance ToJSON MetricStructuredName where
1095 ("context" .=) <$> _msnContext,
1373 ("context" .=) <$> _msnContext,
1096 ("name" .=) <$> _msnName])
1374 ("name" .=) <$> _msnName])
1097
1375
1376+-- | Identifies a counter within a per-job namespace. Counters whose
1377+-- structured names are the same get merged into a single value for the
1378+-- job.
1379+--
1380+-- /See:/ 'counterStructuredName' smart constructor.
1381+data CounterStructuredName = CounterStructuredName'
1382+ { _csnStandardOrigin :: !(Maybe Text)
1383+ , _csnComponentStepName :: !(Maybe Text)
1384+ , _csnOtherOrigin :: !(Maybe Text)
1385+ , _csnPortion :: !(Maybe Text)
1386+ , _csnOriginalStepName :: !(Maybe Text)
1387+ , _csnName :: !(Maybe Text)
1388+ , _csnExecutionStepName :: !(Maybe Text)
1389+ , _csnWorkerId :: !(Maybe Text)
1390+ } deriving (Eq,Show,Data,Typeable,Generic)
1391+
1392+-- | Creates a value of 'CounterStructuredName' with the minimum fields required to make a request.
1393+--
1394+-- Use one of the following lenses to modify other fields as desired:
1395+--
1396+-- * 'csnStandardOrigin'
1397+--
1398+-- * 'csnComponentStepName'
1399+--
1400+-- * 'csnOtherOrigin'
1401+--
1402+-- * 'csnPortion'
1403+--
1404+-- * 'csnOriginalStepName'
1405+--
1406+-- * 'csnName'
1407+--
1408+-- * 'csnExecutionStepName'
1409+--
1410+-- * 'csnWorkerId'
1411+counterStructuredName
1412+ :: CounterStructuredName
1413+counterStructuredName =
1414+ CounterStructuredName'
1415+ { _csnStandardOrigin = Nothing
1416+ , _csnComponentStepName = Nothing
1417+ , _csnOtherOrigin = Nothing
1418+ , _csnPortion = Nothing
1419+ , _csnOriginalStepName = Nothing
1420+ , _csnName = Nothing
1421+ , _csnExecutionStepName = Nothing
1422+ , _csnWorkerId = Nothing
1423+ }
1424+
1425+-- | One of the standard Origins defined above.
1426+csnStandardOrigin :: Lens' CounterStructuredName (Maybe Text)
1427+csnStandardOrigin
1428+ = lens _csnStandardOrigin
1429+ (\ s a -> s{_csnStandardOrigin = a})
1430+
1431+-- | Name of the optimized step being executed by the workers.
1432+csnComponentStepName :: Lens' CounterStructuredName (Maybe Text)
1433+csnComponentStepName
1434+ = lens _csnComponentStepName
1435+ (\ s a -> s{_csnComponentStepName = a})
1436+
1437+-- | A string containing the origin of the counter.
1438+csnOtherOrigin :: Lens' CounterStructuredName (Maybe Text)
1439+csnOtherOrigin
1440+ = lens _csnOtherOrigin
1441+ (\ s a -> s{_csnOtherOrigin = a})
1442+
1443+-- | Portion of this counter, either key or value.
1444+csnPortion :: Lens' CounterStructuredName (Maybe Text)
1445+csnPortion
1446+ = lens _csnPortion (\ s a -> s{_csnPortion = a})
1447+
1448+-- | System generated name of the original step in the user\'s graph, before
1449+-- optimization.
1450+csnOriginalStepName :: Lens' CounterStructuredName (Maybe Text)
1451+csnOriginalStepName
1452+ = lens _csnOriginalStepName
1453+ (\ s a -> s{_csnOriginalStepName = a})
1454+
1455+-- | Counter name. Not necessarily globally-unique, but unique within the
1456+-- context of the other fields. Required.
1457+csnName :: Lens' CounterStructuredName (Maybe Text)
1458+csnName = lens _csnName (\ s a -> s{_csnName = a})
1459+
1460+-- | Name of the stage. An execution step contains multiple component steps.
1461+csnExecutionStepName :: Lens' CounterStructuredName (Maybe Text)
1462+csnExecutionStepName
1463+ = lens _csnExecutionStepName
1464+ (\ s a -> s{_csnExecutionStepName = a})
1465+
1466+-- | ID of a particular worker.
1467+csnWorkerId :: Lens' CounterStructuredName (Maybe Text)
1468+csnWorkerId
1469+ = lens _csnWorkerId (\ s a -> s{_csnWorkerId = a})
1470+
1471+instance FromJSON CounterStructuredName where
1472+ parseJSON
1473+ = withObject "CounterStructuredName"
1474+ (\ o ->
1475+ CounterStructuredName' <$>
1476+ (o .:? "standardOrigin") <*>
1477+ (o .:? "componentStepName")
1478+ <*> (o .:? "otherOrigin")
1479+ <*> (o .:? "portion")
1480+ <*> (o .:? "originalStepName")
1481+ <*> (o .:? "name")
1482+ <*> (o .:? "executionStepName")
1483+ <*> (o .:? "workerId"))
1484+
1485+instance ToJSON CounterStructuredName where
1486+ toJSON CounterStructuredName'{..}
1487+ = object
1488+ (catMaybes
1489+ [("standardOrigin" .=) <$> _csnStandardOrigin,
1490+ ("componentStepName" .=) <$> _csnComponentStepName,
1491+ ("otherOrigin" .=) <$> _csnOtherOrigin,
1492+ ("portion" .=) <$> _csnPortion,
1493+ ("originalStepName" .=) <$> _csnOriginalStepName,
1494+ ("name" .=) <$> _csnName,
1495+ ("executionStepName" .=) <$> _csnExecutionStepName,
1496+ ("workerId" .=) <$> _csnWorkerId])
1497+
1098-- | An instruction that writes records. Takes one input, produces no
1498-- | An instruction that writes records. Takes one input, produces no
1099-- outputs.
1499-- outputs.
1100--
1500--
@@ -1433,6 +1833,7 @@ data Environment = Environment'
1433 , _eVersion :: !(Maybe EnvironmentVersion)
1833 , _eVersion :: !(Maybe EnvironmentVersion)
1434 , _eInternalExperiments :: !(Maybe EnvironmentInternalExperiments)
1834 , _eInternalExperiments :: !(Maybe EnvironmentInternalExperiments)
1435 , _eTempStoragePrefix :: !(Maybe Text)
1835 , _eTempStoragePrefix :: !(Maybe Text)
1836+ , _eServiceAccountEmail :: !(Maybe Text)
1436 , _eUserAgent :: !(Maybe EnvironmentUserAgent)
1837 , _eUserAgent :: !(Maybe EnvironmentUserAgent)
1437 , _eSdkPipelineOptions :: !(Maybe EnvironmentSdkPipelineOptions)
1838 , _eSdkPipelineOptions :: !(Maybe EnvironmentSdkPipelineOptions)
1438 } deriving (Eq,Show,Data,Typeable,Generic)
1839 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -1455,6 +1856,8 @@ data Environment = Environment'
1455--
1856--
1456-- * 'eTempStoragePrefix'
1857-- * 'eTempStoragePrefix'
1457--
1858--
1859+-- * 'eServiceAccountEmail'
1860+--
1458-- * 'eUserAgent'
1861-- * 'eUserAgent'
1459--
1862--
1460-- * 'eSdkPipelineOptions'
1863-- * 'eSdkPipelineOptions'
@@ -1469,6 +1872,7 @@ environment =
1469 , _eVersion = Nothing
1872 , _eVersion = Nothing
1470 , _eInternalExperiments = Nothing
1873 , _eInternalExperiments = Nothing
1471 , _eTempStoragePrefix = Nothing
1874 , _eTempStoragePrefix = Nothing
1875+ , _eServiceAccountEmail = Nothing
1472 , _eUserAgent = Nothing
1876 , _eUserAgent = Nothing
1473 , _eSdkPipelineOptions = Nothing
1877 , _eSdkPipelineOptions = Nothing
1474 }
1878 }
@@ -1527,6 +1931,12 @@ eTempStoragePrefix
1527 = lens _eTempStoragePrefix
1931 = lens _eTempStoragePrefix
1528 (\ s a -> s{_eTempStoragePrefix = a})
1932 (\ s a -> s{_eTempStoragePrefix = a})
1529
1933
1934+-- | Identity to run virtual machines as. Defaults to the default account.
1935+eServiceAccountEmail :: Lens' Environment (Maybe Text)
1936+eServiceAccountEmail
1937+ = lens _eServiceAccountEmail
1938+ (\ s a -> s{_eServiceAccountEmail = a})
1939+
1530-- | A description of the process that generated the request.
1940-- | A description of the process that generated the request.
1531eUserAgent :: Lens' Environment (Maybe EnvironmentUserAgent)
1941eUserAgent :: Lens' Environment (Maybe EnvironmentUserAgent)
1532eUserAgent
1942eUserAgent
@@ -1553,6 +1963,7 @@ instance FromJSON Environment where
1553 <*> (o .:? "version")
1963 <*> (o .:? "version")
1554 <*> (o .:? "internalExperiments")
1964 <*> (o .:? "internalExperiments")
1555 <*> (o .:? "tempStoragePrefix")
1965 <*> (o .:? "tempStoragePrefix")
1966+ <*> (o .:? "serviceAccountEmail")
1556 <*> (o .:? "userAgent")
1967 <*> (o .:? "userAgent")
1557 <*> (o .:? "sdkPipelineOptions"))
1968 <*> (o .:? "sdkPipelineOptions"))
1558
1969
@@ -1568,6 +1979,7 @@ instance ToJSON Environment where
1568 ("version" .=) <$> _eVersion,
1979 ("version" .=) <$> _eVersion,
1569 ("internalExperiments" .=) <$> _eInternalExperiments,
1980 ("internalExperiments" .=) <$> _eInternalExperiments,
1570 ("tempStoragePrefix" .=) <$> _eTempStoragePrefix,
1981 ("tempStoragePrefix" .=) <$> _eTempStoragePrefix,
1982+ ("serviceAccountEmail" .=) <$> _eServiceAccountEmail,
1571 ("userAgent" .=) <$> _eUserAgent,
1983 ("userAgent" .=) <$> _eUserAgent,
1572 ("sdkPipelineOptions" .=) <$> _eSdkPipelineOptions])
1984 ("sdkPipelineOptions" .=) <$> _eSdkPipelineOptions])
1573
1985
@@ -1660,6 +2072,188 @@ instance FromJSON MetricStructuredNameContext where
1660instance ToJSON MetricStructuredNameContext where
2072instance ToJSON MetricStructuredNameContext where
1661 toJSON = toJSON . _msncAddtional
2073 toJSON = toJSON . _msncAddtional
1662
2074
2075+-- | An update to a Counter sent from a worker.
2076+--
2077+-- /See:/ 'counterUpdate' smart constructor.
2078+data CounterUpdate = CounterUpdate'
2079+ { _cuNameAndKind :: !(Maybe NameAndKind)
2080+ , _cuIntegerList :: !(Maybe IntegerList)
2081+ , _cuFloatingPoint :: !(Maybe (Textual Double))
2082+ , _cuInternal :: !(Maybe JSONValue)
2083+ , _cuStringList :: !(Maybe StringList)
2084+ , _cuShortId :: !(Maybe (Textual Int64))
2085+ , _cuCumulative :: !(Maybe Bool)
2086+ , _cuStructuredNameAndMetadata :: !(Maybe CounterStructuredNameAndMetadata)
2087+ , _cuFloatingPointMean :: !(Maybe FloatingPointMean)
2088+ , _cuIntegerMean :: !(Maybe IntegerMean)
2089+ , _cuBoolean :: !(Maybe Bool)
2090+ , _cuFloatingPointList :: !(Maybe FloatingPointList)
2091+ , _cuInteger :: !(Maybe SplitInt64)
2092+ } deriving (Eq,Show,Data,Typeable,Generic)
2093+
2094+-- | Creates a value of 'CounterUpdate' with the minimum fields required to make a request.
2095+--
2096+-- Use one of the following lenses to modify other fields as desired:
2097+--
2098+-- * 'cuNameAndKind'
2099+--
2100+-- * 'cuIntegerList'
2101+--
2102+-- * 'cuFloatingPoint'
2103+--
2104+-- * 'cuInternal'
2105+--
2106+-- * 'cuStringList'
2107+--
2108+-- * 'cuShortId'
2109+--
2110+-- * 'cuCumulative'
2111+--
2112+-- * 'cuStructuredNameAndMetadata'
2113+--
2114+-- * 'cuFloatingPointMean'
2115+--
2116+-- * 'cuIntegerMean'
2117+--
2118+-- * 'cuBoolean'
2119+--
2120+-- * 'cuFloatingPointList'
2121+--
2122+-- * 'cuInteger'
2123+counterUpdate
2124+ :: CounterUpdate
2125+counterUpdate =
2126+ CounterUpdate'
2127+ { _cuNameAndKind = Nothing
2128+ , _cuIntegerList = Nothing
2129+ , _cuFloatingPoint = Nothing
2130+ , _cuInternal = Nothing
2131+ , _cuStringList = Nothing
2132+ , _cuShortId = Nothing
2133+ , _cuCumulative = Nothing
2134+ , _cuStructuredNameAndMetadata = Nothing
2135+ , _cuFloatingPointMean = Nothing
2136+ , _cuIntegerMean = Nothing
2137+ , _cuBoolean = Nothing
2138+ , _cuFloatingPointList = Nothing
2139+ , _cuInteger = Nothing
2140+ }
2141+
2142+-- | Counter name and aggregation type.
2143+cuNameAndKind :: Lens' CounterUpdate (Maybe NameAndKind)
2144+cuNameAndKind
2145+ = lens _cuNameAndKind
2146+ (\ s a -> s{_cuNameAndKind = a})
2147+
2148+-- | List of integers, for Set.
2149+cuIntegerList :: Lens' CounterUpdate (Maybe IntegerList)
2150+cuIntegerList
2151+ = lens _cuIntegerList
2152+ (\ s a -> s{_cuIntegerList = a})
2153+
2154+-- | Floating point value for Sum, Max, Min.
2155+cuFloatingPoint :: Lens' CounterUpdate (Maybe Double)
2156+cuFloatingPoint
2157+ = lens _cuFloatingPoint
2158+ (\ s a -> s{_cuFloatingPoint = a})
2159+ . mapping _Coerce
2160+
2161+-- | Value for internally-defined counters used by the Dataflow service.
2162+cuInternal :: Lens' CounterUpdate (Maybe JSONValue)
2163+cuInternal
2164+ = lens _cuInternal (\ s a -> s{_cuInternal = a})
2165+
2166+-- | List of strings, for Set.
2167+cuStringList :: Lens' CounterUpdate (Maybe StringList)
2168+cuStringList
2169+ = lens _cuStringList (\ s a -> s{_cuStringList = a})
2170+
2171+-- | The service-generated short identifier for this counter. The short_id ->
2172+-- (name, metadata) mapping is constant for the lifetime of a job.
2173+cuShortId :: Lens' CounterUpdate (Maybe Int64)
2174+cuShortId
2175+ = lens _cuShortId (\ s a -> s{_cuShortId = a}) .
2176+ mapping _Coerce
2177+
2178+-- | True if this counter is reported as the total cumulative aggregate value
2179+-- accumulated since the worker started working on this WorkItem. By
2180+-- default this is false, indicating that this counter is reported as a
2181+-- delta.
2182+cuCumulative :: Lens' CounterUpdate (Maybe Bool)
2183+cuCumulative
2184+ = lens _cuCumulative (\ s a -> s{_cuCumulative = a})
2185+
2186+-- | Counter structured name and metadata.
2187+cuStructuredNameAndMetadata :: Lens' CounterUpdate (Maybe CounterStructuredNameAndMetadata)
2188+cuStructuredNameAndMetadata
2189+ = lens _cuStructuredNameAndMetadata
2190+ (\ s a -> s{_cuStructuredNameAndMetadata = a})
2191+
2192+-- | Floating point mean aggregation value for Mean.
2193+cuFloatingPointMean :: Lens' CounterUpdate (Maybe FloatingPointMean)
2194+cuFloatingPointMean
2195+ = lens _cuFloatingPointMean
2196+ (\ s a -> s{_cuFloatingPointMean = a})
2197+
2198+-- | Integer mean aggregation value for Mean.
2199+cuIntegerMean :: Lens' CounterUpdate (Maybe IntegerMean)
2200+cuIntegerMean
2201+ = lens _cuIntegerMean
2202+ (\ s a -> s{_cuIntegerMean = a})
2203+
2204+-- | Boolean value for And, Or.
2205+cuBoolean :: Lens' CounterUpdate (Maybe Bool)
2206+cuBoolean
2207+ = lens _cuBoolean (\ s a -> s{_cuBoolean = a})
2208+
2209+-- | List of floating point numbers, for Set.
2210+cuFloatingPointList :: Lens' CounterUpdate (Maybe FloatingPointList)
2211+cuFloatingPointList
2212+ = lens _cuFloatingPointList
2213+ (\ s a -> s{_cuFloatingPointList = a})
2214+
2215+-- | Integer value for Sum, Max, Min.
2216+cuInteger :: Lens' CounterUpdate (Maybe SplitInt64)
2217+cuInteger
2218+ = lens _cuInteger (\ s a -> s{_cuInteger = a})
2219+
2220+instance FromJSON CounterUpdate where
2221+ parseJSON
2222+ = withObject "CounterUpdate"
2223+ (\ o ->
2224+ CounterUpdate' <$>
2225+ (o .:? "nameAndKind") <*> (o .:? "integerList") <*>
2226+ (o .:? "floatingPoint")
2227+ <*> (o .:? "internal")
2228+ <*> (o .:? "stringList")
2229+ <*> (o .:? "shortId")
2230+ <*> (o .:? "cumulative")
2231+ <*> (o .:? "structuredNameAndMetadata")
2232+ <*> (o .:? "floatingPointMean")
2233+ <*> (o .:? "integerMean")
2234+ <*> (o .:? "boolean")
2235+ <*> (o .:? "floatingPointList")
2236+ <*> (o .:? "integer"))
2237+
2238+instance ToJSON CounterUpdate where
2239+ toJSON CounterUpdate'{..}
2240+ = object
2241+ (catMaybes
2242+ [("nameAndKind" .=) <$> _cuNameAndKind,
2243+ ("integerList" .=) <$> _cuIntegerList,
2244+ ("floatingPoint" .=) <$> _cuFloatingPoint,
2245+ ("internal" .=) <$> _cuInternal,
2246+ ("stringList" .=) <$> _cuStringList,
2247+ ("shortId" .=) <$> _cuShortId,
2248+ ("cumulative" .=) <$> _cuCumulative,
2249+ ("structuredNameAndMetadata" .=) <$>
2250+ _cuStructuredNameAndMetadata,
2251+ ("floatingPointMean" .=) <$> _cuFloatingPointMean,
2252+ ("integerMean" .=) <$> _cuIntegerMean,
2253+ ("boolean" .=) <$> _cuBoolean,
2254+ ("floatingPointList" .=) <$> _cuFloatingPointList,
2255+ ("integer" .=) <$> _cuInteger])
2256+
1663-- | Identifies the location of a streaming computation stage, for
2257-- | Identifies the location of a streaming computation stage, for
1664-- stage-to-stage communication.
2258-- stage-to-stage communication.
1665--
2259--
@@ -1800,6 +2394,64 @@ instance ToJSON JobMetrics where
1800 [("metrics" .=) <$> _jmMetrics,
2394 [("metrics" .=) <$> _jmMetrics,
1801 ("metricTime" .=) <$> _jmMetricTime])
2395 ("metricTime" .=) <$> _jmMetricTime])
1802
2396
2397+-- | Request to send encoded debug information.
2398+--
2399+-- /See:/ 'sendDebugCaptureRequest' smart constructor.
2400+data SendDebugCaptureRequest = SendDebugCaptureRequest'
2401+ { _sdcrData :: !(Maybe Text)
2402+ , _sdcrComponentId :: !(Maybe Text)
2403+ , _sdcrWorkerId :: !(Maybe Text)
2404+ } deriving (Eq,Show,Data,Typeable,Generic)
2405+
2406+-- | Creates a value of 'SendDebugCaptureRequest' with the minimum fields required to make a request.
2407+--
2408+-- Use one of the following lenses to modify other fields as desired:
2409+--
2410+-- * 'sdcrData'
2411+--
2412+-- * 'sdcrComponentId'
2413+--
2414+-- * 'sdcrWorkerId'
2415+sendDebugCaptureRequest
2416+ :: SendDebugCaptureRequest
2417+sendDebugCaptureRequest =
2418+ SendDebugCaptureRequest'
2419+ { _sdcrData = Nothing
2420+ , _sdcrComponentId = Nothing
2421+ , _sdcrWorkerId = Nothing
2422+ }
2423+
2424+-- | The encoded debug information.
2425+sdcrData :: Lens' SendDebugCaptureRequest (Maybe Text)
2426+sdcrData = lens _sdcrData (\ s a -> s{_sdcrData = a})
2427+
2428+-- | The internal component id for which debug information is sent.
2429+sdcrComponentId :: Lens' SendDebugCaptureRequest (Maybe Text)
2430+sdcrComponentId
2431+ = lens _sdcrComponentId
2432+ (\ s a -> s{_sdcrComponentId = a})
2433+
2434+-- | The worker id, i.e., VM hostname.
2435+sdcrWorkerId :: Lens' SendDebugCaptureRequest (Maybe Text)
2436+sdcrWorkerId
2437+ = lens _sdcrWorkerId (\ s a -> s{_sdcrWorkerId = a})
2438+
2439+instance FromJSON SendDebugCaptureRequest where
2440+ parseJSON
2441+ = withObject "SendDebugCaptureRequest"
2442+ (\ o ->
2443+ SendDebugCaptureRequest' <$>
2444+ (o .:? "data") <*> (o .:? "componentId") <*>
2445+ (o .:? "workerId"))
2446+
2447+instance ToJSON SendDebugCaptureRequest where
2448+ toJSON SendDebugCaptureRequest'{..}
2449+ = object
2450+ (catMaybes
2451+ [("data" .=) <$> _sdcrData,
2452+ ("componentId" .=) <$> _sdcrComponentId,
2453+ ("workerId" .=) <$> _sdcrWorkerId])
2454+
1803-- | Conveys a worker\'s progress through the work described by a WorkItem.
2455-- | Conveys a worker\'s progress through the work described by a WorkItem.
1804--
2456--
1805-- /See:/ 'workItemStatus' smart constructor.
2457-- /See:/ 'workItemStatus' smart constructor.
@@ -1814,6 +2466,7 @@ data WorkItemStatus = WorkItemStatus'
1814 , _wisReportIndex :: !(Maybe (Textual Int64))
2466 , _wisReportIndex :: !(Maybe (Textual Int64))
1815 , _wisRequestedLeaseDuration :: !(Maybe Text)
2467 , _wisRequestedLeaseDuration :: !(Maybe Text)
1816 , _wisErrors :: !(Maybe [Status])
2468 , _wisErrors :: !(Maybe [Status])
2469+ , _wisCounterUpdates :: !(Maybe [CounterUpdate])
1817 , _wisMetricUpdates :: !(Maybe [MetricUpdate])
2470 , _wisMetricUpdates :: !(Maybe [MetricUpdate])
1818 , _wisWorkItemId :: !(Maybe Text)
2471 , _wisWorkItemId :: !(Maybe Text)
1819 } deriving (Eq,Show,Data,Typeable,Generic)
2472 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -1842,6 +2495,8 @@ data WorkItemStatus = WorkItemStatus'
1842--
2495--
1843-- * 'wisErrors'
2496-- * 'wisErrors'
1844--
2497--
2498+-- * 'wisCounterUpdates'
2499+--
1845-- * 'wisMetricUpdates'
2500-- * 'wisMetricUpdates'
1846--
2501--
1847-- * 'wisWorkItemId'
2502-- * 'wisWorkItemId'
@@ -1859,6 +2514,7 @@ workItemStatus =
1859 , _wisReportIndex = Nothing
2514 , _wisReportIndex = Nothing
1860 , _wisRequestedLeaseDuration = Nothing
2515 , _wisRequestedLeaseDuration = Nothing
1861 , _wisErrors = Nothing
2516 , _wisErrors = Nothing
2517+ , _wisCounterUpdates = Nothing
1862 , _wisMetricUpdates = Nothing
2518 , _wisMetricUpdates = Nothing
1863 , _wisWorkItemId = Nothing
2519 , _wisWorkItemId = Nothing
1864 }
2520 }
@@ -1958,7 +2614,15 @@ wisErrors
1958 _Default
2614 _Default
1959 . _Coerce
2615 . _Coerce
1960
2616
1961−-- | Worker output metrics (counters) for this WorkItem.
2617+-- | Worker output counters for this WorkItem.
2618+wisCounterUpdates :: Lens' WorkItemStatus [CounterUpdate]
2619+wisCounterUpdates
2620+ = lens _wisCounterUpdates
2621+ (\ s a -> s{_wisCounterUpdates = a})
2622+ . _Default
2623+ . _Coerce
2624+
2625+-- | DEPRECATED in favor of counter_updates.
1962wisMetricUpdates :: Lens' WorkItemStatus [MetricUpdate]
2626wisMetricUpdates :: Lens' WorkItemStatus [MetricUpdate]
1963wisMetricUpdates
2627wisMetricUpdates
1964 = lens _wisMetricUpdates
2628 = lens _wisMetricUpdates
@@ -1986,6 +2650,7 @@ instance FromJSON WorkItemStatus where
1986 <*> (o .:? "reportIndex")
2650 <*> (o .:? "reportIndex")
1987 <*> (o .:? "requestedLeaseDuration")
2651 <*> (o .:? "requestedLeaseDuration")
1988 <*> (o .:? "errors" .!= mempty)
2652 <*> (o .:? "errors" .!= mempty)
2653+ <*> (o .:? "counterUpdates" .!= mempty)
1989 <*> (o .:? "metricUpdates" .!= mempty)
2654 <*> (o .:? "metricUpdates" .!= mempty)
1990 <*> (o .:? "workItemId"))
2655 <*> (o .:? "workItemId"))
1991
2656
@@ -2005,6 +2670,7 @@ instance ToJSON WorkItemStatus where
2005 ("requestedLeaseDuration" .=) <$>
2670 ("requestedLeaseDuration" .=) <$>
2006 _wisRequestedLeaseDuration,
2671 _wisRequestedLeaseDuration,
2007 ("errors" .=) <$> _wisErrors,
2672 ("errors" .=) <$> _wisErrors,
2673+ ("counterUpdates" .=) <$> _wisCounterUpdates,
2008 ("metricUpdates" .=) <$> _wisMetricUpdates,
2674 ("metricUpdates" .=) <$> _wisMetricUpdates,
2009 ("workItemId" .=) <$> _wisWorkItemId])
2675 ("workItemId" .=) <$> _wisWorkItemId])
2010
2676
@@ -2311,7 +2977,7 @@ environmentInternalExperiments pEieAddtional_ =
2311 { _eieAddtional = _Coerce # pEieAddtional_
2977 { _eieAddtional = _Coerce # pEieAddtional_
2312 }
2978 }
2313
2979
2314−-- | Properties of the object. Contains field \'ype with type URL.
2980+-- | Properties of the object. Contains field \'type with type URL.
2315eieAddtional :: Lens' EnvironmentInternalExperiments (HashMap Text JSONValue)
2981eieAddtional :: Lens' EnvironmentInternalExperiments (HashMap Text JSONValue)
2316eieAddtional
2982eieAddtional
2317 = lens _eieAddtional (\ s a -> s{_eieAddtional = a})
2983 = lens _eieAddtional (\ s a -> s{_eieAddtional = a})
@@ -2596,6 +3262,81 @@ instance ToJSON TaskRunnerSettings where
2596 _trsParallelWorkerSettings,
3262 _trsParallelWorkerSettings,
2597 ("languageHint" .=) <$> _trsLanguageHint])
3263 ("languageHint" .=) <$> _trsLanguageHint])
2598
3264
3265+-- | Configuration information for a single streaming computation.
3266+--
3267+-- /See:/ 'streamingComputationConfig' smart constructor.
3268+data StreamingComputationConfig = StreamingComputationConfig'
3269+ { _sccInstructions :: !(Maybe [ParallelInstruction])
3270+ , _sccSystemName :: !(Maybe Text)
3271+ , _sccComputationId :: !(Maybe Text)
3272+ , _sccStageName :: !(Maybe Text)
3273+ } deriving (Eq,Show,Data,Typeable,Generic)
3274+
3275+-- | Creates a value of 'StreamingComputationConfig' with the minimum fields required to make a request.
3276+--
3277+-- Use one of the following lenses to modify other fields as desired:
3278+--
3279+-- * 'sccInstructions'
3280+--
3281+-- * 'sccSystemName'
3282+--
3283+-- * 'sccComputationId'
3284+--
3285+-- * 'sccStageName'
3286+streamingComputationConfig
3287+ :: StreamingComputationConfig
3288+streamingComputationConfig =
3289+ StreamingComputationConfig'
3290+ { _sccInstructions = Nothing
3291+ , _sccSystemName = Nothing
3292+ , _sccComputationId = Nothing
3293+ , _sccStageName = Nothing
3294+ }
3295+
3296+-- | Instructions that comprise the computation.
3297+sccInstructions :: Lens' StreamingComputationConfig [ParallelInstruction]
3298+sccInstructions
3299+ = lens _sccInstructions
3300+ (\ s a -> s{_sccInstructions = a})
3301+ . _Default
3302+ . _Coerce
3303+
3304+-- | System defined name for this computation.
3305+sccSystemName :: Lens' StreamingComputationConfig (Maybe Text)
3306+sccSystemName
3307+ = lens _sccSystemName
3308+ (\ s a -> s{_sccSystemName = a})
3309+
3310+-- | Unique identifier for this computation.
3311+sccComputationId :: Lens' StreamingComputationConfig (Maybe Text)
3312+sccComputationId
3313+ = lens _sccComputationId
3314+ (\ s a -> s{_sccComputationId = a})
3315+
3316+-- | Stage name of this computation.
3317+sccStageName :: Lens' StreamingComputationConfig (Maybe Text)
3318+sccStageName
3319+ = lens _sccStageName (\ s a -> s{_sccStageName = a})
3320+
3321+instance FromJSON StreamingComputationConfig where
3322+ parseJSON
3323+ = withObject "StreamingComputationConfig"
3324+ (\ o ->
3325+ StreamingComputationConfig' <$>
3326+ (o .:? "instructions" .!= mempty) <*>
3327+ (o .:? "systemName")
3328+ <*> (o .:? "computationId")
3329+ <*> (o .:? "stageName"))
3330+
3331+instance ToJSON StreamingComputationConfig where
3332+ toJSON StreamingComputationConfig'{..}
3333+ = object
3334+ (catMaybes
3335+ [("instructions" .=) <$> _sccInstructions,
3336+ ("systemName" .=) <$> _sccSystemName,
3337+ ("computationId" .=) <$> _sccComputationId,
3338+ ("stageName" .=) <$> _sccStageName])
3339+
2599-- | The Dataflow SDK pipeline options specified by the user. These options
3340-- | The Dataflow SDK pipeline options specified by the user. These options
2600-- are passed through the service and are used to recreate the SDK pipeline
3341-- are passed through the service and are used to recreate the SDK pipeline
2601-- options on the worker in a language agnostic and platform independent
3342-- options on the worker in a language agnostic and platform independent
@@ -2636,6 +3377,52 @@ instance FromJSON EnvironmentSdkPipelineOptions where
2636instance ToJSON EnvironmentSdkPipelineOptions where
3377instance ToJSON EnvironmentSdkPipelineOptions where
2637 toJSON = toJSON . _espoAddtional
3378 toJSON = toJSON . _espoAddtional
2638
3379
3380+-- | A representation of a floating point mean metric contribution.
3381+--
3382+-- /See:/ 'floatingPointMean' smart constructor.
3383+data FloatingPointMean = FloatingPointMean'
3384+ { _fpmCount :: !(Maybe SplitInt64)
3385+ , _fpmSum :: !(Maybe (Textual Double))
3386+ } deriving (Eq,Show,Data,Typeable,Generic)
3387+
3388+-- | Creates a value of 'FloatingPointMean' with the minimum fields required to make a request.
3389+--
3390+-- Use one of the following lenses to modify other fields as desired:
3391+--
3392+-- * 'fpmCount'
3393+--
3394+-- * 'fpmSum'
3395+floatingPointMean
3396+ :: FloatingPointMean
3397+floatingPointMean =
3398+ FloatingPointMean'
3399+ { _fpmCount = Nothing
3400+ , _fpmSum = Nothing
3401+ }
3402+
3403+-- | The number of values being aggregated.
3404+fpmCount :: Lens' FloatingPointMean (Maybe SplitInt64)
3405+fpmCount = lens _fpmCount (\ s a -> s{_fpmCount = a})
3406+
3407+-- | The sum of all values being aggregated.
3408+fpmSum :: Lens' FloatingPointMean (Maybe Double)
3409+fpmSum
3410+ = lens _fpmSum (\ s a -> s{_fpmSum = a}) .
3411+ mapping _Coerce
3412+
3413+instance FromJSON FloatingPointMean where
3414+ parseJSON
3415+ = withObject "FloatingPointMean"
3416+ (\ o ->
3417+ FloatingPointMean' <$>
3418+ (o .:? "count") <*> (o .:? "sum"))
3419+
3420+instance ToJSON FloatingPointMean where
3421+ toJSON FloatingPointMean'{..}
3422+ = object
3423+ (catMaybes
3424+ [("count" .=) <$> _fpmCount, ("sum" .=) <$> _fpmSum])
3425+
2639-- | Request to lease WorkItems.
3426-- | Request to lease WorkItems.
2640--
3427--
2641-- /See:/ 'leaseWorkItemRequest' smart constructor.
3428-- /See:/ 'leaseWorkItemRequest' smart constructor.
@@ -2884,7 +3671,7 @@ statusDetailsItem pSdiAddtional_ =
2884 { _sdiAddtional = _Coerce # pSdiAddtional_
3671 { _sdiAddtional = _Coerce # pSdiAddtional_
2885 }
3672 }
2886
3673
2887−-- | Properties of the object. Contains field \'ype with type URL.
3674+-- | Properties of the object. Contains field \'type with type URL.
2888sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
3675sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
2889sdiAddtional
3676sdiAddtional
2890 = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
3677 = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
@@ -3133,6 +3920,56 @@ instance ToJSON ApproximateSplitRequest where
3133 [("fractionConsumed" .=) <$> _asrFractionConsumed,
3920 [("fractionConsumed" .=) <$> _asrFractionConsumed,
3134 ("position" .=) <$> _asrPosition])
3921 ("position" .=) <$> _asrPosition])
3135
3922
3923+-- | A representation of an int64, n, that is immune to precision loss when
3924+-- encoded in JSON.
3925+--
3926+-- /See:/ 'splitInt64' smart constructor.
3927+data SplitInt64 = SplitInt64'
3928+ { _siHighBits :: !(Maybe (Textual Int32))
3929+ , _siLowBits :: !(Maybe (Textual Word32))
3930+ } deriving (Eq,Show,Data,Typeable,Generic)
3931+
3932+-- | Creates a value of 'SplitInt64' with the minimum fields required to make a request.
3933+--
3934+-- Use one of the following lenses to modify other fields as desired:
3935+--
3936+-- * 'siHighBits'
3937+--
3938+-- * 'siLowBits'
3939+splitInt64
3940+ :: SplitInt64
3941+splitInt64 =
3942+ SplitInt64'
3943+ { _siHighBits = Nothing
3944+ , _siLowBits = Nothing
3945+ }
3946+
3947+-- | The high order bits, including the sign: n >> 32.
3948+siHighBits :: Lens' SplitInt64 (Maybe Int32)
3949+siHighBits
3950+ = lens _siHighBits (\ s a -> s{_siHighBits = a}) .
3951+ mapping _Coerce
3952+
3953+-- | The low order bits: n & 0xffffffff.
3954+siLowBits :: Lens' SplitInt64 (Maybe Word32)
3955+siLowBits
3956+ = lens _siLowBits (\ s a -> s{_siLowBits = a}) .
3957+ mapping _Coerce
3958+
3959+instance FromJSON SplitInt64 where
3960+ parseJSON
3961+ = withObject "SplitInt64"
3962+ (\ o ->
3963+ SplitInt64' <$>
3964+ (o .:? "highBits") <*> (o .:? "lowBits"))
3965+
3966+instance ToJSON SplitInt64 where
3967+ toJSON SplitInt64'{..}
3968+ = object
3969+ (catMaybes
3970+ [("highBits" .=) <$> _siHighBits,
3971+ ("lowBits" .=) <$> _siLowBits])
3972+
3136-- | Provides data to pass through to the worker harness.
3973-- | Provides data to pass through to the worker harness.
3137--
3974--
3138-- /See:/ 'workerSettings' smart constructor.
3975-- /See:/ 'workerSettings' smart constructor.
@@ -3238,6 +4075,39 @@ instance ToJSON WorkerSettings where
3238 ("reportingEnabled" .=) <$> _wsReportingEnabled,
4075 ("reportingEnabled" .=) <$> _wsReportingEnabled,
3239 ("workerId" .=) <$> _wsWorkerId])
4076 ("workerId" .=) <$> _wsWorkerId])
3240
4077
4078+-- | Response to a get debug configuration request.
4079+--
4080+-- /See:/ 'getDebugConfigResponse' smart constructor.
4081+newtype GetDebugConfigResponse = GetDebugConfigResponse'
4082+ { _gdcrConfig :: Maybe Text
4083+ } deriving (Eq,Show,Data,Typeable,Generic)
4084+
4085+-- | Creates a value of 'GetDebugConfigResponse' with the minimum fields required to make a request.
4086+--
4087+-- Use one of the following lenses to modify other fields as desired:
4088+--
4089+-- * 'gdcrConfig'
4090+getDebugConfigResponse
4091+ :: GetDebugConfigResponse
4092+getDebugConfigResponse =
4093+ GetDebugConfigResponse'
4094+ { _gdcrConfig = Nothing
4095+ }
4096+
4097+-- | The encoded debug configuration for the requested component.
4098+gdcrConfig :: Lens' GetDebugConfigResponse (Maybe Text)
4099+gdcrConfig
4100+ = lens _gdcrConfig (\ s a -> s{_gdcrConfig = a})
4101+
4102+instance FromJSON GetDebugConfigResponse where
4103+ parseJSON
4104+ = withObject "GetDebugConfigResponse"
4105+ (\ o -> GetDebugConfigResponse' <$> (o .:? "config"))
4106+
4107+instance ToJSON GetDebugConfigResponse where
4108+ toJSON GetDebugConfigResponse'{..}
4109+ = object (catMaybes [("config" .=) <$> _gdcrConfig])
4110+
3241-- | Other data returned by the service, specific to the particular worker
4111-- | Other data returned by the service, specific to the particular worker
3242-- harness.
4112-- harness.
3243--
4113--
@@ -3372,6 +4242,44 @@ instance ToJSON WorkerMessageResponse where
3372 [("workerHealthReportResponse" .=) <$>
4242 [("workerHealthReportResponse" .=) <$>
3373 _wmrWorkerHealthReportResponse])
4243 _wmrWorkerHealthReportResponse])
3374
4244
4245+-- | Dynamic parameterization of the job\'s runtime environment.
4246+--
4247+-- /See:/ 'createJobFromTemplateRequestParameters' smart constructor.
4248+newtype CreateJobFromTemplateRequestParameters = CreateJobFromTemplateRequestParameters'
4249+ { _cjftrpAddtional :: HashMap Text Text
4250+ } deriving (Eq,Show,Data,Typeable,Generic)
4251+
4252+-- | Creates a value of 'CreateJobFromTemplateRequestParameters' with the minimum fields required to make a request.
4253+--
4254+-- Use one of the following lenses to modify other fields as desired:
4255+--
4256+-- * 'cjftrpAddtional'
4257+createJobFromTemplateRequestParameters
4258+ :: HashMap Text Text -- ^ 'cjftrpAddtional'
4259+ -> CreateJobFromTemplateRequestParameters
4260+createJobFromTemplateRequestParameters pCjftrpAddtional_ =
4261+ CreateJobFromTemplateRequestParameters'
4262+ { _cjftrpAddtional = _Coerce # pCjftrpAddtional_
4263+ }
4264+
4265+cjftrpAddtional :: Lens' CreateJobFromTemplateRequestParameters (HashMap Text Text)
4266+cjftrpAddtional
4267+ = lens _cjftrpAddtional
4268+ (\ s a -> s{_cjftrpAddtional = a})
4269+ . _Coerce
4270+
4271+instance FromJSON
4272+ CreateJobFromTemplateRequestParameters where
4273+ parseJSON
4274+ = withObject "CreateJobFromTemplateRequestParameters"
4275+ (\ o ->
4276+ CreateJobFromTemplateRequestParameters' <$>
4277+ (parseJSONObject o))
4278+
4279+instance ToJSON
4280+ CreateJobFromTemplateRequestParameters where
4281+ toJSON = toJSON . _cjftrpAddtional
4282+
3375-- | The Dataflow service\'s idea of the current state of a WorkItem being
4283-- | The Dataflow service\'s idea of the current state of a WorkItem being
3376-- processed by a worker.
4284-- processed by a worker.
3377--
4285--
@@ -3384,6 +4292,7 @@ data WorkItemServiceState = WorkItemServiceState'
3384 , _wissSuggestedStopPosition :: !(Maybe Position)
4292 , _wissSuggestedStopPosition :: !(Maybe Position)
3385 , _wissLeaseExpireTime :: !(Maybe Text)
4293 , _wissLeaseExpireTime :: !(Maybe Text)
3386 , _wissSplitRequest :: !(Maybe ApproximateSplitRequest)
4294 , _wissSplitRequest :: !(Maybe ApproximateSplitRequest)
4295+ , _wissMetricShortId :: !(Maybe [MetricShortId])
3387 } deriving (Eq,Show,Data,Typeable,Generic)
4296 } deriving (Eq,Show,Data,Typeable,Generic)
3388
4297
3389-- | Creates a value of 'WorkItemServiceState' with the minimum fields required to make a request.
4298-- | Creates a value of 'WorkItemServiceState' with the minimum fields required to make a request.
@@ -3403,6 +4312,8 @@ data WorkItemServiceState = WorkItemServiceState'
3403-- * 'wissLeaseExpireTime'
4312-- * 'wissLeaseExpireTime'
3404--
4313--
3405-- * 'wissSplitRequest'
4314-- * 'wissSplitRequest'
4315+--
4316+-- * 'wissMetricShortId'
3406workItemServiceState
4317workItemServiceState
3407 :: WorkItemServiceState
4318 :: WorkItemServiceState
3408workItemServiceState =
4319workItemServiceState =
@@ -3414,6 +4325,7 @@ workItemServiceState =
3414 , _wissSuggestedStopPosition = Nothing
4325 , _wissSuggestedStopPosition = Nothing
3415 , _wissLeaseExpireTime = Nothing
4326 , _wissLeaseExpireTime = Nothing
3416 , _wissSplitRequest = Nothing
4327 , _wissSplitRequest = Nothing
4328+ , _wissMetricShortId = Nothing
3417 }
4329 }
3418
4330
3419-- | The index value to use for the next report sent by the worker. Note: If
4331-- | The index value to use for the next report sent by the worker. Note: If
@@ -3463,6 +4375,18 @@ wissSplitRequest
3463 = lens _wissSplitRequest
4375 = lens _wissSplitRequest
3464 (\ s a -> s{_wissSplitRequest = a})
4376 (\ s a -> s{_wissSplitRequest = a})
3465
4377
4378+-- | The short ids that workers should use in subsequent metric updates.
4379+-- Workers should strive to use short ids whenever possible, but it is ok
4380+-- to request the short_id again if a worker lost track of it (e.g. if the
4381+-- worker is recovering from a crash). NOTE: it is possible that the
4382+-- response may have short ids for a subset of the metrics.
4383+wissMetricShortId :: Lens' WorkItemServiceState [MetricShortId]
4384+wissMetricShortId
4385+ = lens _wissMetricShortId
4386+ (\ s a -> s{_wissMetricShortId = a})
4387+ . _Default
4388+ . _Coerce
4389+
3466instance FromJSON WorkItemServiceState where
4390instance FromJSON WorkItemServiceState where
3467 parseJSON
4391 parseJSON
3468 = withObject "WorkItemServiceState"
4392 = withObject "WorkItemServiceState"
@@ -3474,7 +4398,8 @@ instance FromJSON WorkItemServiceState where
3474 <*> (o .:? "suggestedStopPoint")
4398 <*> (o .:? "suggestedStopPoint")
3475 <*> (o .:? "suggestedStopPosition")
4399 <*> (o .:? "suggestedStopPosition")
3476 <*> (o .:? "leaseExpireTime")
4400 <*> (o .:? "leaseExpireTime")
3477− <*> (o .:? "splitRequest"))
4401+ <*> (o .:? "splitRequest")
4402+ <*> (o .:? "metricShortId" .!= mempty))
3478
4403
3479instance ToJSON WorkItemServiceState where
4404instance ToJSON WorkItemServiceState where
3480 toJSON WorkItemServiceState'{..}
4405 toJSON WorkItemServiceState'{..}
@@ -3489,7 +4414,8 @@ instance ToJSON WorkItemServiceState where
3489 ("suggestedStopPosition" .=) <$>
4414 ("suggestedStopPosition" .=) <$>
3490 _wissSuggestedStopPosition,
4415 _wissSuggestedStopPosition,
3491 ("leaseExpireTime" .=) <$> _wissLeaseExpireTime,
4416 ("leaseExpireTime" .=) <$> _wissLeaseExpireTime,
3492− ("splitRequest" .=) <$> _wissSplitRequest])
4417+ ("splitRequest" .=) <$> _wissSplitRequest,
4418+ ("metricShortId" .=) <$> _wissMetricShortId])
3493
4419
3494-- | A task which initializes part of a streaming Dataflow job.
4420-- | A task which initializes part of a streaming Dataflow job.
3495--
4421--
@@ -3744,6 +4670,49 @@ instance FromJSON SinkCodec where
3744instance ToJSON SinkCodec where
4670instance ToJSON SinkCodec where
3745 toJSON = toJSON . _scAddtional
4671 toJSON = toJSON . _scAddtional
3746
4672
4673+-- | A representation of an integer mean metric contribution.
4674+--
4675+-- /See:/ 'integerMean' smart constructor.
4676+data IntegerMean = IntegerMean'
4677+ { _imCount :: !(Maybe SplitInt64)
4678+ , _imSum :: !(Maybe SplitInt64)
4679+ } deriving (Eq,Show,Data,Typeable,Generic)
4680+
4681+-- | Creates a value of 'IntegerMean' with the minimum fields required to make a request.
4682+--
4683+-- Use one of the following lenses to modify other fields as desired:
4684+--
4685+-- * 'imCount'
4686+--
4687+-- * 'imSum'
4688+integerMean
4689+ :: IntegerMean
4690+integerMean =
4691+ IntegerMean'
4692+ { _imCount = Nothing
4693+ , _imSum = Nothing
4694+ }
4695+
4696+-- | The number of values being aggregated.
4697+imCount :: Lens' IntegerMean (Maybe SplitInt64)
4698+imCount = lens _imCount (\ s a -> s{_imCount = a})
4699+
4700+-- | The sum of all values being aggregated.
4701+imSum :: Lens' IntegerMean (Maybe SplitInt64)
4702+imSum = lens _imSum (\ s a -> s{_imSum = a})
4703+
4704+instance FromJSON IntegerMean where
4705+ parseJSON
4706+ = withObject "IntegerMean"
4707+ (\ o ->
4708+ IntegerMean' <$> (o .:? "count") <*> (o .:? "sum"))
4709+
4710+instance ToJSON IntegerMean where
4711+ toJSON IntegerMean'{..}
4712+ = object
4713+ (catMaybes
4714+ [("count" .=) <$> _imCount, ("sum" .=) <$> _imSum])
4715+
3747--
4716--
3748-- /See:/ 'workerHealthReportPodsItem' smart constructor.
4717-- /See:/ 'workerHealthReportPodsItem' smart constructor.
3749newtype WorkerHealthReportPodsItem = WorkerHealthReportPodsItem'
4718newtype WorkerHealthReportPodsItem = WorkerHealthReportPodsItem'
@@ -3948,7 +4917,7 @@ workerPoolPoolArgs pWppaAddtional_ =
3948 { _wppaAddtional = _Coerce # pWppaAddtional_
4917 { _wppaAddtional = _Coerce # pWppaAddtional_
3949 }
4918 }
3950
4919
3951−-- | Properties of the object. Contains field \'ype with type URL.
4920+-- | Properties of the object. Contains field \'type with type URL.
3952wppaAddtional :: Lens' WorkerPoolPoolArgs (HashMap Text JSONValue)
4921wppaAddtional :: Lens' WorkerPoolPoolArgs (HashMap Text JSONValue)
3953wppaAddtional
4922wppaAddtional
3954 = lens _wppaAddtional
4923 = lens _wppaAddtional
@@ -3963,6 +4932,77 @@ instance FromJSON WorkerPoolPoolArgs where
3963instance ToJSON WorkerPoolPoolArgs where
4932instance ToJSON WorkerPoolPoolArgs where
3964 toJSON = toJSON . _wppaAddtional
4933 toJSON = toJSON . _wppaAddtional
3965
4934
4935+-- | CounterMetadata includes all static non-name non-value counter
4936+-- attributes.
4937+--
4938+-- /See:/ 'counterMetadata' smart constructor.
4939+data CounterMetadata = CounterMetadata'
4940+ { _cmKind :: !(Maybe Text)
4941+ , _cmDescription :: !(Maybe Text)
4942+ , _cmStandardUnits :: !(Maybe Text)
4943+ , _cmOtherUnits :: !(Maybe Text)
4944+ } deriving (Eq,Show,Data,Typeable,Generic)
4945+
4946+-- | Creates a value of 'CounterMetadata' with the minimum fields required to make a request.
4947+--
4948+-- Use one of the following lenses to modify other fields as desired:
4949+--
4950+-- * 'cmKind'
4951+--
4952+-- * 'cmDescription'
4953+--
4954+-- * 'cmStandardUnits'
4955+--
4956+-- * 'cmOtherUnits'
4957+counterMetadata
4958+ :: CounterMetadata
4959+counterMetadata =
4960+ CounterMetadata'
4961+ { _cmKind = Nothing
4962+ , _cmDescription = Nothing
4963+ , _cmStandardUnits = Nothing
4964+ , _cmOtherUnits = Nothing
4965+ }
4966+
4967+-- | Counter aggregation kind.
4968+cmKind :: Lens' CounterMetadata (Maybe Text)
4969+cmKind = lens _cmKind (\ s a -> s{_cmKind = a})
4970+
4971+-- | Human-readable description of the counter semantics.
4972+cmDescription :: Lens' CounterMetadata (Maybe Text)
4973+cmDescription
4974+ = lens _cmDescription
4975+ (\ s a -> s{_cmDescription = a})
4976+
4977+-- | System defined Units, see above enum.
4978+cmStandardUnits :: Lens' CounterMetadata (Maybe Text)
4979+cmStandardUnits
4980+ = lens _cmStandardUnits
4981+ (\ s a -> s{_cmStandardUnits = a})
4982+
4983+-- | A string referring to the unit type.
4984+cmOtherUnits :: Lens' CounterMetadata (Maybe Text)
4985+cmOtherUnits
4986+ = lens _cmOtherUnits (\ s a -> s{_cmOtherUnits = a})
4987+
4988+instance FromJSON CounterMetadata where
4989+ parseJSON
4990+ = withObject "CounterMetadata"
4991+ (\ o ->
4992+ CounterMetadata' <$>
4993+ (o .:? "kind") <*> (o .:? "description") <*>
4994+ (o .:? "standardUnits")
4995+ <*> (o .:? "otherUnits"))
4996+
4997+instance ToJSON CounterMetadata where
4998+ toJSON CounterMetadata'{..}
4999+ = object
5000+ (catMaybes
5001+ [("kind" .=) <$> _cmKind,
5002+ ("description" .=) <$> _cmDescription,
5003+ ("standardUnits" .=) <$> _cmStandardUnits,
5004+ ("otherUnits" .=) <$> _cmOtherUnits])
5005+
3966-- | The response to the worker messages.
5006-- | The response to the worker messages.
3967--
5007--
3968-- /See:/ 'sendWorkerMessagesResponse' smart constructor.
5008-- /See:/ 'sendWorkerMessagesResponse' smart constructor.
@@ -4051,6 +5091,105 @@ instance ToJSON StreamingSideInputLocation where
4051 [("tag" .=) <$> _ssilTag,
5091 [("tag" .=) <$> _ssilTag,
4052 ("stateFamily" .=) <$> _ssilStateFamily])
5092 ("stateFamily" .=) <$> _ssilStateFamily])
4053
5093
5094+-- | Request to get updated debug configuration for component.
5095+--
5096+-- /See:/ 'getDebugConfigRequest' smart constructor.
5097+data GetDebugConfigRequest = GetDebugConfigRequest'
5098+ { _gdcrComponentId :: !(Maybe Text)
5099+ , _gdcrWorkerId :: !(Maybe Text)
5100+ } deriving (Eq,Show,Data,Typeable,Generic)
5101+
5102+-- | Creates a value of 'GetDebugConfigRequest' with the minimum fields required to make a request.
5103+--
5104+-- Use one of the following lenses to modify other fields as desired:
5105+--
5106+-- * 'gdcrComponentId'
5107+--
5108+-- * 'gdcrWorkerId'
5109+getDebugConfigRequest
5110+ :: GetDebugConfigRequest
5111+getDebugConfigRequest =
5112+ GetDebugConfigRequest'
5113+ { _gdcrComponentId = Nothing
5114+ , _gdcrWorkerId = Nothing
5115+ }
5116+
5117+-- | The internal component id for which debug configuration is requested.
5118+gdcrComponentId :: Lens' GetDebugConfigRequest (Maybe Text)
5119+gdcrComponentId
5120+ = lens _gdcrComponentId
5121+ (\ s a -> s{_gdcrComponentId = a})
5122+
5123+-- | The worker id, i.e., VM hostname.
5124+gdcrWorkerId :: Lens' GetDebugConfigRequest (Maybe Text)
5125+gdcrWorkerId
5126+ = lens _gdcrWorkerId (\ s a -> s{_gdcrWorkerId = a})
5127+
5128+instance FromJSON GetDebugConfigRequest where
5129+ parseJSON
5130+ = withObject "GetDebugConfigRequest"
5131+ (\ o ->
5132+ GetDebugConfigRequest' <$>
5133+ (o .:? "componentId") <*> (o .:? "workerId"))
5134+
5135+instance ToJSON GetDebugConfigRequest where
5136+ toJSON GetDebugConfigRequest'{..}
5137+ = object
5138+ (catMaybes
5139+ [("componentId" .=) <$> _gdcrComponentId,
5140+ ("workerId" .=) <$> _gdcrWorkerId])
5141+
5142+-- | A single message which encapsulates structured name and metadata for a
5143+-- given counter.
5144+--
5145+-- /See:/ 'counterStructuredNameAndMetadata' smart constructor.
5146+data CounterStructuredNameAndMetadata = CounterStructuredNameAndMetadata'
5147+ { _csnamName :: !(Maybe CounterStructuredName)
5148+ , _csnamMetadata :: !(Maybe CounterMetadata)
5149+ } deriving (Eq,Show,Data,Typeable,Generic)
5150+
5151+-- | Creates a value of 'CounterStructuredNameAndMetadata' with the minimum fields required to make a request.
5152+--
5153+-- Use one of the following lenses to modify other fields as desired:
5154+--
5155+-- * 'csnamName'
5156+--
5157+-- * 'csnamMetadata'
5158+counterStructuredNameAndMetadata
5159+ :: CounterStructuredNameAndMetadata
5160+counterStructuredNameAndMetadata =
5161+ CounterStructuredNameAndMetadata'
5162+ { _csnamName = Nothing
5163+ , _csnamMetadata = Nothing
5164+ }
5165+
5166+-- | Structured name of the counter.
5167+csnamName :: Lens' CounterStructuredNameAndMetadata (Maybe CounterStructuredName)
5168+csnamName
5169+ = lens _csnamName (\ s a -> s{_csnamName = a})
5170+
5171+-- | Metadata associated with a counter
5172+csnamMetadata :: Lens' CounterStructuredNameAndMetadata (Maybe CounterMetadata)
5173+csnamMetadata
5174+ = lens _csnamMetadata
5175+ (\ s a -> s{_csnamMetadata = a})
5176+
5177+instance FromJSON CounterStructuredNameAndMetadata
5178+ where
5179+ parseJSON
5180+ = withObject "CounterStructuredNameAndMetadata"
5181+ (\ o ->
5182+ CounterStructuredNameAndMetadata' <$>
5183+ (o .:? "name") <*> (o .:? "metadata"))
5184+
5185+instance ToJSON CounterStructuredNameAndMetadata
5186+ where
5187+ toJSON CounterStructuredNameAndMetadata'{..}
5188+ = object
5189+ (catMaybes
5190+ [("name" .=) <$> _csnamName,
5191+ ("metadata" .=) <$> _csnamMetadata])
5192+
4054-- | A task which describes what action should be performed for the specified
5193-- | A task which describes what action should be performed for the specified
4055-- streaming computation ranges.
5194-- streaming computation ranges.
4056--
5195--
@@ -4355,6 +5494,7 @@ data Job = Job'
4355 , _jName :: !(Maybe Text)
5494 , _jName :: !(Maybe Text)
4356 , _jTransformNameMApping :: !(Maybe JobTransformNameMApping)
5495 , _jTransformNameMApping :: !(Maybe JobTransformNameMApping)
4357 , _jId :: !(Maybe Text)
5496 , _jId :: !(Maybe Text)
5497+ , _jLabels :: !(Maybe JobLabels)
4358 , _jProjectId :: !(Maybe Text)
5498 , _jProjectId :: !(Maybe Text)
4359 , _jType :: !(Maybe Text)
5499 , _jType :: !(Maybe Text)
4360 , _jCurrentStateTime :: !(Maybe Text)
5500 , _jCurrentStateTime :: !(Maybe Text)
@@ -4388,6 +5528,8 @@ data Job = Job'
4388--
5528--
4389-- * 'jId'
5529-- * 'jId'
4390--
5530--
5531+-- * 'jLabels'
5532+--
4391-- * 'jProjectId'
5533-- * 'jProjectId'
4392--
5534--
4393-- * 'jType'
5535-- * 'jType'
@@ -4412,6 +5554,7 @@ job =
4412 , _jName = Nothing
5554 , _jName = Nothing
4413 , _jTransformNameMApping = Nothing
5555 , _jTransformNameMApping = Nothing
4414 , _jId = Nothing
5556 , _jId = Nothing
5557+ , _jLabels = Nothing
4415 , _jProjectId = Nothing
5558 , _jProjectId = Nothing
4416 , _jType = Nothing
5559 , _jType = Nothing
4417 , _jCurrentStateTime = Nothing
5560 , _jCurrentStateTime = Nothing
@@ -4507,6 +5650,15 @@ jTransformNameMApping
4507jId :: Lens' Job (Maybe Text)
5650jId :: Lens' Job (Maybe Text)
4508jId = lens _jId (\ s a -> s{_jId = a})
5651jId = lens _jId (\ s a -> s{_jId = a})
4509
5652
5653+-- | User-defined labels for this job. The labels map can contain no more
5654+-- than 64 entries. Entries of the labels map are UTF8 strings that comply
5655+-- with the following restrictions: * Keys must conform to regexp:
5656+-- \\p{Ll}\\p{Lo}{0,62} * Values must conform to regexp:
5657+-- [\\p{Ll}\\p{Lo}\\p{N}_-]{0,63} * Both keys and values are additionally
5658+-- constrained to be \<= 128 bytes in size.
5659+jLabels :: Lens' Job (Maybe JobLabels)
5660+jLabels = lens _jLabels (\ s a -> s{_jLabels = a})
5661+
4510-- | The project which owns the job.
5662-- | The project which owns the job.
4511jProjectId :: Lens' Job (Maybe Text)
5663jProjectId :: Lens' Job (Maybe Text)
4512jProjectId
5664jProjectId
@@ -4552,6 +5704,7 @@ instance FromJSON Job where
4552 <*> (o .:? "name")
5704 <*> (o .:? "name")
4553 <*> (o .:? "transformNameMapping")
5705 <*> (o .:? "transformNameMapping")
4554 <*> (o .:? "id")
5706 <*> (o .:? "id")
5707+ <*> (o .:? "labels")
4555 <*> (o .:? "projectId")
5708 <*> (o .:? "projectId")
4556 <*> (o .:? "type")
5709 <*> (o .:? "type")
4557 <*> (o .:? "currentStateTime")
5710 <*> (o .:? "currentStateTime")
@@ -4573,7 +5726,8 @@ instance ToJSON Job where
4573 ("name" .=) <$> _jName,
5726 ("name" .=) <$> _jName,
4574 ("transformNameMapping" .=) <$>
5727 ("transformNameMapping" .=) <$>
4575 _jTransformNameMApping,
5728 _jTransformNameMApping,
5729+ ("id" .=) <$> _jId, ("labels" .=) <$> _jLabels,
4576− ("id" .=) <$> _jId, ("projectId" .=) <$> _jProjectId,
5730+ ("projectId" .=) <$> _jProjectId,
4577 ("type" .=) <$> _jType,
5731 ("type" .=) <$> _jType,
4578 ("currentStateTime" .=) <$> _jCurrentStateTime,
5732 ("currentStateTime" .=) <$> _jCurrentStateTime,
4579 ("replaceJobId" .=) <$> _jReplaceJobId,
5733 ("replaceJobId" .=) <$> _jReplaceJobId,
@@ -4650,34 +5804,36 @@ arpFractionConsumed
4650 (\ s a -> s{_arpFractionConsumed = a})
5804 (\ s a -> s{_arpFractionConsumed = a})
4651 . mapping _Coerce
5805 . mapping _Coerce
4652
5806
4653−-- | Total amount of parallelism in the portion of input of this work item
5807+-- | Total amount of parallelism in the portion of input of this task that
4654−-- that has already been consumed. In the first two examples above (see
5808+-- has already been consumed and is no longer active. In the first two
4655−-- remaining_parallelism), the value should be 30 or 3 respectively. The
5809+-- examples above (see remaining_parallelism), the value should be 29 or 2
4656−-- sum of remaining_parallelism and consumed_parallelism should equal the
5810+-- respectively. The sum of remaining_parallelism and consumed_parallelism
4657−-- total amount of parallelism in this work item. If specified, must be
5811+-- should equal the total amount of parallelism in this work item. If
4658−-- finite.
5812+-- specified, must be finite.
4659arpConsumedParallelism :: Lens' ApproximateReportedProgress (Maybe ReportedParallelism)
5813arpConsumedParallelism :: Lens' ApproximateReportedProgress (Maybe ReportedParallelism)
4660arpConsumedParallelism
5814arpConsumedParallelism
4661 = lens _arpConsumedParallelism
5815 = lens _arpConsumedParallelism
4662 (\ s a -> s{_arpConsumedParallelism = a})
5816 (\ s a -> s{_arpConsumedParallelism = a})
4663
5817
4664−-- | Total amount of parallelism in the input of this WorkItem that has not
5818+-- | Total amount of parallelism in the input of this task that remains,
4665−-- been consumed yet (i.e. can be delegated to a new WorkItem via dynamic
5819+-- (i.e. can be delegated to this task and any new tasks via dynamic
5820+-- splitting). Always at least 1 for non-finished work items and 0 for
4666−-- splitting). \"Amount of parallelism\" refers to how many non-empty parts
5821+-- finished. \"Amount of parallelism\" refers to how many non-empty parts
4667-- of the input can be read in parallel. This does not necessarily equal
5822-- of the input can be read in parallel. This does not necessarily equal
4668-- number of records. An input that can be read in parallel down to the
5823-- number of records. An input that can be read in parallel down to the
4669-- individual records is called \"perfectly splittable\". An example of
5824-- individual records is called \"perfectly splittable\". An example of
4670-- non-perfectly parallelizable input is a block-compressed file format
5825-- non-perfectly parallelizable input is a block-compressed file format
4671-- where a block of records has to be read as a whole, but different blocks
5826-- where a block of records has to be read as a whole, but different blocks
4672−-- can be read in parallel. Examples: * If we have read 30 records out of
5827+-- can be read in parallel. Examples: * If we are processing record #30
4673−-- 50 in a perfectly splittable 50-record input, this value should be 20. *
5828+-- (starting at 1) out of 50 in a perfectly splittable 50-record input,
5829+-- this value should be 21 (20 remaining + 1 current). * If we are reading
4674−-- If we are reading through block 3 in a block-compressed file consisting
5830+-- through block 3 in a block-compressed file consisting of 5 blocks, this
4675−-- of 5 blocks, this value should be 2 (since blocks 4 and 5 can be
5831+-- value should be 3 (since blocks 4 and 5 can be processed in parallel by
4676−-- processed in parallel by new work items via dynamic splitting). * If we
5832+-- new tasks via dynamic splitting and the current task remains processing
4677−-- are reading through the last block in a block-compressed file, or
5833+-- block 3). * If we are reading through the last block in a
4678−-- reading or processing the last record in a perfectly splittable input,
5834+-- block-compressed file, or reading or processing the last record in a
4679−-- this value should be 0, because the remainder of the work item cannot be
5835+-- perfectly splittable input, this value should be 1, because apart from
4680−-- further split.
5836+-- the current task, no additional remainder can be split off.
4681arpRemainingParallelism :: Lens' ApproximateReportedProgress (Maybe ReportedParallelism)
5837arpRemainingParallelism :: Lens' ApproximateReportedProgress (Maybe ReportedParallelism)
4682arpRemainingParallelism
5838arpRemainingParallelism
4683 = lens _arpRemainingParallelism
5839 = lens _arpRemainingParallelism
@@ -4758,6 +5914,7 @@ data WorkerPool = WorkerPool'
4758 , _wpNumWorkers :: !(Maybe (Textual Int32))
5914 , _wpNumWorkers :: !(Maybe (Textual Int32))
4759 , _wpNetwork :: !(Maybe Text)
5915 , _wpNetwork :: !(Maybe Text)
4760 , _wpZone :: !(Maybe Text)
5916 , _wpZone :: !(Maybe Text)
5917+ , _wpIPConfiguration :: !(Maybe Text)
4761 , _wpPackages :: !(Maybe [Package])
5918 , _wpPackages :: !(Maybe [Package])
4762 , _wpOnHostMaintenance :: !(Maybe Text)
5919 , _wpOnHostMaintenance :: !(Maybe Text)
4763 , _wpDiskSourceImage :: !(Maybe Text)
5920 , _wpDiskSourceImage :: !(Maybe Text)
@@ -4792,6 +5949,8 @@ data WorkerPool = WorkerPool'
4792--
5949--
4793-- * 'wpZone'
5950-- * 'wpZone'
4794--
5951--
5952+-- * 'wpIPConfiguration'
5953+--
4795-- * 'wpPackages'
5954-- * 'wpPackages'
4796--
5955--
4797-- * 'wpOnHostMaintenance'
5956-- * 'wpOnHostMaintenance'
@@ -4827,6 +5986,7 @@ workerPool =
4827 , _wpNumWorkers = Nothing
5986 , _wpNumWorkers = Nothing
4828 , _wpNetwork = Nothing
5987 , _wpNetwork = Nothing
4829 , _wpZone = Nothing
5988 , _wpZone = Nothing
5989+ , _wpIPConfiguration = Nothing
4830 , _wpPackages = Nothing
5990 , _wpPackages = Nothing
4831 , _wpOnHostMaintenance = Nothing
5991 , _wpOnHostMaintenance = Nothing
4832 , _wpDiskSourceImage = Nothing
5992 , _wpDiskSourceImage = Nothing
@@ -4895,6 +6055,12 @@ wpNetwork
4895wpZone :: Lens' WorkerPool (Maybe Text)
6055wpZone :: Lens' WorkerPool (Maybe Text)
4896wpZone = lens _wpZone (\ s a -> s{_wpZone = a})
6056wpZone = lens _wpZone (\ s a -> s{_wpZone = a})
4897
6057
6058+-- | Configuration for VM IPs.
6059+wpIPConfiguration :: Lens' WorkerPool (Maybe Text)
6060+wpIPConfiguration
6061+ = lens _wpIPConfiguration
6062+ (\ s a -> s{_wpIPConfiguration = a})
6063+
4898-- | Packages to be installed on workers.
6064-- | Packages to be installed on workers.
4899wpPackages :: Lens' WorkerPool [Package]
6065wpPackages :: Lens' WorkerPool [Package]
4900wpPackages
6066wpPackages
@@ -4916,7 +6082,7 @@ wpDiskSourceImage
4916 (\ s a -> s{_wpDiskSourceImage = a})
6082 (\ s a -> s{_wpDiskSourceImage = a})
4917
6083
4918-- | Subnetwork to which VMs will be assigned, if desired. Expected to be of
6084-- | Subnetwork to which VMs will be assigned, if desired. Expected to be of
4919−-- the form \"zones\/ZONE\/subnetworks\/SUBNETWORK\".
6085+-- the form \"regions\/REGION\/subnetworks\/SUBNETWORK\".
4920wpSubnetwork :: Lens' WorkerPool (Maybe Text)
6086wpSubnetwork :: Lens' WorkerPool (Maybe Text)
4921wpSubnetwork
6087wpSubnetwork
4922 = lens _wpSubnetwork (\ s a -> s{_wpSubnetwork = a})
6088 = lens _wpSubnetwork (\ s a -> s{_wpSubnetwork = a})
@@ -4995,6 +6161,7 @@ instance FromJSON WorkerPool where
4995 <*> (o .:? "numWorkers")
6161 <*> (o .:? "numWorkers")
4996 <*> (o .:? "network")
6162 <*> (o .:? "network")
4997 <*> (o .:? "zone")
6163 <*> (o .:? "zone")
6164+ <*> (o .:? "ipConfiguration")
4998 <*> (o .:? "packages" .!= mempty)
6165 <*> (o .:? "packages" .!= mempty)
4999 <*> (o .:? "onHostMaintenance")
6166 <*> (o .:? "onHostMaintenance")
5000 <*> (o .:? "diskSourceImage")
6167 <*> (o .:? "diskSourceImage")
@@ -5022,6 +6189,7 @@ instance ToJSON WorkerPool where
5022 ("numWorkers" .=) <$> _wpNumWorkers,
6189 ("numWorkers" .=) <$> _wpNumWorkers,
5023 ("network" .=) <$> _wpNetwork,
6190 ("network" .=) <$> _wpNetwork,
5024 ("zone" .=) <$> _wpZone,
6191 ("zone" .=) <$> _wpZone,
6192+ ("ipConfiguration" .=) <$> _wpIPConfiguration,
5025 ("packages" .=) <$> _wpPackages,
6193 ("packages" .=) <$> _wpPackages,
5026 ("onHostMaintenance" .=) <$> _wpOnHostMaintenance,
6194 ("onHostMaintenance" .=) <$> _wpOnHostMaintenance,
5027 ("diskSourceImage" .=) <$> _wpDiskSourceImage,
6195 ("diskSourceImage" .=) <$> _wpDiskSourceImage,
@@ -5841,10 +7009,12 @@ instance ToJSON MultiOutputInfo where
5841--
7009--
5842-- /See:/ 'partialGroupByKeyInstruction' smart constructor.
7010-- /See:/ 'partialGroupByKeyInstruction' smart constructor.
5843data PartialGroupByKeyInstruction = PartialGroupByKeyInstruction'
7011data PartialGroupByKeyInstruction = PartialGroupByKeyInstruction'
5844− { _pgbkiValueCombiningFn :: !(Maybe PartialGroupByKeyInstructionValueCombiningFn)
7012+ { _pgbkiValueCombiningFn :: !(Maybe PartialGroupByKeyInstructionValueCombiningFn)
5845− , _pgbkiSideInputs :: !(Maybe [SideInputInfo])
7013+ , _pgbkiSideInputs :: !(Maybe [SideInputInfo])
5846− , _pgbkiInput :: !(Maybe InstructionInput)
7014+ , _pgbkiInput :: !(Maybe InstructionInput)
7015+ , _pgbkiOriginalCombineValuesStepName :: !(Maybe Text)
5847− , _pgbkiInputElementCodec :: !(Maybe PartialGroupByKeyInstructionInputElementCodec)
7016+ , _pgbkiInputElementCodec :: !(Maybe PartialGroupByKeyInstructionInputElementCodec)
7017+ , _pgbkiOriginalCombineValuesInputStoreName :: !(Maybe Text)
5848 } deriving (Eq,Show,Data,Typeable,Generic)
7018 } deriving (Eq,Show,Data,Typeable,Generic)
5849
7019
5850-- | Creates a value of 'PartialGroupByKeyInstruction' with the minimum fields required to make a request.
7020-- | Creates a value of 'PartialGroupByKeyInstruction' with the minimum fields required to make a request.
@@ -5857,7 +7027,11 @@ data PartialGroupByKeyInstruction = PartialGroupByKeyInstruction'
5857--
7027--
5858-- * 'pgbkiInput'
7028-- * 'pgbkiInput'
5859--
7029--
7030+-- * 'pgbkiOriginalCombineValuesStepName'
7031+--
5860-- * 'pgbkiInputElementCodec'
7032-- * 'pgbkiInputElementCodec'
7033+--
7034+-- * 'pgbkiOriginalCombineValuesInputStoreName'
5861partialGroupByKeyInstruction
7035partialGroupByKeyInstruction
5862 :: PartialGroupByKeyInstruction
7036 :: PartialGroupByKeyInstruction
5863partialGroupByKeyInstruction =
7037partialGroupByKeyInstruction =
@@ -5865,7 +7039,9 @@ partialGroupByKeyInstruction =
5865 { _pgbkiValueCombiningFn = Nothing
7039 { _pgbkiValueCombiningFn = Nothing
5866 , _pgbkiSideInputs = Nothing
7040 , _pgbkiSideInputs = Nothing
5867 , _pgbkiInput = Nothing
7041 , _pgbkiInput = Nothing
7042+ , _pgbkiOriginalCombineValuesStepName = Nothing
5868 , _pgbkiInputElementCodec = Nothing
7043 , _pgbkiInputElementCodec = Nothing
7044+ , _pgbkiOriginalCombineValuesInputStoreName = Nothing
5869 }
7045 }
5870
7046
5871-- | The value combining function to invoke.
7047-- | The value combining function to invoke.
@@ -5887,12 +7063,27 @@ pgbkiInput :: Lens' PartialGroupByKeyInstruction (Maybe InstructionInput)
5887pgbkiInput
7063pgbkiInput
5888 = lens _pgbkiInput (\ s a -> s{_pgbkiInput = a})
7064 = lens _pgbkiInput (\ s a -> s{_pgbkiInput = a})
5889
7065
7066+-- | If this instruction includes a combining function, this is the name of
7067+-- the CombineValues instruction lifted into this instruction.
7068+pgbkiOriginalCombineValuesStepName :: Lens' PartialGroupByKeyInstruction (Maybe Text)
7069+pgbkiOriginalCombineValuesStepName
7070+ = lens _pgbkiOriginalCombineValuesStepName
7071+ (\ s a -> s{_pgbkiOriginalCombineValuesStepName = a})
7072+
5890-- | The codec to use for interpreting an element in the input PTable.
7073-- | The codec to use for interpreting an element in the input PTable.
5891pgbkiInputElementCodec :: Lens' PartialGroupByKeyInstruction (Maybe PartialGroupByKeyInstructionInputElementCodec)
7074pgbkiInputElementCodec :: Lens' PartialGroupByKeyInstruction (Maybe PartialGroupByKeyInstructionInputElementCodec)
5892pgbkiInputElementCodec
7075pgbkiInputElementCodec
5893 = lens _pgbkiInputElementCodec
7076 = lens _pgbkiInputElementCodec
5894 (\ s a -> s{_pgbkiInputElementCodec = a})
7077 (\ s a -> s{_pgbkiInputElementCodec = a})
5895
7078
7079+-- | If this instruction includes a combining function this is the name of
7080+-- the intermediate store between the GBK and the CombineValues.
7081+pgbkiOriginalCombineValuesInputStoreName :: Lens' PartialGroupByKeyInstruction (Maybe Text)
7082+pgbkiOriginalCombineValuesInputStoreName
7083+ = lens _pgbkiOriginalCombineValuesInputStoreName
7084+ (\ s a ->
7085+ s{_pgbkiOriginalCombineValuesInputStoreName = a})
7086+
5896instance FromJSON PartialGroupByKeyInstruction where
7087instance FromJSON PartialGroupByKeyInstruction where
5897 parseJSON
7088 parseJSON
5898 = withObject "PartialGroupByKeyInstruction"
7089 = withObject "PartialGroupByKeyInstruction"
@@ -5901,7 +7092,9 @@ instance FromJSON PartialGroupByKeyInstruction where
5901 (o .:? "valueCombiningFn") <*>
7092 (o .:? "valueCombiningFn") <*>
5902 (o .:? "sideInputs" .!= mempty)
7093 (o .:? "sideInputs" .!= mempty)
5903 <*> (o .:? "input")
7094 <*> (o .:? "input")
7095+ <*> (o .:? "originalCombineValuesStepName")
5904− <*> (o .:? "inputElementCodec"))
7096+ <*> (o .:? "inputElementCodec")
7097+ <*> (o .:? "originalCombineValuesInputStoreName"))
5905
7098
5906instance ToJSON PartialGroupByKeyInstruction where
7099instance ToJSON PartialGroupByKeyInstruction where
5907 toJSON PartialGroupByKeyInstruction'{..}
7100 toJSON PartialGroupByKeyInstruction'{..}
@@ -5910,8 +7103,11 @@ instance ToJSON PartialGroupByKeyInstruction where
5910 [("valueCombiningFn" .=) <$> _pgbkiValueCombiningFn,
7103 [("valueCombiningFn" .=) <$> _pgbkiValueCombiningFn,
5911 ("sideInputs" .=) <$> _pgbkiSideInputs,
7104 ("sideInputs" .=) <$> _pgbkiSideInputs,
5912 ("input" .=) <$> _pgbkiInput,
7105 ("input" .=) <$> _pgbkiInput,
5913− ("inputElementCodec" .=) <$>
7106+ ("originalCombineValuesStepName" .=) <$>
7107+ _pgbkiOriginalCombineValuesStepName,
5914− _pgbkiInputElementCodec])
7108+ ("inputElementCodec" .=) <$> _pgbkiInputElementCodec,
7109+ ("originalCombineValuesInputStoreName" .=) <$>
7110+ _pgbkiOriginalCombineValuesInputStoreName])
5915
7111
5916-- | An instruction that does a ParDo operation. Takes one main input and
7112-- | An instruction that does a ParDo operation. Takes one main input and
5917-- zero or more side inputs, and produces zero or more outputs. Runs user
7113-- zero or more side inputs, and produces zero or more outputs. Runs user
@@ -6083,6 +7279,7 @@ data ParallelInstruction = ParallelInstruction'
6083 , _piName :: !(Maybe Text)
7279 , _piName :: !(Maybe Text)
6084 , _piSystemName :: !(Maybe Text)
7280 , _piSystemName :: !(Maybe Text)
6085 , _piFlatten :: !(Maybe FlattenInstruction)
7281 , _piFlatten :: !(Maybe FlattenInstruction)
7282+ , _piOriginalName :: !(Maybe Text)
6086 } deriving (Eq,Show,Data,Typeable,Generic)
7283 } deriving (Eq,Show,Data,Typeable,Generic)
6087
7284
6088-- | Creates a value of 'ParallelInstruction' with the minimum fields required to make a request.
7285-- | Creates a value of 'ParallelInstruction' with the minimum fields required to make a request.
@@ -6104,6 +7301,8 @@ data ParallelInstruction = ParallelInstruction'
6104-- * 'piSystemName'
7301-- * 'piSystemName'
6105--
7302--
6106-- * 'piFlatten'
7303-- * 'piFlatten'
7304+--
7305+-- * 'piOriginalName'
6107parallelInstruction
7306parallelInstruction
6108 :: ParallelInstruction
7307 :: ParallelInstruction
6109parallelInstruction =
7308parallelInstruction =
@@ -6116,6 +7315,7 @@ parallelInstruction =
6116 , _piName = Nothing
7315 , _piName = Nothing
6117 , _piSystemName = Nothing
7316 , _piSystemName = Nothing
6118 , _piFlatten = Nothing
7317 , _piFlatten = Nothing
7318+ , _piOriginalName = Nothing
6119 }
7319 }
6120
7320
6121-- | Additional information for Read instructions.
7321-- | Additional information for Read instructions.
@@ -6157,6 +7357,12 @@ piFlatten :: Lens' ParallelInstruction (Maybe FlattenInstruction)
6157piFlatten
7357piFlatten
6158 = lens _piFlatten (\ s a -> s{_piFlatten = a})
7358 = lens _piFlatten (\ s a -> s{_piFlatten = a})
6159
7359
7360+-- | System-defined name for the operation in the original workflow graph.
7361+piOriginalName :: Lens' ParallelInstruction (Maybe Text)
7362+piOriginalName
7363+ = lens _piOriginalName
7364+ (\ s a -> s{_piOriginalName = a})
7365+
6160instance FromJSON ParallelInstruction where
7366instance FromJSON ParallelInstruction where
6161 parseJSON
7367 parseJSON
6162 = withObject "ParallelInstruction"
7368 = withObject "ParallelInstruction"
@@ -6168,7 +7374,8 @@ instance FromJSON ParallelInstruction where
6168 <*> (o .:? "outputs" .!= mempty)
7374 <*> (o .:? "outputs" .!= mempty)
6169 <*> (o .:? "name")
7375 <*> (o .:? "name")
6170 <*> (o .:? "systemName")
7376 <*> (o .:? "systemName")
6171− <*> (o .:? "flatten"))
7377+ <*> (o .:? "flatten")
7378+ <*> (o .:? "originalName"))
6172
7379
6173instance ToJSON ParallelInstruction where
7380instance ToJSON ParallelInstruction where
6174 toJSON ParallelInstruction'{..}
7381 toJSON ParallelInstruction'{..}
@@ -6180,7 +7387,8 @@ instance ToJSON ParallelInstruction where
6180 ("outputs" .=) <$> _piOutputs,
7387 ("outputs" .=) <$> _piOutputs,
6181 ("name" .=) <$> _piName,
7388 ("name" .=) <$> _piName,
6182 ("systemName" .=) <$> _piSystemName,
7389 ("systemName" .=) <$> _piSystemName,
6183− ("flatten" .=) <$> _piFlatten])
7390+ ("flatten" .=) <$> _piFlatten,
7391+ ("originalName" .=) <$> _piOriginalName])
6184
7392
6185-- | How to interpret the source element(s) as a side input value.
7393-- | How to interpret the source element(s) as a side input value.
6186--
7394--
@@ -6217,6 +7425,113 @@ instance FromJSON SideInputInfoKind where
6217instance ToJSON SideInputInfoKind where
7425instance ToJSON SideInputInfoKind where
6218 toJSON = toJSON . _siikAddtional
7426 toJSON = toJSON . _siikAddtional
6219
7427
7428+-- | A task that carries configuration information for streaming
7429+-- computations.
7430+--
7431+-- /See:/ 'streamingConfigTask' smart constructor.
7432+data StreamingConfigTask = StreamingConfigTask'
7433+ { _sctUserStepToStateFamilyNameMap :: !(Maybe StreamingConfigTaskUserStepToStateFamilyNameMap)
7434+ , _sctStreamingComputationConfigs :: !(Maybe [StreamingComputationConfig])
7435+ } deriving (Eq,Show,Data,Typeable,Generic)
7436+
7437+-- | Creates a value of 'StreamingConfigTask' with the minimum fields required to make a request.
7438+--
7439+-- Use one of the following lenses to modify other fields as desired:
7440+--
7441+-- * 'sctUserStepToStateFamilyNameMap'
7442+--
7443+-- * 'sctStreamingComputationConfigs'
7444+streamingConfigTask
7445+ :: StreamingConfigTask
7446+streamingConfigTask =
7447+ StreamingConfigTask'
7448+ { _sctUserStepToStateFamilyNameMap = Nothing
7449+ , _sctStreamingComputationConfigs = Nothing
7450+ }
7451+
7452+-- | Map from user step names to state families.
7453+sctUserStepToStateFamilyNameMap :: Lens' StreamingConfigTask (Maybe StreamingConfigTaskUserStepToStateFamilyNameMap)
7454+sctUserStepToStateFamilyNameMap
7455+ = lens _sctUserStepToStateFamilyNameMap
7456+ (\ s a -> s{_sctUserStepToStateFamilyNameMap = a})
7457+
7458+-- | Set of computation configuration information.
7459+sctStreamingComputationConfigs :: Lens' StreamingConfigTask [StreamingComputationConfig]
7460+sctStreamingComputationConfigs
7461+ = lens _sctStreamingComputationConfigs
7462+ (\ s a -> s{_sctStreamingComputationConfigs = a})
7463+ . _Default
7464+ . _Coerce
7465+
7466+instance FromJSON StreamingConfigTask where
7467+ parseJSON
7468+ = withObject "StreamingConfigTask"
7469+ (\ o ->
7470+ StreamingConfigTask' <$>
7471+ (o .:? "userStepToStateFamilyNameMap") <*>
7472+ (o .:? "streamingComputationConfigs" .!= mempty))
7473+
7474+instance ToJSON StreamingConfigTask where
7475+ toJSON StreamingConfigTask'{..}
7476+ = object
7477+ (catMaybes
7478+ [("userStepToStateFamilyNameMap" .=) <$>
7479+ _sctUserStepToStateFamilyNameMap,
7480+ ("streamingComputationConfigs" .=) <$>
7481+ _sctStreamingComputationConfigs])
7482+
7483+-- | The metric short id is returned to the user alongside an offset into
7484+-- ReportWorkItemStatusRequest
7485+--
7486+-- /See:/ 'metricShortId' smart constructor.
7487+data MetricShortId = MetricShortId'
7488+ { _msiShortId :: !(Maybe (Textual Int64))
7489+ , _msiMetricIndex :: !(Maybe (Textual Int32))
7490+ } deriving (Eq,Show,Data,Typeable,Generic)
7491+
7492+-- | Creates a value of 'MetricShortId' with the minimum fields required to make a request.
7493+--
7494+-- Use one of the following lenses to modify other fields as desired:
7495+--
7496+-- * 'msiShortId'
7497+--
7498+-- * 'msiMetricIndex'
7499+metricShortId
7500+ :: MetricShortId
7501+metricShortId =
7502+ MetricShortId'
7503+ { _msiShortId = Nothing
7504+ , _msiMetricIndex = Nothing
7505+ }
7506+
7507+-- | The service-generated short identifier for the metric.
7508+msiShortId :: Lens' MetricShortId (Maybe Int64)
7509+msiShortId
7510+ = lens _msiShortId (\ s a -> s{_msiShortId = a}) .
7511+ mapping _Coerce
7512+
7513+-- | The index of the corresponding metric in the
7514+-- ReportWorkItemStatusRequest. Required.
7515+msiMetricIndex :: Lens' MetricShortId (Maybe Int32)
7516+msiMetricIndex
7517+ = lens _msiMetricIndex
7518+ (\ s a -> s{_msiMetricIndex = a})
7519+ . mapping _Coerce
7520+
7521+instance FromJSON MetricShortId where
7522+ parseJSON
7523+ = withObject "MetricShortId"
7524+ (\ o ->
7525+ MetricShortId' <$>
7526+ (o .:? "shortId") <*> (o .:? "metricIndex"))
7527+
7528+instance ToJSON MetricShortId where
7529+ toJSON MetricShortId'{..}
7530+ = object
7531+ (catMaybes
7532+ [("shortId" .=) <$> _msiShortId,
7533+ ("metricIndex" .=) <$> _msiMetricIndex])
7534+
6220-- | A request for sending worker messages to the service.
7535-- | A request for sending worker messages to the service.
6221--
7536--
6222-- /See:/ 'sendWorkerMessagesRequest' smart constructor.
7537-- /See:/ 'sendWorkerMessagesRequest' smart constructor.
@@ -6755,6 +8070,43 @@ instance ToJSON PubsubLocation where
6755 ("topic" .=) <$> _plTopic,
8070 ("topic" .=) <$> _plTopic,
6756 ("subscription" .=) <$> _plSubscription])
8071 ("subscription" .=) <$> _plSubscription])
6757
8072
8073+-- | A metric value representing a list of floating point numbers.
8074+--
8075+-- /See:/ 'floatingPointList' smart constructor.
8076+newtype FloatingPointList = FloatingPointList'
8077+ { _fplElements :: Maybe [Textual Double]
8078+ } deriving (Eq,Show,Data,Typeable,Generic)
8079+
8080+-- | Creates a value of 'FloatingPointList' with the minimum fields required to make a request.
8081+--
8082+-- Use one of the following lenses to modify other fields as desired:
8083+--
8084+-- * 'fplElements'
8085+floatingPointList
8086+ :: FloatingPointList
8087+floatingPointList =
8088+ FloatingPointList'
8089+ { _fplElements = Nothing
8090+ }
8091+
8092+-- | Elements of the list.
8093+fplElements :: Lens' FloatingPointList [Double]
8094+fplElements
8095+ = lens _fplElements (\ s a -> s{_fplElements = a}) .
8096+ _Default
8097+ . _Coerce
8098+
8099+instance FromJSON FloatingPointList where
8100+ parseJSON
8101+ = withObject "FloatingPointList"
8102+ (\ o ->
8103+ FloatingPointList' <$> (o .:? "elements" .!= mempty))
8104+
8105+instance ToJSON FloatingPointList where
8106+ toJSON FloatingPointList'{..}
8107+ = object
8108+ (catMaybes [("elements" .=) <$> _fplElements])
8109+
6758-- | An input of an instruction, as a reference to an output of a producer
8110-- | An input of an instruction, as a reference to an output of a producer
6759-- instruction.
8111-- instruction.
6760--
8112--
@@ -6907,6 +8259,45 @@ instance ToJSON SeqMapTask where
6907 ("stageName" .=) <$> _smtStageName,
8259 ("stageName" .=) <$> _smtStageName,
6908 ("userFn" .=) <$> _smtUserFn])
8260 ("userFn" .=) <$> _smtUserFn])
6909
8261
8262+-- | Map from user step names to state families.
8263+--
8264+-- /See:/ 'streamingConfigTaskUserStepToStateFamilyNameMap' smart constructor.
8265+newtype StreamingConfigTaskUserStepToStateFamilyNameMap = StreamingConfigTaskUserStepToStateFamilyNameMap'
8266+ { _sctustsfnmAddtional :: HashMap Text Text
8267+ } deriving (Eq,Show,Data,Typeable,Generic)
8268+
8269+-- | Creates a value of 'StreamingConfigTaskUserStepToStateFamilyNameMap' with the minimum fields required to make a request.
8270+--
8271+-- Use one of the following lenses to modify other fields as desired:
8272+--
8273+-- * 'sctustsfnmAddtional'
8274+streamingConfigTaskUserStepToStateFamilyNameMap
8275+ :: HashMap Text Text -- ^ 'sctustsfnmAddtional'
8276+ -> StreamingConfigTaskUserStepToStateFamilyNameMap
8277+streamingConfigTaskUserStepToStateFamilyNameMap pSctustsfnmAddtional_ =
8278+ StreamingConfigTaskUserStepToStateFamilyNameMap'
8279+ { _sctustsfnmAddtional = _Coerce # pSctustsfnmAddtional_
8280+ }
8281+
8282+sctustsfnmAddtional :: Lens' StreamingConfigTaskUserStepToStateFamilyNameMap (HashMap Text Text)
8283+sctustsfnmAddtional
8284+ = lens _sctustsfnmAddtional
8285+ (\ s a -> s{_sctustsfnmAddtional = a})
8286+ . _Coerce
8287+
8288+instance FromJSON
8289+ StreamingConfigTaskUserStepToStateFamilyNameMap where
8290+ parseJSON
8291+ = withObject
8292+ "StreamingConfigTaskUserStepToStateFamilyNameMap"
8293+ (\ o ->
8294+ StreamingConfigTaskUserStepToStateFamilyNameMap' <$>
8295+ (parseJSONObject o))
8296+
8297+instance ToJSON
8298+ StreamingConfigTaskUserStepToStateFamilyNameMap where
8299+ toJSON = toJSON . _sctustsfnmAddtional
8300+
6910-- | A work item that represents the different operations that can be
8301-- | A work item that represents the different operations that can be
6911-- performed on a user-defined Source specification.
8302-- performed on a user-defined Source specification.
6912--
8303--
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/GetConfig.hsnew file+206
@@ -0,0 +1,206 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Jobs.Debug.GetConfig
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Get encoded debug configuration for component. Not cacheable.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.debug.getConfig@.
26+module Network.Google.Resource.Dataflow.Projects.Jobs.Debug.GetConfig
27+ (
28+ -- * REST Resource
29+ ProjectsJobsDebugGetConfigResource
30+
31+ -- * Creating a Request
32+ , projectsJobsDebugGetConfig
33+ , ProjectsJobsDebugGetConfig
34+
35+ -- * Request Lenses
36+ , pjdgcXgafv
37+ , pjdgcJobId
38+ , pjdgcUploadProtocol
39+ , pjdgcPp
40+ , pjdgcAccessToken
41+ , pjdgcUploadType
42+ , pjdgcPayload
43+ , pjdgcBearerToken
44+ , pjdgcProjectId
45+ , pjdgcCallback
46+ ) where
47+
48+import Network.Google.Dataflow.Types
49+import Network.Google.Prelude
50+
51+-- | A resource alias for @dataflow.projects.jobs.debug.getConfig@ method which the
52+-- 'ProjectsJobsDebugGetConfig' request conforms to.
53+type ProjectsJobsDebugGetConfigResource =
54+ "v1b3" :>
55+ "projects" :>
56+ Capture "projectId" Text :>
57+ "jobs" :>
58+ Capture "jobId" Text :>
59+ "debug" :>
60+ "getConfig" :>
61+ QueryParam "$.xgafv" Text :>
62+ QueryParam "upload_protocol" Text :>
63+ QueryParam "pp" Bool :>
64+ QueryParam "access_token" Text :>
65+ QueryParam "uploadType" Text :>
66+ QueryParam "bearer_token" Text :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ ReqBody '[JSON] GetDebugConfigRequest :>
70+ Post '[JSON] GetDebugConfigResponse
71+
72+-- | Get encoded debug configuration for component. Not cacheable.
73+--
74+-- /See:/ 'projectsJobsDebugGetConfig' smart constructor.
75+data ProjectsJobsDebugGetConfig = ProjectsJobsDebugGetConfig'
76+ { _pjdgcXgafv :: !(Maybe Text)
77+ , _pjdgcJobId :: !Text
78+ , _pjdgcUploadProtocol :: !(Maybe Text)
79+ , _pjdgcPp :: !Bool
80+ , _pjdgcAccessToken :: !(Maybe Text)
81+ , _pjdgcUploadType :: !(Maybe Text)
82+ , _pjdgcPayload :: !GetDebugConfigRequest
83+ , _pjdgcBearerToken :: !(Maybe Text)
84+ , _pjdgcProjectId :: !Text
85+ , _pjdgcCallback :: !(Maybe Text)
86+ } deriving (Eq,Show,Data,Typeable,Generic)
87+
88+-- | Creates a value of 'ProjectsJobsDebugGetConfig' with the minimum fields required to make a request.
89+--
90+-- Use one of the following lenses to modify other fields as desired:
91+--
92+-- * 'pjdgcXgafv'
93+--
94+-- * 'pjdgcJobId'
95+--
96+-- * 'pjdgcUploadProtocol'
97+--
98+-- * 'pjdgcPp'
99+--
100+-- * 'pjdgcAccessToken'
101+--
102+-- * 'pjdgcUploadType'
103+--
104+-- * 'pjdgcPayload'
105+--
106+-- * 'pjdgcBearerToken'
107+--
108+-- * 'pjdgcProjectId'
109+--
110+-- * 'pjdgcCallback'
111+projectsJobsDebugGetConfig
112+ :: Text -- ^ 'pjdgcJobId'
113+ -> GetDebugConfigRequest -- ^ 'pjdgcPayload'
114+ -> Text -- ^ 'pjdgcProjectId'
115+ -> ProjectsJobsDebugGetConfig
116+projectsJobsDebugGetConfig pPjdgcJobId_ pPjdgcPayload_ pPjdgcProjectId_ =
117+ ProjectsJobsDebugGetConfig'
118+ { _pjdgcXgafv = Nothing
119+ , _pjdgcJobId = pPjdgcJobId_
120+ , _pjdgcUploadProtocol = Nothing
121+ , _pjdgcPp = True
122+ , _pjdgcAccessToken = Nothing
123+ , _pjdgcUploadType = Nothing
124+ , _pjdgcPayload = pPjdgcPayload_
125+ , _pjdgcBearerToken = Nothing
126+ , _pjdgcProjectId = pPjdgcProjectId_
127+ , _pjdgcCallback = Nothing
128+ }
129+
130+-- | V1 error format.
131+pjdgcXgafv :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
132+pjdgcXgafv
133+ = lens _pjdgcXgafv (\ s a -> s{_pjdgcXgafv = a})
134+
135+-- | The job id.
136+pjdgcJobId :: Lens' ProjectsJobsDebugGetConfig Text
137+pjdgcJobId
138+ = lens _pjdgcJobId (\ s a -> s{_pjdgcJobId = a})
139+
140+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
141+pjdgcUploadProtocol :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
142+pjdgcUploadProtocol
143+ = lens _pjdgcUploadProtocol
144+ (\ s a -> s{_pjdgcUploadProtocol = a})
145+
146+-- | Pretty-print response.
147+pjdgcPp :: Lens' ProjectsJobsDebugGetConfig Bool
148+pjdgcPp = lens _pjdgcPp (\ s a -> s{_pjdgcPp = a})
149+
150+-- | OAuth access token.
151+pjdgcAccessToken :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
152+pjdgcAccessToken
153+ = lens _pjdgcAccessToken
154+ (\ s a -> s{_pjdgcAccessToken = a})
155+
156+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
157+pjdgcUploadType :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
158+pjdgcUploadType
159+ = lens _pjdgcUploadType
160+ (\ s a -> s{_pjdgcUploadType = a})
161+
162+-- | Multipart request metadata.
163+pjdgcPayload :: Lens' ProjectsJobsDebugGetConfig GetDebugConfigRequest
164+pjdgcPayload
165+ = lens _pjdgcPayload (\ s a -> s{_pjdgcPayload = a})
166+
167+-- | OAuth bearer token.
168+pjdgcBearerToken :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
169+pjdgcBearerToken
170+ = lens _pjdgcBearerToken
171+ (\ s a -> s{_pjdgcBearerToken = a})
172+
173+-- | The project id.
174+pjdgcProjectId :: Lens' ProjectsJobsDebugGetConfig Text
175+pjdgcProjectId
176+ = lens _pjdgcProjectId
177+ (\ s a -> s{_pjdgcProjectId = a})
178+
179+-- | JSONP
180+pjdgcCallback :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
181+pjdgcCallback
182+ = lens _pjdgcCallback
183+ (\ s a -> s{_pjdgcCallback = a})
184+
185+instance GoogleRequest ProjectsJobsDebugGetConfig
186+ where
187+ type Rs ProjectsJobsDebugGetConfig =
188+ GetDebugConfigResponse
189+ type Scopes ProjectsJobsDebugGetConfig =
190+ '["https://www.googleapis.com/auth/cloud-platform",
191+ "https://www.googleapis.com/auth/userinfo.email"]
192+ requestClient ProjectsJobsDebugGetConfig'{..}
193+ = go _pjdgcProjectId _pjdgcJobId _pjdgcXgafv
194+ _pjdgcUploadProtocol
195+ (Just _pjdgcPp)
196+ _pjdgcAccessToken
197+ _pjdgcUploadType
198+ _pjdgcBearerToken
199+ _pjdgcCallback
200+ (Just AltJSON)
201+ _pjdgcPayload
202+ dataflowService
203+ where go
204+ = buildClient
205+ (Proxy :: Proxy ProjectsJobsDebugGetConfigResource)
206+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/SendCapture.hsnew file+206
@@ -0,0 +1,206 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Jobs.Debug.SendCapture
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Send encoded debug capture data for component.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.debug.sendCapture@.
26+module Network.Google.Resource.Dataflow.Projects.Jobs.Debug.SendCapture
27+ (
28+ -- * REST Resource
29+ ProjectsJobsDebugSendCaptureResource
30+
31+ -- * Creating a Request
32+ , projectsJobsDebugSendCapture
33+ , ProjectsJobsDebugSendCapture
34+
35+ -- * Request Lenses
36+ , pjdscXgafv
37+ , pjdscJobId
38+ , pjdscUploadProtocol
39+ , pjdscPp
40+ , pjdscAccessToken
41+ , pjdscUploadType
42+ , pjdscPayload
43+ , pjdscBearerToken
44+ , pjdscProjectId
45+ , pjdscCallback
46+ ) where
47+
48+import Network.Google.Dataflow.Types
49+import Network.Google.Prelude
50+
51+-- | A resource alias for @dataflow.projects.jobs.debug.sendCapture@ method which the
52+-- 'ProjectsJobsDebugSendCapture' request conforms to.
53+type ProjectsJobsDebugSendCaptureResource =
54+ "v1b3" :>
55+ "projects" :>
56+ Capture "projectId" Text :>
57+ "jobs" :>
58+ Capture "jobId" Text :>
59+ "debug" :>
60+ "sendCapture" :>
61+ QueryParam "$.xgafv" Text :>
62+ QueryParam "upload_protocol" Text :>
63+ QueryParam "pp" Bool :>
64+ QueryParam "access_token" Text :>
65+ QueryParam "uploadType" Text :>
66+ QueryParam "bearer_token" Text :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ ReqBody '[JSON] SendDebugCaptureRequest :>
70+ Post '[JSON] SendDebugCaptureResponse
71+
72+-- | Send encoded debug capture data for component.
73+--
74+-- /See:/ 'projectsJobsDebugSendCapture' smart constructor.
75+data ProjectsJobsDebugSendCapture = ProjectsJobsDebugSendCapture'
76+ { _pjdscXgafv :: !(Maybe Text)
77+ , _pjdscJobId :: !Text
78+ , _pjdscUploadProtocol :: !(Maybe Text)
79+ , _pjdscPp :: !Bool
80+ , _pjdscAccessToken :: !(Maybe Text)
81+ , _pjdscUploadType :: !(Maybe Text)
82+ , _pjdscPayload :: !SendDebugCaptureRequest
83+ , _pjdscBearerToken :: !(Maybe Text)
84+ , _pjdscProjectId :: !Text
85+ , _pjdscCallback :: !(Maybe Text)
86+ } deriving (Eq,Show,Data,Typeable,Generic)
87+
88+-- | Creates a value of 'ProjectsJobsDebugSendCapture' with the minimum fields required to make a request.
89+--
90+-- Use one of the following lenses to modify other fields as desired:
91+--
92+-- * 'pjdscXgafv'
93+--
94+-- * 'pjdscJobId'
95+--
96+-- * 'pjdscUploadProtocol'
97+--
98+-- * 'pjdscPp'
99+--
100+-- * 'pjdscAccessToken'
101+--
102+-- * 'pjdscUploadType'
103+--
104+-- * 'pjdscPayload'
105+--
106+-- * 'pjdscBearerToken'
107+--
108+-- * 'pjdscProjectId'
109+--
110+-- * 'pjdscCallback'
111+projectsJobsDebugSendCapture
112+ :: Text -- ^ 'pjdscJobId'
113+ -> SendDebugCaptureRequest -- ^ 'pjdscPayload'
114+ -> Text -- ^ 'pjdscProjectId'
115+ -> ProjectsJobsDebugSendCapture
116+projectsJobsDebugSendCapture pPjdscJobId_ pPjdscPayload_ pPjdscProjectId_ =
117+ ProjectsJobsDebugSendCapture'
118+ { _pjdscXgafv = Nothing
119+ , _pjdscJobId = pPjdscJobId_
120+ , _pjdscUploadProtocol = Nothing
121+ , _pjdscPp = True
122+ , _pjdscAccessToken = Nothing
123+ , _pjdscUploadType = Nothing
124+ , _pjdscPayload = pPjdscPayload_
125+ , _pjdscBearerToken = Nothing
126+ , _pjdscProjectId = pPjdscProjectId_
127+ , _pjdscCallback = Nothing
128+ }
129+
130+-- | V1 error format.
131+pjdscXgafv :: Lens' ProjectsJobsDebugSendCapture (Maybe Text)
132+pjdscXgafv
133+ = lens _pjdscXgafv (\ s a -> s{_pjdscXgafv = a})
134+
135+-- | The job id.
136+pjdscJobId :: Lens' ProjectsJobsDebugSendCapture Text
137+pjdscJobId
138+ = lens _pjdscJobId (\ s a -> s{_pjdscJobId = a})
139+
140+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
141+pjdscUploadProtocol :: Lens' ProjectsJobsDebugSendCapture (Maybe Text)
142+pjdscUploadProtocol
143+ = lens _pjdscUploadProtocol
144+ (\ s a -> s{_pjdscUploadProtocol = a})
145+
146+-- | Pretty-print response.
147+pjdscPp :: Lens' ProjectsJobsDebugSendCapture Bool
148+pjdscPp = lens _pjdscPp (\ s a -> s{_pjdscPp = a})
149+
150+-- | OAuth access token.
151+pjdscAccessToken :: Lens' ProjectsJobsDebugSendCapture (Maybe Text)
152+pjdscAccessToken
153+ = lens _pjdscAccessToken
154+ (\ s a -> s{_pjdscAccessToken = a})
155+
156+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
157+pjdscUploadType :: Lens' ProjectsJobsDebugSendCapture (Maybe Text)
158+pjdscUploadType
159+ = lens _pjdscUploadType
160+ (\ s a -> s{_pjdscUploadType = a})
161+
162+-- | Multipart request metadata.
163+pjdscPayload :: Lens' ProjectsJobsDebugSendCapture SendDebugCaptureRequest
164+pjdscPayload
165+ = lens _pjdscPayload (\ s a -> s{_pjdscPayload = a})
166+
167+-- | OAuth bearer token.
168+pjdscBearerToken :: Lens' ProjectsJobsDebugSendCapture (Maybe Text)
169+pjdscBearerToken
170+ = lens _pjdscBearerToken
171+ (\ s a -> s{_pjdscBearerToken = a})
172+
173+-- | The project id.
174+pjdscProjectId :: Lens' ProjectsJobsDebugSendCapture Text
175+pjdscProjectId
176+ = lens _pjdscProjectId
177+ (\ s a -> s{_pjdscProjectId = a})
178+
179+-- | JSONP
180+pjdscCallback :: Lens' ProjectsJobsDebugSendCapture (Maybe Text)
181+pjdscCallback
182+ = lens _pjdscCallback
183+ (\ s a -> s{_pjdscCallback = a})
184+
185+instance GoogleRequest ProjectsJobsDebugSendCapture
186+ where
187+ type Rs ProjectsJobsDebugSendCapture =
188+ SendDebugCaptureResponse
189+ type Scopes ProjectsJobsDebugSendCapture =
190+ '["https://www.googleapis.com/auth/cloud-platform",
191+ "https://www.googleapis.com/auth/userinfo.email"]
192+ requestClient ProjectsJobsDebugSendCapture'{..}
193+ = go _pjdscProjectId _pjdscJobId _pjdscXgafv
194+ _pjdscUploadProtocol
195+ (Just _pjdscPp)
196+ _pjdscAccessToken
197+ _pjdscUploadType
198+ _pjdscBearerToken
199+ _pjdscCallback
200+ (Just AltJSON)
201+ _pjdscPayload
202+ dataflowService
203+ where go
204+ = buildClient
205+ (Proxy :: Proxy ProjectsJobsDebugSendCaptureResource)
206+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Templates/Create.hsnew file+186
@@ -0,0 +1,186 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Templates.Create
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Creates a dataflow job from a template.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.templates.create@.
26+module Network.Google.Resource.Dataflow.Projects.Templates.Create
27+ (
28+ -- * REST Resource
29+ ProjectsTemplatesCreateResource
30+
31+ -- * Creating a Request
32+ , projectsTemplatesCreate
33+ , ProjectsTemplatesCreate
34+
35+ -- * Request Lenses
36+ , ptcXgafv
37+ , ptcUploadProtocol
38+ , ptcPp
39+ , ptcAccessToken
40+ , ptcUploadType
41+ , ptcPayload
42+ , ptcBearerToken
43+ , ptcProjectId
44+ , ptcCallback
45+ ) where
46+
47+import Network.Google.Dataflow.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @dataflow.projects.templates.create@ method which the
51+-- 'ProjectsTemplatesCreate' request conforms to.
52+type ProjectsTemplatesCreateResource =
53+ "v1b3" :>
54+ "projects" :>
55+ Capture "projectId" Text :>
56+ "templates" :>
57+ QueryParam "$.xgafv" Text :>
58+ QueryParam "upload_protocol" Text :>
59+ QueryParam "pp" Bool :>
60+ QueryParam "access_token" Text :>
61+ QueryParam "uploadType" Text :>
62+ QueryParam "bearer_token" Text :>
63+ QueryParam "callback" Text :>
64+ QueryParam "alt" AltJSON :>
65+ ReqBody '[JSON] CreateJobFromTemplateRequest :>
66+ Post '[JSON] Job
67+
68+-- | Creates a dataflow job from a template.
69+--
70+-- /See:/ 'projectsTemplatesCreate' smart constructor.
71+data ProjectsTemplatesCreate = ProjectsTemplatesCreate'
72+ { _ptcXgafv :: !(Maybe Text)
73+ , _ptcUploadProtocol :: !(Maybe Text)
74+ , _ptcPp :: !Bool
75+ , _ptcAccessToken :: !(Maybe Text)
76+ , _ptcUploadType :: !(Maybe Text)
77+ , _ptcPayload :: !CreateJobFromTemplateRequest
78+ , _ptcBearerToken :: !(Maybe Text)
79+ , _ptcProjectId :: !Text
80+ , _ptcCallback :: !(Maybe Text)
81+ } deriving (Eq,Show,Data,Typeable,Generic)
82+
83+-- | Creates a value of 'ProjectsTemplatesCreate' with the minimum fields required to make a request.
84+--
85+-- Use one of the following lenses to modify other fields as desired:
86+--
87+-- * 'ptcXgafv'
88+--
89+-- * 'ptcUploadProtocol'
90+--
91+-- * 'ptcPp'
92+--
93+-- * 'ptcAccessToken'
94+--
95+-- * 'ptcUploadType'
96+--
97+-- * 'ptcPayload'
98+--
99+-- * 'ptcBearerToken'
100+--
101+-- * 'ptcProjectId'
102+--
103+-- * 'ptcCallback'
104+projectsTemplatesCreate
105+ :: CreateJobFromTemplateRequest -- ^ 'ptcPayload'
106+ -> Text -- ^ 'ptcProjectId'
107+ -> ProjectsTemplatesCreate
108+projectsTemplatesCreate pPtcPayload_ pPtcProjectId_ =
109+ ProjectsTemplatesCreate'
110+ { _ptcXgafv = Nothing
111+ , _ptcUploadProtocol = Nothing
112+ , _ptcPp = True
113+ , _ptcAccessToken = Nothing
114+ , _ptcUploadType = Nothing
115+ , _ptcPayload = pPtcPayload_
116+ , _ptcBearerToken = Nothing
117+ , _ptcProjectId = pPtcProjectId_
118+ , _ptcCallback = Nothing
119+ }
120+
121+-- | V1 error format.
122+ptcXgafv :: Lens' ProjectsTemplatesCreate (Maybe Text)
123+ptcXgafv = lens _ptcXgafv (\ s a -> s{_ptcXgafv = a})
124+
125+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
126+ptcUploadProtocol :: Lens' ProjectsTemplatesCreate (Maybe Text)
127+ptcUploadProtocol
128+ = lens _ptcUploadProtocol
129+ (\ s a -> s{_ptcUploadProtocol = a})
130+
131+-- | Pretty-print response.
132+ptcPp :: Lens' ProjectsTemplatesCreate Bool
133+ptcPp = lens _ptcPp (\ s a -> s{_ptcPp = a})
134+
135+-- | OAuth access token.
136+ptcAccessToken :: Lens' ProjectsTemplatesCreate (Maybe Text)
137+ptcAccessToken
138+ = lens _ptcAccessToken
139+ (\ s a -> s{_ptcAccessToken = a})
140+
141+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
142+ptcUploadType :: Lens' ProjectsTemplatesCreate (Maybe Text)
143+ptcUploadType
144+ = lens _ptcUploadType
145+ (\ s a -> s{_ptcUploadType = a})
146+
147+-- | Multipart request metadata.
148+ptcPayload :: Lens' ProjectsTemplatesCreate CreateJobFromTemplateRequest
149+ptcPayload
150+ = lens _ptcPayload (\ s a -> s{_ptcPayload = a})
151+
152+-- | OAuth bearer token.
153+ptcBearerToken :: Lens' ProjectsTemplatesCreate (Maybe Text)
154+ptcBearerToken
155+ = lens _ptcBearerToken
156+ (\ s a -> s{_ptcBearerToken = a})
157+
158+-- | The project which owns the job.
159+ptcProjectId :: Lens' ProjectsTemplatesCreate Text
160+ptcProjectId
161+ = lens _ptcProjectId (\ s a -> s{_ptcProjectId = a})
162+
163+-- | JSONP
164+ptcCallback :: Lens' ProjectsTemplatesCreate (Maybe Text)
165+ptcCallback
166+ = lens _ptcCallback (\ s a -> s{_ptcCallback = a})
167+
168+instance GoogleRequest ProjectsTemplatesCreate where
169+ type Rs ProjectsTemplatesCreate = Job
170+ type Scopes ProjectsTemplatesCreate =
171+ '["https://www.googleapis.com/auth/cloud-platform",
172+ "https://www.googleapis.com/auth/userinfo.email"]
173+ requestClient ProjectsTemplatesCreate'{..}
174+ = go _ptcProjectId _ptcXgafv _ptcUploadProtocol
175+ (Just _ptcPp)
176+ _ptcAccessToken
177+ _ptcUploadType
178+ _ptcBearerToken
179+ _ptcCallback
180+ (Just AltJSON)
181+ _ptcPayload
182+ dataflowService
183+ where go
184+ = buildClient
185+ (Proxy :: Proxy ProjectsTemplatesCreateResource)
186+ mempty
gogol-dataflow/gogol-dataflow.cabal+3
@@ -37,6 +37,8 @@ library
37 Network.Google.Dataflow
37 Network.Google.Dataflow
38 , Network.Google.Dataflow.Types
38 , Network.Google.Dataflow.Types
39 , Network.Google.Resource.Dataflow.Projects.Jobs.Create
39 , Network.Google.Resource.Dataflow.Projects.Jobs.Create
40+ , Network.Google.Resource.Dataflow.Projects.Jobs.Debug.GetConfig
41+ , Network.Google.Resource.Dataflow.Projects.Jobs.Debug.SendCapture
40 , Network.Google.Resource.Dataflow.Projects.Jobs.Get
42 , Network.Google.Resource.Dataflow.Projects.Jobs.Get
41 , Network.Google.Resource.Dataflow.Projects.Jobs.GetMetrics
43 , Network.Google.Resource.Dataflow.Projects.Jobs.GetMetrics
42 , Network.Google.Resource.Dataflow.Projects.Jobs.List
44 , Network.Google.Resource.Dataflow.Projects.Jobs.List
@@ -44,6 +46,7 @@ library
44 , Network.Google.Resource.Dataflow.Projects.Jobs.Update
46 , Network.Google.Resource.Dataflow.Projects.Jobs.Update
45 , Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.Lease
47 , Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.Lease
46 , Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
48 , Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
49+ , Network.Google.Resource.Dataflow.Projects.Templates.Create
47 , Network.Google.Resource.Dataflow.Projects.WorkerMessages
50 , Network.Google.Resource.Dataflow.Projects.WorkerMessages
48
51
49 other-modules:
52 other-modules: