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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 DataflowApi(http.Client client, {core.String rootUrl: "https://dataflow.google
apis.com/", core.String servicePath: ""}) : | 33 DataflowApi(http.Client client, {core.String rootUrl: "https://dataflow.google
apis.com/", core.String servicePath: ""}) : |
34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 class ProjectsResourceApi { | 38 class ProjectsResourceApi { |
39 final commons.ApiRequester _requester; | 39 final commons.ApiRequester _requester; |
40 | 40 |
41 ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester); | 41 ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester); |
| 42 ProjectsLocationsResourceApi get locations => new ProjectsLocationsResourceApi
(_requester); |
42 ProjectsTemplatesResourceApi get templates => new ProjectsTemplatesResourceApi
(_requester); | 43 ProjectsTemplatesResourceApi get templates => new ProjectsTemplatesResourceApi
(_requester); |
43 | 44 |
44 ProjectsResourceApi(commons.ApiRequester client) : | 45 ProjectsResourceApi(commons.ApiRequester client) : |
45 _requester = client; | 46 _requester = client; |
46 | 47 |
47 /** | 48 /** |
48 * Send a worker_message to the service. | 49 * Send a worker_message to the service. |
49 * | 50 * |
50 * [request] - The metadata request object. | 51 * [request] - The metadata request object. |
51 * | 52 * |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 * [projectId] - The project which owns the job. | 112 * [projectId] - The project which owns the job. |
112 * | 113 * |
113 * [view] - Level of information requested in response. | 114 * [view] - Level of information requested in response. |
114 * Possible string values are: | 115 * Possible string values are: |
115 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. | 116 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. |
116 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. | 117 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. |
117 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. | 118 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. |
118 * | 119 * |
119 * [replaceJobId] - DEPRECATED. This field is now on the Job message. | 120 * [replaceJobId] - DEPRECATED. This field is now on the Job message. |
120 * | 121 * |
| 122 * [location] - The location which contains this job. |
| 123 * |
121 * Completes with a [Job]. | 124 * Completes with a [Job]. |
122 * | 125 * |
123 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 126 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 127 * error. |
| 128 * |
| 129 * If the used [http.Client] completes with an error when making a REST call, |
| 130 * this method will complete with the same error. |
| 131 */ |
| 132 async.Future<Job> create(Job request, core.String projectId, {core.String view
, core.String replaceJobId, core.String location}) { |
| 133 var _url = null; |
| 134 var _queryParams = new core.Map(); |
| 135 var _uploadMedia = null; |
| 136 var _uploadOptions = null; |
| 137 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 138 var _body = null; |
| 139 |
| 140 if (request != null) { |
| 141 _body = convert.JSON.encode((request).toJson()); |
| 142 } |
| 143 if (projectId == null) { |
| 144 throw new core.ArgumentError("Parameter projectId is required."); |
| 145 } |
| 146 if (view != null) { |
| 147 _queryParams["view"] = [view]; |
| 148 } |
| 149 if (replaceJobId != null) { |
| 150 _queryParams["replaceJobId"] = [replaceJobId]; |
| 151 } |
| 152 if (location != null) { |
| 153 _queryParams["location"] = [location]; |
| 154 } |
| 155 |
| 156 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs'; |
| 157 |
| 158 var _response = _requester.request(_url, |
| 159 "POST", |
| 160 body: _body, |
| 161 queryParams: _queryParams, |
| 162 uploadOptions: _uploadOptions, |
| 163 uploadMedia: _uploadMedia, |
| 164 downloadOptions: _downloadOptions); |
| 165 return _response.then((data) => new Job.fromJson(data)); |
| 166 } |
| 167 |
| 168 /** |
| 169 * Gets the state of the specified dataflow job. |
| 170 * |
| 171 * Request parameters: |
| 172 * |
| 173 * [projectId] - The project which owns the job. |
| 174 * |
| 175 * [jobId] - Identifies a single job. |
| 176 * |
| 177 * [view] - Level of information requested in response. |
| 178 * Possible string values are: |
| 179 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. |
| 180 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. |
| 181 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. |
| 182 * |
| 183 * [location] - The location which contains this job. |
| 184 * |
| 185 * Completes with a [Job]. |
| 186 * |
| 187 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 188 * error. |
| 189 * |
| 190 * If the used [http.Client] completes with an error when making a REST call, |
| 191 * this method will complete with the same error. |
| 192 */ |
| 193 async.Future<Job> get(core.String projectId, core.String jobId, {core.String v
iew, core.String location}) { |
| 194 var _url = null; |
| 195 var _queryParams = new core.Map(); |
| 196 var _uploadMedia = null; |
| 197 var _uploadOptions = null; |
| 198 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 199 var _body = null; |
| 200 |
| 201 if (projectId == null) { |
| 202 throw new core.ArgumentError("Parameter projectId is required."); |
| 203 } |
| 204 if (jobId == null) { |
| 205 throw new core.ArgumentError("Parameter jobId is required."); |
| 206 } |
| 207 if (view != null) { |
| 208 _queryParams["view"] = [view]; |
| 209 } |
| 210 if (location != null) { |
| 211 _queryParams["location"] = [location]; |
| 212 } |
| 213 |
| 214 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId'); |
| 215 |
| 216 var _response = _requester.request(_url, |
| 217 "GET", |
| 218 body: _body, |
| 219 queryParams: _queryParams, |
| 220 uploadOptions: _uploadOptions, |
| 221 uploadMedia: _uploadMedia, |
| 222 downloadOptions: _downloadOptions); |
| 223 return _response.then((data) => new Job.fromJson(data)); |
| 224 } |
| 225 |
| 226 /** |
| 227 * Request the job status. |
| 228 * |
| 229 * Request parameters: |
| 230 * |
| 231 * [projectId] - A project id. |
| 232 * |
| 233 * [jobId] - The job to get messages for. |
| 234 * |
| 235 * [startTime] - Return only metric data that has changed since this time. |
| 236 * Default is to return all information about all metrics for the job. |
| 237 * |
| 238 * [location] - The location which contains the job specified by job_id. |
| 239 * |
| 240 * Completes with a [JobMetrics]. |
| 241 * |
| 242 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 243 * error. |
| 244 * |
| 245 * If the used [http.Client] completes with an error when making a REST call, |
| 246 * this method will complete with the same error. |
| 247 */ |
| 248 async.Future<JobMetrics> getMetrics(core.String projectId, core.String jobId,
{core.String startTime, core.String location}) { |
| 249 var _url = null; |
| 250 var _queryParams = new core.Map(); |
| 251 var _uploadMedia = null; |
| 252 var _uploadOptions = null; |
| 253 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 254 var _body = null; |
| 255 |
| 256 if (projectId == null) { |
| 257 throw new core.ArgumentError("Parameter projectId is required."); |
| 258 } |
| 259 if (jobId == null) { |
| 260 throw new core.ArgumentError("Parameter jobId is required."); |
| 261 } |
| 262 if (startTime != null) { |
| 263 _queryParams["startTime"] = [startTime]; |
| 264 } |
| 265 if (location != null) { |
| 266 _queryParams["location"] = [location]; |
| 267 } |
| 268 |
| 269 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/metrics'; |
| 270 |
| 271 var _response = _requester.request(_url, |
| 272 "GET", |
| 273 body: _body, |
| 274 queryParams: _queryParams, |
| 275 uploadOptions: _uploadOptions, |
| 276 uploadMedia: _uploadMedia, |
| 277 downloadOptions: _downloadOptions); |
| 278 return _response.then((data) => new JobMetrics.fromJson(data)); |
| 279 } |
| 280 |
| 281 /** |
| 282 * List the jobs of a project |
| 283 * |
| 284 * Request parameters: |
| 285 * |
| 286 * [projectId] - The project which owns the jobs. |
| 287 * |
| 288 * [filter] - The kind of filter to use. |
| 289 * Possible string values are: |
| 290 * - "UNKNOWN" : A UNKNOWN. |
| 291 * - "ALL" : A ALL. |
| 292 * - "TERMINATED" : A TERMINATED. |
| 293 * - "ACTIVE" : A ACTIVE. |
| 294 * |
| 295 * [view] - Level of information requested in response. Default is SUMMARY. |
| 296 * Possible string values are: |
| 297 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. |
| 298 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. |
| 299 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. |
| 300 * |
| 301 * [pageSize] - If there are many jobs, limit response to at most this many. |
| 302 * The actual number of jobs returned will be the lesser of max_responses and |
| 303 * an unspecified server-defined limit. |
| 304 * |
| 305 * [pageToken] - Set this to the 'next_page_token' field of a previous |
| 306 * response to request additional results in a long list. |
| 307 * |
| 308 * [location] - The location which contains this job. |
| 309 * |
| 310 * Completes with a [ListJobsResponse]. |
| 311 * |
| 312 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 313 * error. |
| 314 * |
| 315 * If the used [http.Client] completes with an error when making a REST call, |
| 316 * this method will complete with the same error. |
| 317 */ |
| 318 async.Future<ListJobsResponse> list(core.String projectId, {core.String filter
, core.String view, core.int pageSize, core.String pageToken, core.String locati
on}) { |
| 319 var _url = null; |
| 320 var _queryParams = new core.Map(); |
| 321 var _uploadMedia = null; |
| 322 var _uploadOptions = null; |
| 323 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 324 var _body = null; |
| 325 |
| 326 if (projectId == null) { |
| 327 throw new core.ArgumentError("Parameter projectId is required."); |
| 328 } |
| 329 if (filter != null) { |
| 330 _queryParams["filter"] = [filter]; |
| 331 } |
| 332 if (view != null) { |
| 333 _queryParams["view"] = [view]; |
| 334 } |
| 335 if (pageSize != null) { |
| 336 _queryParams["pageSize"] = ["${pageSize}"]; |
| 337 } |
| 338 if (pageToken != null) { |
| 339 _queryParams["pageToken"] = [pageToken]; |
| 340 } |
| 341 if (location != null) { |
| 342 _queryParams["location"] = [location]; |
| 343 } |
| 344 |
| 345 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs'; |
| 346 |
| 347 var _response = _requester.request(_url, |
| 348 "GET", |
| 349 body: _body, |
| 350 queryParams: _queryParams, |
| 351 uploadOptions: _uploadOptions, |
| 352 uploadMedia: _uploadMedia, |
| 353 downloadOptions: _downloadOptions); |
| 354 return _response.then((data) => new ListJobsResponse.fromJson(data)); |
| 355 } |
| 356 |
| 357 /** |
| 358 * Updates the state of an existing dataflow job. |
| 359 * |
| 360 * [request] - The metadata request object. |
| 361 * |
| 362 * Request parameters: |
| 363 * |
| 364 * [projectId] - The project which owns the job. |
| 365 * |
| 366 * [jobId] - Identifies a single job. |
| 367 * |
| 368 * [location] - The location which contains this job. |
| 369 * |
| 370 * Completes with a [Job]. |
| 371 * |
| 372 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 373 * error. |
| 374 * |
| 375 * If the used [http.Client] completes with an error when making a REST call, |
| 376 * this method will complete with the same error. |
| 377 */ |
| 378 async.Future<Job> update(Job request, core.String projectId, core.String jobId
, {core.String location}) { |
| 379 var _url = null; |
| 380 var _queryParams = new core.Map(); |
| 381 var _uploadMedia = null; |
| 382 var _uploadOptions = null; |
| 383 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 384 var _body = null; |
| 385 |
| 386 if (request != null) { |
| 387 _body = convert.JSON.encode((request).toJson()); |
| 388 } |
| 389 if (projectId == null) { |
| 390 throw new core.ArgumentError("Parameter projectId is required."); |
| 391 } |
| 392 if (jobId == null) { |
| 393 throw new core.ArgumentError("Parameter jobId is required."); |
| 394 } |
| 395 if (location != null) { |
| 396 _queryParams["location"] = [location]; |
| 397 } |
| 398 |
| 399 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId'); |
| 400 |
| 401 var _response = _requester.request(_url, |
| 402 "PUT", |
| 403 body: _body, |
| 404 queryParams: _queryParams, |
| 405 uploadOptions: _uploadOptions, |
| 406 uploadMedia: _uploadMedia, |
| 407 downloadOptions: _downloadOptions); |
| 408 return _response.then((data) => new Job.fromJson(data)); |
| 409 } |
| 410 |
| 411 } |
| 412 |
| 413 |
| 414 class ProjectsJobsDebugResourceApi { |
| 415 final commons.ApiRequester _requester; |
| 416 |
| 417 ProjectsJobsDebugResourceApi(commons.ApiRequester client) : |
| 418 _requester = client; |
| 419 |
| 420 /** |
| 421 * Get encoded debug configuration for component. Not cacheable. |
| 422 * |
| 423 * [request] - The metadata request object. |
| 424 * |
| 425 * Request parameters: |
| 426 * |
| 427 * [projectId] - The project id. |
| 428 * |
| 429 * [jobId] - The job id. |
| 430 * |
| 431 * Completes with a [GetDebugConfigResponse]. |
| 432 * |
| 433 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 434 * error. |
| 435 * |
| 436 * If the used [http.Client] completes with an error when making a REST call, |
| 437 * this method will complete with the same error. |
| 438 */ |
| 439 async.Future<GetDebugConfigResponse> getConfig(GetDebugConfigRequest request,
core.String projectId, core.String jobId) { |
| 440 var _url = null; |
| 441 var _queryParams = new core.Map(); |
| 442 var _uploadMedia = null; |
| 443 var _uploadOptions = null; |
| 444 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 445 var _body = null; |
| 446 |
| 447 if (request != null) { |
| 448 _body = convert.JSON.encode((request).toJson()); |
| 449 } |
| 450 if (projectId == null) { |
| 451 throw new core.ArgumentError("Parameter projectId is required."); |
| 452 } |
| 453 if (jobId == null) { |
| 454 throw new core.ArgumentError("Parameter jobId is required."); |
| 455 } |
| 456 |
| 457 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/debug/getConfig'; |
| 458 |
| 459 var _response = _requester.request(_url, |
| 460 "POST", |
| 461 body: _body, |
| 462 queryParams: _queryParams, |
| 463 uploadOptions: _uploadOptions, |
| 464 uploadMedia: _uploadMedia, |
| 465 downloadOptions: _downloadOptions); |
| 466 return _response.then((data) => new GetDebugConfigResponse.fromJson(data)); |
| 467 } |
| 468 |
| 469 /** |
| 470 * Send encoded debug capture data for component. |
| 471 * |
| 472 * [request] - The metadata request object. |
| 473 * |
| 474 * Request parameters: |
| 475 * |
| 476 * [projectId] - The project id. |
| 477 * |
| 478 * [jobId] - The job id. |
| 479 * |
| 480 * Completes with a [SendDebugCaptureResponse]. |
| 481 * |
| 482 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 483 * error. |
| 484 * |
| 485 * If the used [http.Client] completes with an error when making a REST call, |
| 486 * this method will complete with the same error. |
| 487 */ |
| 488 async.Future<SendDebugCaptureResponse> sendCapture(SendDebugCaptureRequest req
uest, core.String projectId, core.String jobId) { |
| 489 var _url = null; |
| 490 var _queryParams = new core.Map(); |
| 491 var _uploadMedia = null; |
| 492 var _uploadOptions = null; |
| 493 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 494 var _body = null; |
| 495 |
| 496 if (request != null) { |
| 497 _body = convert.JSON.encode((request).toJson()); |
| 498 } |
| 499 if (projectId == null) { |
| 500 throw new core.ArgumentError("Parameter projectId is required."); |
| 501 } |
| 502 if (jobId == null) { |
| 503 throw new core.ArgumentError("Parameter jobId is required."); |
| 504 } |
| 505 |
| 506 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/debug/sendCapture'; |
| 507 |
| 508 var _response = _requester.request(_url, |
| 509 "POST", |
| 510 body: _body, |
| 511 queryParams: _queryParams, |
| 512 uploadOptions: _uploadOptions, |
| 513 uploadMedia: _uploadMedia, |
| 514 downloadOptions: _downloadOptions); |
| 515 return _response.then((data) => new SendDebugCaptureResponse.fromJson(data))
; |
| 516 } |
| 517 |
| 518 } |
| 519 |
| 520 |
| 521 class ProjectsJobsMessagesResourceApi { |
| 522 final commons.ApiRequester _requester; |
| 523 |
| 524 ProjectsJobsMessagesResourceApi(commons.ApiRequester client) : |
| 525 _requester = client; |
| 526 |
| 527 /** |
| 528 * Request the job status. |
| 529 * |
| 530 * Request parameters: |
| 531 * |
| 532 * [projectId] - A project id. |
| 533 * |
| 534 * [jobId] - The job to get messages about. |
| 535 * |
| 536 * [minimumImportance] - Filter to only get messages with importance >= level |
| 537 * Possible string values are: |
| 538 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. |
| 539 * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG. |
| 540 * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED. |
| 541 * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC. |
| 542 * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. |
| 543 * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. |
| 544 * |
| 545 * [pageSize] - If specified, determines the maximum number of messages to |
| 546 * return. If unspecified, the service may choose an appropriate default, or |
| 547 * may return an arbitrarily large number of results. |
| 548 * |
| 549 * [pageToken] - If supplied, this should be the value of next_page_token |
| 550 * returned by an earlier call. This will cause the next page of results to be |
| 551 * returned. |
| 552 * |
| 553 * [startTime] - If specified, return only messages with timestamps >= |
| 554 * start_time. The default is the job creation time (i.e. beginning of |
| 555 * messages). |
| 556 * |
| 557 * [endTime] - Return only messages with timestamps < end_time. The default is |
| 558 * now (i.e. return up to the latest messages available). |
| 559 * |
| 560 * [location] - The location which contains the job specified by job_id. |
| 561 * |
| 562 * Completes with a [ListJobMessagesResponse]. |
| 563 * |
| 564 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 565 * error. |
| 566 * |
| 567 * If the used [http.Client] completes with an error when making a REST call, |
| 568 * this method will complete with the same error. |
| 569 */ |
| 570 async.Future<ListJobMessagesResponse> list(core.String projectId, core.String
jobId, {core.String minimumImportance, core.int pageSize, core.String pageToken,
core.String startTime, core.String endTime, core.String location}) { |
| 571 var _url = null; |
| 572 var _queryParams = new core.Map(); |
| 573 var _uploadMedia = null; |
| 574 var _uploadOptions = null; |
| 575 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 576 var _body = null; |
| 577 |
| 578 if (projectId == null) { |
| 579 throw new core.ArgumentError("Parameter projectId is required."); |
| 580 } |
| 581 if (jobId == null) { |
| 582 throw new core.ArgumentError("Parameter jobId is required."); |
| 583 } |
| 584 if (minimumImportance != null) { |
| 585 _queryParams["minimumImportance"] = [minimumImportance]; |
| 586 } |
| 587 if (pageSize != null) { |
| 588 _queryParams["pageSize"] = ["${pageSize}"]; |
| 589 } |
| 590 if (pageToken != null) { |
| 591 _queryParams["pageToken"] = [pageToken]; |
| 592 } |
| 593 if (startTime != null) { |
| 594 _queryParams["startTime"] = [startTime]; |
| 595 } |
| 596 if (endTime != null) { |
| 597 _queryParams["endTime"] = [endTime]; |
| 598 } |
| 599 if (location != null) { |
| 600 _queryParams["location"] = [location]; |
| 601 } |
| 602 |
| 603 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; |
| 604 |
| 605 var _response = _requester.request(_url, |
| 606 "GET", |
| 607 body: _body, |
| 608 queryParams: _queryParams, |
| 609 uploadOptions: _uploadOptions, |
| 610 uploadMedia: _uploadMedia, |
| 611 downloadOptions: _downloadOptions); |
| 612 return _response.then((data) => new ListJobMessagesResponse.fromJson(data)); |
| 613 } |
| 614 |
| 615 } |
| 616 |
| 617 |
| 618 class ProjectsJobsWorkItemsResourceApi { |
| 619 final commons.ApiRequester _requester; |
| 620 |
| 621 ProjectsJobsWorkItemsResourceApi(commons.ApiRequester client) : |
| 622 _requester = client; |
| 623 |
| 624 /** |
| 625 * Leases a dataflow WorkItem to run. |
| 626 * |
| 627 * [request] - The metadata request object. |
| 628 * |
| 629 * Request parameters: |
| 630 * |
| 631 * [projectId] - Identifies the project this worker belongs to. |
| 632 * |
| 633 * [jobId] - Identifies the workflow job this worker belongs to. |
| 634 * |
| 635 * Completes with a [LeaseWorkItemResponse]. |
| 636 * |
| 637 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 638 * error. |
| 639 * |
| 640 * If the used [http.Client] completes with an error when making a REST call, |
| 641 * this method will complete with the same error. |
| 642 */ |
| 643 async.Future<LeaseWorkItemResponse> lease(LeaseWorkItemRequest request, core.S
tring projectId, core.String jobId) { |
| 644 var _url = null; |
| 645 var _queryParams = new core.Map(); |
| 646 var _uploadMedia = null; |
| 647 var _uploadOptions = null; |
| 648 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 649 var _body = null; |
| 650 |
| 651 if (request != null) { |
| 652 _body = convert.JSON.encode((request).toJson()); |
| 653 } |
| 654 if (projectId == null) { |
| 655 throw new core.ArgumentError("Parameter projectId is required."); |
| 656 } |
| 657 if (jobId == null) { |
| 658 throw new core.ArgumentError("Parameter jobId is required."); |
| 659 } |
| 660 |
| 661 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/workItems:lease'; |
| 662 |
| 663 var _response = _requester.request(_url, |
| 664 "POST", |
| 665 body: _body, |
| 666 queryParams: _queryParams, |
| 667 uploadOptions: _uploadOptions, |
| 668 uploadMedia: _uploadMedia, |
| 669 downloadOptions: _downloadOptions); |
| 670 return _response.then((data) => new LeaseWorkItemResponse.fromJson(data)); |
| 671 } |
| 672 |
| 673 /** |
| 674 * Reports the status of dataflow WorkItems leased by a worker. |
| 675 * |
| 676 * [request] - The metadata request object. |
| 677 * |
| 678 * Request parameters: |
| 679 * |
| 680 * [projectId] - The project which owns the WorkItem's job. |
| 681 * |
| 682 * [jobId] - The job which the WorkItem is part of. |
| 683 * |
| 684 * Completes with a [ReportWorkItemStatusResponse]. |
| 685 * |
| 686 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 687 * error. |
| 688 * |
| 689 * If the used [http.Client] completes with an error when making a REST call, |
| 690 * this method will complete with the same error. |
| 691 */ |
| 692 async.Future<ReportWorkItemStatusResponse> reportStatus(ReportWorkItemStatusRe
quest request, core.String projectId, core.String jobId) { |
| 693 var _url = null; |
| 694 var _queryParams = new core.Map(); |
| 695 var _uploadMedia = null; |
| 696 var _uploadOptions = null; |
| 697 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 698 var _body = null; |
| 699 |
| 700 if (request != null) { |
| 701 _body = convert.JSON.encode((request).toJson()); |
| 702 } |
| 703 if (projectId == null) { |
| 704 throw new core.ArgumentError("Parameter projectId is required."); |
| 705 } |
| 706 if (jobId == null) { |
| 707 throw new core.ArgumentError("Parameter jobId is required."); |
| 708 } |
| 709 |
| 710 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/workItems:reportStatus'; |
| 711 |
| 712 var _response = _requester.request(_url, |
| 713 "POST", |
| 714 body: _body, |
| 715 queryParams: _queryParams, |
| 716 uploadOptions: _uploadOptions, |
| 717 uploadMedia: _uploadMedia, |
| 718 downloadOptions: _downloadOptions); |
| 719 return _response.then((data) => new ReportWorkItemStatusResponse.fromJson(da
ta)); |
| 720 } |
| 721 |
| 722 } |
| 723 |
| 724 |
| 725 class ProjectsLocationsResourceApi { |
| 726 final commons.ApiRequester _requester; |
| 727 |
| 728 ProjectsLocationsJobsResourceApi get jobs => new ProjectsLocationsJobsResource
Api(_requester); |
| 729 |
| 730 ProjectsLocationsResourceApi(commons.ApiRequester client) : |
| 731 _requester = client; |
| 732 } |
| 733 |
| 734 |
| 735 class ProjectsLocationsJobsResourceApi { |
| 736 final commons.ApiRequester _requester; |
| 737 |
| 738 ProjectsLocationsJobsMessagesResourceApi get messages => new ProjectsLocations
JobsMessagesResourceApi(_requester); |
| 739 ProjectsLocationsJobsWorkItemsResourceApi get workItems => new ProjectsLocatio
nsJobsWorkItemsResourceApi(_requester); |
| 740 |
| 741 ProjectsLocationsJobsResourceApi(commons.ApiRequester client) : |
| 742 _requester = client; |
| 743 |
| 744 /** |
| 745 * Creates a dataflow job. |
| 746 * |
| 747 * [request] - The metadata request object. |
| 748 * |
| 749 * Request parameters: |
| 750 * |
| 751 * [projectId] - The project which owns the job. |
| 752 * |
| 753 * [location] - The location which contains this job. |
| 754 * |
| 755 * [view] - Level of information requested in response. |
| 756 * Possible string values are: |
| 757 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. |
| 758 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. |
| 759 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. |
| 760 * |
| 761 * [replaceJobId] - DEPRECATED. This field is now on the Job message. |
| 762 * |
| 763 * Completes with a [Job]. |
| 764 * |
| 765 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
124 * error. | 766 * error. |
125 * | 767 * |
126 * If the used [http.Client] completes with an error when making a REST call, | 768 * If the used [http.Client] completes with an error when making a REST call, |
127 * this method will complete with the same error. | 769 * this method will complete with the same error. |
128 */ | 770 */ |
129 async.Future<Job> create(Job request, core.String projectId, {core.String view
, core.String replaceJobId}) { | 771 async.Future<Job> create(Job request, core.String projectId, core.String locat
ion, {core.String view, core.String replaceJobId}) { |
130 var _url = null; | 772 var _url = null; |
131 var _queryParams = new core.Map(); | 773 var _queryParams = new core.Map(); |
132 var _uploadMedia = null; | 774 var _uploadMedia = null; |
133 var _uploadOptions = null; | 775 var _uploadOptions = null; |
134 var _downloadOptions = commons.DownloadOptions.Metadata; | 776 var _downloadOptions = commons.DownloadOptions.Metadata; |
135 var _body = null; | 777 var _body = null; |
136 | 778 |
137 if (request != null) { | 779 if (request != null) { |
138 _body = convert.JSON.encode((request).toJson()); | 780 _body = convert.JSON.encode((request).toJson()); |
139 } | 781 } |
140 if (projectId == null) { | 782 if (projectId == null) { |
141 throw new core.ArgumentError("Parameter projectId is required."); | 783 throw new core.ArgumentError("Parameter projectId is required."); |
142 } | 784 } |
| 785 if (location == null) { |
| 786 throw new core.ArgumentError("Parameter location is required."); |
| 787 } |
143 if (view != null) { | 788 if (view != null) { |
144 _queryParams["view"] = [view]; | 789 _queryParams["view"] = [view]; |
145 } | 790 } |
146 if (replaceJobId != null) { | 791 if (replaceJobId != null) { |
147 _queryParams["replaceJobId"] = [replaceJobId]; | 792 _queryParams["replaceJobId"] = [replaceJobId]; |
148 } | 793 } |
149 | 794 |
150 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs'; | 795 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo
cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs'; |
151 | 796 |
152 var _response = _requester.request(_url, | 797 var _response = _requester.request(_url, |
153 "POST", | 798 "POST", |
154 body: _body, | 799 body: _body, |
155 queryParams: _queryParams, | 800 queryParams: _queryParams, |
156 uploadOptions: _uploadOptions, | 801 uploadOptions: _uploadOptions, |
157 uploadMedia: _uploadMedia, | 802 uploadMedia: _uploadMedia, |
158 downloadOptions: _downloadOptions); | 803 downloadOptions: _downloadOptions); |
159 return _response.then((data) => new Job.fromJson(data)); | 804 return _response.then((data) => new Job.fromJson(data)); |
160 } | 805 } |
161 | 806 |
162 /** | 807 /** |
163 * Gets the state of the specified dataflow job. | 808 * Gets the state of the specified dataflow job. |
164 * | 809 * |
165 * Request parameters: | 810 * Request parameters: |
166 * | 811 * |
167 * [projectId] - The project which owns the job. | 812 * [projectId] - The project which owns the job. |
168 * | 813 * |
| 814 * [location] - The location which contains this job. |
| 815 * |
169 * [jobId] - Identifies a single job. | 816 * [jobId] - Identifies a single job. |
170 * | 817 * |
171 * [view] - Level of information requested in response. | 818 * [view] - Level of information requested in response. |
172 * Possible string values are: | 819 * Possible string values are: |
173 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. | 820 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. |
174 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. | 821 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. |
175 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. | 822 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. |
176 * | 823 * |
177 * Completes with a [Job]. | 824 * Completes with a [Job]. |
178 * | 825 * |
179 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 826 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
180 * error. | 827 * error. |
181 * | 828 * |
182 * If the used [http.Client] completes with an error when making a REST call, | 829 * If the used [http.Client] completes with an error when making a REST call, |
183 * this method will complete with the same error. | 830 * this method will complete with the same error. |
184 */ | 831 */ |
185 async.Future<Job> get(core.String projectId, core.String jobId, {core.String v
iew}) { | 832 async.Future<Job> get(core.String projectId, core.String location, core.String
jobId, {core.String view}) { |
186 var _url = null; | 833 var _url = null; |
187 var _queryParams = new core.Map(); | 834 var _queryParams = new core.Map(); |
188 var _uploadMedia = null; | 835 var _uploadMedia = null; |
189 var _uploadOptions = null; | 836 var _uploadOptions = null; |
190 var _downloadOptions = commons.DownloadOptions.Metadata; | 837 var _downloadOptions = commons.DownloadOptions.Metadata; |
191 var _body = null; | 838 var _body = null; |
192 | 839 |
193 if (projectId == null) { | 840 if (projectId == null) { |
194 throw new core.ArgumentError("Parameter projectId is required."); | 841 throw new core.ArgumentError("Parameter projectId is required."); |
195 } | 842 } |
| 843 if (location == null) { |
| 844 throw new core.ArgumentError("Parameter location is required."); |
| 845 } |
196 if (jobId == null) { | 846 if (jobId == null) { |
197 throw new core.ArgumentError("Parameter jobId is required."); | 847 throw new core.ArgumentError("Parameter jobId is required."); |
198 } | 848 } |
199 if (view != null) { | 849 if (view != null) { |
200 _queryParams["view"] = [view]; | 850 _queryParams["view"] = [view]; |
201 } | 851 } |
202 | 852 |
203 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId'); | 853 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo
cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Esca
per.ecapeVariable('$jobId'); |
204 | 854 |
205 var _response = _requester.request(_url, | 855 var _response = _requester.request(_url, |
206 "GET", | 856 "GET", |
207 body: _body, | 857 body: _body, |
208 queryParams: _queryParams, | 858 queryParams: _queryParams, |
209 uploadOptions: _uploadOptions, | 859 uploadOptions: _uploadOptions, |
210 uploadMedia: _uploadMedia, | 860 uploadMedia: _uploadMedia, |
211 downloadOptions: _downloadOptions); | 861 downloadOptions: _downloadOptions); |
212 return _response.then((data) => new Job.fromJson(data)); | 862 return _response.then((data) => new Job.fromJson(data)); |
213 } | 863 } |
214 | 864 |
215 /** | 865 /** |
216 * Request the job status. | 866 * Request the job status. |
217 * | 867 * |
218 * Request parameters: | 868 * Request parameters: |
219 * | 869 * |
220 * [projectId] - A project id. | 870 * [projectId] - A project id. |
221 * | 871 * |
| 872 * [location] - The location which contains the job specified by job_id. |
| 873 * |
222 * [jobId] - The job to get messages for. | 874 * [jobId] - The job to get messages for. |
223 * | 875 * |
224 * [startTime] - Return only metric data that has changed since this time. | 876 * [startTime] - Return only metric data that has changed since this time. |
225 * Default is to return all information about all metrics for the job. | 877 * Default is to return all information about all metrics for the job. |
226 * | 878 * |
227 * Completes with a [JobMetrics]. | 879 * Completes with a [JobMetrics]. |
228 * | 880 * |
229 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 881 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
230 * error. | 882 * error. |
231 * | 883 * |
232 * If the used [http.Client] completes with an error when making a REST call, | 884 * If the used [http.Client] completes with an error when making a REST call, |
233 * this method will complete with the same error. | 885 * this method will complete with the same error. |
234 */ | 886 */ |
235 async.Future<JobMetrics> getMetrics(core.String projectId, core.String jobId,
{core.String startTime}) { | 887 async.Future<JobMetrics> getMetrics(core.String projectId, core.String locatio
n, core.String jobId, {core.String startTime}) { |
236 var _url = null; | 888 var _url = null; |
237 var _queryParams = new core.Map(); | 889 var _queryParams = new core.Map(); |
238 var _uploadMedia = null; | 890 var _uploadMedia = null; |
239 var _uploadOptions = null; | 891 var _uploadOptions = null; |
240 var _downloadOptions = commons.DownloadOptions.Metadata; | 892 var _downloadOptions = commons.DownloadOptions.Metadata; |
241 var _body = null; | 893 var _body = null; |
242 | 894 |
243 if (projectId == null) { | 895 if (projectId == null) { |
244 throw new core.ArgumentError("Parameter projectId is required."); | 896 throw new core.ArgumentError("Parameter projectId is required."); |
245 } | 897 } |
| 898 if (location == null) { |
| 899 throw new core.ArgumentError("Parameter location is required."); |
| 900 } |
246 if (jobId == null) { | 901 if (jobId == null) { |
247 throw new core.ArgumentError("Parameter jobId is required."); | 902 throw new core.ArgumentError("Parameter jobId is required."); |
248 } | 903 } |
249 if (startTime != null) { | 904 if (startTime != null) { |
250 _queryParams["startTime"] = [startTime]; | 905 _queryParams["startTime"] = [startTime]; |
251 } | 906 } |
252 | 907 |
253 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/metrics'; | 908 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo
cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Esca
per.ecapeVariable('$jobId') + '/metrics'; |
254 | 909 |
255 var _response = _requester.request(_url, | 910 var _response = _requester.request(_url, |
256 "GET", | 911 "GET", |
257 body: _body, | 912 body: _body, |
258 queryParams: _queryParams, | 913 queryParams: _queryParams, |
259 uploadOptions: _uploadOptions, | 914 uploadOptions: _uploadOptions, |
260 uploadMedia: _uploadMedia, | 915 uploadMedia: _uploadMedia, |
261 downloadOptions: _downloadOptions); | 916 downloadOptions: _downloadOptions); |
262 return _response.then((data) => new JobMetrics.fromJson(data)); | 917 return _response.then((data) => new JobMetrics.fromJson(data)); |
263 } | 918 } |
264 | 919 |
265 /** | 920 /** |
266 * List the jobs of a project | 921 * List the jobs of a project |
267 * | 922 * |
268 * Request parameters: | 923 * Request parameters: |
269 * | 924 * |
270 * [projectId] - The project which owns the jobs. | 925 * [projectId] - The project which owns the jobs. |
271 * | 926 * |
| 927 * [location] - The location which contains this job. |
| 928 * |
272 * [filter] - The kind of filter to use. | 929 * [filter] - The kind of filter to use. |
273 * Possible string values are: | 930 * Possible string values are: |
274 * - "UNKNOWN" : A UNKNOWN. | 931 * - "UNKNOWN" : A UNKNOWN. |
275 * - "ALL" : A ALL. | 932 * - "ALL" : A ALL. |
276 * - "TERMINATED" : A TERMINATED. | 933 * - "TERMINATED" : A TERMINATED. |
277 * - "ACTIVE" : A ACTIVE. | 934 * - "ACTIVE" : A ACTIVE. |
278 * | 935 * |
279 * [view] - Level of information requested in response. Default is SUMMARY. | 936 * [view] - Level of information requested in response. Default is SUMMARY. |
280 * Possible string values are: | 937 * Possible string values are: |
281 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. | 938 * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. |
282 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. | 939 * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. |
283 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. | 940 * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. |
284 * | 941 * |
285 * [pageSize] - If there are many jobs, limit response to at most this many. | 942 * [pageSize] - If there are many jobs, limit response to at most this many. |
286 * The actual number of jobs returned will be the lesser of max_responses and | 943 * The actual number of jobs returned will be the lesser of max_responses and |
287 * an unspecified server-defined limit. | 944 * an unspecified server-defined limit. |
288 * | 945 * |
289 * [pageToken] - Set this to the 'next_page_token' field of a previous | 946 * [pageToken] - Set this to the 'next_page_token' field of a previous |
290 * response to request additional results in a long list. | 947 * response to request additional results in a long list. |
291 * | 948 * |
292 * Completes with a [ListJobsResponse]. | 949 * Completes with a [ListJobsResponse]. |
293 * | 950 * |
294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 951 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
295 * error. | 952 * error. |
296 * | 953 * |
297 * If the used [http.Client] completes with an error when making a REST call, | 954 * If the used [http.Client] completes with an error when making a REST call, |
298 * this method will complete with the same error. | 955 * this method will complete with the same error. |
299 */ | 956 */ |
300 async.Future<ListJobsResponse> list(core.String projectId, {core.String filter
, core.String view, core.int pageSize, core.String pageToken}) { | 957 async.Future<ListJobsResponse> list(core.String projectId, core.String locatio
n, {core.String filter, core.String view, core.int pageSize, core.String pageTok
en}) { |
301 var _url = null; | 958 var _url = null; |
302 var _queryParams = new core.Map(); | 959 var _queryParams = new core.Map(); |
303 var _uploadMedia = null; | 960 var _uploadMedia = null; |
304 var _uploadOptions = null; | 961 var _uploadOptions = null; |
305 var _downloadOptions = commons.DownloadOptions.Metadata; | 962 var _downloadOptions = commons.DownloadOptions.Metadata; |
306 var _body = null; | 963 var _body = null; |
307 | 964 |
308 if (projectId == null) { | 965 if (projectId == null) { |
309 throw new core.ArgumentError("Parameter projectId is required."); | 966 throw new core.ArgumentError("Parameter projectId is required."); |
310 } | 967 } |
| 968 if (location == null) { |
| 969 throw new core.ArgumentError("Parameter location is required."); |
| 970 } |
311 if (filter != null) { | 971 if (filter != null) { |
312 _queryParams["filter"] = [filter]; | 972 _queryParams["filter"] = [filter]; |
313 } | 973 } |
314 if (view != null) { | 974 if (view != null) { |
315 _queryParams["view"] = [view]; | 975 _queryParams["view"] = [view]; |
316 } | 976 } |
317 if (pageSize != null) { | 977 if (pageSize != null) { |
318 _queryParams["pageSize"] = ["${pageSize}"]; | 978 _queryParams["pageSize"] = ["${pageSize}"]; |
319 } | 979 } |
320 if (pageToken != null) { | 980 if (pageToken != null) { |
321 _queryParams["pageToken"] = [pageToken]; | 981 _queryParams["pageToken"] = [pageToken]; |
322 } | 982 } |
323 | 983 |
324 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs'; | 984 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo
cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs'; |
325 | 985 |
326 var _response = _requester.request(_url, | 986 var _response = _requester.request(_url, |
327 "GET", | 987 "GET", |
328 body: _body, | 988 body: _body, |
329 queryParams: _queryParams, | 989 queryParams: _queryParams, |
330 uploadOptions: _uploadOptions, | 990 uploadOptions: _uploadOptions, |
331 uploadMedia: _uploadMedia, | 991 uploadMedia: _uploadMedia, |
332 downloadOptions: _downloadOptions); | 992 downloadOptions: _downloadOptions); |
333 return _response.then((data) => new ListJobsResponse.fromJson(data)); | 993 return _response.then((data) => new ListJobsResponse.fromJson(data)); |
334 } | 994 } |
335 | 995 |
336 /** | 996 /** |
337 * Updates the state of an existing dataflow job. | 997 * Updates the state of an existing dataflow job. |
338 * | 998 * |
339 * [request] - The metadata request object. | 999 * [request] - The metadata request object. |
340 * | 1000 * |
341 * Request parameters: | 1001 * Request parameters: |
342 * | 1002 * |
343 * [projectId] - The project which owns the job. | 1003 * [projectId] - The project which owns the job. |
344 * | 1004 * |
| 1005 * [location] - The location which contains this job. |
| 1006 * |
345 * [jobId] - Identifies a single job. | 1007 * [jobId] - Identifies a single job. |
346 * | 1008 * |
347 * Completes with a [Job]. | 1009 * Completes with a [Job]. |
348 * | 1010 * |
349 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
350 * error. | 1012 * error. |
351 * | 1013 * |
352 * If the used [http.Client] completes with an error when making a REST call, | 1014 * If the used [http.Client] completes with an error when making a REST call, |
353 * this method will complete with the same error. | 1015 * this method will complete with the same error. |
354 */ | 1016 */ |
355 async.Future<Job> update(Job request, core.String projectId, core.String jobId
) { | 1017 async.Future<Job> update(Job request, core.String projectId, core.String locat
ion, core.String jobId) { |
356 var _url = null; | 1018 var _url = null; |
357 var _queryParams = new core.Map(); | 1019 var _queryParams = new core.Map(); |
358 var _uploadMedia = null; | 1020 var _uploadMedia = null; |
359 var _uploadOptions = null; | 1021 var _uploadOptions = null; |
360 var _downloadOptions = commons.DownloadOptions.Metadata; | 1022 var _downloadOptions = commons.DownloadOptions.Metadata; |
361 var _body = null; | 1023 var _body = null; |
362 | 1024 |
363 if (request != null) { | 1025 if (request != null) { |
364 _body = convert.JSON.encode((request).toJson()); | 1026 _body = convert.JSON.encode((request).toJson()); |
365 } | 1027 } |
366 if (projectId == null) { | 1028 if (projectId == null) { |
367 throw new core.ArgumentError("Parameter projectId is required."); | 1029 throw new core.ArgumentError("Parameter projectId is required."); |
368 } | 1030 } |
| 1031 if (location == null) { |
| 1032 throw new core.ArgumentError("Parameter location is required."); |
| 1033 } |
369 if (jobId == null) { | 1034 if (jobId == null) { |
370 throw new core.ArgumentError("Parameter jobId is required."); | 1035 throw new core.ArgumentError("Parameter jobId is required."); |
371 } | 1036 } |
372 | 1037 |
373 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId'); | 1038 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo
cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Esca
per.ecapeVariable('$jobId'); |
374 | 1039 |
375 var _response = _requester.request(_url, | 1040 var _response = _requester.request(_url, |
376 "PUT", | 1041 "PUT", |
377 body: _body, | 1042 body: _body, |
378 queryParams: _queryParams, | 1043 queryParams: _queryParams, |
379 uploadOptions: _uploadOptions, | 1044 uploadOptions: _uploadOptions, |
380 uploadMedia: _uploadMedia, | 1045 uploadMedia: _uploadMedia, |
381 downloadOptions: _downloadOptions); | 1046 downloadOptions: _downloadOptions); |
382 return _response.then((data) => new Job.fromJson(data)); | 1047 return _response.then((data) => new Job.fromJson(data)); |
383 } | 1048 } |
384 | 1049 |
385 } | 1050 } |
386 | 1051 |
387 | 1052 |
388 class ProjectsJobsDebugResourceApi { | 1053 class ProjectsLocationsJobsMessagesResourceApi { |
389 final commons.ApiRequester _requester; | 1054 final commons.ApiRequester _requester; |
390 | 1055 |
391 ProjectsJobsDebugResourceApi(commons.ApiRequester client) : | 1056 ProjectsLocationsJobsMessagesResourceApi(commons.ApiRequester client) : |
392 _requester = client; | 1057 _requester = client; |
393 | 1058 |
394 /** | 1059 /** |
395 * Get encoded debug configuration for component. Not cacheable. | |
396 * | |
397 * [request] - The metadata request object. | |
398 * | |
399 * Request parameters: | |
400 * | |
401 * [projectId] - The project id. | |
402 * | |
403 * [jobId] - The job id. | |
404 * | |
405 * Completes with a [GetDebugConfigResponse]. | |
406 * | |
407 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
408 * error. | |
409 * | |
410 * If the used [http.Client] completes with an error when making a REST call, | |
411 * this method will complete with the same error. | |
412 */ | |
413 async.Future<GetDebugConfigResponse> getConfig(GetDebugConfigRequest request,
core.String projectId, core.String jobId) { | |
414 var _url = null; | |
415 var _queryParams = new core.Map(); | |
416 var _uploadMedia = null; | |
417 var _uploadOptions = null; | |
418 var _downloadOptions = commons.DownloadOptions.Metadata; | |
419 var _body = null; | |
420 | |
421 if (request != null) { | |
422 _body = convert.JSON.encode((request).toJson()); | |
423 } | |
424 if (projectId == null) { | |
425 throw new core.ArgumentError("Parameter projectId is required."); | |
426 } | |
427 if (jobId == null) { | |
428 throw new core.ArgumentError("Parameter jobId is required."); | |
429 } | |
430 | |
431 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/debug/getConfig'; | |
432 | |
433 var _response = _requester.request(_url, | |
434 "POST", | |
435 body: _body, | |
436 queryParams: _queryParams, | |
437 uploadOptions: _uploadOptions, | |
438 uploadMedia: _uploadMedia, | |
439 downloadOptions: _downloadOptions); | |
440 return _response.then((data) => new GetDebugConfigResponse.fromJson(data)); | |
441 } | |
442 | |
443 /** | |
444 * Send encoded debug capture data for component. | |
445 * | |
446 * [request] - The metadata request object. | |
447 * | |
448 * Request parameters: | |
449 * | |
450 * [projectId] - The project id. | |
451 * | |
452 * [jobId] - The job id. | |
453 * | |
454 * Completes with a [SendDebugCaptureResponse]. | |
455 * | |
456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
457 * error. | |
458 * | |
459 * If the used [http.Client] completes with an error when making a REST call, | |
460 * this method will complete with the same error. | |
461 */ | |
462 async.Future<SendDebugCaptureResponse> sendCapture(SendDebugCaptureRequest req
uest, core.String projectId, core.String jobId) { | |
463 var _url = null; | |
464 var _queryParams = new core.Map(); | |
465 var _uploadMedia = null; | |
466 var _uploadOptions = null; | |
467 var _downloadOptions = commons.DownloadOptions.Metadata; | |
468 var _body = null; | |
469 | |
470 if (request != null) { | |
471 _body = convert.JSON.encode((request).toJson()); | |
472 } | |
473 if (projectId == null) { | |
474 throw new core.ArgumentError("Parameter projectId is required."); | |
475 } | |
476 if (jobId == null) { | |
477 throw new core.ArgumentError("Parameter jobId is required."); | |
478 } | |
479 | |
480 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/debug/sendCapture'; | |
481 | |
482 var _response = _requester.request(_url, | |
483 "POST", | |
484 body: _body, | |
485 queryParams: _queryParams, | |
486 uploadOptions: _uploadOptions, | |
487 uploadMedia: _uploadMedia, | |
488 downloadOptions: _downloadOptions); | |
489 return _response.then((data) => new SendDebugCaptureResponse.fromJson(data))
; | |
490 } | |
491 | |
492 } | |
493 | |
494 | |
495 class ProjectsJobsMessagesResourceApi { | |
496 final commons.ApiRequester _requester; | |
497 | |
498 ProjectsJobsMessagesResourceApi(commons.ApiRequester client) : | |
499 _requester = client; | |
500 | |
501 /** | |
502 * Request the job status. | 1060 * Request the job status. |
503 * | 1061 * |
504 * Request parameters: | 1062 * Request parameters: |
505 * | 1063 * |
506 * [projectId] - A project id. | 1064 * [projectId] - A project id. |
507 * | 1065 * |
| 1066 * [location] - The location which contains the job specified by job_id. |
| 1067 * |
508 * [jobId] - The job to get messages about. | 1068 * [jobId] - The job to get messages about. |
509 * | 1069 * |
510 * [minimumImportance] - Filter to only get messages with importance >= level | 1070 * [minimumImportance] - Filter to only get messages with importance >= level |
511 * Possible string values are: | 1071 * Possible string values are: |
512 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. | 1072 * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. |
513 * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG. | 1073 * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG. |
514 * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED. | 1074 * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED. |
515 * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC. | 1075 * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC. |
516 * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. | 1076 * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. |
517 * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. | 1077 * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. |
(...skipping 14 matching lines...) Expand all Loading... |
532 * now (i.e. return up to the latest messages available). | 1092 * now (i.e. return up to the latest messages available). |
533 * | 1093 * |
534 * Completes with a [ListJobMessagesResponse]. | 1094 * Completes with a [ListJobMessagesResponse]. |
535 * | 1095 * |
536 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1096 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
537 * error. | 1097 * error. |
538 * | 1098 * |
539 * If the used [http.Client] completes with an error when making a REST call, | 1099 * If the used [http.Client] completes with an error when making a REST call, |
540 * this method will complete with the same error. | 1100 * this method will complete with the same error. |
541 */ | 1101 */ |
542 async.Future<ListJobMessagesResponse> list(core.String projectId, core.String
jobId, {core.String minimumImportance, core.int pageSize, core.String pageToken,
core.String startTime, core.String endTime}) { | 1102 async.Future<ListJobMessagesResponse> list(core.String projectId, core.String
location, core.String jobId, {core.String minimumImportance, core.int pageSize,
core.String pageToken, core.String startTime, core.String endTime}) { |
543 var _url = null; | 1103 var _url = null; |
544 var _queryParams = new core.Map(); | 1104 var _queryParams = new core.Map(); |
545 var _uploadMedia = null; | 1105 var _uploadMedia = null; |
546 var _uploadOptions = null; | 1106 var _uploadOptions = null; |
547 var _downloadOptions = commons.DownloadOptions.Metadata; | 1107 var _downloadOptions = commons.DownloadOptions.Metadata; |
548 var _body = null; | 1108 var _body = null; |
549 | 1109 |
550 if (projectId == null) { | 1110 if (projectId == null) { |
551 throw new core.ArgumentError("Parameter projectId is required."); | 1111 throw new core.ArgumentError("Parameter projectId is required."); |
552 } | 1112 } |
| 1113 if (location == null) { |
| 1114 throw new core.ArgumentError("Parameter location is required."); |
| 1115 } |
553 if (jobId == null) { | 1116 if (jobId == null) { |
554 throw new core.ArgumentError("Parameter jobId is required."); | 1117 throw new core.ArgumentError("Parameter jobId is required."); |
555 } | 1118 } |
556 if (minimumImportance != null) { | 1119 if (minimumImportance != null) { |
557 _queryParams["minimumImportance"] = [minimumImportance]; | 1120 _queryParams["minimumImportance"] = [minimumImportance]; |
558 } | 1121 } |
559 if (pageSize != null) { | 1122 if (pageSize != null) { |
560 _queryParams["pageSize"] = ["${pageSize}"]; | 1123 _queryParams["pageSize"] = ["${pageSize}"]; |
561 } | 1124 } |
562 if (pageToken != null) { | 1125 if (pageToken != null) { |
563 _queryParams["pageToken"] = [pageToken]; | 1126 _queryParams["pageToken"] = [pageToken]; |
564 } | 1127 } |
565 if (startTime != null) { | 1128 if (startTime != null) { |
566 _queryParams["startTime"] = [startTime]; | 1129 _queryParams["startTime"] = [startTime]; |
567 } | 1130 } |
568 if (endTime != null) { | 1131 if (endTime != null) { |
569 _queryParams["endTime"] = [endTime]; | 1132 _queryParams["endTime"] = [endTime]; |
570 } | 1133 } |
571 | 1134 |
572 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; | 1135 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo
cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Esca
per.ecapeVariable('$jobId') + '/messages'; |
573 | 1136 |
574 var _response = _requester.request(_url, | 1137 var _response = _requester.request(_url, |
575 "GET", | 1138 "GET", |
576 body: _body, | 1139 body: _body, |
577 queryParams: _queryParams, | 1140 queryParams: _queryParams, |
578 uploadOptions: _uploadOptions, | 1141 uploadOptions: _uploadOptions, |
579 uploadMedia: _uploadMedia, | 1142 uploadMedia: _uploadMedia, |
580 downloadOptions: _downloadOptions); | 1143 downloadOptions: _downloadOptions); |
581 return _response.then((data) => new ListJobMessagesResponse.fromJson(data)); | 1144 return _response.then((data) => new ListJobMessagesResponse.fromJson(data)); |
582 } | 1145 } |
583 | 1146 |
584 } | 1147 } |
585 | 1148 |
586 | 1149 |
587 class ProjectsJobsWorkItemsResourceApi { | 1150 class ProjectsLocationsJobsWorkItemsResourceApi { |
588 final commons.ApiRequester _requester; | 1151 final commons.ApiRequester _requester; |
589 | 1152 |
590 ProjectsJobsWorkItemsResourceApi(commons.ApiRequester client) : | 1153 ProjectsLocationsJobsWorkItemsResourceApi(commons.ApiRequester client) : |
591 _requester = client; | 1154 _requester = client; |
592 | 1155 |
593 /** | 1156 /** |
594 * Leases a dataflow WorkItem to run. | 1157 * Leases a dataflow WorkItem to run. |
595 * | 1158 * |
596 * [request] - The metadata request object. | 1159 * [request] - The metadata request object. |
597 * | 1160 * |
598 * Request parameters: | 1161 * Request parameters: |
599 * | 1162 * |
600 * [projectId] - Identifies the project this worker belongs to. | 1163 * [projectId] - Identifies the project this worker belongs to. |
601 * | 1164 * |
| 1165 * [location] - The location which contains the WorkItem's job. |
| 1166 * |
602 * [jobId] - Identifies the workflow job this worker belongs to. | 1167 * [jobId] - Identifies the workflow job this worker belongs to. |
603 * | 1168 * |
604 * Completes with a [LeaseWorkItemResponse]. | 1169 * Completes with a [LeaseWorkItemResponse]. |
605 * | 1170 * |
606 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1171 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
607 * error. | 1172 * error. |
608 * | 1173 * |
609 * If the used [http.Client] completes with an error when making a REST call, | 1174 * If the used [http.Client] completes with an error when making a REST call, |
610 * this method will complete with the same error. | 1175 * this method will complete with the same error. |
611 */ | 1176 */ |
612 async.Future<LeaseWorkItemResponse> lease(LeaseWorkItemRequest request, core.S
tring projectId, core.String jobId) { | 1177 async.Future<LeaseWorkItemResponse> lease(LeaseWorkItemRequest request, core.S
tring projectId, core.String location, core.String jobId) { |
613 var _url = null; | 1178 var _url = null; |
614 var _queryParams = new core.Map(); | 1179 var _queryParams = new core.Map(); |
615 var _uploadMedia = null; | 1180 var _uploadMedia = null; |
616 var _uploadOptions = null; | 1181 var _uploadOptions = null; |
617 var _downloadOptions = commons.DownloadOptions.Metadata; | 1182 var _downloadOptions = commons.DownloadOptions.Metadata; |
618 var _body = null; | 1183 var _body = null; |
619 | 1184 |
620 if (request != null) { | 1185 if (request != null) { |
621 _body = convert.JSON.encode((request).toJson()); | 1186 _body = convert.JSON.encode((request).toJson()); |
622 } | 1187 } |
623 if (projectId == null) { | 1188 if (projectId == null) { |
624 throw new core.ArgumentError("Parameter projectId is required."); | 1189 throw new core.ArgumentError("Parameter projectId is required."); |
625 } | 1190 } |
| 1191 if (location == null) { |
| 1192 throw new core.ArgumentError("Parameter location is required."); |
| 1193 } |
626 if (jobId == null) { | 1194 if (jobId == null) { |
627 throw new core.ArgumentError("Parameter jobId is required."); | 1195 throw new core.ArgumentError("Parameter jobId is required."); |
628 } | 1196 } |
629 | 1197 |
630 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/workItems:lease'; | 1198 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo
cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Esca
per.ecapeVariable('$jobId') + '/workItems:lease'; |
631 | 1199 |
632 var _response = _requester.request(_url, | 1200 var _response = _requester.request(_url, |
633 "POST", | 1201 "POST", |
634 body: _body, | 1202 body: _body, |
635 queryParams: _queryParams, | 1203 queryParams: _queryParams, |
636 uploadOptions: _uploadOptions, | 1204 uploadOptions: _uploadOptions, |
637 uploadMedia: _uploadMedia, | 1205 uploadMedia: _uploadMedia, |
638 downloadOptions: _downloadOptions); | 1206 downloadOptions: _downloadOptions); |
639 return _response.then((data) => new LeaseWorkItemResponse.fromJson(data)); | 1207 return _response.then((data) => new LeaseWorkItemResponse.fromJson(data)); |
640 } | 1208 } |
641 | 1209 |
642 /** | 1210 /** |
643 * Reports the status of dataflow WorkItems leased by a worker. | 1211 * Reports the status of dataflow WorkItems leased by a worker. |
644 * | 1212 * |
645 * [request] - The metadata request object. | 1213 * [request] - The metadata request object. |
646 * | 1214 * |
647 * Request parameters: | 1215 * Request parameters: |
648 * | 1216 * |
649 * [projectId] - The project which owns the WorkItem's job. | 1217 * [projectId] - The project which owns the WorkItem's job. |
650 * | 1218 * |
| 1219 * [location] - The location which contains the WorkItem's job. |
| 1220 * |
651 * [jobId] - The job which the WorkItem is part of. | 1221 * [jobId] - The job which the WorkItem is part of. |
652 * | 1222 * |
653 * Completes with a [ReportWorkItemStatusResponse]. | 1223 * Completes with a [ReportWorkItemStatusResponse]. |
654 * | 1224 * |
655 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1225 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
656 * error. | 1226 * error. |
657 * | 1227 * |
658 * If the used [http.Client] completes with an error when making a REST call, | 1228 * If the used [http.Client] completes with an error when making a REST call, |
659 * this method will complete with the same error. | 1229 * this method will complete with the same error. |
660 */ | 1230 */ |
661 async.Future<ReportWorkItemStatusResponse> reportStatus(ReportWorkItemStatusRe
quest request, core.String projectId, core.String jobId) { | 1231 async.Future<ReportWorkItemStatusResponse> reportStatus(ReportWorkItemStatusRe
quest request, core.String projectId, core.String location, core.String jobId) { |
662 var _url = null; | 1232 var _url = null; |
663 var _queryParams = new core.Map(); | 1233 var _queryParams = new core.Map(); |
664 var _uploadMedia = null; | 1234 var _uploadMedia = null; |
665 var _uploadOptions = null; | 1235 var _uploadOptions = null; |
666 var _downloadOptions = commons.DownloadOptions.Metadata; | 1236 var _downloadOptions = commons.DownloadOptions.Metadata; |
667 var _body = null; | 1237 var _body = null; |
668 | 1238 |
669 if (request != null) { | 1239 if (request != null) { |
670 _body = convert.JSON.encode((request).toJson()); | 1240 _body = convert.JSON.encode((request).toJson()); |
671 } | 1241 } |
672 if (projectId == null) { | 1242 if (projectId == null) { |
673 throw new core.ArgumentError("Parameter projectId is required."); | 1243 throw new core.ArgumentError("Parameter projectId is required."); |
674 } | 1244 } |
| 1245 if (location == null) { |
| 1246 throw new core.ArgumentError("Parameter location is required."); |
| 1247 } |
675 if (jobId == null) { | 1248 if (jobId == null) { |
676 throw new core.ArgumentError("Parameter jobId is required."); | 1249 throw new core.ArgumentError("Parameter jobId is required."); |
677 } | 1250 } |
678 | 1251 |
679 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/workItems:reportStatus'; | 1252 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/lo
cations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Esca
per.ecapeVariable('$jobId') + '/workItems:reportStatus'; |
680 | 1253 |
681 var _response = _requester.request(_url, | 1254 var _response = _requester.request(_url, |
682 "POST", | 1255 "POST", |
683 body: _body, | 1256 body: _body, |
684 queryParams: _queryParams, | 1257 queryParams: _queryParams, |
685 uploadOptions: _uploadOptions, | 1258 uploadOptions: _uploadOptions, |
686 uploadMedia: _uploadMedia, | 1259 uploadMedia: _uploadMedia, |
687 downloadOptions: _downloadOptions); | 1260 downloadOptions: _downloadOptions); |
688 return _response.then((data) => new ReportWorkItemStatusResponse.fromJson(da
ta)); | 1261 return _response.then((data) => new ReportWorkItemStatusResponse.fromJson(da
ta)); |
689 } | 1262 } |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 core.Map<core.String, core.Object> internalExperiments; | 2196 core.Map<core.String, core.Object> internalExperiments; |
1624 /** | 2197 /** |
1625 * The Dataflow SDK pipeline options specified by the user. These options are | 2198 * The Dataflow SDK pipeline options specified by the user. These options are |
1626 * passed through the service and are used to recreate the SDK pipeline | 2199 * passed through the service and are used to recreate the SDK pipeline |
1627 * options on the worker in a language agnostic and platform independent way. | 2200 * options on the worker in a language agnostic and platform independent way. |
1628 * | 2201 * |
1629 * The values for Object must be JSON objects. It can consist of `num`, | 2202 * The values for Object must be JSON objects. It can consist of `num`, |
1630 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2203 * `String`, `bool` and `null` as well as `Map` and `List` values. |
1631 */ | 2204 */ |
1632 core.Map<core.String, core.Object> sdkPipelineOptions; | 2205 core.Map<core.String, core.Object> sdkPipelineOptions; |
| 2206 /** Identity to run virtual machines as. Defaults to the default account. */ |
| 2207 core.String serviceAccountEmail; |
1633 /** | 2208 /** |
1634 * The prefix of the resources the system should use for temporary storage. | 2209 * The prefix of the resources the system should use for temporary storage. |
1635 * The system will append the suffix "/temp-{JOBNAME} to this resource prefix, | 2210 * The system will append the suffix "/temp-{JOBNAME} to this resource prefix, |
1636 * where {JOBNAME} is the value of the job_name field. The resulting bucket | 2211 * where {JOBNAME} is the value of the job_name field. The resulting bucket |
1637 * and object prefix is used as the prefix of the resources used to store | 2212 * and object prefix is used as the prefix of the resources used to store |
1638 * temporary data needed during the job execution. NOTE: This will override | 2213 * temporary data needed during the job execution. NOTE: This will override |
1639 * the value in taskrunner_settings. The supported resource type is: Google | 2214 * the value in taskrunner_settings. The supported resource type is: Google |
1640 * Cloud Storage: storage.googleapis.com/{bucket}/{object} | 2215 * Cloud Storage: storage.googleapis.com/{bucket}/{object} |
1641 * bucket.storage.googleapis.com/{object} | 2216 * bucket.storage.googleapis.com/{object} |
1642 */ | 2217 */ |
(...skipping 30 matching lines...) Expand all Loading... |
1673 } | 2248 } |
1674 if (_json.containsKey("experiments")) { | 2249 if (_json.containsKey("experiments")) { |
1675 experiments = _json["experiments"]; | 2250 experiments = _json["experiments"]; |
1676 } | 2251 } |
1677 if (_json.containsKey("internalExperiments")) { | 2252 if (_json.containsKey("internalExperiments")) { |
1678 internalExperiments = _json["internalExperiments"]; | 2253 internalExperiments = _json["internalExperiments"]; |
1679 } | 2254 } |
1680 if (_json.containsKey("sdkPipelineOptions")) { | 2255 if (_json.containsKey("sdkPipelineOptions")) { |
1681 sdkPipelineOptions = _json["sdkPipelineOptions"]; | 2256 sdkPipelineOptions = _json["sdkPipelineOptions"]; |
1682 } | 2257 } |
| 2258 if (_json.containsKey("serviceAccountEmail")) { |
| 2259 serviceAccountEmail = _json["serviceAccountEmail"]; |
| 2260 } |
1683 if (_json.containsKey("tempStoragePrefix")) { | 2261 if (_json.containsKey("tempStoragePrefix")) { |
1684 tempStoragePrefix = _json["tempStoragePrefix"]; | 2262 tempStoragePrefix = _json["tempStoragePrefix"]; |
1685 } | 2263 } |
1686 if (_json.containsKey("userAgent")) { | 2264 if (_json.containsKey("userAgent")) { |
1687 userAgent = _json["userAgent"]; | 2265 userAgent = _json["userAgent"]; |
1688 } | 2266 } |
1689 if (_json.containsKey("version")) { | 2267 if (_json.containsKey("version")) { |
1690 version = _json["version"]; | 2268 version = _json["version"]; |
1691 } | 2269 } |
1692 if (_json.containsKey("workerPools")) { | 2270 if (_json.containsKey("workerPools")) { |
(...skipping 11 matching lines...) Expand all Loading... |
1704 } | 2282 } |
1705 if (experiments != null) { | 2283 if (experiments != null) { |
1706 _json["experiments"] = experiments; | 2284 _json["experiments"] = experiments; |
1707 } | 2285 } |
1708 if (internalExperiments != null) { | 2286 if (internalExperiments != null) { |
1709 _json["internalExperiments"] = internalExperiments; | 2287 _json["internalExperiments"] = internalExperiments; |
1710 } | 2288 } |
1711 if (sdkPipelineOptions != null) { | 2289 if (sdkPipelineOptions != null) { |
1712 _json["sdkPipelineOptions"] = sdkPipelineOptions; | 2290 _json["sdkPipelineOptions"] = sdkPipelineOptions; |
1713 } | 2291 } |
| 2292 if (serviceAccountEmail != null) { |
| 2293 _json["serviceAccountEmail"] = serviceAccountEmail; |
| 2294 } |
1714 if (tempStoragePrefix != null) { | 2295 if (tempStoragePrefix != null) { |
1715 _json["tempStoragePrefix"] = tempStoragePrefix; | 2296 _json["tempStoragePrefix"] = tempStoragePrefix; |
1716 } | 2297 } |
1717 if (userAgent != null) { | 2298 if (userAgent != null) { |
1718 _json["userAgent"] = userAgent; | 2299 _json["userAgent"] = userAgent; |
1719 } | 2300 } |
1720 if (version != null) { | 2301 if (version != null) { |
1721 _json["version"] = version; | 2302 _json["version"] = version; |
1722 } | 2303 } |
1723 if (workerPools != null) { | 2304 if (workerPools != null) { |
1724 _json["workerPools"] = workerPools.map((value) => (value).toJson()).toList
(); | 2305 _json["workerPools"] = workerPools.map((value) => (value).toJson()).toList
(); |
1725 } | 2306 } |
1726 return _json; | 2307 return _json; |
1727 } | 2308 } |
1728 } | 2309 } |
1729 | 2310 |
1730 /** | 2311 /** |
| 2312 * FailedLocation indicates which location failed to respond to a request for |
| 2313 * data. |
| 2314 */ |
| 2315 class FailedLocation { |
| 2316 /** The name of the failed location. */ |
| 2317 core.String name; |
| 2318 |
| 2319 FailedLocation(); |
| 2320 |
| 2321 FailedLocation.fromJson(core.Map _json) { |
| 2322 if (_json.containsKey("name")) { |
| 2323 name = _json["name"]; |
| 2324 } |
| 2325 } |
| 2326 |
| 2327 core.Map toJson() { |
| 2328 var _json = new core.Map(); |
| 2329 if (name != null) { |
| 2330 _json["name"] = name; |
| 2331 } |
| 2332 return _json; |
| 2333 } |
| 2334 } |
| 2335 |
| 2336 /** |
1731 * An instruction that copies its inputs (zero or more) to its (single) output. | 2337 * An instruction that copies its inputs (zero or more) to its (single) output. |
1732 */ | 2338 */ |
1733 class FlattenInstruction { | 2339 class FlattenInstruction { |
1734 /** Describes the inputs to the flatten instruction. */ | 2340 /** Describes the inputs to the flatten instruction. */ |
1735 core.List<InstructionInput> inputs; | 2341 core.List<InstructionInput> inputs; |
1736 | 2342 |
1737 FlattenInstruction(); | 2343 FlattenInstruction(); |
1738 | 2344 |
1739 FlattenInstruction.fromJson(core.Map _json) { | 2345 FlattenInstruction.fromJson(core.Map _json) { |
1740 if (_json.containsKey("inputs")) { | 2346 if (_json.containsKey("inputs")) { |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 */ | 2673 */ |
2068 core.String id; | 2674 core.String id; |
2069 /** | 2675 /** |
2070 * User-defined labels for this job. The labels map can contain no more than | 2676 * User-defined labels for this job. The labels map can contain no more than |
2071 * 64 entries. Entries of the labels map are UTF8 strings that comply with the | 2677 * 64 entries. Entries of the labels map are UTF8 strings that comply with the |
2072 * following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * | 2678 * following restrictions: * Keys must conform to regexp: \p{Ll}\p{Lo}{0,62} * |
2073 * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and | 2679 * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and |
2074 * values are additionally constrained to be <= 128 bytes in size. | 2680 * values are additionally constrained to be <= 128 bytes in size. |
2075 */ | 2681 */ |
2076 core.Map<core.String, core.String> labels; | 2682 core.Map<core.String, core.String> labels; |
| 2683 /** The location which contains this job. */ |
| 2684 core.String location; |
2077 /** | 2685 /** |
2078 * The user-specified Dataflow job name. Only one Job with a given name may | 2686 * The user-specified Dataflow job name. Only one Job with a given name may |
2079 * exist in a project at any given time. If a caller attempts to create a Job | 2687 * exist in a project at any given time. If a caller attempts to create a Job |
2080 * with the same name as an already-existing Job, the attempt will return the | 2688 * with the same name as an already-existing Job, the attempt will return the |
2081 * existing Job. The name must match the regular expression | 2689 * existing Job. The name must match the regular expression |
2082 * [a-z]([-a-z0-9]{0,38}[a-z0-9])? | 2690 * [a-z]([-a-z0-9]{0,38}[a-z0-9])? |
2083 */ | 2691 */ |
2084 core.String name; | 2692 core.String name; |
2085 /** The project which owns the job. */ | 2693 /** The project which owns the job. */ |
2086 core.String projectId; | 2694 core.String projectId; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2158 } | 2766 } |
2159 if (_json.containsKey("executionInfo")) { | 2767 if (_json.containsKey("executionInfo")) { |
2160 executionInfo = new JobExecutionInfo.fromJson(_json["executionInfo"]); | 2768 executionInfo = new JobExecutionInfo.fromJson(_json["executionInfo"]); |
2161 } | 2769 } |
2162 if (_json.containsKey("id")) { | 2770 if (_json.containsKey("id")) { |
2163 id = _json["id"]; | 2771 id = _json["id"]; |
2164 } | 2772 } |
2165 if (_json.containsKey("labels")) { | 2773 if (_json.containsKey("labels")) { |
2166 labels = _json["labels"]; | 2774 labels = _json["labels"]; |
2167 } | 2775 } |
| 2776 if (_json.containsKey("location")) { |
| 2777 location = _json["location"]; |
| 2778 } |
2168 if (_json.containsKey("name")) { | 2779 if (_json.containsKey("name")) { |
2169 name = _json["name"]; | 2780 name = _json["name"]; |
2170 } | 2781 } |
2171 if (_json.containsKey("projectId")) { | 2782 if (_json.containsKey("projectId")) { |
2172 projectId = _json["projectId"]; | 2783 projectId = _json["projectId"]; |
2173 } | 2784 } |
2174 if (_json.containsKey("replaceJobId")) { | 2785 if (_json.containsKey("replaceJobId")) { |
2175 replaceJobId = _json["replaceJobId"]; | 2786 replaceJobId = _json["replaceJobId"]; |
2176 } | 2787 } |
2177 if (_json.containsKey("replacedByJobId")) { | 2788 if (_json.containsKey("replacedByJobId")) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2213 } | 2824 } |
2214 if (executionInfo != null) { | 2825 if (executionInfo != null) { |
2215 _json["executionInfo"] = (executionInfo).toJson(); | 2826 _json["executionInfo"] = (executionInfo).toJson(); |
2216 } | 2827 } |
2217 if (id != null) { | 2828 if (id != null) { |
2218 _json["id"] = id; | 2829 _json["id"] = id; |
2219 } | 2830 } |
2220 if (labels != null) { | 2831 if (labels != null) { |
2221 _json["labels"] = labels; | 2832 _json["labels"] = labels; |
2222 } | 2833 } |
| 2834 if (location != null) { |
| 2835 _json["location"] = location; |
| 2836 } |
2223 if (name != null) { | 2837 if (name != null) { |
2224 _json["name"] = name; | 2838 _json["name"] = name; |
2225 } | 2839 } |
2226 if (projectId != null) { | 2840 if (projectId != null) { |
2227 _json["projectId"] = projectId; | 2841 _json["projectId"] = projectId; |
2228 } | 2842 } |
2229 if (replaceJobId != null) { | 2843 if (replaceJobId != null) { |
2230 _json["replaceJobId"] = replaceJobId; | 2844 _json["replaceJobId"] = replaceJobId; |
2231 } | 2845 } |
2232 if (replacedByJobId != null) { | 2846 if (replacedByJobId != null) { |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 _json["start"] = start; | 3125 _json["start"] = start; |
2512 } | 3126 } |
2513 return _json; | 3127 return _json; |
2514 } | 3128 } |
2515 } | 3129 } |
2516 | 3130 |
2517 /** Request to lease WorkItems. */ | 3131 /** Request to lease WorkItems. */ |
2518 class LeaseWorkItemRequest { | 3132 class LeaseWorkItemRequest { |
2519 /** The current timestamp at the worker. */ | 3133 /** The current timestamp at the worker. */ |
2520 core.String currentWorkerTime; | 3134 core.String currentWorkerTime; |
| 3135 /** The location which contains the WorkItem's job. */ |
| 3136 core.String location; |
2521 /** The initial lease period. */ | 3137 /** The initial lease period. */ |
2522 core.String requestedLeaseDuration; | 3138 core.String requestedLeaseDuration; |
2523 /** Filter for WorkItem type. */ | 3139 /** Filter for WorkItem type. */ |
2524 core.List<core.String> workItemTypes; | 3140 core.List<core.String> workItemTypes; |
2525 /** | 3141 /** |
2526 * Worker capabilities. WorkItems might be limited to workers with specific | 3142 * Worker capabilities. WorkItems might be limited to workers with specific |
2527 * capabilities. | 3143 * capabilities. |
2528 */ | 3144 */ |
2529 core.List<core.String> workerCapabilities; | 3145 core.List<core.String> workerCapabilities; |
2530 /** | 3146 /** |
2531 * Identifies the worker leasing work -- typically the ID of the virtual | 3147 * Identifies the worker leasing work -- typically the ID of the virtual |
2532 * machine running the worker. | 3148 * machine running the worker. |
2533 */ | 3149 */ |
2534 core.String workerId; | 3150 core.String workerId; |
2535 | 3151 |
2536 LeaseWorkItemRequest(); | 3152 LeaseWorkItemRequest(); |
2537 | 3153 |
2538 LeaseWorkItemRequest.fromJson(core.Map _json) { | 3154 LeaseWorkItemRequest.fromJson(core.Map _json) { |
2539 if (_json.containsKey("currentWorkerTime")) { | 3155 if (_json.containsKey("currentWorkerTime")) { |
2540 currentWorkerTime = _json["currentWorkerTime"]; | 3156 currentWorkerTime = _json["currentWorkerTime"]; |
2541 } | 3157 } |
| 3158 if (_json.containsKey("location")) { |
| 3159 location = _json["location"]; |
| 3160 } |
2542 if (_json.containsKey("requestedLeaseDuration")) { | 3161 if (_json.containsKey("requestedLeaseDuration")) { |
2543 requestedLeaseDuration = _json["requestedLeaseDuration"]; | 3162 requestedLeaseDuration = _json["requestedLeaseDuration"]; |
2544 } | 3163 } |
2545 if (_json.containsKey("workItemTypes")) { | 3164 if (_json.containsKey("workItemTypes")) { |
2546 workItemTypes = _json["workItemTypes"]; | 3165 workItemTypes = _json["workItemTypes"]; |
2547 } | 3166 } |
2548 if (_json.containsKey("workerCapabilities")) { | 3167 if (_json.containsKey("workerCapabilities")) { |
2549 workerCapabilities = _json["workerCapabilities"]; | 3168 workerCapabilities = _json["workerCapabilities"]; |
2550 } | 3169 } |
2551 if (_json.containsKey("workerId")) { | 3170 if (_json.containsKey("workerId")) { |
2552 workerId = _json["workerId"]; | 3171 workerId = _json["workerId"]; |
2553 } | 3172 } |
2554 } | 3173 } |
2555 | 3174 |
2556 core.Map toJson() { | 3175 core.Map toJson() { |
2557 var _json = new core.Map(); | 3176 var _json = new core.Map(); |
2558 if (currentWorkerTime != null) { | 3177 if (currentWorkerTime != null) { |
2559 _json["currentWorkerTime"] = currentWorkerTime; | 3178 _json["currentWorkerTime"] = currentWorkerTime; |
2560 } | 3179 } |
| 3180 if (location != null) { |
| 3181 _json["location"] = location; |
| 3182 } |
2561 if (requestedLeaseDuration != null) { | 3183 if (requestedLeaseDuration != null) { |
2562 _json["requestedLeaseDuration"] = requestedLeaseDuration; | 3184 _json["requestedLeaseDuration"] = requestedLeaseDuration; |
2563 } | 3185 } |
2564 if (workItemTypes != null) { | 3186 if (workItemTypes != null) { |
2565 _json["workItemTypes"] = workItemTypes; | 3187 _json["workItemTypes"] = workItemTypes; |
2566 } | 3188 } |
2567 if (workerCapabilities != null) { | 3189 if (workerCapabilities != null) { |
2568 _json["workerCapabilities"] = workerCapabilities; | 3190 _json["workerCapabilities"] = workerCapabilities; |
2569 } | 3191 } |
2570 if (workerId != null) { | 3192 if (workerId != null) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 } | 3246 } |
2625 return _json; | 3247 return _json; |
2626 } | 3248 } |
2627 } | 3249 } |
2628 | 3250 |
2629 /** | 3251 /** |
2630 * Response to a request to list Dataflow jobs. This may be a partial response, | 3252 * Response to a request to list Dataflow jobs. This may be a partial response, |
2631 * depending on the page size in the ListJobsRequest. | 3253 * depending on the page size in the ListJobsRequest. |
2632 */ | 3254 */ |
2633 class ListJobsResponse { | 3255 class ListJobsResponse { |
| 3256 /** Zero or more messages describing locations that failed to respond. */ |
| 3257 core.List<FailedLocation> failedLocation; |
2634 /** A subset of the requested job information. */ | 3258 /** A subset of the requested job information. */ |
2635 core.List<Job> jobs; | 3259 core.List<Job> jobs; |
2636 /** Set if there may be more results than fit in this response. */ | 3260 /** Set if there may be more results than fit in this response. */ |
2637 core.String nextPageToken; | 3261 core.String nextPageToken; |
2638 | 3262 |
2639 ListJobsResponse(); | 3263 ListJobsResponse(); |
2640 | 3264 |
2641 ListJobsResponse.fromJson(core.Map _json) { | 3265 ListJobsResponse.fromJson(core.Map _json) { |
| 3266 if (_json.containsKey("failedLocation")) { |
| 3267 failedLocation = _json["failedLocation"].map((value) => new FailedLocation
.fromJson(value)).toList(); |
| 3268 } |
2642 if (_json.containsKey("jobs")) { | 3269 if (_json.containsKey("jobs")) { |
2643 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList(); | 3270 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList(); |
2644 } | 3271 } |
2645 if (_json.containsKey("nextPageToken")) { | 3272 if (_json.containsKey("nextPageToken")) { |
2646 nextPageToken = _json["nextPageToken"]; | 3273 nextPageToken = _json["nextPageToken"]; |
2647 } | 3274 } |
2648 } | 3275 } |
2649 | 3276 |
2650 core.Map toJson() { | 3277 core.Map toJson() { |
2651 var _json = new core.Map(); | 3278 var _json = new core.Map(); |
| 3279 if (failedLocation != null) { |
| 3280 _json["failedLocation"] = failedLocation.map((value) => (value).toJson()).
toList(); |
| 3281 } |
2652 if (jobs != null) { | 3282 if (jobs != null) { |
2653 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); | 3283 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); |
2654 } | 3284 } |
2655 if (nextPageToken != null) { | 3285 if (nextPageToken != null) { |
2656 _json["nextPageToken"] = nextPageToken; | 3286 _json["nextPageToken"] = nextPageToken; |
2657 } | 3287 } |
2658 return _json; | 3288 return _json; |
2659 } | 3289 } |
2660 } | 3290 } |
2661 | 3291 |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3458 _json["source"] = (source).toJson(); | 4088 _json["source"] = (source).toJson(); |
3459 } | 4089 } |
3460 return _json; | 4090 return _json; |
3461 } | 4091 } |
3462 } | 4092 } |
3463 | 4093 |
3464 /** Request to report the status of WorkItems. */ | 4094 /** Request to report the status of WorkItems. */ |
3465 class ReportWorkItemStatusRequest { | 4095 class ReportWorkItemStatusRequest { |
3466 /** The current timestamp at the worker. */ | 4096 /** The current timestamp at the worker. */ |
3467 core.String currentWorkerTime; | 4097 core.String currentWorkerTime; |
| 4098 /** The location which contains the WorkItem's job. */ |
| 4099 core.String location; |
3468 /** | 4100 /** |
3469 * The order is unimportant, except that the order of the WorkItemServiceState | 4101 * The order is unimportant, except that the order of the WorkItemServiceState |
3470 * messages in the ReportWorkItemStatusResponse corresponds to the order of | 4102 * messages in the ReportWorkItemStatusResponse corresponds to the order of |
3471 * WorkItemStatus messages here. | 4103 * WorkItemStatus messages here. |
3472 */ | 4104 */ |
3473 core.List<WorkItemStatus> workItemStatuses; | 4105 core.List<WorkItemStatus> workItemStatuses; |
3474 /** | 4106 /** |
3475 * The ID of the worker reporting the WorkItem status. If this does not match | 4107 * The ID of the worker reporting the WorkItem status. If this does not match |
3476 * the ID of the worker which the Dataflow service believes currently has the | 4108 * the ID of the worker which the Dataflow service believes currently has the |
3477 * lease on the WorkItem, the report will be dropped (with an error response). | 4109 * lease on the WorkItem, the report will be dropped (with an error response). |
3478 */ | 4110 */ |
3479 core.String workerId; | 4111 core.String workerId; |
3480 | 4112 |
3481 ReportWorkItemStatusRequest(); | 4113 ReportWorkItemStatusRequest(); |
3482 | 4114 |
3483 ReportWorkItemStatusRequest.fromJson(core.Map _json) { | 4115 ReportWorkItemStatusRequest.fromJson(core.Map _json) { |
3484 if (_json.containsKey("currentWorkerTime")) { | 4116 if (_json.containsKey("currentWorkerTime")) { |
3485 currentWorkerTime = _json["currentWorkerTime"]; | 4117 currentWorkerTime = _json["currentWorkerTime"]; |
3486 } | 4118 } |
| 4119 if (_json.containsKey("location")) { |
| 4120 location = _json["location"]; |
| 4121 } |
3487 if (_json.containsKey("workItemStatuses")) { | 4122 if (_json.containsKey("workItemStatuses")) { |
3488 workItemStatuses = _json["workItemStatuses"].map((value) => new WorkItemSt
atus.fromJson(value)).toList(); | 4123 workItemStatuses = _json["workItemStatuses"].map((value) => new WorkItemSt
atus.fromJson(value)).toList(); |
3489 } | 4124 } |
3490 if (_json.containsKey("workerId")) { | 4125 if (_json.containsKey("workerId")) { |
3491 workerId = _json["workerId"]; | 4126 workerId = _json["workerId"]; |
3492 } | 4127 } |
3493 } | 4128 } |
3494 | 4129 |
3495 core.Map toJson() { | 4130 core.Map toJson() { |
3496 var _json = new core.Map(); | 4131 var _json = new core.Map(); |
3497 if (currentWorkerTime != null) { | 4132 if (currentWorkerTime != null) { |
3498 _json["currentWorkerTime"] = currentWorkerTime; | 4133 _json["currentWorkerTime"] = currentWorkerTime; |
3499 } | 4134 } |
| 4135 if (location != null) { |
| 4136 _json["location"] = location; |
| 4137 } |
3500 if (workItemStatuses != null) { | 4138 if (workItemStatuses != null) { |
3501 _json["workItemStatuses"] = workItemStatuses.map((value) => (value).toJson
()).toList(); | 4139 _json["workItemStatuses"] = workItemStatuses.map((value) => (value).toJson
()).toList(); |
3502 } | 4140 } |
3503 if (workerId != null) { | 4141 if (workerId != null) { |
3504 _json["workerId"] = workerId; | 4142 _json["workerId"] = workerId; |
3505 } | 4143 } |
3506 return _json; | 4144 return _json; |
3507 } | 4145 } |
3508 } | 4146 } |
3509 | 4147 |
(...skipping 2638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6148 var _json = new core.Map(); | 6786 var _json = new core.Map(); |
6149 if (input != null) { | 6787 if (input != null) { |
6150 _json["input"] = (input).toJson(); | 6788 _json["input"] = (input).toJson(); |
6151 } | 6789 } |
6152 if (sink != null) { | 6790 if (sink != null) { |
6153 _json["sink"] = (sink).toJson(); | 6791 _json["sink"] = (sink).toJson(); |
6154 } | 6792 } |
6155 return _json; | 6793 return _json; |
6156 } | 6794 } |
6157 } | 6795 } |
OLD | NEW |