Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: generated/googleapis/lib/deploymentmanager/v2.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.deploymentmanager.v2; 3 library googleapis.deploymentmanager.v2;
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 "GET", 196 "GET",
197 body: _body, 197 body: _body,
198 queryParams: _queryParams, 198 queryParams: _queryParams,
199 uploadOptions: _uploadOptions, 199 uploadOptions: _uploadOptions,
200 uploadMedia: _uploadMedia, 200 uploadMedia: _uploadMedia,
201 downloadOptions: _downloadOptions); 201 downloadOptions: _downloadOptions);
202 return _response.then((data) => new Deployment.fromJson(data)); 202 return _response.then((data) => new Deployment.fromJson(data));
203 } 203 }
204 204
205 /** 205 /**
206 * Gets the access control policy for a resource. May be empty if no such
207 * policy or resource exists.
208 *
209 * Request parameters:
210 *
211 * [project] - Project ID for this request.
212 * Value must have pattern
213 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
214 *
215 * [resource] - Name of the resource for this request.
216 * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?".
217 *
218 * Completes with a [Policy].
219 *
220 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
221 * error.
222 *
223 * If the used [http.Client] completes with an error when making a REST call,
224 * this method will complete with the same error.
225 */
226 async.Future<Policy> getIamPolicy(core.String project, core.String resource) {
227 var _url = null;
228 var _queryParams = new core.Map();
229 var _uploadMedia = null;
230 var _uploadOptions = null;
231 var _downloadOptions = commons.DownloadOptions.Metadata;
232 var _body = null;
233
234 if (project == null) {
235 throw new core.ArgumentError("Parameter project is required.");
236 }
237 if (resource == null) {
238 throw new core.ArgumentError("Parameter resource is required.");
239 }
240
241 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/getIamPolicy';
242
243 var _response = _requester.request(_url,
244 "GET",
245 body: _body,
246 queryParams: _queryParams,
247 uploadOptions: _uploadOptions,
248 uploadMedia: _uploadMedia,
249 downloadOptions: _downloadOptions);
250 return _response.then((data) => new Policy.fromJson(data));
251 }
252
253 /**
206 * Creates a deployment and all of the resources described by the deployment 254 * Creates a deployment and all of the resources described by the deployment
207 * manifest. 255 * manifest.
208 * 256 *
209 * [request] - The metadata request object. 257 * [request] - The metadata request object.
210 * 258 *
211 * Request parameters: 259 * Request parameters:
212 * 260 *
213 * [project] - The project ID for this request. 261 * [project] - The project ID for this request.
214 * Value must have pattern 262 * Value must have pattern
215 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 263 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 342 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
295 * us-central1-f). Multiple expressions are treated as AND expressions, 343 * us-central1-f). Multiple expressions are treated as AND expressions,
296 * meaning that resources must match all expressions to pass the filters. 344 * meaning that resources must match all expressions to pass the filters.
297 * 345 *
298 * [maxResults] - The maximum number of results per page that should be 346 * [maxResults] - The maximum number of results per page that should be
299 * returned. If the number of available results is larger than maxResults, 347 * returned. If the number of available results is larger than maxResults,
300 * Compute Engine returns a nextPageToken that can be used to get the next 348 * Compute Engine returns a nextPageToken that can be used to get the next
301 * page of results in subsequent list requests. 349 * page of results in subsequent list requests.
302 * Value must be between "0" and "500". 350 * Value must be between "0" and "500".
303 * 351 *
352 * [orderBy] - Sorts list results by a certain order. By default, results are
353 * returned in alphanumerical order based on the resource name.
354 *
355 * You can also sort results in descending order based on the creation
356 * timestamp using orderBy="creationTimestamp desc". This sorts results based
357 * on the creationTimestamp field in reverse chronological order (newest
358 * result first). Use this to sort resources like operations so that the
359 * newest operation is returned first.
360 *
361 * Currently, only sorting by name or creationTimestamp desc is supported.
362 *
304 * [pageToken] - Specifies a page token to use. Set pageToken to the 363 * [pageToken] - Specifies a page token to use. Set pageToken to the
305 * nextPageToken returned by a previous list request to get the next page of 364 * nextPageToken returned by a previous list request to get the next page of
306 * results. 365 * results.
307 * 366 *
308 * Completes with a [DeploymentsListResponse]. 367 * Completes with a [DeploymentsListResponse].
309 * 368 *
310 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 369 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
311 * error. 370 * error.
312 * 371 *
313 * If the used [http.Client] completes with an error when making a REST call, 372 * If the used [http.Client] completes with an error when making a REST call,
314 * this method will complete with the same error. 373 * this method will complete with the same error.
315 */ 374 */
316 async.Future<DeploymentsListResponse> list(core.String project, {core.String f ilter, core.int maxResults, core.String pageToken}) { 375 async.Future<DeploymentsListResponse> list(core.String project, {core.String f ilter, core.int maxResults, core.String orderBy, core.String pageToken}) {
317 var _url = null; 376 var _url = null;
318 var _queryParams = new core.Map(); 377 var _queryParams = new core.Map();
319 var _uploadMedia = null; 378 var _uploadMedia = null;
320 var _uploadOptions = null; 379 var _uploadOptions = null;
321 var _downloadOptions = commons.DownloadOptions.Metadata; 380 var _downloadOptions = commons.DownloadOptions.Metadata;
322 var _body = null; 381 var _body = null;
323 382
324 if (project == null) { 383 if (project == null) {
325 throw new core.ArgumentError("Parameter project is required."); 384 throw new core.ArgumentError("Parameter project is required.");
326 } 385 }
327 if (filter != null) { 386 if (filter != null) {
328 _queryParams["filter"] = [filter]; 387 _queryParams["filter"] = [filter];
329 } 388 }
330 if (maxResults != null) { 389 if (maxResults != null) {
331 _queryParams["maxResults"] = ["${maxResults}"]; 390 _queryParams["maxResults"] = ["${maxResults}"];
332 } 391 }
392 if (orderBy != null) {
393 _queryParams["orderBy"] = [orderBy];
394 }
333 if (pageToken != null) { 395 if (pageToken != null) {
334 _queryParams["pageToken"] = [pageToken]; 396 _queryParams["pageToken"] = [pageToken];
335 } 397 }
336 398
337 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments'; 399 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments';
338 400
339 var _response = _requester.request(_url, 401 var _response = _requester.request(_url,
340 "GET", 402 "GET",
341 body: _body, 403 body: _body,
342 queryParams: _queryParams, 404 queryParams: _queryParams,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 "PATCH", 485 "PATCH",
424 body: _body, 486 body: _body,
425 queryParams: _queryParams, 487 queryParams: _queryParams,
426 uploadOptions: _uploadOptions, 488 uploadOptions: _uploadOptions,
427 uploadMedia: _uploadMedia, 489 uploadMedia: _uploadMedia,
428 downloadOptions: _downloadOptions); 490 downloadOptions: _downloadOptions);
429 return _response.then((data) => new Operation.fromJson(data)); 491 return _response.then((data) => new Operation.fromJson(data));
430 } 492 }
431 493
432 /** 494 /**
495 * Sets the access control policy on the specified resource. Replaces any
496 * existing policy.
497 *
498 * [request] - The metadata request object.
499 *
500 * Request parameters:
501 *
502 * [project] - Project ID for this request.
503 * Value must have pattern
504 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
505 *
506 * [resource] - Name of the resource for this request.
507 * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?".
508 *
509 * Completes with a [Policy].
510 *
511 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
512 * error.
513 *
514 * If the used [http.Client] completes with an error when making a REST call,
515 * this method will complete with the same error.
516 */
517 async.Future<Policy> setIamPolicy(Policy request, core.String project, core.St ring resource) {
518 var _url = null;
519 var _queryParams = new core.Map();
520 var _uploadMedia = null;
521 var _uploadOptions = null;
522 var _downloadOptions = commons.DownloadOptions.Metadata;
523 var _body = null;
524
525 if (request != null) {
526 _body = convert.JSON.encode((request).toJson());
527 }
528 if (project == null) {
529 throw new core.ArgumentError("Parameter project is required.");
530 }
531 if (resource == null) {
532 throw new core.ArgumentError("Parameter resource is required.");
533 }
534
535 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/setIamPolicy';
536
537 var _response = _requester.request(_url,
538 "POST",
539 body: _body,
540 queryParams: _queryParams,
541 uploadOptions: _uploadOptions,
542 uploadMedia: _uploadMedia,
543 downloadOptions: _downloadOptions);
544 return _response.then((data) => new Policy.fromJson(data));
545 }
546
547 /**
433 * Stops an ongoing operation. This does not roll back any work that has 548 * Stops an ongoing operation. This does not roll back any work that has
434 * already been completed, but prevents any new work from being started. 549 * already been completed, but prevents any new work from being started.
435 * 550 *
436 * [request] - The metadata request object. 551 * [request] - The metadata request object.
437 * 552 *
438 * Request parameters: 553 * Request parameters:
439 * 554 *
440 * [project] - The project ID for this request. 555 * [project] - The project ID for this request.
441 * Value must have pattern 556 * Value must have pattern
442 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 557 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 "POST", 591 "POST",
477 body: _body, 592 body: _body,
478 queryParams: _queryParams, 593 queryParams: _queryParams,
479 uploadOptions: _uploadOptions, 594 uploadOptions: _uploadOptions,
480 uploadMedia: _uploadMedia, 595 uploadMedia: _uploadMedia,
481 downloadOptions: _downloadOptions); 596 downloadOptions: _downloadOptions);
482 return _response.then((data) => new Operation.fromJson(data)); 597 return _response.then((data) => new Operation.fromJson(data));
483 } 598 }
484 599
485 /** 600 /**
601 * Returns permissions that a caller has on the specified resource.
602 *
603 * [request] - The metadata request object.
604 *
605 * Request parameters:
606 *
607 * [project] - Project ID for this request.
608 * Value must have pattern
609 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))".
610 *
611 * [resource] - Name of the resource for this request.
612 * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?".
613 *
614 * Completes with a [TestPermissionsResponse].
615 *
616 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
617 * error.
618 *
619 * If the used [http.Client] completes with an error when making a REST call,
620 * this method will complete with the same error.
621 */
622 async.Future<TestPermissionsResponse> testIamPermissions(TestPermissionsReques t request, core.String project, core.String resource) {
623 var _url = null;
624 var _queryParams = new core.Map();
625 var _uploadMedia = null;
626 var _uploadOptions = null;
627 var _downloadOptions = commons.DownloadOptions.Metadata;
628 var _body = null;
629
630 if (request != null) {
631 _body = convert.JSON.encode((request).toJson());
632 }
633 if (project == null) {
634 throw new core.ArgumentError("Parameter project is required.");
635 }
636 if (resource == null) {
637 throw new core.ArgumentError("Parameter resource is required.");
638 }
639
640 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/testIamPermissions';
641
642 var _response = _requester.request(_url,
643 "POST",
644 body: _body,
645 queryParams: _queryParams,
646 uploadOptions: _uploadOptions,
647 uploadMedia: _uploadMedia,
648 downloadOptions: _downloadOptions);
649 return _response.then((data) => new TestPermissionsResponse.fromJson(data));
650 }
651
652 /**
486 * Updates a deployment and all of the resources described by the deployment 653 * Updates a deployment and all of the resources described by the deployment
487 * manifest. 654 * manifest.
488 * 655 *
489 * [request] - The metadata request object. 656 * [request] - The metadata request object.
490 * 657 *
491 * Request parameters: 658 * Request parameters:
492 * 659 *
493 * [project] - The project ID for this request. 660 * [project] - The project ID for this request.
494 * Value must have pattern 661 * Value must have pattern
495 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". 662 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{ 1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 830 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
664 * us-central1-f). Multiple expressions are treated as AND expressions, 831 * us-central1-f). Multiple expressions are treated as AND expressions,
665 * meaning that resources must match all expressions to pass the filters. 832 * meaning that resources must match all expressions to pass the filters.
666 * 833 *
667 * [maxResults] - The maximum number of results per page that should be 834 * [maxResults] - The maximum number of results per page that should be
668 * returned. If the number of available results is larger than maxResults, 835 * returned. If the number of available results is larger than maxResults,
669 * Compute Engine returns a nextPageToken that can be used to get the next 836 * Compute Engine returns a nextPageToken that can be used to get the next
670 * page of results in subsequent list requests. 837 * page of results in subsequent list requests.
671 * Value must be between "0" and "500". 838 * Value must be between "0" and "500".
672 * 839 *
840 * [orderBy] - Sorts list results by a certain order. By default, results are
841 * returned in alphanumerical order based on the resource name.
842 *
843 * You can also sort results in descending order based on the creation
844 * timestamp using orderBy="creationTimestamp desc". This sorts results based
845 * on the creationTimestamp field in reverse chronological order (newest
846 * result first). Use this to sort resources like operations so that the
847 * newest operation is returned first.
848 *
849 * Currently, only sorting by name or creationTimestamp desc is supported.
850 *
673 * [pageToken] - Specifies a page token to use. Set pageToken to the 851 * [pageToken] - Specifies a page token to use. Set pageToken to the
674 * nextPageToken returned by a previous list request to get the next page of 852 * nextPageToken returned by a previous list request to get the next page of
675 * results. 853 * results.
676 * 854 *
677 * Completes with a [ManifestsListResponse]. 855 * Completes with a [ManifestsListResponse].
678 * 856 *
679 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 857 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
680 * error. 858 * error.
681 * 859 *
682 * If the used [http.Client] completes with an error when making a REST call, 860 * If the used [http.Client] completes with an error when making a REST call,
683 * this method will complete with the same error. 861 * this method will complete with the same error.
684 */ 862 */
685 async.Future<ManifestsListResponse> list(core.String project, core.String depl oyment, {core.String filter, core.int maxResults, core.String pageToken}) { 863 async.Future<ManifestsListResponse> list(core.String project, core.String depl oyment, {core.String filter, core.int maxResults, core.String orderBy, core.Stri ng pageToken}) {
686 var _url = null; 864 var _url = null;
687 var _queryParams = new core.Map(); 865 var _queryParams = new core.Map();
688 var _uploadMedia = null; 866 var _uploadMedia = null;
689 var _uploadOptions = null; 867 var _uploadOptions = null;
690 var _downloadOptions = commons.DownloadOptions.Metadata; 868 var _downloadOptions = commons.DownloadOptions.Metadata;
691 var _body = null; 869 var _body = null;
692 870
693 if (project == null) { 871 if (project == null) {
694 throw new core.ArgumentError("Parameter project is required."); 872 throw new core.ArgumentError("Parameter project is required.");
695 } 873 }
696 if (deployment == null) { 874 if (deployment == null) {
697 throw new core.ArgumentError("Parameter deployment is required."); 875 throw new core.ArgumentError("Parameter deployment is required.");
698 } 876 }
699 if (filter != null) { 877 if (filter != null) {
700 _queryParams["filter"] = [filter]; 878 _queryParams["filter"] = [filter];
701 } 879 }
702 if (maxResults != null) { 880 if (maxResults != null) {
703 _queryParams["maxResults"] = ["${maxResults}"]; 881 _queryParams["maxResults"] = ["${maxResults}"];
704 } 882 }
883 if (orderBy != null) {
884 _queryParams["orderBy"] = [orderBy];
885 }
705 if (pageToken != null) { 886 if (pageToken != null) {
706 _queryParams["pageToken"] = [pageToken]; 887 _queryParams["pageToken"] = [pageToken];
707 } 888 }
708 889
709 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/manifests'; 890 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/manifests';
710 891
711 var _response = _requester.request(_url, 892 var _response = _requester.request(_url,
712 "GET", 893 "GET",
713 body: _body, 894 body: _body,
714 queryParams: _queryParams, 895 queryParams: _queryParams,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 987 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
807 * us-central1-f). Multiple expressions are treated as AND expressions, 988 * us-central1-f). Multiple expressions are treated as AND expressions,
808 * meaning that resources must match all expressions to pass the filters. 989 * meaning that resources must match all expressions to pass the filters.
809 * 990 *
810 * [maxResults] - The maximum number of results per page that should be 991 * [maxResults] - The maximum number of results per page that should be
811 * returned. If the number of available results is larger than maxResults, 992 * returned. If the number of available results is larger than maxResults,
812 * Compute Engine returns a nextPageToken that can be used to get the next 993 * Compute Engine returns a nextPageToken that can be used to get the next
813 * page of results in subsequent list requests. 994 * page of results in subsequent list requests.
814 * Value must be between "0" and "500". 995 * Value must be between "0" and "500".
815 * 996 *
997 * [orderBy] - Sorts list results by a certain order. By default, results are
998 * returned in alphanumerical order based on the resource name.
999 *
1000 * You can also sort results in descending order based on the creation
1001 * timestamp using orderBy="creationTimestamp desc". This sorts results based
1002 * on the creationTimestamp field in reverse chronological order (newest
1003 * result first). Use this to sort resources like operations so that the
1004 * newest operation is returned first.
1005 *
1006 * Currently, only sorting by name or creationTimestamp desc is supported.
1007 *
816 * [pageToken] - Specifies a page token to use. Set pageToken to the 1008 * [pageToken] - Specifies a page token to use. Set pageToken to the
817 * nextPageToken returned by a previous list request to get the next page of 1009 * nextPageToken returned by a previous list request to get the next page of
818 * results. 1010 * results.
819 * 1011 *
820 * Completes with a [OperationsListResponse]. 1012 * Completes with a [OperationsListResponse].
821 * 1013 *
822 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1014 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
823 * error. 1015 * error.
824 * 1016 *
825 * If the used [http.Client] completes with an error when making a REST call, 1017 * If the used [http.Client] completes with an error when making a REST call,
826 * this method will complete with the same error. 1018 * this method will complete with the same error.
827 */ 1019 */
828 async.Future<OperationsListResponse> list(core.String project, {core.String fi lter, core.int maxResults, core.String pageToken}) { 1020 async.Future<OperationsListResponse> list(core.String project, {core.String fi lter, core.int maxResults, core.String orderBy, core.String pageToken}) {
829 var _url = null; 1021 var _url = null;
830 var _queryParams = new core.Map(); 1022 var _queryParams = new core.Map();
831 var _uploadMedia = null; 1023 var _uploadMedia = null;
832 var _uploadOptions = null; 1024 var _uploadOptions = null;
833 var _downloadOptions = commons.DownloadOptions.Metadata; 1025 var _downloadOptions = commons.DownloadOptions.Metadata;
834 var _body = null; 1026 var _body = null;
835 1027
836 if (project == null) { 1028 if (project == null) {
837 throw new core.ArgumentError("Parameter project is required."); 1029 throw new core.ArgumentError("Parameter project is required.");
838 } 1030 }
839 if (filter != null) { 1031 if (filter != null) {
840 _queryParams["filter"] = [filter]; 1032 _queryParams["filter"] = [filter];
841 } 1033 }
842 if (maxResults != null) { 1034 if (maxResults != null) {
843 _queryParams["maxResults"] = ["${maxResults}"]; 1035 _queryParams["maxResults"] = ["${maxResults}"];
844 } 1036 }
1037 if (orderBy != null) {
1038 _queryParams["orderBy"] = [orderBy];
1039 }
845 if (pageToken != null) { 1040 if (pageToken != null) {
846 _queryParams["pageToken"] = [pageToken]; 1041 _queryParams["pageToken"] = [pageToken];
847 } 1042 }
848 1043
849 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations'; 1044 _url = commons.Escaper.ecapeVariable('$project') + '/global/operations';
850 1045
851 var _response = _requester.request(_url, 1046 var _response = _requester.request(_url,
852 "GET", 1047 "GET",
853 body: _body, 1048 body: _body,
854 queryParams: _queryParams, 1049 queryParams: _queryParams,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 1150 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
956 * us-central1-f). Multiple expressions are treated as AND expressions, 1151 * us-central1-f). Multiple expressions are treated as AND expressions,
957 * meaning that resources must match all expressions to pass the filters. 1152 * meaning that resources must match all expressions to pass the filters.
958 * 1153 *
959 * [maxResults] - The maximum number of results per page that should be 1154 * [maxResults] - The maximum number of results per page that should be
960 * returned. If the number of available results is larger than maxResults, 1155 * returned. If the number of available results is larger than maxResults,
961 * Compute Engine returns a nextPageToken that can be used to get the next 1156 * Compute Engine returns a nextPageToken that can be used to get the next
962 * page of results in subsequent list requests. 1157 * page of results in subsequent list requests.
963 * Value must be between "0" and "500". 1158 * Value must be between "0" and "500".
964 * 1159 *
1160 * [orderBy] - Sorts list results by a certain order. By default, results are
1161 * returned in alphanumerical order based on the resource name.
1162 *
1163 * You can also sort results in descending order based on the creation
1164 * timestamp using orderBy="creationTimestamp desc". This sorts results based
1165 * on the creationTimestamp field in reverse chronological order (newest
1166 * result first). Use this to sort resources like operations so that the
1167 * newest operation is returned first.
1168 *
1169 * Currently, only sorting by name or creationTimestamp desc is supported.
1170 *
965 * [pageToken] - Specifies a page token to use. Set pageToken to the 1171 * [pageToken] - Specifies a page token to use. Set pageToken to the
966 * nextPageToken returned by a previous list request to get the next page of 1172 * nextPageToken returned by a previous list request to get the next page of
967 * results. 1173 * results.
968 * 1174 *
969 * Completes with a [ResourcesListResponse]. 1175 * Completes with a [ResourcesListResponse].
970 * 1176 *
971 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1177 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
972 * error. 1178 * error.
973 * 1179 *
974 * If the used [http.Client] completes with an error when making a REST call, 1180 * If the used [http.Client] completes with an error when making a REST call,
975 * this method will complete with the same error. 1181 * this method will complete with the same error.
976 */ 1182 */
977 async.Future<ResourcesListResponse> list(core.String project, core.String depl oyment, {core.String filter, core.int maxResults, core.String pageToken}) { 1183 async.Future<ResourcesListResponse> list(core.String project, core.String depl oyment, {core.String filter, core.int maxResults, core.String orderBy, core.Stri ng pageToken}) {
978 var _url = null; 1184 var _url = null;
979 var _queryParams = new core.Map(); 1185 var _queryParams = new core.Map();
980 var _uploadMedia = null; 1186 var _uploadMedia = null;
981 var _uploadOptions = null; 1187 var _uploadOptions = null;
982 var _downloadOptions = commons.DownloadOptions.Metadata; 1188 var _downloadOptions = commons.DownloadOptions.Metadata;
983 var _body = null; 1189 var _body = null;
984 1190
985 if (project == null) { 1191 if (project == null) {
986 throw new core.ArgumentError("Parameter project is required."); 1192 throw new core.ArgumentError("Parameter project is required.");
987 } 1193 }
988 if (deployment == null) { 1194 if (deployment == null) {
989 throw new core.ArgumentError("Parameter deployment is required."); 1195 throw new core.ArgumentError("Parameter deployment is required.");
990 } 1196 }
991 if (filter != null) { 1197 if (filter != null) {
992 _queryParams["filter"] = [filter]; 1198 _queryParams["filter"] = [filter];
993 } 1199 }
994 if (maxResults != null) { 1200 if (maxResults != null) {
995 _queryParams["maxResults"] = ["${maxResults}"]; 1201 _queryParams["maxResults"] = ["${maxResults}"];
996 } 1202 }
1203 if (orderBy != null) {
1204 _queryParams["orderBy"] = [orderBy];
1205 }
997 if (pageToken != null) { 1206 if (pageToken != null) {
998 _queryParams["pageToken"] = [pageToken]; 1207 _queryParams["pageToken"] = [pageToken];
999 } 1208 }
1000 1209
1001 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/resources'; 1210 _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment') + '/resources';
1002 1211
1003 var _response = _requester.request(_url, 1212 var _response = _requester.request(_url,
1004 "GET", 1213 "GET",
1005 body: _body, 1214 body: _body,
1006 queryParams: _queryParams, 1215 queryParams: _queryParams,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq 1261 * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq
1053 * us-central1-f). Multiple expressions are treated as AND expressions, 1262 * us-central1-f). Multiple expressions are treated as AND expressions,
1054 * meaning that resources must match all expressions to pass the filters. 1263 * meaning that resources must match all expressions to pass the filters.
1055 * 1264 *
1056 * [maxResults] - The maximum number of results per page that should be 1265 * [maxResults] - The maximum number of results per page that should be
1057 * returned. If the number of available results is larger than maxResults, 1266 * returned. If the number of available results is larger than maxResults,
1058 * Compute Engine returns a nextPageToken that can be used to get the next 1267 * Compute Engine returns a nextPageToken that can be used to get the next
1059 * page of results in subsequent list requests. 1268 * page of results in subsequent list requests.
1060 * Value must be between "0" and "500". 1269 * Value must be between "0" and "500".
1061 * 1270 *
1271 * [orderBy] - Sorts list results by a certain order. By default, results are
1272 * returned in alphanumerical order based on the resource name.
1273 *
1274 * You can also sort results in descending order based on the creation
1275 * timestamp using orderBy="creationTimestamp desc". This sorts results based
1276 * on the creationTimestamp field in reverse chronological order (newest
1277 * result first). Use this to sort resources like operations so that the
1278 * newest operation is returned first.
1279 *
1280 * Currently, only sorting by name or creationTimestamp desc is supported.
1281 *
1062 * [pageToken] - Specifies a page token to use. Set pageToken to the 1282 * [pageToken] - Specifies a page token to use. Set pageToken to the
1063 * nextPageToken returned by a previous list request to get the next page of 1283 * nextPageToken returned by a previous list request to get the next page of
1064 * results. 1284 * results.
1065 * 1285 *
1066 * Completes with a [TypesListResponse]. 1286 * Completes with a [TypesListResponse].
1067 * 1287 *
1068 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1288 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1069 * error. 1289 * error.
1070 * 1290 *
1071 * If the used [http.Client] completes with an error when making a REST call, 1291 * If the used [http.Client] completes with an error when making a REST call,
1072 * this method will complete with the same error. 1292 * this method will complete with the same error.
1073 */ 1293 */
1074 async.Future<TypesListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { 1294 async.Future<TypesListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) {
1075 var _url = null; 1295 var _url = null;
1076 var _queryParams = new core.Map(); 1296 var _queryParams = new core.Map();
1077 var _uploadMedia = null; 1297 var _uploadMedia = null;
1078 var _uploadOptions = null; 1298 var _uploadOptions = null;
1079 var _downloadOptions = commons.DownloadOptions.Metadata; 1299 var _downloadOptions = commons.DownloadOptions.Metadata;
1080 var _body = null; 1300 var _body = null;
1081 1301
1082 if (project == null) { 1302 if (project == null) {
1083 throw new core.ArgumentError("Parameter project is required."); 1303 throw new core.ArgumentError("Parameter project is required.");
1084 } 1304 }
1085 if (filter != null) { 1305 if (filter != null) {
1086 _queryParams["filter"] = [filter]; 1306 _queryParams["filter"] = [filter];
1087 } 1307 }
1088 if (maxResults != null) { 1308 if (maxResults != null) {
1089 _queryParams["maxResults"] = ["${maxResults}"]; 1309 _queryParams["maxResults"] = ["${maxResults}"];
1090 } 1310 }
1311 if (orderBy != null) {
1312 _queryParams["orderBy"] = [orderBy];
1313 }
1091 if (pageToken != null) { 1314 if (pageToken != null) {
1092 _queryParams["pageToken"] = [pageToken]; 1315 _queryParams["pageToken"] = [pageToken];
1093 } 1316 }
1094 1317
1095 _url = commons.Escaper.ecapeVariable('$project') + '/global/types'; 1318 _url = commons.Escaper.ecapeVariable('$project') + '/global/types';
1096 1319
1097 var _response = _requester.request(_url, 1320 var _response = _requester.request(_url,
1098 "GET", 1321 "GET",
1099 body: _body, 1322 body: _body,
1100 queryParams: _queryParams, 1323 queryParams: _queryParams,
1101 uploadOptions: _uploadOptions, 1324 uploadOptions: _uploadOptions,
1102 uploadMedia: _uploadMedia, 1325 uploadMedia: _uploadMedia,
1103 downloadOptions: _downloadOptions); 1326 downloadOptions: _downloadOptions);
1104 return _response.then((data) => new TypesListResponse.fromJson(data)); 1327 return _response.then((data) => new TypesListResponse.fromJson(data));
1105 } 1328 }
1106 1329
1107 } 1330 }
1108 1331
1109 1332
1110 1333
1334 /**
1335 * Enables "data access" audit logging for a service and specifies a list of
1336 * members that are log-exempted.
1337 */
1338 class AuditConfig {
1339 /**
1340 * Specifies the identities that are exempted from "data access" audit logging
1341 * for the `service` specified above. Follows the same format of
1342 * Binding.members.
1343 */
1344 core.List<core.String> exemptedMembers;
1345 /**
1346 * Specifies a service that will be enabled for "data access" audit logging.
1347 * For example, `resourcemanager`, `storage`, `compute`. `allServices` is a
1348 * special value that covers all services.
1349 */
1350 core.String service;
1351
1352 AuditConfig();
1353
1354 AuditConfig.fromJson(core.Map _json) {
1355 if (_json.containsKey("exemptedMembers")) {
1356 exemptedMembers = _json["exemptedMembers"];
1357 }
1358 if (_json.containsKey("service")) {
1359 service = _json["service"];
1360 }
1361 }
1362
1363 core.Map toJson() {
1364 var _json = new core.Map();
1365 if (exemptedMembers != null) {
1366 _json["exemptedMembers"] = exemptedMembers;
1367 }
1368 if (service != null) {
1369 _json["service"] = service;
1370 }
1371 return _json;
1372 }
1373 }
1374
1375 /** Associates `members` with a `role`. */
1376 class Binding {
1377 /**
1378 * Specifies the identities requesting access for a Cloud Platform resource.
1379 * `members` can have the following values:
1380 *
1381 * * `allUsers`: A special identifier that represents anyone who is on the
1382 * internet; with or without a Google account.
1383 *
1384 * * `allAuthenticatedUsers`: A special identifier that represents anyone who
1385 * is authenticated with a Google account or a service account.
1386 *
1387 * * `user:{emailid}`: An email address that represents a specific Google
1388 * account. For example, `alice@gmail.com` or `joe@example.com`.
1389 *
1390 *
1391 *
1392 * * `serviceAccount:{emailid}`: An email address that represents a service
1393 * account. For example, `my-other-app@appspot.gserviceaccount.com`.
1394 *
1395 * * `group:{emailid}`: An email address that represents a Google group. For
1396 * example, `admins@example.com`.
1397 *
1398 * * `domain:{domain}`: A Google Apps domain name that represents all the
1399 * users of that domain. For example, `google.com` or `example.com`.
1400 */
1401 core.List<core.String> members;
1402 /**
1403 * Role that is assigned to `members`. For example, `roles/viewer`,
1404 * `roles/editor`, or `roles/owner`.
1405 */
1406 core.String role;
1407
1408 Binding();
1409
1410 Binding.fromJson(core.Map _json) {
1411 if (_json.containsKey("members")) {
1412 members = _json["members"];
1413 }
1414 if (_json.containsKey("role")) {
1415 role = _json["role"];
1416 }
1417 }
1418
1419 core.Map toJson() {
1420 var _json = new core.Map();
1421 if (members != null) {
1422 _json["members"] = members;
1423 }
1424 if (role != null) {
1425 _json["role"] = role;
1426 }
1427 return _json;
1428 }
1429 }
1430
1431 /** A condition to be met. */
1432 class Condition {
1433 /** Trusted attributes supplied by the IAM system. */
1434 core.String iam;
1435 /** An operator to apply the subject with. */
1436 core.String op;
1437 /** Trusted attributes discharged by the service. */
1438 core.String svc;
1439 /**
1440 * Trusted attributes supplied by any service that owns resources and uses the
1441 * IAM system for access control.
1442 */
1443 core.String sys;
1444 /** DEPRECATED. Use 'values' instead. */
1445 core.String value;
1446 /** The objects of the condition. This is mutually exclusive with 'value'. */
1447 core.List<core.String> values;
1448
1449 Condition();
1450
1451 Condition.fromJson(core.Map _json) {
1452 if (_json.containsKey("iam")) {
1453 iam = _json["iam"];
1454 }
1455 if (_json.containsKey("op")) {
1456 op = _json["op"];
1457 }
1458 if (_json.containsKey("svc")) {
1459 svc = _json["svc"];
1460 }
1461 if (_json.containsKey("sys")) {
1462 sys = _json["sys"];
1463 }
1464 if (_json.containsKey("value")) {
1465 value = _json["value"];
1466 }
1467 if (_json.containsKey("values")) {
1468 values = _json["values"];
1469 }
1470 }
1471
1472 core.Map toJson() {
1473 var _json = new core.Map();
1474 if (iam != null) {
1475 _json["iam"] = iam;
1476 }
1477 if (op != null) {
1478 _json["op"] = op;
1479 }
1480 if (svc != null) {
1481 _json["svc"] = svc;
1482 }
1483 if (sys != null) {
1484 _json["sys"] = sys;
1485 }
1486 if (value != null) {
1487 _json["value"] = value;
1488 }
1489 if (values != null) {
1490 _json["values"] = values;
1491 }
1492 return _json;
1493 }
1494 }
1495
1111 class ConfigFile { 1496 class ConfigFile {
1112 /** The contents of the file. */ 1497 /** The contents of the file. */
1113 core.String content; 1498 core.String content;
1114 1499
1115 ConfigFile(); 1500 ConfigFile();
1116 1501
1117 ConfigFile.fromJson(core.Map _json) { 1502 ConfigFile.fromJson(core.Map _json) {
1118 if (_json.containsKey("content")) { 1503 if (_json.containsKey("content")) {
1119 content = _json["content"]; 1504 content = _json["content"];
1120 } 1505 }
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 if (content != null) { 1890 if (content != null) {
1506 _json["content"] = content; 1891 _json["content"] = content;
1507 } 1892 }
1508 if (name != null) { 1893 if (name != null) {
1509 _json["name"] = name; 1894 _json["name"] = name;
1510 } 1895 }
1511 return _json; 1896 return _json;
1512 } 1897 }
1513 } 1898 }
1514 1899
1900 /** Specifies what kind of log the caller must write */
1901 class LogConfig {
1902 /** Counter options. */
1903 LogConfigCounterOptions counter;
1904
1905 LogConfig();
1906
1907 LogConfig.fromJson(core.Map _json) {
1908 if (_json.containsKey("counter")) {
1909 counter = new LogConfigCounterOptions.fromJson(_json["counter"]);
1910 }
1911 }
1912
1913 core.Map toJson() {
1914 var _json = new core.Map();
1915 if (counter != null) {
1916 _json["counter"] = (counter).toJson();
1917 }
1918 return _json;
1919 }
1920 }
1921
1922 /** Options for counters */
1923 class LogConfigCounterOptions {
1924 /** The field value to attribute. */
1925 core.String field;
1926 /** The metric to update. */
1927 core.String metric;
1928
1929 LogConfigCounterOptions();
1930
1931 LogConfigCounterOptions.fromJson(core.Map _json) {
1932 if (_json.containsKey("field")) {
1933 field = _json["field"];
1934 }
1935 if (_json.containsKey("metric")) {
1936 metric = _json["metric"];
1937 }
1938 }
1939
1940 core.Map toJson() {
1941 var _json = new core.Map();
1942 if (field != null) {
1943 _json["field"] = field;
1944 }
1945 if (metric != null) {
1946 _json["metric"] = metric;
1947 }
1948 return _json;
1949 }
1950 }
1951
1515 class Manifest { 1952 class Manifest {
1516 /** [Output Only] The YAML configuration for this manifest. */ 1953 /** [Output Only] The YAML configuration for this manifest. */
1517 ConfigFile config; 1954 ConfigFile config;
1518 /** 1955 /**
1519 * [Output Only] The fully-expanded configuration file, including any 1956 * [Output Only] The fully-expanded configuration file, including any
1520 * templates and references. 1957 * templates and references.
1521 */ 1958 */
1522 core.String expandedConfig; 1959 core.String expandedConfig;
1523 /** 1960 /**
1524 * [Output Only] Unique identifier for the resource; defined by the server. 1961 * [Output Only] Unique identifier for the resource; defined by the server.
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 * [Output Only] An optional textual description of the current status of the 2299 * [Output Only] An optional textual description of the current status of the
1863 * operation. 2300 * operation.
1864 */ 2301 */
1865 core.String statusMessage; 2302 core.String statusMessage;
1866 /** 2303 /**
1867 * [Output Only] The unique target ID, which identifies a specific incarnation 2304 * [Output Only] The unique target ID, which identifies a specific incarnation
1868 * of the target resource. 2305 * of the target resource.
1869 */ 2306 */
1870 core.String targetId; 2307 core.String targetId;
1871 /** 2308 /**
1872 * [Output Only] The URL of the resource that the operation modifies. If 2309 * [Output Only] The URL of the resource that the operation modifies. For
1873 * creating a persistent disk snapshot, this points to the persistent disk 2310 * operations related to creating a snapshot, this points to the persistent
1874 * that the snapshot was created from. 2311 * disk that the snapshot was created from.
1875 */ 2312 */
1876 core.String targetLink; 2313 core.String targetLink;
1877 /** 2314 /**
1878 * [Output Only] User who requested the operation, for example: 2315 * [Output Only] User who requested the operation, for example:
1879 * user@example.com. 2316 * user@example.com.
1880 */ 2317 */
1881 core.String user; 2318 core.String user;
1882 /** 2319 /**
1883 * [Output Only] If warning messages are generated during processing of the 2320 * [Output Only] If warning messages are generated during processing of the
1884 * operation, this field will be populated. 2321 * operation, this field will be populated.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 if (nextPageToken != null) { 2502 if (nextPageToken != null) {
2066 _json["nextPageToken"] = nextPageToken; 2503 _json["nextPageToken"] = nextPageToken;
2067 } 2504 }
2068 if (operations != null) { 2505 if (operations != null) {
2069 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 2506 _json["operations"] = operations.map((value) => (value).toJson()).toList() ;
2070 } 2507 }
2071 return _json; 2508 return _json;
2072 } 2509 }
2073 } 2510 }
2074 2511
2512 /**
2513 * Defines an Identity and Access Management (IAM) policy. It is used to specify
2514 * access control policies for Cloud Platform resources.
2515 *
2516 *
2517 *
2518 * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
2519 * `members` to a `role`, where the members can be user accounts, Google groups,
2520 * Google domains, and service accounts. A `role` is a named list of permissions
2521 * defined by IAM.
2522 *
2523 * **Example**
2524 *
2525 * { "bindings": [ { "role": "roles/owner", "members": [
2526 * "user:mike@example.com", "group:admins@example.com", "domain:google.com",
2527 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role":
2528 * "roles/viewer", "members": ["user:sean@example.com"] } ] }
2529 *
2530 * For a description of IAM and its features, see the [IAM developer's
2531 * guide](https://cloud.google.com/iam).
2532 */
2533 class Policy {
2534 /**
2535 * Specifies audit logging configs for "data access". "data access": generally
2536 * refers to data reads/writes and admin reads. "admin activity": generally
2537 * refers to admin writes.
2538 *
2539 * Note: `AuditConfig` doesn't apply to "admin activity", which always enables
2540 * audit logging.
2541 */
2542 core.List<AuditConfig> auditConfigs;
2543 /**
2544 * Associates a list of `members` to a `role`. Multiple `bindings` must not be
2545 * specified for the same `role`. `bindings` with no members will result in an
2546 * error.
2547 */
2548 core.List<Binding> bindings;
2549 /**
2550 * `etag` is used for optimistic concurrency control as a way to help prevent
2551 * simultaneous updates of a policy from overwriting each other. It is
2552 * strongly suggested that systems make use of the `etag` in the
2553 * read-modify-write cycle to perform policy updates in order to avoid race
2554 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
2555 * systems are expected to put that etag in the request to `setIamPolicy` to
2556 * ensure that their change will be applied to the same version of the policy.
2557 *
2558 * If no `etag` is provided in the call to `setIamPolicy`, then the existing
2559 * policy is overwritten blindly.
2560 */
2561 core.String etag;
2562 core.List<core.int> get etagAsBytes {
2563 return convert.BASE64.decode(etag);
2564 }
2565
2566 void set etagAsBytes(core.List<core.int> _bytes) {
2567 etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
2568 }
2569 core.bool iamOwned;
2570 /**
2571 * If more than one rule is specified, the rules are applied in the following
2572 * manner: - All matching LOG rules are always applied. - If any
2573 * DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be
2574 * applied if one or more matching rule requires logging. - Otherwise, if any
2575 * ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be
2576 * applied if one or more matching rule requires logging. - Otherwise, if no
2577 * rule applies, permission is denied.
2578 */
2579 core.List<Rule> rules;
2580 /** Version of the `Policy`. The default version is 0. */
2581 core.int version;
2582
2583 Policy();
2584
2585 Policy.fromJson(core.Map _json) {
2586 if (_json.containsKey("auditConfigs")) {
2587 auditConfigs = _json["auditConfigs"].map((value) => new AuditConfig.fromJs on(value)).toList();
2588 }
2589 if (_json.containsKey("bindings")) {
2590 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList();
2591 }
2592 if (_json.containsKey("etag")) {
2593 etag = _json["etag"];
2594 }
2595 if (_json.containsKey("iamOwned")) {
2596 iamOwned = _json["iamOwned"];
2597 }
2598 if (_json.containsKey("rules")) {
2599 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList();
2600 }
2601 if (_json.containsKey("version")) {
2602 version = _json["version"];
2603 }
2604 }
2605
2606 core.Map toJson() {
2607 var _json = new core.Map();
2608 if (auditConfigs != null) {
2609 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st();
2610 }
2611 if (bindings != null) {
2612 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
2613 }
2614 if (etag != null) {
2615 _json["etag"] = etag;
2616 }
2617 if (iamOwned != null) {
2618 _json["iamOwned"] = iamOwned;
2619 }
2620 if (rules != null) {
2621 _json["rules"] = rules.map((value) => (value).toJson()).toList();
2622 }
2623 if (version != null) {
2624 _json["version"] = version;
2625 }
2626 return _json;
2627 }
2628 }
2629
2075 class ResourceWarningsData { 2630 class ResourceWarningsData {
2076 /** 2631 /**
2077 * [Output Only] A key that provides more detail on the warning being 2632 * [Output Only] A key that provides more detail on the warning being
2078 * returned. For example, for warnings where there are no results in a list 2633 * returned. For example, for warnings where there are no results in a list
2079 * request for a particular zone, this key might be scope and the key value 2634 * request for a particular zone, this key might be scope and the key value
2080 * might be the zone name. Other examples might be a key indicating a 2635 * might be the zone name. Other examples might be a key indicating a
2081 * deprecated resource and a suggested replacement, or a warning about invalid 2636 * deprecated resource and a suggested replacement, or a warning about invalid
2082 * network settings (for example, if an instance attempts to perform IP 2637 * network settings (for example, if an instance attempts to perform IP
2083 * forwarding but is not enabled for IP forwarding). 2638 * forwarding but is not enabled for IP forwarding).
2084 */ 2639 */
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2147 _json["data"] = data.map((value) => (value).toJson()).toList(); 2702 _json["data"] = data.map((value) => (value).toJson()).toList();
2148 } 2703 }
2149 if (message != null) { 2704 if (message != null) {
2150 _json["message"] = message; 2705 _json["message"] = message;
2151 } 2706 }
2152 return _json; 2707 return _json;
2153 } 2708 }
2154 } 2709 }
2155 2710
2156 class Resource { 2711 class Resource {
2712 /** The Access Control Policy set on this resource. */
2713 ResourceAccessControl accessControl;
2157 /** 2714 /**
2158 * [Output Only] The evaluated properties of the resource with references 2715 * [Output Only] The evaluated properties of the resource with references
2159 * expanded. Returned as serialized YAML. 2716 * expanded. Returned as serialized YAML.
2160 */ 2717 */
2161 core.String finalProperties; 2718 core.String finalProperties;
2162 /** 2719 /**
2163 * [Output Only] Unique identifier for the resource; defined by the server. 2720 * [Output Only] Unique identifier for the resource; defined by the server.
2164 */ 2721 */
2165 core.String id; 2722 core.String id;
2166 /** 2723 /**
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2201 core.String url; 2758 core.String url;
2202 /** 2759 /**
2203 * [Output Only] If warning messages are generated during processing of this 2760 * [Output Only] If warning messages are generated during processing of this
2204 * resource, this field will be populated. 2761 * resource, this field will be populated.
2205 */ 2762 */
2206 core.List<ResourceWarnings> warnings; 2763 core.List<ResourceWarnings> warnings;
2207 2764
2208 Resource(); 2765 Resource();
2209 2766
2210 Resource.fromJson(core.Map _json) { 2767 Resource.fromJson(core.Map _json) {
2768 if (_json.containsKey("accessControl")) {
2769 accessControl = new ResourceAccessControl.fromJson(_json["accessControl"]) ;
2770 }
2211 if (_json.containsKey("finalProperties")) { 2771 if (_json.containsKey("finalProperties")) {
2212 finalProperties = _json["finalProperties"]; 2772 finalProperties = _json["finalProperties"];
2213 } 2773 }
2214 if (_json.containsKey("id")) { 2774 if (_json.containsKey("id")) {
2215 id = _json["id"]; 2775 id = _json["id"];
2216 } 2776 }
2217 if (_json.containsKey("insertTime")) { 2777 if (_json.containsKey("insertTime")) {
2218 insertTime = _json["insertTime"]; 2778 insertTime = _json["insertTime"];
2219 } 2779 }
2220 if (_json.containsKey("manifest")) { 2780 if (_json.containsKey("manifest")) {
(...skipping 17 matching lines...) Expand all
2238 if (_json.containsKey("url")) { 2798 if (_json.containsKey("url")) {
2239 url = _json["url"]; 2799 url = _json["url"];
2240 } 2800 }
2241 if (_json.containsKey("warnings")) { 2801 if (_json.containsKey("warnings")) {
2242 warnings = _json["warnings"].map((value) => new ResourceWarnings.fromJson( value)).toList(); 2802 warnings = _json["warnings"].map((value) => new ResourceWarnings.fromJson( value)).toList();
2243 } 2803 }
2244 } 2804 }
2245 2805
2246 core.Map toJson() { 2806 core.Map toJson() {
2247 var _json = new core.Map(); 2807 var _json = new core.Map();
2808 if (accessControl != null) {
2809 _json["accessControl"] = (accessControl).toJson();
2810 }
2248 if (finalProperties != null) { 2811 if (finalProperties != null) {
2249 _json["finalProperties"] = finalProperties; 2812 _json["finalProperties"] = finalProperties;
2250 } 2813 }
2251 if (id != null) { 2814 if (id != null) {
2252 _json["id"] = id; 2815 _json["id"] = id;
2253 } 2816 }
2254 if (insertTime != null) { 2817 if (insertTime != null) {
2255 _json["insertTime"] = insertTime; 2818 _json["insertTime"] = insertTime;
2256 } 2819 }
2257 if (manifest != null) { 2820 if (manifest != null) {
(...skipping 17 matching lines...) Expand all
2275 if (url != null) { 2838 if (url != null) {
2276 _json["url"] = url; 2839 _json["url"] = url;
2277 } 2840 }
2278 if (warnings != null) { 2841 if (warnings != null) {
2279 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); 2842 _json["warnings"] = warnings.map((value) => (value).toJson()).toList();
2280 } 2843 }
2281 return _json; 2844 return _json;
2282 } 2845 }
2283 } 2846 }
2284 2847
2848 /** The access controls set on the resource. */
2849 class ResourceAccessControl {
2850 /** The GCP IAM Policy to set on the resource. */
2851 core.String gcpIamPolicy;
2852
2853 ResourceAccessControl();
2854
2855 ResourceAccessControl.fromJson(core.Map _json) {
2856 if (_json.containsKey("gcpIamPolicy")) {
2857 gcpIamPolicy = _json["gcpIamPolicy"];
2858 }
2859 }
2860
2861 core.Map toJson() {
2862 var _json = new core.Map();
2863 if (gcpIamPolicy != null) {
2864 _json["gcpIamPolicy"] = gcpIamPolicy;
2865 }
2866 return _json;
2867 }
2868 }
2869
2285 class ResourceUpdateErrorErrors { 2870 class ResourceUpdateErrorErrors {
2286 /** [Output Only] The error type identifier for this error. */ 2871 /** [Output Only] The error type identifier for this error. */
2287 core.String code; 2872 core.String code;
2288 /** 2873 /**
2289 * [Output Only] Indicates the field in the request that caused the error. 2874 * [Output Only] Indicates the field in the request that caused the error.
2290 * This property is optional. 2875 * This property is optional.
2291 */ 2876 */
2292 core.String location; 2877 core.String location;
2293 /** [Output Only] An optional, human-readable error message. */ 2878 /** [Output Only] An optional, human-readable error message. */
2294 core.String message; 2879 core.String message;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2426 } 3011 }
2427 if (message != null) { 3012 if (message != null) {
2428 _json["message"] = message; 3013 _json["message"] = message;
2429 } 3014 }
2430 return _json; 3015 return _json;
2431 } 3016 }
2432 } 3017 }
2433 3018
2434 class ResourceUpdate { 3019 class ResourceUpdate {
2435 /** 3020 /**
3021 * The Access Control Policy to set on this resource after updating the
3022 * resource itself.
3023 */
3024 ResourceAccessControl accessControl;
3025 /**
2436 * [Output Only] If errors are generated during update of the resource, this 3026 * [Output Only] If errors are generated during update of the resource, this
2437 * field will be populated. 3027 * field will be populated.
2438 */ 3028 */
2439 ResourceUpdateError error; 3029 ResourceUpdateError error;
2440 /** 3030 /**
2441 * [Output Only] The expanded properties of the resource with reference values 3031 * [Output Only] The expanded properties of the resource with reference values
2442 * expanded. Returned as serialized YAML. 3032 * expanded. Returned as serialized YAML.
2443 */ 3033 */
2444 core.String finalProperties; 3034 core.String finalProperties;
2445 /** [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. */ 3035 /** [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. */
(...skipping 12 matching lines...) Expand all
2458 core.String state; 3048 core.String state;
2459 /** 3049 /**
2460 * [Output Only] If warning messages are generated during processing of this 3050 * [Output Only] If warning messages are generated during processing of this
2461 * resource, this field will be populated. 3051 * resource, this field will be populated.
2462 */ 3052 */
2463 core.List<ResourceUpdateWarnings> warnings; 3053 core.List<ResourceUpdateWarnings> warnings;
2464 3054
2465 ResourceUpdate(); 3055 ResourceUpdate();
2466 3056
2467 ResourceUpdate.fromJson(core.Map _json) { 3057 ResourceUpdate.fromJson(core.Map _json) {
3058 if (_json.containsKey("accessControl")) {
3059 accessControl = new ResourceAccessControl.fromJson(_json["accessControl"]) ;
3060 }
2468 if (_json.containsKey("error")) { 3061 if (_json.containsKey("error")) {
2469 error = new ResourceUpdateError.fromJson(_json["error"]); 3062 error = new ResourceUpdateError.fromJson(_json["error"]);
2470 } 3063 }
2471 if (_json.containsKey("finalProperties")) { 3064 if (_json.containsKey("finalProperties")) {
2472 finalProperties = _json["finalProperties"]; 3065 finalProperties = _json["finalProperties"];
2473 } 3066 }
2474 if (_json.containsKey("intent")) { 3067 if (_json.containsKey("intent")) {
2475 intent = _json["intent"]; 3068 intent = _json["intent"];
2476 } 3069 }
2477 if (_json.containsKey("manifest")) { 3070 if (_json.containsKey("manifest")) {
2478 manifest = _json["manifest"]; 3071 manifest = _json["manifest"];
2479 } 3072 }
2480 if (_json.containsKey("properties")) { 3073 if (_json.containsKey("properties")) {
2481 properties = _json["properties"]; 3074 properties = _json["properties"];
2482 } 3075 }
2483 if (_json.containsKey("state")) { 3076 if (_json.containsKey("state")) {
2484 state = _json["state"]; 3077 state = _json["state"];
2485 } 3078 }
2486 if (_json.containsKey("warnings")) { 3079 if (_json.containsKey("warnings")) {
2487 warnings = _json["warnings"].map((value) => new ResourceUpdateWarnings.fro mJson(value)).toList(); 3080 warnings = _json["warnings"].map((value) => new ResourceUpdateWarnings.fro mJson(value)).toList();
2488 } 3081 }
2489 } 3082 }
2490 3083
2491 core.Map toJson() { 3084 core.Map toJson() {
2492 var _json = new core.Map(); 3085 var _json = new core.Map();
3086 if (accessControl != null) {
3087 _json["accessControl"] = (accessControl).toJson();
3088 }
2493 if (error != null) { 3089 if (error != null) {
2494 _json["error"] = (error).toJson(); 3090 _json["error"] = (error).toJson();
2495 } 3091 }
2496 if (finalProperties != null) { 3092 if (finalProperties != null) {
2497 _json["finalProperties"] = finalProperties; 3093 _json["finalProperties"] = finalProperties;
2498 } 3094 }
2499 if (intent != null) { 3095 if (intent != null) {
2500 _json["intent"] = intent; 3096 _json["intent"] = intent;
2501 } 3097 }
2502 if (manifest != null) { 3098 if (manifest != null) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2541 if (nextPageToken != null) { 3137 if (nextPageToken != null) {
2542 _json["nextPageToken"] = nextPageToken; 3138 _json["nextPageToken"] = nextPageToken;
2543 } 3139 }
2544 if (resources != null) { 3140 if (resources != null) {
2545 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 3141 _json["resources"] = resources.map((value) => (value).toJson()).toList();
2546 } 3142 }
2547 return _json; 3143 return _json;
2548 } 3144 }
2549 } 3145 }
2550 3146
3147 /** A rule to be applied in a Policy. */
3148 class Rule {
3149 /** Required */
3150 core.String action;
3151 /** Additional restrictions that must be met */
3152 core.List<Condition> conditions;
3153 /** Human-readable description of the rule. */
3154 core.String description;
3155 /**
3156 * If one or more 'in' clauses are specified, the rule matches if the
3157 * PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
3158 */
3159 core.List<core.String> ins;
3160 /**
3161 * The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
3162 * that match the LOG action.
3163 */
3164 core.List<LogConfig> logConfigs;
3165 /**
3166 * If one or more 'not_in' clauses are specified, the rule matches if the
3167 * PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
3168 */
3169 core.List<core.String> notIns;
3170 /**
3171 * A permission is a string of form '..' (e.g., 'storage.buckets.list'). A
3172 * value of '*' matches all permissions, and a verb part of '*' (e.g.,
3173 * 'storage.buckets.*') matches all verbs.
3174 */
3175 core.List<core.String> permissions;
3176
3177 Rule();
3178
3179 Rule.fromJson(core.Map _json) {
3180 if (_json.containsKey("action")) {
3181 action = _json["action"];
3182 }
3183 if (_json.containsKey("conditions")) {
3184 conditions = _json["conditions"].map((value) => new Condition.fromJson(val ue)).toList();
3185 }
3186 if (_json.containsKey("description")) {
3187 description = _json["description"];
3188 }
3189 if (_json.containsKey("ins")) {
3190 ins = _json["ins"];
3191 }
3192 if (_json.containsKey("logConfigs")) {
3193 logConfigs = _json["logConfigs"].map((value) => new LogConfig.fromJson(val ue)).toList();
3194 }
3195 if (_json.containsKey("notIns")) {
3196 notIns = _json["notIns"];
3197 }
3198 if (_json.containsKey("permissions")) {
3199 permissions = _json["permissions"];
3200 }
3201 }
3202
3203 core.Map toJson() {
3204 var _json = new core.Map();
3205 if (action != null) {
3206 _json["action"] = action;
3207 }
3208 if (conditions != null) {
3209 _json["conditions"] = conditions.map((value) => (value).toJson()).toList() ;
3210 }
3211 if (description != null) {
3212 _json["description"] = description;
3213 }
3214 if (ins != null) {
3215 _json["ins"] = ins;
3216 }
3217 if (logConfigs != null) {
3218 _json["logConfigs"] = logConfigs.map((value) => (value).toJson()).toList() ;
3219 }
3220 if (notIns != null) {
3221 _json["notIns"] = notIns;
3222 }
3223 if (permissions != null) {
3224 _json["permissions"] = permissions;
3225 }
3226 return _json;
3227 }
3228 }
3229
2551 class TargetConfiguration { 3230 class TargetConfiguration {
2552 /** The configuration to use for this deployment. */ 3231 /** The configuration to use for this deployment. */
2553 ConfigFile config; 3232 ConfigFile config;
2554 /** 3233 /**
2555 * Specifies any files to import for this configuration. This can be used to 3234 * Specifies any files to import for this configuration. This can be used to
2556 * import templates or other files. For example, you might import a text file 3235 * import templates or other files. For example, you might import a text file
2557 * in order to use the file in a template. 3236 * in order to use the file in a template.
2558 */ 3237 */
2559 core.List<ImportFile> imports; 3238 core.List<ImportFile> imports;
2560 3239
(...skipping 13 matching lines...) Expand all
2574 if (config != null) { 3253 if (config != null) {
2575 _json["config"] = (config).toJson(); 3254 _json["config"] = (config).toJson();
2576 } 3255 }
2577 if (imports != null) { 3256 if (imports != null) {
2578 _json["imports"] = imports.map((value) => (value).toJson()).toList(); 3257 _json["imports"] = imports.map((value) => (value).toJson()).toList();
2579 } 3258 }
2580 return _json; 3259 return _json;
2581 } 3260 }
2582 } 3261 }
2583 3262
3263 class TestPermissionsRequest {
3264 /**
3265 * The set of permissions to check for the 'resource'. Permissions with
3266 * wildcards (such as '*' or 'storage.*') are not allowed.
3267 */
3268 core.List<core.String> permissions;
3269
3270 TestPermissionsRequest();
3271
3272 TestPermissionsRequest.fromJson(core.Map _json) {
3273 if (_json.containsKey("permissions")) {
3274 permissions = _json["permissions"];
3275 }
3276 }
3277
3278 core.Map toJson() {
3279 var _json = new core.Map();
3280 if (permissions != null) {
3281 _json["permissions"] = permissions;
3282 }
3283 return _json;
3284 }
3285 }
3286
3287 class TestPermissionsResponse {
3288 /**
3289 * A subset of `TestPermissionsRequest.permissions` that the caller is
3290 * allowed.
3291 */
3292 core.List<core.String> permissions;
3293
3294 TestPermissionsResponse();
3295
3296 TestPermissionsResponse.fromJson(core.Map _json) {
3297 if (_json.containsKey("permissions")) {
3298 permissions = _json["permissions"];
3299 }
3300 }
3301
3302 core.Map toJson() {
3303 var _json = new core.Map();
3304 if (permissions != null) {
3305 _json["permissions"] = permissions;
3306 }
3307 return _json;
3308 }
3309 }
3310
2584 /** A resource type supported by Deployment Manager. */ 3311 /** A resource type supported by Deployment Manager. */
2585 class Type { 3312 class Type {
2586 /** 3313 /**
2587 * [Output Only] Unique identifier for the resource; defined by the server. 3314 * [Output Only] Unique identifier for the resource; defined by the server.
2588 */ 3315 */
2589 core.String id; 3316 core.String id;
2590 /** 3317 /**
2591 * [Output Only] Timestamp when the type was created, in RFC3339 text format. 3318 * [Output Only] Timestamp when the type was created, in RFC3339 text format.
2592 */ 3319 */
2593 core.String insertTime; 3320 core.String insertTime;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
2666 var _json = new core.Map(); 3393 var _json = new core.Map();
2667 if (nextPageToken != null) { 3394 if (nextPageToken != null) {
2668 _json["nextPageToken"] = nextPageToken; 3395 _json["nextPageToken"] = nextPageToken;
2669 } 3396 }
2670 if (types != null) { 3397 if (types != null) {
2671 _json["types"] = types.map((value) => (value).toJson()).toList(); 3398 _json["types"] = types.map((value) => (value).toJson()).toList();
2672 } 3399 }
2673 return _json; 3400 return _json;
2674 } 3401 }
2675 } 3402 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/dataproc/v1.dart ('k') | generated/googleapis/lib/dfareporting/v2_2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698