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.appengine.v1; | 3 library googleapis.appengine.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 605 matching lines...) Loading... |
616 * | 616 * |
617 * [request] - The metadata request object. | 617 * [request] - The metadata request object. |
618 * | 618 * |
619 * Request parameters: | 619 * Request parameters: |
620 * | 620 * |
621 * [appsId] - Part of `name`. Name of the resource to update. Example: | 621 * [appsId] - Part of `name`. Name of the resource to update. Example: |
622 * apps/myapp/services/default. | 622 * apps/myapp/services/default. |
623 * | 623 * |
624 * [servicesId] - Part of `name`. See documentation of `appsId`. | 624 * [servicesId] - Part of `name`. See documentation of `appsId`. |
625 * | 625 * |
626 * [updateMask] - Standard field mask for the set of fields to be updated. | |
627 * | |
628 * [migrateTraffic] - Set to true to gradually shift traffic to one or more | 626 * [migrateTraffic] - Set to true to gradually shift traffic to one or more |
629 * versions that you specify. By default, traffic is shifted immediately. For | 627 * versions that you specify. By default, traffic is shifted immediately. For |
630 * gradual traffic migration, the target versions must be located within | 628 * gradual traffic migration, the target versions must be located within |
631 * instances that are configured for both warmup requests | 629 * instances that are configured for both warmup requests |
632 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#inboundservicetype) | 630 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#inboundservicetype) |
633 * and automatic scaling | 631 * and automatic scaling |
634 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#automaticscaling). | 632 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#automaticscaling). |
635 * You must specify the shardBy | 633 * You must specify the shardBy |
636 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices#shardby) | 634 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices#shardby) |
637 * field in the Service resource. Gradual traffic migration is not supported | 635 * field in the Service resource. Gradual traffic migration is not supported |
638 * in the App Engine flexible environment. For examples, see Migrating and | 636 * in the App Engine flexible environment. For examples, see Migrating and |
639 * Splitting Traffic | 637 * Splitting Traffic |
640 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). | 638 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). |
641 * | 639 * |
| 640 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 641 * |
642 * Completes with a [Operation]. | 642 * Completes with a [Operation]. |
643 * | 643 * |
644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
645 * error. | 645 * error. |
646 * | 646 * |
647 * If the used [http.Client] completes with an error when making a REST call, | 647 * If the used [http.Client] completes with an error when making a REST call, |
648 * this method will complete with the same error. | 648 * this method will complete with the same error. |
649 */ | 649 */ |
650 async.Future<Operation> patch(Service request, core.String appsId, core.String
servicesId, {core.String updateMask, core.bool migrateTraffic}) { | 650 async.Future<Operation> patch(Service request, core.String appsId, core.String
servicesId, {core.bool migrateTraffic, core.String updateMask}) { |
651 var _url = null; | 651 var _url = null; |
652 var _queryParams = new core.Map(); | 652 var _queryParams = new core.Map(); |
653 var _uploadMedia = null; | 653 var _uploadMedia = null; |
654 var _uploadOptions = null; | 654 var _uploadOptions = null; |
655 var _downloadOptions = commons.DownloadOptions.Metadata; | 655 var _downloadOptions = commons.DownloadOptions.Metadata; |
656 var _body = null; | 656 var _body = null; |
657 | 657 |
658 if (request != null) { | 658 if (request != null) { |
659 _body = convert.JSON.encode((request).toJson()); | 659 _body = convert.JSON.encode((request).toJson()); |
660 } | 660 } |
661 if (appsId == null) { | 661 if (appsId == null) { |
662 throw new core.ArgumentError("Parameter appsId is required."); | 662 throw new core.ArgumentError("Parameter appsId is required."); |
663 } | 663 } |
664 if (servicesId == null) { | 664 if (servicesId == null) { |
665 throw new core.ArgumentError("Parameter servicesId is required."); | 665 throw new core.ArgumentError("Parameter servicesId is required."); |
666 } | 666 } |
| 667 if (migrateTraffic != null) { |
| 668 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; |
| 669 } |
667 if (updateMask != null) { | 670 if (updateMask != null) { |
668 _queryParams["updateMask"] = [updateMask]; | 671 _queryParams["updateMask"] = [updateMask]; |
669 } | 672 } |
670 if (migrateTraffic != null) { | |
671 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; | |
672 } | |
673 | 673 |
674 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId'); | 674 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId'); |
675 | 675 |
676 var _response = _requester.request(_url, | 676 var _response = _requester.request(_url, |
677 "PATCH", | 677 "PATCH", |
678 body: _body, | 678 body: _body, |
679 queryParams: _queryParams, | 679 queryParams: _queryParams, |
680 uploadOptions: _uploadOptions, | 680 uploadOptions: _uploadOptions, |
681 uploadMedia: _uploadMedia, | 681 uploadMedia: _uploadMedia, |
682 downloadOptions: _downloadOptions); | 682 downloadOptions: _downloadOptions); |
(...skipping 501 matching lines...) Loading... |
1184 * | 1184 * |
1185 * Request parameters: | 1185 * Request parameters: |
1186 * | 1186 * |
1187 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: | 1187 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: |
1188 * apps/myapp/services/default/versions/v1. | 1188 * apps/myapp/services/default/versions/v1. |
1189 * | 1189 * |
1190 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1190 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
1191 * | 1191 * |
1192 * [versionsId] - Part of `parent`. See documentation of `appsId`. | 1192 * [versionsId] - Part of `parent`. See documentation of `appsId`. |
1193 * | 1193 * |
| 1194 * [pageSize] - Maximum results to return per page. |
| 1195 * |
1194 * [pageToken] - Continuation token for fetching the next page of results. | 1196 * [pageToken] - Continuation token for fetching the next page of results. |
1195 * | 1197 * |
1196 * [pageSize] - Maximum results to return per page. | |
1197 * | |
1198 * Completes with a [ListInstancesResponse]. | 1198 * Completes with a [ListInstancesResponse]. |
1199 * | 1199 * |
1200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1201 * error. | 1201 * error. |
1202 * | 1202 * |
1203 * If the used [http.Client] completes with an error when making a REST call, | 1203 * If the used [http.Client] completes with an error when making a REST call, |
1204 * this method will complete with the same error. | 1204 * this method will complete with the same error. |
1205 */ | 1205 */ |
1206 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi
cesId, core.String versionsId, {core.String pageToken, core.int pageSize}) { | 1206 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi
cesId, core.String versionsId, {core.int pageSize, core.String pageToken}) { |
1207 var _url = null; | 1207 var _url = null; |
1208 var _queryParams = new core.Map(); | 1208 var _queryParams = new core.Map(); |
1209 var _uploadMedia = null; | 1209 var _uploadMedia = null; |
1210 var _uploadOptions = null; | 1210 var _uploadOptions = null; |
1211 var _downloadOptions = commons.DownloadOptions.Metadata; | 1211 var _downloadOptions = commons.DownloadOptions.Metadata; |
1212 var _body = null; | 1212 var _body = null; |
1213 | 1213 |
1214 if (appsId == null) { | 1214 if (appsId == null) { |
1215 throw new core.ArgumentError("Parameter appsId is required."); | 1215 throw new core.ArgumentError("Parameter appsId is required."); |
1216 } | 1216 } |
1217 if (servicesId == null) { | 1217 if (servicesId == null) { |
1218 throw new core.ArgumentError("Parameter servicesId is required."); | 1218 throw new core.ArgumentError("Parameter servicesId is required."); |
1219 } | 1219 } |
1220 if (versionsId == null) { | 1220 if (versionsId == null) { |
1221 throw new core.ArgumentError("Parameter versionsId is required."); | 1221 throw new core.ArgumentError("Parameter versionsId is required."); |
1222 } | 1222 } |
| 1223 if (pageSize != null) { |
| 1224 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1225 } |
1223 if (pageToken != null) { | 1226 if (pageToken != null) { |
1224 _queryParams["pageToken"] = [pageToken]; | 1227 _queryParams["pageToken"] = [pageToken]; |
1225 } | 1228 } |
1226 if (pageSize != null) { | |
1227 _queryParams["pageSize"] = ["${pageSize}"]; | |
1228 } | |
1229 | 1229 |
1230 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances'; | 1230 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances'; |
1231 | 1231 |
1232 var _response = _requester.request(_url, | 1232 var _response = _requester.request(_url, |
1233 "GET", | 1233 "GET", |
1234 body: _body, | 1234 body: _body, |
1235 queryParams: _queryParams, | 1235 queryParams: _queryParams, |
1236 uploadOptions: _uploadOptions, | 1236 uploadOptions: _uploadOptions, |
1237 uploadMedia: _uploadMedia, | 1237 uploadMedia: _uploadMedia, |
1238 downloadOptions: _downloadOptions); | 1238 downloadOptions: _downloadOptions); |
(...skipping 3186 matching lines...) Loading... |
4425 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4425 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4426 if (filesCount != null) { | 4426 if (filesCount != null) { |
4427 _json["filesCount"] = filesCount; | 4427 _json["filesCount"] = filesCount; |
4428 } | 4428 } |
4429 if (sourceUrl != null) { | 4429 if (sourceUrl != null) { |
4430 _json["sourceUrl"] = sourceUrl; | 4430 _json["sourceUrl"] = sourceUrl; |
4431 } | 4431 } |
4432 return _json; | 4432 return _json; |
4433 } | 4433 } |
4434 } | 4434 } |
OLD | NEW |