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.bigquerydatatransfer.v1; | 3 library googleapis.bigquerydatatransfer.v1; |
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 class ProjectsLocationsResourceApi { | 307 class ProjectsLocationsResourceApi { |
308 final commons.ApiRequester _requester; | 308 final commons.ApiRequester _requester; |
309 | 309 |
310 ProjectsLocationsDataSourcesResourceApi get dataSources => new ProjectsLocatio
nsDataSourcesResourceApi(_requester); | 310 ProjectsLocationsDataSourcesResourceApi get dataSources => new ProjectsLocatio
nsDataSourcesResourceApi(_requester); |
311 ProjectsLocationsTransferConfigsResourceApi get transferConfigs => new Project
sLocationsTransferConfigsResourceApi(_requester); | 311 ProjectsLocationsTransferConfigsResourceApi get transferConfigs => new Project
sLocationsTransferConfigsResourceApi(_requester); |
312 | 312 |
313 ProjectsLocationsResourceApi(commons.ApiRequester client) : | 313 ProjectsLocationsResourceApi(commons.ApiRequester client) : |
314 _requester = client; | 314 _requester = client; |
315 | 315 |
316 /** | 316 /** |
| 317 * Get information about a location. |
| 318 * |
| 319 * Request parameters: |
| 320 * |
| 321 * [name] - Resource name for the location. |
| 322 * Value must have pattern "^projects/[^/]+/locations/[^/]+$". |
| 323 * |
| 324 * Completes with a [Location]. |
| 325 * |
| 326 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 327 * error. |
| 328 * |
| 329 * If the used [http.Client] completes with an error when making a REST call, |
| 330 * this method will complete with the same error. |
| 331 */ |
| 332 async.Future<Location> get(core.String name) { |
| 333 var _url = null; |
| 334 var _queryParams = new core.Map(); |
| 335 var _uploadMedia = null; |
| 336 var _uploadOptions = null; |
| 337 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 338 var _body = null; |
| 339 |
| 340 if (name == null) { |
| 341 throw new core.ArgumentError("Parameter name is required."); |
| 342 } |
| 343 |
| 344 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 345 |
| 346 var _response = _requester.request(_url, |
| 347 "GET", |
| 348 body: _body, |
| 349 queryParams: _queryParams, |
| 350 uploadOptions: _uploadOptions, |
| 351 uploadMedia: _uploadMedia, |
| 352 downloadOptions: _downloadOptions); |
| 353 return _response.then((data) => new Location.fromJson(data)); |
| 354 } |
| 355 |
| 356 /** |
317 * Returns true if data transfer is enabled for a project. | 357 * Returns true if data transfer is enabled for a project. |
318 * | 358 * |
319 * [request] - The metadata request object. | 359 * [request] - The metadata request object. |
320 * | 360 * |
321 * Request parameters: | 361 * Request parameters: |
322 * | 362 * |
323 * [name] - The name of the project resource in the form: | 363 * [name] - The name of the project resource in the form: |
324 * `projects/{project_id}` | 364 * `projects/{project_id}` |
325 * Value must have pattern "^projects/[^/]+/locations/[^/]+$". | 365 * Value must have pattern "^projects/[^/]+/locations/[^/]+$". |
326 * | 366 * |
(...skipping 26 matching lines...) Expand all Loading... |
353 "POST", | 393 "POST", |
354 body: _body, | 394 body: _body, |
355 queryParams: _queryParams, | 395 queryParams: _queryParams, |
356 uploadOptions: _uploadOptions, | 396 uploadOptions: _uploadOptions, |
357 uploadMedia: _uploadMedia, | 397 uploadMedia: _uploadMedia, |
358 downloadOptions: _downloadOptions); | 398 downloadOptions: _downloadOptions); |
359 return _response.then((data) => new IsEnabledResponse.fromJson(data)); | 399 return _response.then((data) => new IsEnabledResponse.fromJson(data)); |
360 } | 400 } |
361 | 401 |
362 /** | 402 /** |
| 403 * Lists information about the supported locations for this service. |
| 404 * |
| 405 * Request parameters: |
| 406 * |
| 407 * [name] - The resource that owns the locations collection, if applicable. |
| 408 * Value must have pattern "^projects/[^/]+$". |
| 409 * |
| 410 * [filter] - The standard list filter. |
| 411 * |
| 412 * [pageToken] - The standard list page token. |
| 413 * |
| 414 * [pageSize] - The standard list page size. |
| 415 * |
| 416 * Completes with a [ListLocationsResponse]. |
| 417 * |
| 418 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 419 * error. |
| 420 * |
| 421 * If the used [http.Client] completes with an error when making a REST call, |
| 422 * this method will complete with the same error. |
| 423 */ |
| 424 async.Future<ListLocationsResponse> list(core.String name, {core.String filter
, core.String pageToken, core.int pageSize}) { |
| 425 var _url = null; |
| 426 var _queryParams = new core.Map(); |
| 427 var _uploadMedia = null; |
| 428 var _uploadOptions = null; |
| 429 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 430 var _body = null; |
| 431 |
| 432 if (name == null) { |
| 433 throw new core.ArgumentError("Parameter name is required."); |
| 434 } |
| 435 if (filter != null) { |
| 436 _queryParams["filter"] = [filter]; |
| 437 } |
| 438 if (pageToken != null) { |
| 439 _queryParams["pageToken"] = [pageToken]; |
| 440 } |
| 441 if (pageSize != null) { |
| 442 _queryParams["pageSize"] = ["${pageSize}"]; |
| 443 } |
| 444 |
| 445 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locations'
; |
| 446 |
| 447 var _response = _requester.request(_url, |
| 448 "GET", |
| 449 body: _body, |
| 450 queryParams: _queryParams, |
| 451 uploadOptions: _uploadOptions, |
| 452 uploadMedia: _uploadMedia, |
| 453 downloadOptions: _downloadOptions); |
| 454 return _response.then((data) => new ListLocationsResponse.fromJson(data)); |
| 455 } |
| 456 |
| 457 /** |
363 * Enables or disables data transfer for a project. This | 458 * Enables or disables data transfer for a project. This |
364 * method requires the additional scope of | 459 * method requires the additional scope of |
365 * 'https://www.googleapis.com/auth/cloudplatformprojects' | 460 * 'https://www.googleapis.com/auth/cloudplatformprojects' |
366 * to manage the cloud project permissions. | 461 * to manage the cloud project permissions. |
367 * | 462 * |
368 * [request] - The metadata request object. | 463 * [request] - The metadata request object. |
369 * | 464 * |
370 * Request parameters: | 465 * Request parameters: |
371 * | 466 * |
372 * [name] - The name of the project resource in the form: | 467 * [name] - The name of the project resource in the form: |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 * Lists supported data sources and returns their settings, | 608 * Lists supported data sources and returns their settings, |
514 * which can be used for UI rendering. | 609 * which can be used for UI rendering. |
515 * | 610 * |
516 * Request parameters: | 611 * Request parameters: |
517 * | 612 * |
518 * [parent] - The BigQuery project id for which data sources should be | 613 * [parent] - The BigQuery project id for which data sources should be |
519 * returned. | 614 * returned. |
520 * Must be in the form: `projects/{project_id}` | 615 * Must be in the form: `projects/{project_id}` |
521 * Value must have pattern "^projects/[^/]+/locations/[^/]+$". | 616 * Value must have pattern "^projects/[^/]+/locations/[^/]+$". |
522 * | 617 * |
| 618 * [pageSize] - Page size. The default page size is the maximum value of 1000 |
| 619 * results. |
| 620 * |
523 * [pageToken] - Pagination token, which can be used to request a specific | 621 * [pageToken] - Pagination token, which can be used to request a specific |
524 * page | 622 * page |
525 * of `ListDataSourcesRequest` list results. For multiple-page | 623 * of `ListDataSourcesRequest` list results. For multiple-page |
526 * results, `ListDataSourcesResponse` outputs | 624 * results, `ListDataSourcesResponse` outputs |
527 * a `next_page` token, which can be used as the | 625 * a `next_page` token, which can be used as the |
528 * `page_token` value to request the next page of list results. | 626 * `page_token` value to request the next page of list results. |
529 * | 627 * |
530 * [pageSize] - Page size. The default page size is the maximum value of 1000 | |
531 * results. | |
532 * | |
533 * Completes with a [ListDataSourcesResponse]. | 628 * Completes with a [ListDataSourcesResponse]. |
534 * | 629 * |
535 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 630 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
536 * error. | 631 * error. |
537 * | 632 * |
538 * If the used [http.Client] completes with an error when making a REST call, | 633 * If the used [http.Client] completes with an error when making a REST call, |
539 * this method will complete with the same error. | 634 * this method will complete with the same error. |
540 */ | 635 */ |
541 async.Future<ListDataSourcesResponse> list(core.String parent, {core.String pa
geToken, core.int pageSize}) { | 636 async.Future<ListDataSourcesResponse> list(core.String parent, {core.int pageS
ize, core.String pageToken}) { |
542 var _url = null; | 637 var _url = null; |
543 var _queryParams = new core.Map(); | 638 var _queryParams = new core.Map(); |
544 var _uploadMedia = null; | 639 var _uploadMedia = null; |
545 var _uploadOptions = null; | 640 var _uploadOptions = null; |
546 var _downloadOptions = commons.DownloadOptions.Metadata; | 641 var _downloadOptions = commons.DownloadOptions.Metadata; |
547 var _body = null; | 642 var _body = null; |
548 | 643 |
549 if (parent == null) { | 644 if (parent == null) { |
550 throw new core.ArgumentError("Parameter parent is required."); | 645 throw new core.ArgumentError("Parameter parent is required."); |
551 } | 646 } |
| 647 if (pageSize != null) { |
| 648 _queryParams["pageSize"] = ["${pageSize}"]; |
| 649 } |
552 if (pageToken != null) { | 650 if (pageToken != null) { |
553 _queryParams["pageToken"] = [pageToken]; | 651 _queryParams["pageToken"] = [pageToken]; |
554 } | 652 } |
555 if (pageSize != null) { | |
556 _queryParams["pageSize"] = ["${pageSize}"]; | |
557 } | |
558 | 653 |
559 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/dataSour
ces'; | 654 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/dataSour
ces'; |
560 | 655 |
561 var _response = _requester.request(_url, | 656 var _response = _requester.request(_url, |
562 "GET", | 657 "GET", |
563 body: _body, | 658 body: _body, |
564 queryParams: _queryParams, | 659 queryParams: _queryParams, |
565 uploadOptions: _uploadOptions, | 660 uploadOptions: _uploadOptions, |
566 uploadMedia: _uploadMedia, | 661 uploadMedia: _uploadMedia, |
567 downloadOptions: _downloadOptions); | 662 downloadOptions: _downloadOptions); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 * Request parameters: | 905 * Request parameters: |
811 * | 906 * |
812 * [name] - The resource name of the transfer run. | 907 * [name] - The resource name of the transfer run. |
813 * Transfer run names have the form | 908 * Transfer run names have the form |
814 * `projects/{project_id}/transferConfigs/{config_id}`. | 909 * `projects/{project_id}/transferConfigs/{config_id}`. |
815 * Where `config_id` is usually a uuid, even though it is not | 910 * Where `config_id` is usually a uuid, even though it is not |
816 * guaranteed or required. The name is ignored when creating a transfer run. | 911 * guaranteed or required. The name is ignored when creating a transfer run. |
817 * Value must have pattern | 912 * Value must have pattern |
818 * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$". | 913 * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$". |
819 * | 914 * |
820 * [updateMask] - Required list of fields to be updated in this request. | |
821 * | |
822 * [authorizationCode] - Optional OAuth2 authorization code to use with this | 915 * [authorizationCode] - Optional OAuth2 authorization code to use with this |
823 * transfer configuration. | 916 * transfer configuration. |
824 * If it is provided, the transfer configuration will be associated with the | 917 * If it is provided, the transfer configuration will be associated with the |
825 * gaia id of the authorizing user. | 918 * gaia id of the authorizing user. |
826 * In order to obtain authorization_code, please make a | 919 * In order to obtain authorization_code, please make a |
827 * request to | 920 * request to |
828 * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatra
nsferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri> | 921 * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<datatra
nsferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri> |
829 * | 922 * |
830 * * client_id should be OAuth client_id of BigQuery DTS API for the given | 923 * * client_id should be OAuth client_id of BigQuery DTS API for the given |
831 * data source returned by ListDataSources method. | 924 * data source returned by ListDataSources method. |
832 * * data_source_scopes are the scopes returned by ListDataSources method. | 925 * * data_source_scopes are the scopes returned by ListDataSources method. |
833 * * redirect_uri is an optional parameter. If not specified, then | 926 * * redirect_uri is an optional parameter. If not specified, then |
834 * authorization code is posted to the opener of authorization flow window. | 927 * authorization code is posted to the opener of authorization flow window. |
835 * Otherwise it will be sent to the redirect uri. A special value of | 928 * Otherwise it will be sent to the redirect uri. A special value of |
836 * urn:ietf:wg:oauth:2.0:oob means that authorization code should be | 929 * urn:ietf:wg:oauth:2.0:oob means that authorization code should be |
837 * returned in the title bar of the browser, with the page text prompting | 930 * returned in the title bar of the browser, with the page text prompting |
838 * the user to copy the code and paste it in the application. | 931 * the user to copy the code and paste it in the application. |
839 * | 932 * |
| 933 * [updateMask] - Required list of fields to be updated in this request. |
| 934 * |
840 * Completes with a [TransferConfig]. | 935 * Completes with a [TransferConfig]. |
841 * | 936 * |
842 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 937 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
843 * error. | 938 * error. |
844 * | 939 * |
845 * If the used [http.Client] completes with an error when making a REST call, | 940 * If the used [http.Client] completes with an error when making a REST call, |
846 * this method will complete with the same error. | 941 * this method will complete with the same error. |
847 */ | 942 */ |
848 async.Future<TransferConfig> patch(TransferConfig request, core.String name, {
core.String updateMask, core.String authorizationCode}) { | 943 async.Future<TransferConfig> patch(TransferConfig request, core.String name, {
core.String authorizationCode, core.String updateMask}) { |
849 var _url = null; | 944 var _url = null; |
850 var _queryParams = new core.Map(); | 945 var _queryParams = new core.Map(); |
851 var _uploadMedia = null; | 946 var _uploadMedia = null; |
852 var _uploadOptions = null; | 947 var _uploadOptions = null; |
853 var _downloadOptions = commons.DownloadOptions.Metadata; | 948 var _downloadOptions = commons.DownloadOptions.Metadata; |
854 var _body = null; | 949 var _body = null; |
855 | 950 |
856 if (request != null) { | 951 if (request != null) { |
857 _body = convert.JSON.encode((request).toJson()); | 952 _body = convert.JSON.encode((request).toJson()); |
858 } | 953 } |
859 if (name == null) { | 954 if (name == null) { |
860 throw new core.ArgumentError("Parameter name is required."); | 955 throw new core.ArgumentError("Parameter name is required."); |
861 } | 956 } |
| 957 if (authorizationCode != null) { |
| 958 _queryParams["authorizationCode"] = [authorizationCode]; |
| 959 } |
862 if (updateMask != null) { | 960 if (updateMask != null) { |
863 _queryParams["updateMask"] = [updateMask]; | 961 _queryParams["updateMask"] = [updateMask]; |
864 } | 962 } |
865 if (authorizationCode != null) { | |
866 _queryParams["authorizationCode"] = [authorizationCode]; | |
867 } | |
868 | 963 |
869 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 964 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
870 | 965 |
871 var _response = _requester.request(_url, | 966 var _response = _requester.request(_url, |
872 "PATCH", | 967 "PATCH", |
873 body: _body, | 968 body: _body, |
874 queryParams: _queryParams, | 969 queryParams: _queryParams, |
875 uploadOptions: _uploadOptions, | 970 uploadOptions: _uploadOptions, |
876 uploadMedia: _uploadMedia, | 971 uploadMedia: _uploadMedia, |
877 downloadOptions: _downloadOptions); | 972 downloadOptions: _downloadOptions); |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 | 1438 |
1344 /** | 1439 /** |
1345 * Returns information about all data transfers in the project. | 1440 * Returns information about all data transfers in the project. |
1346 * | 1441 * |
1347 * Request parameters: | 1442 * Request parameters: |
1348 * | 1443 * |
1349 * [parent] - The BigQuery project id for which data sources | 1444 * [parent] - The BigQuery project id for which data sources |
1350 * should be returned: `projects/{project_id}`. | 1445 * should be returned: `projects/{project_id}`. |
1351 * Value must have pattern "^projects/[^/]+$". | 1446 * Value must have pattern "^projects/[^/]+$". |
1352 * | 1447 * |
1353 * [pageSize] - Page size. The default page size is the maximum value of 1000 | |
1354 * results. | |
1355 * | |
1356 * [dataSourceIds] - When specified, only configurations of requested data | |
1357 * sources are returned. | |
1358 * | |
1359 * [pageToken] - Pagination token, which can be used to request a specific | 1448 * [pageToken] - Pagination token, which can be used to request a specific |
1360 * page | 1449 * page |
1361 * of `ListTransfersRequest` list results. For multiple-page | 1450 * of `ListTransfersRequest` list results. For multiple-page |
1362 * results, `ListTransfersResponse` outputs | 1451 * results, `ListTransfersResponse` outputs |
1363 * a `next_page` token, which can be used as the | 1452 * a `next_page` token, which can be used as the |
1364 * `page_token` value to request the next page of list results. | 1453 * `page_token` value to request the next page of list results. |
1365 * | 1454 * |
| 1455 * [pageSize] - Page size. The default page size is the maximum value of 1000 |
| 1456 * results. |
| 1457 * |
| 1458 * [dataSourceIds] - When specified, only configurations of requested data |
| 1459 * sources are returned. |
| 1460 * |
1366 * Completes with a [ListTransferConfigsResponse]. | 1461 * Completes with a [ListTransferConfigsResponse]. |
1367 * | 1462 * |
1368 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1463 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1369 * error. | 1464 * error. |
1370 * | 1465 * |
1371 * If the used [http.Client] completes with an error when making a REST call, | 1466 * If the used [http.Client] completes with an error when making a REST call, |
1372 * this method will complete with the same error. | 1467 * this method will complete with the same error. |
1373 */ | 1468 */ |
1374 async.Future<ListTransferConfigsResponse> list(core.String parent, {core.int p
ageSize, core.List<core.String> dataSourceIds, core.String pageToken}) { | 1469 async.Future<ListTransferConfigsResponse> list(core.String parent, {core.Strin
g pageToken, core.int pageSize, core.List<core.String> dataSourceIds}) { |
1375 var _url = null; | 1470 var _url = null; |
1376 var _queryParams = new core.Map(); | 1471 var _queryParams = new core.Map(); |
1377 var _uploadMedia = null; | 1472 var _uploadMedia = null; |
1378 var _uploadOptions = null; | 1473 var _uploadOptions = null; |
1379 var _downloadOptions = commons.DownloadOptions.Metadata; | 1474 var _downloadOptions = commons.DownloadOptions.Metadata; |
1380 var _body = null; | 1475 var _body = null; |
1381 | 1476 |
1382 if (parent == null) { | 1477 if (parent == null) { |
1383 throw new core.ArgumentError("Parameter parent is required."); | 1478 throw new core.ArgumentError("Parameter parent is required."); |
1384 } | 1479 } |
| 1480 if (pageToken != null) { |
| 1481 _queryParams["pageToken"] = [pageToken]; |
| 1482 } |
1385 if (pageSize != null) { | 1483 if (pageSize != null) { |
1386 _queryParams["pageSize"] = ["${pageSize}"]; | 1484 _queryParams["pageSize"] = ["${pageSize}"]; |
1387 } | 1485 } |
1388 if (dataSourceIds != null) { | 1486 if (dataSourceIds != null) { |
1389 _queryParams["dataSourceIds"] = dataSourceIds; | 1487 _queryParams["dataSourceIds"] = dataSourceIds; |
1390 } | 1488 } |
1391 if (pageToken != null) { | |
1392 _queryParams["pageToken"] = [pageToken]; | |
1393 } | |
1394 | 1489 |
1395 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transfer
Configs'; | 1490 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transfer
Configs'; |
1396 | 1491 |
1397 var _response = _requester.request(_url, | 1492 var _response = _requester.request(_url, |
1398 "GET", | 1493 "GET", |
1399 body: _body, | 1494 body: _body, |
1400 queryParams: _queryParams, | 1495 queryParams: _queryParams, |
1401 uploadOptions: _uploadOptions, | 1496 uploadOptions: _uploadOptions, |
1402 uploadMedia: _uploadMedia, | 1497 uploadMedia: _uploadMedia, |
1403 downloadOptions: _downloadOptions); | 1498 downloadOptions: _downloadOptions); |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 if (dataSources != null) { | 2382 if (dataSources != null) { |
2288 _json["dataSources"] = dataSources.map((value) => (value).toJson()).toList
(); | 2383 _json["dataSources"] = dataSources.map((value) => (value).toJson()).toList
(); |
2289 } | 2384 } |
2290 if (nextPageToken != null) { | 2385 if (nextPageToken != null) { |
2291 _json["nextPageToken"] = nextPageToken; | 2386 _json["nextPageToken"] = nextPageToken; |
2292 } | 2387 } |
2293 return _json; | 2388 return _json; |
2294 } | 2389 } |
2295 } | 2390 } |
2296 | 2391 |
| 2392 /** The response message for Locations.ListLocations. */ |
| 2393 class ListLocationsResponse { |
| 2394 /** A list of locations that matches the specified filter in the request. */ |
| 2395 core.List<Location> locations; |
| 2396 /** The standard List next-page token. */ |
| 2397 core.String nextPageToken; |
| 2398 |
| 2399 ListLocationsResponse(); |
| 2400 |
| 2401 ListLocationsResponse.fromJson(core.Map _json) { |
| 2402 if (_json.containsKey("locations")) { |
| 2403 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); |
| 2404 } |
| 2405 if (_json.containsKey("nextPageToken")) { |
| 2406 nextPageToken = _json["nextPageToken"]; |
| 2407 } |
| 2408 } |
| 2409 |
| 2410 core.Map<core.String, core.Object> toJson() { |
| 2411 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2412 if (locations != null) { |
| 2413 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
| 2414 } |
| 2415 if (nextPageToken != null) { |
| 2416 _json["nextPageToken"] = nextPageToken; |
| 2417 } |
| 2418 return _json; |
| 2419 } |
| 2420 } |
| 2421 |
2297 /** The returned list of pipelines in the project. */ | 2422 /** The returned list of pipelines in the project. */ |
2298 class ListTransferConfigsResponse { | 2423 class ListTransferConfigsResponse { |
2299 /** | 2424 /** |
2300 * The next-pagination token. For multiple-page list results, | 2425 * The next-pagination token. For multiple-page list results, |
2301 * this token can be used as the | 2426 * this token can be used as the |
2302 * `ListTransferConfigsRequest.page_token` | 2427 * `ListTransferConfigsRequest.page_token` |
2303 * to request the next page of list results. | 2428 * to request the next page of list results. |
2304 * @OutputOnly | 2429 * @OutputOnly |
2305 */ | 2430 */ |
2306 core.String nextPageToken; | 2431 core.String nextPageToken; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2404 if (nextPageToken != null) { | 2529 if (nextPageToken != null) { |
2405 _json["nextPageToken"] = nextPageToken; | 2530 _json["nextPageToken"] = nextPageToken; |
2406 } | 2531 } |
2407 if (transferRuns != null) { | 2532 if (transferRuns != null) { |
2408 _json["transferRuns"] = transferRuns.map((value) => (value).toJson()).toLi
st(); | 2533 _json["transferRuns"] = transferRuns.map((value) => (value).toJson()).toLi
st(); |
2409 } | 2534 } |
2410 return _json; | 2535 return _json; |
2411 } | 2536 } |
2412 } | 2537 } |
2413 | 2538 |
| 2539 /** A resource that represents Google Cloud Platform location. */ |
| 2540 class Location { |
| 2541 /** |
| 2542 * Cross-service attributes for the location. For example |
| 2543 * |
| 2544 * {"cloud.googleapis.com/region": "us-east1"} |
| 2545 */ |
| 2546 core.Map<core.String, core.String> labels; |
| 2547 /** The canonical id for this location. For example: `"us-east1"`. */ |
| 2548 core.String locationId; |
| 2549 /** |
| 2550 * Service-specific metadata. For example the available capacity at the given |
| 2551 * location. |
| 2552 * |
| 2553 * The values for Object must be JSON objects. It can consist of `num`, |
| 2554 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2555 */ |
| 2556 core.Map<core.String, core.Object> metadata; |
| 2557 /** |
| 2558 * Resource name for the location, which may vary between implementations. |
| 2559 * For example: `"projects/example-project/locations/us-east1"` |
| 2560 */ |
| 2561 core.String name; |
| 2562 |
| 2563 Location(); |
| 2564 |
| 2565 Location.fromJson(core.Map _json) { |
| 2566 if (_json.containsKey("labels")) { |
| 2567 labels = _json["labels"]; |
| 2568 } |
| 2569 if (_json.containsKey("locationId")) { |
| 2570 locationId = _json["locationId"]; |
| 2571 } |
| 2572 if (_json.containsKey("metadata")) { |
| 2573 metadata = _json["metadata"]; |
| 2574 } |
| 2575 if (_json.containsKey("name")) { |
| 2576 name = _json["name"]; |
| 2577 } |
| 2578 } |
| 2579 |
| 2580 core.Map<core.String, core.Object> toJson() { |
| 2581 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2582 if (labels != null) { |
| 2583 _json["labels"] = labels; |
| 2584 } |
| 2585 if (locationId != null) { |
| 2586 _json["locationId"] = locationId; |
| 2587 } |
| 2588 if (metadata != null) { |
| 2589 _json["metadata"] = metadata; |
| 2590 } |
| 2591 if (name != null) { |
| 2592 _json["name"] = name; |
| 2593 } |
| 2594 return _json; |
| 2595 } |
| 2596 } |
| 2597 |
2414 /** A request to schedule transfer runs for a time range. */ | 2598 /** A request to schedule transfer runs for a time range. */ |
2415 class ScheduleTransferRunsRequest { | 2599 class ScheduleTransferRunsRequest { |
2416 /** End time of the range of transfer runs. */ | 2600 /** End time of the range of transfer runs. */ |
2417 core.String rangeEndTime; | 2601 core.String rangeEndTime; |
2418 /** Start time of the range of transfer runs. */ | 2602 /** Start time of the range of transfer runs. */ |
2419 core.String rangeStartTime; | 2603 core.String rangeStartTime; |
2420 | 2604 |
2421 ScheduleTransferRunsRequest(); | 2605 ScheduleTransferRunsRequest(); |
2422 | 2606 |
2423 ScheduleTransferRunsRequest.fromJson(core.Map _json) { | 2607 ScheduleTransferRunsRequest.fromJson(core.Map _json) { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2537 */ | 2721 */ |
2538 core.String nextRunTime; | 2722 core.String nextRunTime; |
2539 /** | 2723 /** |
2540 * Data transfer specific parameters. | 2724 * Data transfer specific parameters. |
2541 * | 2725 * |
2542 * The values for Object must be JSON objects. It can consist of `num`, | 2726 * The values for Object must be JSON objects. It can consist of `num`, |
2543 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2727 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2544 */ | 2728 */ |
2545 core.Map<core.String, core.Object> params; | 2729 core.Map<core.String, core.Object> params; |
2546 /** | 2730 /** |
2547 * Data transfer schedule in GROC format. | 2731 * Data transfer schedule. |
2548 * If the data source does not support a custom schedule, this should be | 2732 * If the data source does not support a custom schedule, this should be |
2549 * empty. If it is empty, the default value for the data source will be | 2733 * empty. If it is empty, the default value for the data source will be |
2550 * used. | 2734 * used. |
2551 * The specified times are in UTC. | 2735 * The specified times are in UTC. |
2552 * Examples of valid GROC include: | 2736 * Examples of valid format: |
2553 * `1st,3rd monday of month 15:30`, | 2737 * `1st,3rd monday of month 15:30`, |
2554 * `every wed,fri of jan,jun 13:15`, and | 2738 * `every wed,fri of jan,jun 13:15`, and |
2555 * `first sunday of quarter 00:00`. | 2739 * `first sunday of quarter 00:00`. |
| 2740 * See more explanation about the format here: |
| 2741 * https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-wit
h-cron-yaml#the_schedule_format |
| 2742 * NOTE: the granularity should be at least 8 hours, or less frequent. |
2556 */ | 2743 */ |
2557 core.String schedule; | 2744 core.String schedule; |
2558 /** | 2745 /** |
2559 * Status of the most recently updated transfer run. | 2746 * Status of the most recently updated transfer run. |
2560 * @OutputOnly | 2747 * @OutputOnly |
2561 * Possible string values are: | 2748 * Possible string values are: |
2562 * - "TRANSFER_STATUS_UNSPECIFIED" : Status placeholder. | 2749 * - "TRANSFER_STATUS_UNSPECIFIED" : Status placeholder. |
2563 * - "INACTIVE" : Data transfer is inactive. | 2750 * - "INACTIVE" : Data transfer is inactive. |
2564 * - "PENDING" : Data transfer is scheduled and is waiting to be picked up by | 2751 * - "PENDING" : Data transfer is scheduled and is waiting to be picked up by |
2565 * data transfer backend. | 2752 * data transfer backend. |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2879 } | 3066 } |
2880 if (updateTime != null) { | 3067 if (updateTime != null) { |
2881 _json["updateTime"] = updateTime; | 3068 _json["updateTime"] = updateTime; |
2882 } | 3069 } |
2883 if (userId != null) { | 3070 if (userId != null) { |
2884 _json["userId"] = userId; | 3071 _json["userId"] = userId; |
2885 } | 3072 } |
2886 return _json; | 3073 return _json; |
2887 } | 3074 } |
2888 } | 3075 } |
OLD | NEW |