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

Side by Side Diff: generated/googleapis_beta/lib/cloudkms/v1beta1.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months 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_beta.cloudkms.v1beta1; 3 library googleapis_beta.cloudkms.v1beta1;
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;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client cloudkms/v1beta1'; 15 const core.String USER_AGENT = 'dart-api-client cloudkms/v1beta1';
16 16
17 /**
18 * Manages encryption for your cloud services the same way you do on-premise.
19 * You can generate, use, rotate, and destroy AES256 encryption keys.
20 */
17 class CloudkmsApi { 21 class CloudkmsApi {
18 /** View and manage your data across Google Cloud Platform services */ 22 /** View and manage your data across Google Cloud Platform services */
19 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
20 24
21 25
22 final commons.ApiRequester _requester; 26 final commons.ApiRequester _requester;
23 27
24 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 28 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
25 29
26 CloudkmsApi(http.Client client, {core.String rootUrl: "https://cloudkms.google apis.com/", core.String servicePath: ""}) : 30 CloudkmsApi(http.Client client, {core.String rootUrl: "https://cloudkms.google apis.com/", core.String servicePath: ""}) :
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 91 }
88 92
89 /** 93 /**
90 * Lists information about the supported locations for this service. 94 * Lists information about the supported locations for this service.
91 * 95 *
92 * Request parameters: 96 * Request parameters:
93 * 97 *
94 * [name] - The resource that owns the locations collection, if applicable. 98 * [name] - The resource that owns the locations collection, if applicable.
95 * Value must have pattern "^projects/[^/]+$". 99 * Value must have pattern "^projects/[^/]+$".
96 * 100 *
97 * [pageSize] - The standard list page size.
98 *
99 * [filter] - The standard list filter. 101 * [filter] - The standard list filter.
100 * 102 *
101 * [pageToken] - The standard list page token. 103 * [pageToken] - The standard list page token.
102 * 104 *
105 * [pageSize] - The standard list page size.
106 *
103 * Completes with a [ListLocationsResponse]. 107 * Completes with a [ListLocationsResponse].
104 * 108 *
105 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
106 * error. 110 * error.
107 * 111 *
108 * If the used [http.Client] completes with an error when making a REST call, 112 * If the used [http.Client] completes with an error when making a REST call,
109 * this method will complete with the same error. 113 * this method will complete with the same error.
110 */ 114 */
111 async.Future<ListLocationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { 115 async.Future<ListLocationsResponse> list(core.String name, {core.String filter , core.String pageToken, core.int pageSize}) {
112 var _url = null; 116 var _url = null;
113 var _queryParams = new core.Map(); 117 var _queryParams = new core.Map();
114 var _uploadMedia = null; 118 var _uploadMedia = null;
115 var _uploadOptions = null; 119 var _uploadOptions = null;
116 var _downloadOptions = commons.DownloadOptions.Metadata; 120 var _downloadOptions = commons.DownloadOptions.Metadata;
117 var _body = null; 121 var _body = null;
118 122
119 if (name == null) { 123 if (name == null) {
120 throw new core.ArgumentError("Parameter name is required."); 124 throw new core.ArgumentError("Parameter name is required.");
121 } 125 }
122 if (pageSize != null) {
123 _queryParams["pageSize"] = ["${pageSize}"];
124 }
125 if (filter != null) { 126 if (filter != null) {
126 _queryParams["filter"] = [filter]; 127 _queryParams["filter"] = [filter];
127 } 128 }
128 if (pageToken != null) { 129 if (pageToken != null) {
129 _queryParams["pageToken"] = [pageToken]; 130 _queryParams["pageToken"] = [pageToken];
130 } 131 }
132 if (pageSize != null) {
133 _queryParams["pageSize"] = ["${pageSize}"];
134 }
131 135
132 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locat ions'; 136 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locat ions';
133 137
134 var _response = _requester.request(_url, 138 var _response = _requester.request(_url,
135 "GET", 139 "GET",
136 body: _body, 140 body: _body,
137 queryParams: _queryParams, 141 queryParams: _queryParams,
138 uploadOptions: _uploadOptions, 142 uploadOptions: _uploadOptions,
139 uploadMedia: _uploadMedia, 143 uploadMedia: _uploadMedia,
140 downloadOptions: _downloadOptions); 144 downloadOptions: _downloadOptions);
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 /** 703 /**
700 * Lists CryptoKeys. 704 * Lists CryptoKeys.
701 * 705 *
702 * Request parameters: 706 * Request parameters:
703 * 707 *
704 * [parent] - Required. The resource name of the KeyRing to list, in the 708 * [parent] - Required. The resource name of the KeyRing to list, in the
705 * format 709 * format
706 * `projects / * /locations / * /keyRings / * `. 710 * `projects / * /locations / * /keyRings / * `.
707 * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". 711 * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$".
708 * 712 *
713 * [pageToken] - Optional pagination token, returned earlier via
714 * ListCryptoKeysResponse.next_page_token.
715 *
709 * [pageSize] - Optional limit on the number of CryptoKeys to include in the 716 * [pageSize] - Optional limit on the number of CryptoKeys to include in the
710 * response. Further CryptoKeys can subsequently be obtained by 717 * response. Further CryptoKeys can subsequently be obtained by
711 * including the ListCryptoKeysResponse.next_page_token in a subsequent 718 * including the ListCryptoKeysResponse.next_page_token in a subsequent
712 * request. If unspecified, the server will pick an appropriate default. 719 * request. If unspecified, the server will pick an appropriate default.
713 * 720 *
714 * [pageToken] - Optional pagination token, returned earlier via
715 * ListCryptoKeysResponse.next_page_token.
716 *
717 * Completes with a [ListCryptoKeysResponse]. 721 * Completes with a [ListCryptoKeysResponse].
718 * 722 *
719 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 723 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
720 * error. 724 * error.
721 * 725 *
722 * If the used [http.Client] completes with an error when making a REST call, 726 * If the used [http.Client] completes with an error when making a REST call,
723 * this method will complete with the same error. 727 * this method will complete with the same error.
724 */ 728 */
725 async.Future<ListCryptoKeysResponse> list(core.String parent, {core.int pageSi ze, core.String pageToken}) { 729 async.Future<ListCryptoKeysResponse> list(core.String parent, {core.String pag eToken, core.int pageSize}) {
726 var _url = null; 730 var _url = null;
727 var _queryParams = new core.Map(); 731 var _queryParams = new core.Map();
728 var _uploadMedia = null; 732 var _uploadMedia = null;
729 var _uploadOptions = null; 733 var _uploadOptions = null;
730 var _downloadOptions = commons.DownloadOptions.Metadata; 734 var _downloadOptions = commons.DownloadOptions.Metadata;
731 var _body = null; 735 var _body = null;
732 736
733 if (parent == null) { 737 if (parent == null) {
734 throw new core.ArgumentError("Parameter parent is required."); 738 throw new core.ArgumentError("Parameter parent is required.");
735 } 739 }
740 if (pageToken != null) {
741 _queryParams["pageToken"] = [pageToken];
742 }
736 if (pageSize != null) { 743 if (pageSize != null) {
737 _queryParams["pageSize"] = ["${pageSize}"]; 744 _queryParams["pageSize"] = ["${pageSize}"];
738 } 745 }
739 if (pageToken != null) {
740 _queryParams["pageToken"] = [pageToken];
741 }
742 746
743 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cry ptoKeys'; 747 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cry ptoKeys';
744 748
745 var _response = _requester.request(_url, 749 var _response = _requester.request(_url,
746 "GET", 750 "GET",
747 body: _body, 751 body: _body,
748 queryParams: _queryParams, 752 queryParams: _queryParams,
749 uploadOptions: _uploadOptions, 753 uploadOptions: _uploadOptions,
750 uploadMedia: _uploadMedia, 754 uploadMedia: _uploadMedia,
751 downloadOptions: _downloadOptions); 755 downloadOptions: _downloadOptions);
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 } 2629 }
2626 2630
2627 core.Map toJson() { 2631 core.Map toJson() {
2628 var _json = new core.Map(); 2632 var _json = new core.Map();
2629 if (cryptoKeyVersionId != null) { 2633 if (cryptoKeyVersionId != null) {
2630 _json["cryptoKeyVersionId"] = cryptoKeyVersionId; 2634 _json["cryptoKeyVersionId"] = cryptoKeyVersionId;
2631 } 2635 }
2632 return _json; 2636 return _json;
2633 } 2637 }
2634 } 2638 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698