Index: generated/googleapis/lib/cloudkms/v1.dart |
diff --git a/generated/googleapis/lib/cloudkms/v1.dart b/generated/googleapis/lib/cloudkms/v1.dart |
index 77aade2bf595ac032643920cb0698451959c2978..44540b0706082f34950dce332bb51a6e6f351760 100644 |
--- a/generated/googleapis/lib/cloudkms/v1.dart |
+++ b/generated/googleapis/lib/cloudkms/v1.dart |
@@ -98,12 +98,12 @@ class ProjectsLocationsResourceApi { |
* [name] - The resource that owns the locations collection, if applicable. |
* Value must have pattern "^projects/[^/]+$". |
* |
+ * [pageSize] - The standard list page size. |
+ * |
* [filter] - The standard list filter. |
* |
* [pageToken] - The standard list page token. |
* |
- * [pageSize] - The standard list page size. |
- * |
* Completes with a [ListLocationsResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -112,7 +112,7 @@ class ProjectsLocationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListLocationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { |
+ async.Future<ListLocationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -123,15 +123,15 @@ class ProjectsLocationsResourceApi { |
if (name == null) { |
throw new core.ArgumentError("Parameter name is required."); |
} |
+ if (pageSize != null) { |
+ _queryParams["pageSize"] = ["${pageSize}"]; |
+ } |
if (filter != null) { |
_queryParams["filter"] = [filter]; |
} |
if (pageToken != null) { |
_queryParams["pageToken"] = [pageToken]; |
} |
- if (pageSize != null) { |
- _queryParams["pageSize"] = ["${pageSize}"]; |
- } |
_url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locations'; |
@@ -302,14 +302,14 @@ class ProjectsLocationsKeyRingsResourceApi { |
* KeyRings, in the format `projects / * /locations / * `. |
* Value must have pattern "^projects/[^/]+/locations/[^/]+$". |
* |
- * [pageToken] - Optional pagination token, returned earlier via |
- * ListKeyRingsResponse.next_page_token. |
- * |
* [pageSize] - Optional limit on the number of KeyRings to include in the |
* response. Further KeyRings can subsequently be obtained by |
* including the ListKeyRingsResponse.next_page_token in a subsequent |
* request. If unspecified, the server will pick an appropriate default. |
* |
+ * [pageToken] - Optional pagination token, returned earlier via |
+ * ListKeyRingsResponse.next_page_token. |
+ * |
* Completes with a [ListKeyRingsResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -318,7 +318,7 @@ class ProjectsLocationsKeyRingsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListKeyRingsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { |
+ async.Future<ListKeyRingsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -329,12 +329,12 @@ class ProjectsLocationsKeyRingsResourceApi { |
if (parent == null) { |
throw new core.ArgumentError("Parameter parent is required."); |
} |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
- } |
if (pageSize != null) { |
_queryParams["pageSize"] = ["${pageSize}"]; |
} |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
+ } |
_url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/keyRings'; |
@@ -710,14 +710,14 @@ class ProjectsLocationsKeyRingsCryptoKeysResourceApi { |
* `projects / * /locations / * /keyRings / * `. |
* Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". |
* |
- * [pageToken] - Optional pagination token, returned earlier via |
- * ListCryptoKeysResponse.next_page_token. |
- * |
* [pageSize] - Optional limit on the number of CryptoKeys to include in the |
* response. Further CryptoKeys can subsequently be obtained by |
* including the ListCryptoKeysResponse.next_page_token in a subsequent |
* request. If unspecified, the server will pick an appropriate default. |
* |
+ * [pageToken] - Optional pagination token, returned earlier via |
+ * ListCryptoKeysResponse.next_page_token. |
+ * |
* Completes with a [ListCryptoKeysResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -726,7 +726,7 @@ class ProjectsLocationsKeyRingsCryptoKeysResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListCryptoKeysResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { |
+ async.Future<ListCryptoKeysResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -737,12 +737,12 @@ class ProjectsLocationsKeyRingsCryptoKeysResourceApi { |
if (parent == null) { |
throw new core.ArgumentError("Parameter parent is required."); |
} |
- if (pageToken != null) { |
- _queryParams["pageToken"] = [pageToken]; |
- } |
if (pageSize != null) { |
_queryParams["pageSize"] = ["${pageSize}"]; |
} |
+ if (pageToken != null) { |
+ _queryParams["pageToken"] = [pageToken]; |
+ } |
_url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cryptoKeys'; |
@@ -1654,7 +1654,30 @@ class Condition { |
} |
} |
-/** Options for counters */ |
+/** |
+ * Increment a streamz counter with the specified metric and field names. |
+ * |
+ * Metric names should start with a '/', generally be lowercase-only, |
+ * and end in "_count". Field names should not contain an initial slash. |
+ * The actual exported metric names will have "/iam/policy" prepended. |
+ * |
+ * Field names correspond to IAM request parameters and field values are |
+ * their respective values. |
+ * |
+ * At present the only supported field names are |
+ * - "iam_principal", corresponding to IAMContext.principal; |
+ * - "" (empty string), resulting in one aggretated counter with no field. |
+ * |
+ * Examples: |
+ * counter { metric: "/debug_access_count" field: "iam_principal" } |
+ * ==> increment counter /iam/policy/backend_debug_access_count |
+ * {iam_principal=[value of IAMContext.principal]} |
+ * |
+ * At this time we do not support: |
+ * * multiple field names (though this may be supported in the future) |
+ * * decrementing the counter |
+ * * incrementing it by anything other than 1 |
+ */ |
class CounterOptions { |
/** The field value to attribute. */ |
core.String field; |
@@ -1877,14 +1900,41 @@ class CryptoKeyVersion { |
/** Write a Data Access (Gin) log */ |
class DataAccessOptions { |
+ /** |
+ * Whether Gin logging should happen in a fail-closed manner at the caller. |
+ * This is relevant only in the LocalIAM implementation, for now. |
+ * Possible string values are: |
+ * - "LOG_MODE_UNSPECIFIED" : Client is not required to write a partial Gin |
+ * log immediately after |
+ * the authorization check. If client chooses to write one and it fails, |
+ * client may either fail open (allow the operation to continue) or |
+ * fail closed (handle as a DENY outcome). |
+ * - "LOG_FAIL_CLOSED" : The application's operation in the context of which |
+ * this authorization |
+ * check is being made may only be performed if it is successfully logged |
+ * to Gin. For instance, the authorization library may satisfy this |
+ * obligation by emitting a partial log entry at authorization check time |
+ * and only returning ALLOW to the application if it succeeds. |
+ * |
+ * If a matching Rule has this directive, but the client has not indicated |
+ * that it will honor such requirements, then the IAM check will result in |
+ * authorization failure by setting CheckPolicyResponse.success=false. |
+ */ |
+ core.String logMode; |
DataAccessOptions(); |
DataAccessOptions.fromJson(core.Map _json) { |
+ if (_json.containsKey("logMode")) { |
+ logMode = _json["logMode"]; |
+ } |
} |
core.Map<core.String, core.Object> toJson() { |
final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ if (logMode != null) { |
+ _json["logMode"] = logMode; |
+ } |
return _json; |
} |
} |
@@ -2384,31 +2434,7 @@ class Location { |
} |
} |
-/** |
- * Specifies what kind of log the caller must write |
- * Increment a streamz counter with the specified metric and field names. |
- * |
- * Metric names should start with a '/', generally be lowercase-only, |
- * and end in "_count". Field names should not contain an initial slash. |
- * The actual exported metric names will have "/iam/policy" prepended. |
- * |
- * Field names correspond to IAM request parameters and field values are |
- * their respective values. |
- * |
- * At present the only supported field names are |
- * - "iam_principal", corresponding to IAMContext.principal; |
- * - "" (empty string), resulting in one aggretated counter with no field. |
- * |
- * Examples: |
- * counter { metric: "/debug_access_count" field: "iam_principal" } |
- * ==> increment counter /iam/policy/backend_debug_access_count |
- * {iam_principal=[value of IAMContext.principal]} |
- * |
- * At this time we do not support: |
- * * multiple field names (though this may be supported in the future) |
- * * decrementing the counter |
- * * incrementing it by anything other than 1 |
- */ |
+/** Specifies what kind of log the caller must write */ |
class LogConfig { |
/** Cloud audit options. */ |
CloudAuditOptions cloudAudit; |