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

Side by Side Diff: generated/googleapis/lib/cloudkms/v1.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 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.cloudkms.v1; 3 library googleapis.cloudkms.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 /** 93 /**
94 * Lists information about the supported locations for this service. 94 * Lists information about the supported locations for this service.
95 * 95 *
96 * Request parameters: 96 * Request parameters:
97 * 97 *
98 * [name] - The resource that owns the locations collection, if applicable. 98 * [name] - The resource that owns the locations collection, if applicable.
99 * Value must have pattern "^projects/[^/]+$". 99 * Value must have pattern "^projects/[^/]+$".
100 * 100 *
101 * [pageSize] - The standard list page size.
102 *
101 * [filter] - The standard list filter. 103 * [filter] - The standard list filter.
102 * 104 *
103 * [pageToken] - The standard list page token. 105 * [pageToken] - The standard list page token.
104 * 106 *
105 * [pageSize] - The standard list page size.
106 *
107 * Completes with a [ListLocationsResponse]. 107 * Completes with a [ListLocationsResponse].
108 * 108 *
109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
110 * error. 110 * error.
111 * 111 *
112 * 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,
113 * this method will complete with the same error. 113 * this method will complete with the same error.
114 */ 114 */
115 async.Future<ListLocationsResponse> list(core.String name, {core.String filter , core.String pageToken, core.int pageSize}) { 115 async.Future<ListLocationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) {
116 var _url = null; 116 var _url = null;
117 var _queryParams = new core.Map(); 117 var _queryParams = new core.Map();
118 var _uploadMedia = null; 118 var _uploadMedia = null;
119 var _uploadOptions = null; 119 var _uploadOptions = null;
120 var _downloadOptions = commons.DownloadOptions.Metadata; 120 var _downloadOptions = commons.DownloadOptions.Metadata;
121 var _body = null; 121 var _body = null;
122 122
123 if (name == null) { 123 if (name == null) {
124 throw new core.ArgumentError("Parameter name is required."); 124 throw new core.ArgumentError("Parameter name is required.");
125 } 125 }
126 if (pageSize != null) {
127 _queryParams["pageSize"] = ["${pageSize}"];
128 }
126 if (filter != null) { 129 if (filter != null) {
127 _queryParams["filter"] = [filter]; 130 _queryParams["filter"] = [filter];
128 } 131 }
129 if (pageToken != null) { 132 if (pageToken != null) {
130 _queryParams["pageToken"] = [pageToken]; 133 _queryParams["pageToken"] = [pageToken];
131 } 134 }
132 if (pageSize != null) {
133 _queryParams["pageSize"] = ["${pageSize}"];
134 }
135 135
136 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locations' ; 136 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locations' ;
137 137
138 var _response = _requester.request(_url, 138 var _response = _requester.request(_url,
139 "GET", 139 "GET",
140 body: _body, 140 body: _body,
141 queryParams: _queryParams, 141 queryParams: _queryParams,
142 uploadOptions: _uploadOptions, 142 uploadOptions: _uploadOptions,
143 uploadMedia: _uploadMedia, 143 uploadMedia: _uploadMedia,
144 downloadOptions: _downloadOptions); 144 downloadOptions: _downloadOptions);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 /** 296 /**
297 * Lists KeyRings. 297 * Lists KeyRings.
298 * 298 *
299 * Request parameters: 299 * Request parameters:
300 * 300 *
301 * [parent] - Required. The resource name of the location associated with the 301 * [parent] - Required. The resource name of the location associated with the
302 * KeyRings, in the format `projects / * /locations / * `. 302 * KeyRings, in the format `projects / * /locations / * `.
303 * Value must have pattern "^projects/[^/]+/locations/[^/]+$". 303 * Value must have pattern "^projects/[^/]+/locations/[^/]+$".
304 * 304 *
305 * [pageToken] - Optional pagination token, returned earlier via
306 * ListKeyRingsResponse.next_page_token.
307 *
308 * [pageSize] - Optional limit on the number of KeyRings to include in the 305 * [pageSize] - Optional limit on the number of KeyRings to include in the
309 * response. Further KeyRings can subsequently be obtained by 306 * response. Further KeyRings can subsequently be obtained by
310 * including the ListKeyRingsResponse.next_page_token in a subsequent 307 * including the ListKeyRingsResponse.next_page_token in a subsequent
311 * request. If unspecified, the server will pick an appropriate default. 308 * request. If unspecified, the server will pick an appropriate default.
312 * 309 *
310 * [pageToken] - Optional pagination token, returned earlier via
311 * ListKeyRingsResponse.next_page_token.
312 *
313 * Completes with a [ListKeyRingsResponse]. 313 * Completes with a [ListKeyRingsResponse].
314 * 314 *
315 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 315 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
316 * error. 316 * error.
317 * 317 *
318 * If the used [http.Client] completes with an error when making a REST call, 318 * If the used [http.Client] completes with an error when making a REST call,
319 * this method will complete with the same error. 319 * this method will complete with the same error.
320 */ 320 */
321 async.Future<ListKeyRingsResponse> list(core.String parent, {core.String pageT oken, core.int pageSize}) { 321 async.Future<ListKeyRingsResponse> list(core.String parent, {core.int pageSize , core.String pageToken}) {
322 var _url = null; 322 var _url = null;
323 var _queryParams = new core.Map(); 323 var _queryParams = new core.Map();
324 var _uploadMedia = null; 324 var _uploadMedia = null;
325 var _uploadOptions = null; 325 var _uploadOptions = null;
326 var _downloadOptions = commons.DownloadOptions.Metadata; 326 var _downloadOptions = commons.DownloadOptions.Metadata;
327 var _body = null; 327 var _body = null;
328 328
329 if (parent == null) { 329 if (parent == null) {
330 throw new core.ArgumentError("Parameter parent is required."); 330 throw new core.ArgumentError("Parameter parent is required.");
331 } 331 }
332 if (pageSize != null) {
333 _queryParams["pageSize"] = ["${pageSize}"];
334 }
332 if (pageToken != null) { 335 if (pageToken != null) {
333 _queryParams["pageToken"] = [pageToken]; 336 _queryParams["pageToken"] = [pageToken];
334 } 337 }
335 if (pageSize != null) {
336 _queryParams["pageSize"] = ["${pageSize}"];
337 }
338 338
339 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/keyRings '; 339 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/keyRings ';
340 340
341 var _response = _requester.request(_url, 341 var _response = _requester.request(_url,
342 "GET", 342 "GET",
343 body: _body, 343 body: _body,
344 queryParams: _queryParams, 344 queryParams: _queryParams,
345 uploadOptions: _uploadOptions, 345 uploadOptions: _uploadOptions,
346 uploadMedia: _uploadMedia, 346 uploadMedia: _uploadMedia,
347 downloadOptions: _downloadOptions); 347 downloadOptions: _downloadOptions);
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 /** 703 /**
704 * Lists CryptoKeys. 704 * Lists CryptoKeys.
705 * 705 *
706 * Request parameters: 706 * Request parameters:
707 * 707 *
708 * [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
709 * format 709 * format
710 * `projects / * /locations / * /keyRings / * `. 710 * `projects / * /locations / * /keyRings / * `.
711 * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". 711 * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$".
712 * 712 *
713 * [pageToken] - Optional pagination token, returned earlier via
714 * ListCryptoKeysResponse.next_page_token.
715 *
716 * [pageSize] - Optional limit on the number of CryptoKeys to include in the 713 * [pageSize] - Optional limit on the number of CryptoKeys to include in the
717 * response. Further CryptoKeys can subsequently be obtained by 714 * response. Further CryptoKeys can subsequently be obtained by
718 * including the ListCryptoKeysResponse.next_page_token in a subsequent 715 * including the ListCryptoKeysResponse.next_page_token in a subsequent
719 * request. If unspecified, the server will pick an appropriate default. 716 * request. If unspecified, the server will pick an appropriate default.
720 * 717 *
718 * [pageToken] - Optional pagination token, returned earlier via
719 * ListCryptoKeysResponse.next_page_token.
720 *
721 * Completes with a [ListCryptoKeysResponse]. 721 * Completes with a [ListCryptoKeysResponse].
722 * 722 *
723 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 723 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
724 * error. 724 * error.
725 * 725 *
726 * 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,
727 * this method will complete with the same error. 727 * this method will complete with the same error.
728 */ 728 */
729 async.Future<ListCryptoKeysResponse> list(core.String parent, {core.String pag eToken, core.int pageSize}) { 729 async.Future<ListCryptoKeysResponse> list(core.String parent, {core.int pageSi ze, core.String pageToken}) {
730 var _url = null; 730 var _url = null;
731 var _queryParams = new core.Map(); 731 var _queryParams = new core.Map();
732 var _uploadMedia = null; 732 var _uploadMedia = null;
733 var _uploadOptions = null; 733 var _uploadOptions = null;
734 var _downloadOptions = commons.DownloadOptions.Metadata; 734 var _downloadOptions = commons.DownloadOptions.Metadata;
735 var _body = null; 735 var _body = null;
736 736
737 if (parent == null) { 737 if (parent == null) {
738 throw new core.ArgumentError("Parameter parent is required."); 738 throw new core.ArgumentError("Parameter parent is required.");
739 } 739 }
740 if (pageSize != null) {
741 _queryParams["pageSize"] = ["${pageSize}"];
742 }
740 if (pageToken != null) { 743 if (pageToken != null) {
741 _queryParams["pageToken"] = [pageToken]; 744 _queryParams["pageToken"] = [pageToken];
742 } 745 }
743 if (pageSize != null) {
744 _queryParams["pageSize"] = ["${pageSize}"];
745 }
746 746
747 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cryptoKe ys'; 747 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cryptoKe ys';
748 748
749 var _response = _requester.request(_url, 749 var _response = _requester.request(_url,
750 "GET", 750 "GET",
751 body: _body, 751 body: _body,
752 queryParams: _queryParams, 752 queryParams: _queryParams,
753 uploadOptions: _uploadOptions, 753 uploadOptions: _uploadOptions,
754 uploadMedia: _uploadMedia, 754 uploadMedia: _uploadMedia,
755 downloadOptions: _downloadOptions); 755 downloadOptions: _downloadOptions);
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 if (value != null) { 1647 if (value != null) {
1648 _json["value"] = value; 1648 _json["value"] = value;
1649 } 1649 }
1650 if (values != null) { 1650 if (values != null) {
1651 _json["values"] = values; 1651 _json["values"] = values;
1652 } 1652 }
1653 return _json; 1653 return _json;
1654 } 1654 }
1655 } 1655 }
1656 1656
1657 /** Options for counters */ 1657 /**
1658 * Increment a streamz counter with the specified metric and field names.
1659 *
1660 * Metric names should start with a '/', generally be lowercase-only,
1661 * and end in "_count". Field names should not contain an initial slash.
1662 * The actual exported metric names will have "/iam/policy" prepended.
1663 *
1664 * Field names correspond to IAM request parameters and field values are
1665 * their respective values.
1666 *
1667 * At present the only supported field names are
1668 * - "iam_principal", corresponding to IAMContext.principal;
1669 * - "" (empty string), resulting in one aggretated counter with no field.
1670 *
1671 * Examples:
1672 * counter { metric: "/debug_access_count" field: "iam_principal" }
1673 * ==> increment counter /iam/policy/backend_debug_access_count
1674 * {iam_principal=[value of IAMContext.principal]}
1675 *
1676 * At this time we do not support:
1677 * * multiple field names (though this may be supported in the future)
1678 * * decrementing the counter
1679 * * incrementing it by anything other than 1
1680 */
1658 class CounterOptions { 1681 class CounterOptions {
1659 /** The field value to attribute. */ 1682 /** The field value to attribute. */
1660 core.String field; 1683 core.String field;
1661 /** The metric to update. */ 1684 /** The metric to update. */
1662 core.String metric; 1685 core.String metric;
1663 1686
1664 CounterOptions(); 1687 CounterOptions();
1665 1688
1666 CounterOptions.fromJson(core.Map _json) { 1689 CounterOptions.fromJson(core.Map _json) {
1667 if (_json.containsKey("field")) { 1690 if (_json.containsKey("field")) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 } 1893 }
1871 if (state != null) { 1894 if (state != null) {
1872 _json["state"] = state; 1895 _json["state"] = state;
1873 } 1896 }
1874 return _json; 1897 return _json;
1875 } 1898 }
1876 } 1899 }
1877 1900
1878 /** Write a Data Access (Gin) log */ 1901 /** Write a Data Access (Gin) log */
1879 class DataAccessOptions { 1902 class DataAccessOptions {
1903 /**
1904 * Whether Gin logging should happen in a fail-closed manner at the caller.
1905 * This is relevant only in the LocalIAM implementation, for now.
1906 * Possible string values are:
1907 * - "LOG_MODE_UNSPECIFIED" : Client is not required to write a partial Gin
1908 * log immediately after
1909 * the authorization check. If client chooses to write one and it fails,
1910 * client may either fail open (allow the operation to continue) or
1911 * fail closed (handle as a DENY outcome).
1912 * - "LOG_FAIL_CLOSED" : The application's operation in the context of which
1913 * this authorization
1914 * check is being made may only be performed if it is successfully logged
1915 * to Gin. For instance, the authorization library may satisfy this
1916 * obligation by emitting a partial log entry at authorization check time
1917 * and only returning ALLOW to the application if it succeeds.
1918 *
1919 * If a matching Rule has this directive, but the client has not indicated
1920 * that it will honor such requirements, then the IAM check will result in
1921 * authorization failure by setting CheckPolicyResponse.success=false.
1922 */
1923 core.String logMode;
1880 1924
1881 DataAccessOptions(); 1925 DataAccessOptions();
1882 1926
1883 DataAccessOptions.fromJson(core.Map _json) { 1927 DataAccessOptions.fromJson(core.Map _json) {
1928 if (_json.containsKey("logMode")) {
1929 logMode = _json["logMode"];
1930 }
1884 } 1931 }
1885 1932
1886 core.Map<core.String, core.Object> toJson() { 1933 core.Map<core.String, core.Object> toJson() {
1887 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1934 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1935 if (logMode != null) {
1936 _json["logMode"] = logMode;
1937 }
1888 return _json; 1938 return _json;
1889 } 1939 }
1890 } 1940 }
1891 1941
1892 /** Request message for KeyManagementService.Decrypt. */ 1942 /** Request message for KeyManagementService.Decrypt. */
1893 class DecryptRequest { 1943 class DecryptRequest {
1894 /** 1944 /**
1895 * Optional data that must match the data originally supplied in 1945 * Optional data that must match the data originally supplied in
1896 * EncryptRequest.additional_authenticated_data. 1946 * EncryptRequest.additional_authenticated_data.
1897 */ 1947 */
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2377 if (metadata != null) { 2427 if (metadata != null) {
2378 _json["metadata"] = metadata; 2428 _json["metadata"] = metadata;
2379 } 2429 }
2380 if (name != null) { 2430 if (name != null) {
2381 _json["name"] = name; 2431 _json["name"] = name;
2382 } 2432 }
2383 return _json; 2433 return _json;
2384 } 2434 }
2385 } 2435 }
2386 2436
2387 /** 2437 /** Specifies what kind of log the caller must write */
2388 * Specifies what kind of log the caller must write
2389 * Increment a streamz counter with the specified metric and field names.
2390 *
2391 * Metric names should start with a '/', generally be lowercase-only,
2392 * and end in "_count". Field names should not contain an initial slash.
2393 * The actual exported metric names will have "/iam/policy" prepended.
2394 *
2395 * Field names correspond to IAM request parameters and field values are
2396 * their respective values.
2397 *
2398 * At present the only supported field names are
2399 * - "iam_principal", corresponding to IAMContext.principal;
2400 * - "" (empty string), resulting in one aggretated counter with no field.
2401 *
2402 * Examples:
2403 * counter { metric: "/debug_access_count" field: "iam_principal" }
2404 * ==> increment counter /iam/policy/backend_debug_access_count
2405 * {iam_principal=[value of IAMContext.principal]}
2406 *
2407 * At this time we do not support:
2408 * * multiple field names (though this may be supported in the future)
2409 * * decrementing the counter
2410 * * incrementing it by anything other than 1
2411 */
2412 class LogConfig { 2438 class LogConfig {
2413 /** Cloud audit options. */ 2439 /** Cloud audit options. */
2414 CloudAuditOptions cloudAudit; 2440 CloudAuditOptions cloudAudit;
2415 /** Counter options. */ 2441 /** Counter options. */
2416 CounterOptions counter; 2442 CounterOptions counter;
2417 /** Data access options. */ 2443 /** Data access options. */
2418 DataAccessOptions dataAccess; 2444 DataAccessOptions dataAccess;
2419 2445
2420 LogConfig(); 2446 LogConfig();
2421 2447
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 } 2815 }
2790 2816
2791 core.Map<core.String, core.Object> toJson() { 2817 core.Map<core.String, core.Object> toJson() {
2792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2818 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2793 if (cryptoKeyVersionId != null) { 2819 if (cryptoKeyVersionId != null) {
2794 _json["cryptoKeyVersionId"] = cryptoKeyVersionId; 2820 _json["cryptoKeyVersionId"] = cryptoKeyVersionId;
2795 } 2821 }
2796 return _json; 2822 return _json;
2797 } 2823 }
2798 } 2824 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/clouddebugger/v2.dart ('k') | generated/googleapis/lib/cloudresourcemanager/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698