OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.dataflow.v1b3; | 3 library googleapis_beta.dataflow.v1b3; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1936 } | 1936 } |
1937 if (structuredNameAndMetadata != null) { | 1937 if (structuredNameAndMetadata != null) { |
1938 _json["structuredNameAndMetadata"] = (structuredNameAndMetadata).toJson(); | 1938 _json["structuredNameAndMetadata"] = (structuredNameAndMetadata).toJson(); |
1939 } | 1939 } |
1940 return _json; | 1940 return _json; |
1941 } | 1941 } |
1942 } | 1942 } |
1943 | 1943 |
1944 /** Request to create a Dataflow job. */ | 1944 /** Request to create a Dataflow job. */ |
1945 class CreateJobFromTemplateRequest { | 1945 class CreateJobFromTemplateRequest { |
| 1946 /** Runtime environment for the job. */ |
| 1947 RuntimeEnvironment environment; |
1946 /** A path to the serialized JSON representation of the job. */ | 1948 /** A path to the serialized JSON representation of the job. */ |
1947 core.String gcsPath; | 1949 core.String gcsPath; |
| 1950 /** The job name to use for the created job.. */ |
| 1951 core.String jobName; |
1948 /** Dynamic parameterization of the job's runtime environment. */ | 1952 /** Dynamic parameterization of the job's runtime environment. */ |
1949 core.Map<core.String, core.String> parameters; | 1953 core.Map<core.String, core.String> parameters; |
1950 | 1954 |
1951 CreateJobFromTemplateRequest(); | 1955 CreateJobFromTemplateRequest(); |
1952 | 1956 |
1953 CreateJobFromTemplateRequest.fromJson(core.Map _json) { | 1957 CreateJobFromTemplateRequest.fromJson(core.Map _json) { |
| 1958 if (_json.containsKey("environment")) { |
| 1959 environment = new RuntimeEnvironment.fromJson(_json["environment"]); |
| 1960 } |
1954 if (_json.containsKey("gcsPath")) { | 1961 if (_json.containsKey("gcsPath")) { |
1955 gcsPath = _json["gcsPath"]; | 1962 gcsPath = _json["gcsPath"]; |
1956 } | 1963 } |
| 1964 if (_json.containsKey("jobName")) { |
| 1965 jobName = _json["jobName"]; |
| 1966 } |
1957 if (_json.containsKey("parameters")) { | 1967 if (_json.containsKey("parameters")) { |
1958 parameters = _json["parameters"]; | 1968 parameters = _json["parameters"]; |
1959 } | 1969 } |
1960 } | 1970 } |
1961 | 1971 |
1962 core.Map toJson() { | 1972 core.Map toJson() { |
1963 var _json = new core.Map(); | 1973 var _json = new core.Map(); |
| 1974 if (environment != null) { |
| 1975 _json["environment"] = (environment).toJson(); |
| 1976 } |
1964 if (gcsPath != null) { | 1977 if (gcsPath != null) { |
1965 _json["gcsPath"] = gcsPath; | 1978 _json["gcsPath"] = gcsPath; |
1966 } | 1979 } |
| 1980 if (jobName != null) { |
| 1981 _json["jobName"] = jobName; |
| 1982 } |
1967 if (parameters != null) { | 1983 if (parameters != null) { |
1968 _json["parameters"] = parameters; | 1984 _json["parameters"] = parameters; |
1969 } | 1985 } |
1970 return _json; | 1986 return _json; |
1971 } | 1987 } |
1972 } | 1988 } |
1973 | 1989 |
1974 /** Identifies the location of a custom souce. */ | 1990 /** Identifies the location of a custom souce. */ |
1975 class CustomSourceLocation { | 1991 class CustomSourceLocation { |
1976 /** Whether this source is stateful. */ | 1992 /** Whether this source is stateful. */ |
(...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4014 /** | 4030 /** |
4015 * A pubsub topic, in the form of "pubsub.googleapis.com/topics/ | 4031 * A pubsub topic, in the form of "pubsub.googleapis.com/topics/ |
4016 * /" | 4032 * /" |
4017 */ | 4033 */ |
4018 core.String topic; | 4034 core.String topic; |
4019 /** | 4035 /** |
4020 * If set, specifies the pubsub subscription that will be used for tracking | 4036 * If set, specifies the pubsub subscription that will be used for tracking |
4021 * custom time timestamps for watermark estimation. | 4037 * custom time timestamps for watermark estimation. |
4022 */ | 4038 */ |
4023 core.String trackingSubscription; | 4039 core.String trackingSubscription; |
| 4040 /** If true, then the client has requested to get pubsub attributes. */ |
| 4041 core.bool withAttributes; |
4024 | 4042 |
4025 PubsubLocation(); | 4043 PubsubLocation(); |
4026 | 4044 |
4027 PubsubLocation.fromJson(core.Map _json) { | 4045 PubsubLocation.fromJson(core.Map _json) { |
4028 if (_json.containsKey("dropLateData")) { | 4046 if (_json.containsKey("dropLateData")) { |
4029 dropLateData = _json["dropLateData"]; | 4047 dropLateData = _json["dropLateData"]; |
4030 } | 4048 } |
4031 if (_json.containsKey("idLabel")) { | 4049 if (_json.containsKey("idLabel")) { |
4032 idLabel = _json["idLabel"]; | 4050 idLabel = _json["idLabel"]; |
4033 } | 4051 } |
4034 if (_json.containsKey("subscription")) { | 4052 if (_json.containsKey("subscription")) { |
4035 subscription = _json["subscription"]; | 4053 subscription = _json["subscription"]; |
4036 } | 4054 } |
4037 if (_json.containsKey("timestampLabel")) { | 4055 if (_json.containsKey("timestampLabel")) { |
4038 timestampLabel = _json["timestampLabel"]; | 4056 timestampLabel = _json["timestampLabel"]; |
4039 } | 4057 } |
4040 if (_json.containsKey("topic")) { | 4058 if (_json.containsKey("topic")) { |
4041 topic = _json["topic"]; | 4059 topic = _json["topic"]; |
4042 } | 4060 } |
4043 if (_json.containsKey("trackingSubscription")) { | 4061 if (_json.containsKey("trackingSubscription")) { |
4044 trackingSubscription = _json["trackingSubscription"]; | 4062 trackingSubscription = _json["trackingSubscription"]; |
4045 } | 4063 } |
| 4064 if (_json.containsKey("withAttributes")) { |
| 4065 withAttributes = _json["withAttributes"]; |
| 4066 } |
4046 } | 4067 } |
4047 | 4068 |
4048 core.Map toJson() { | 4069 core.Map toJson() { |
4049 var _json = new core.Map(); | 4070 var _json = new core.Map(); |
4050 if (dropLateData != null) { | 4071 if (dropLateData != null) { |
4051 _json["dropLateData"] = dropLateData; | 4072 _json["dropLateData"] = dropLateData; |
4052 } | 4073 } |
4053 if (idLabel != null) { | 4074 if (idLabel != null) { |
4054 _json["idLabel"] = idLabel; | 4075 _json["idLabel"] = idLabel; |
4055 } | 4076 } |
4056 if (subscription != null) { | 4077 if (subscription != null) { |
4057 _json["subscription"] = subscription; | 4078 _json["subscription"] = subscription; |
4058 } | 4079 } |
4059 if (timestampLabel != null) { | 4080 if (timestampLabel != null) { |
4060 _json["timestampLabel"] = timestampLabel; | 4081 _json["timestampLabel"] = timestampLabel; |
4061 } | 4082 } |
4062 if (topic != null) { | 4083 if (topic != null) { |
4063 _json["topic"] = topic; | 4084 _json["topic"] = topic; |
4064 } | 4085 } |
4065 if (trackingSubscription != null) { | 4086 if (trackingSubscription != null) { |
4066 _json["trackingSubscription"] = trackingSubscription; | 4087 _json["trackingSubscription"] = trackingSubscription; |
4067 } | 4088 } |
| 4089 if (withAttributes != null) { |
| 4090 _json["withAttributes"] = withAttributes; |
| 4091 } |
4068 return _json; | 4092 return _json; |
4069 } | 4093 } |
4070 } | 4094 } |
4071 | 4095 |
4072 /** An instruction that reads records. Takes no inputs, produces one output. */ | 4096 /** An instruction that reads records. Takes no inputs, produces one output. */ |
4073 class ReadInstruction { | 4097 class ReadInstruction { |
4074 /** The source to read from. */ | 4098 /** The source to read from. */ |
4075 Source source; | 4099 Source source; |
4076 | 4100 |
4077 ReadInstruction(); | 4101 ReadInstruction(); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4203 if (isInfinite != null) { | 4227 if (isInfinite != null) { |
4204 _json["isInfinite"] = isInfinite; | 4228 _json["isInfinite"] = isInfinite; |
4205 } | 4229 } |
4206 if (value != null) { | 4230 if (value != null) { |
4207 _json["value"] = value; | 4231 _json["value"] = value; |
4208 } | 4232 } |
4209 return _json; | 4233 return _json; |
4210 } | 4234 } |
4211 } | 4235 } |
4212 | 4236 |
| 4237 /** Environment values to set at runtime. */ |
| 4238 class RuntimeEnvironment { |
| 4239 /** The maximum number of workers to start for the job. */ |
| 4240 core.int maxWorkers; |
| 4241 /** The service account to run the job as. */ |
| 4242 core.String serviceAccountEmail; |
| 4243 /** The zone to start the workers in. */ |
| 4244 core.String zone; |
| 4245 |
| 4246 RuntimeEnvironment(); |
| 4247 |
| 4248 RuntimeEnvironment.fromJson(core.Map _json) { |
| 4249 if (_json.containsKey("maxWorkers")) { |
| 4250 maxWorkers = _json["maxWorkers"]; |
| 4251 } |
| 4252 if (_json.containsKey("serviceAccountEmail")) { |
| 4253 serviceAccountEmail = _json["serviceAccountEmail"]; |
| 4254 } |
| 4255 if (_json.containsKey("zone")) { |
| 4256 zone = _json["zone"]; |
| 4257 } |
| 4258 } |
| 4259 |
| 4260 core.Map toJson() { |
| 4261 var _json = new core.Map(); |
| 4262 if (maxWorkers != null) { |
| 4263 _json["maxWorkers"] = maxWorkers; |
| 4264 } |
| 4265 if (serviceAccountEmail != null) { |
| 4266 _json["serviceAccountEmail"] = serviceAccountEmail; |
| 4267 } |
| 4268 if (zone != null) { |
| 4269 _json["zone"] = zone; |
| 4270 } |
| 4271 return _json; |
| 4272 } |
| 4273 } |
| 4274 |
4213 /** Request to send encoded debug information. */ | 4275 /** Request to send encoded debug information. */ |
4214 class SendDebugCaptureRequest { | 4276 class SendDebugCaptureRequest { |
4215 /** The internal component id for which debug information is sent. */ | 4277 /** The internal component id for which debug information is sent. */ |
4216 core.String componentId; | 4278 core.String componentId; |
4217 /** The encoded debug information. */ | 4279 /** The encoded debug information. */ |
4218 core.String data; | 4280 core.String data; |
4219 /** The worker id, i.e., VM hostname. */ | 4281 /** The worker id, i.e., VM hostname. */ |
4220 core.String workerId; | 4282 core.String workerId; |
4221 | 4283 |
4222 SendDebugCaptureRequest(); | 4284 SendDebugCaptureRequest(); |
(...skipping 2563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6786 var _json = new core.Map(); | 6848 var _json = new core.Map(); |
6787 if (input != null) { | 6849 if (input != null) { |
6788 _json["input"] = (input).toJson(); | 6850 _json["input"] = (input).toJson(); |
6789 } | 6851 } |
6790 if (sink != null) { | 6852 if (sink != null) { |
6791 _json["sink"] = (sink).toJson(); | 6853 _json["sink"] = (sink).toJson(); |
6792 } | 6854 } |
6793 return _json; | 6855 return _json; |
6794 } | 6856 } |
6795 } | 6857 } |
OLD | NEW |