| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.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 Loading... |
| 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 * | |
| 103 * [filter] - The standard list filter. | 101 * [filter] - The standard list filter. |
| 104 * | 102 * |
| 105 * [pageToken] - The standard list page token. | 103 * [pageToken] - The standard list page token. |
| 106 * | 104 * |
| 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.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}) { |
| 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 } | |
| 129 if (filter != null) { | 126 if (filter != null) { |
| 130 _queryParams["filter"] = [filter]; | 127 _queryParams["filter"] = [filter]; |
| 131 } | 128 } |
| 132 if (pageToken != null) { | 129 if (pageToken != null) { |
| 133 _queryParams["pageToken"] = [pageToken]; | 130 _queryParams["pageToken"] = [pageToken]; |
| 134 } | 131 } |
| 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 * |
| 713 * [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 |
| 714 * response. Further CryptoKeys can subsequently be obtained by | 717 * response. Further CryptoKeys can subsequently be obtained by |
| 715 * including the ListCryptoKeysResponse.next_page_token in a subsequent | 718 * including the ListCryptoKeysResponse.next_page_token in a subsequent |
| 716 * request. If unspecified, the server will pick an appropriate default. | 719 * request. If unspecified, the server will pick an appropriate default. |
| 717 * | 720 * |
| 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.int pageSi
ze, core.String pageToken}) { | 729 async.Future<ListCryptoKeysResponse> list(core.String parent, {core.String pag
eToken, core.int pageSize}) { |
| 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 (pageToken != null) { |
| 741 _queryParams["pageToken"] = [pageToken]; |
| 742 } |
| 740 if (pageSize != null) { | 743 if (pageSize != null) { |
| 741 _queryParams["pageSize"] = ["${pageSize}"]; | 744 _queryParams["pageSize"] = ["${pageSize}"]; |
| 742 } | 745 } |
| 743 if (pageToken != null) { | |
| 744 _queryParams["pageToken"] = [pageToken]; | |
| 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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2075 * expression: "size(request.user) > 0" | 2075 * expression: "size(request.user) > 0" |
| 2076 */ | 2076 */ |
| 2077 class Expr { | 2077 class Expr { |
| 2078 /** | 2078 /** |
| 2079 * An optional description of the expression. This is a longer text which | 2079 * An optional description of the expression. This is a longer text which |
| 2080 * describes the expression, e.g. when hovered over it in a UI. | 2080 * describes the expression, e.g. when hovered over it in a UI. |
| 2081 */ | 2081 */ |
| 2082 core.String description; | 2082 core.String description; |
| 2083 /** | 2083 /** |
| 2084 * Textual representation of an expression in | 2084 * Textual representation of an expression in |
| 2085 * [Common Expression Language](http://go/api-expr) syntax. | 2085 * Common Expression Language syntax. |
| 2086 * | 2086 * |
| 2087 * The application context of the containing message determines which | 2087 * The application context of the containing message determines which |
| 2088 * well-known feature set of CEL is supported. | 2088 * well-known feature set of CEL is supported. |
| 2089 */ | 2089 */ |
| 2090 core.String expression; | 2090 core.String expression; |
| 2091 /** | 2091 /** |
| 2092 * An optional string indicating the location of the expression for error | 2092 * An optional string indicating the location of the expression for error |
| 2093 * reporting, e.g. a file name and a position in the file. | 2093 * reporting, e.g. a file name and a position in the file. |
| 2094 */ | 2094 */ |
| 2095 core.String location; | 2095 core.String location; |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2377 if (metadata != null) { | 2377 if (metadata != null) { |
| 2378 _json["metadata"] = metadata; | 2378 _json["metadata"] = metadata; |
| 2379 } | 2379 } |
| 2380 if (name != null) { | 2380 if (name != null) { |
| 2381 _json["name"] = name; | 2381 _json["name"] = name; |
| 2382 } | 2382 } |
| 2383 return _json; | 2383 return _json; |
| 2384 } | 2384 } |
| 2385 } | 2385 } |
| 2386 | 2386 |
| 2387 /** Specifies what kind of log the caller must write */ | 2387 /** |
| 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 */ |
| 2388 class LogConfig { | 2412 class LogConfig { |
| 2389 /** Cloud audit options. */ | 2413 /** Cloud audit options. */ |
| 2390 CloudAuditOptions cloudAudit; | 2414 CloudAuditOptions cloudAudit; |
| 2391 /** Counter options. */ | 2415 /** Counter options. */ |
| 2392 CounterOptions counter; | 2416 CounterOptions counter; |
| 2393 /** Data access options. */ | 2417 /** Data access options. */ |
| 2394 DataAccessOptions dataAccess; | 2418 DataAccessOptions dataAccess; |
| 2395 | 2419 |
| 2396 LogConfig(); | 2420 LogConfig(); |
| 2397 | 2421 |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2765 } | 2789 } |
| 2766 | 2790 |
| 2767 core.Map<core.String, core.Object> toJson() { | 2791 core.Map<core.String, core.Object> toJson() { |
| 2768 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2769 if (cryptoKeyVersionId != null) { | 2793 if (cryptoKeyVersionId != null) { |
| 2770 _json["cryptoKeyVersionId"] = cryptoKeyVersionId; | 2794 _json["cryptoKeyVersionId"] = cryptoKeyVersionId; |
| 2771 } | 2795 } |
| 2772 return _json; | 2796 return _json; |
| 2773 } | 2797 } |
| 2774 } | 2798 } |
| OLD | NEW |