| 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_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; |
| (...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 * [filter] - The standard list filter. | |
| 102 * | |
| 103 * [pageToken] - The standard list page token. | 101 * [pageToken] - The standard list page token. |
| 104 * | 102 * |
| 105 * [pageSize] - The standard list page size. | 103 * [pageSize] - The standard list page size. |
| 106 * | 104 * |
| 105 * [filter] - The standard list filter. |
| 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.String pageTo
ken, core.int pageSize, core.String filter}) { |
| 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 (filter != null) { | |
| 127 _queryParams["filter"] = [filter]; | |
| 128 } | |
| 129 if (pageToken != null) { | 126 if (pageToken != null) { |
| 130 _queryParams["pageToken"] = [pageToken]; | 127 _queryParams["pageToken"] = [pageToken]; |
| 131 } | 128 } |
| 132 if (pageSize != null) { | 129 if (pageSize != null) { |
| 133 _queryParams["pageSize"] = ["${pageSize}"]; | 130 _queryParams["pageSize"] = ["${pageSize}"]; |
| 134 } | 131 } |
| 132 if (filter != null) { |
| 133 _queryParams["filter"] = [filter]; |
| 134 } |
| 135 | 135 |
| 136 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locat
ions'; | 136 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locat
ions'; |
| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 uploadMedia: _uploadMedia, | 396 uploadMedia: _uploadMedia, |
| 397 downloadOptions: _downloadOptions); | 397 downloadOptions: _downloadOptions); |
| 398 return _response.then((data) => new Policy.fromJson(data)); | 398 return _response.then((data) => new Policy.fromJson(data)); |
| 399 } | 399 } |
| 400 | 400 |
| 401 /** | 401 /** |
| 402 * Returns permissions that a caller has on the specified resource. | 402 * Returns permissions that a caller has on the specified resource. |
| 403 * If the resource does not exist, this will return an empty set of | 403 * If the resource does not exist, this will return an empty set of |
| 404 * permissions, not a NOT_FOUND error. | 404 * permissions, not a NOT_FOUND error. |
| 405 * | 405 * |
| 406 * Note: This operation is designed to be used for building permission-aware |
| 407 * UIs and command-line tools, not for authorization checking. This operation |
| 408 * may "fail open" without warning. |
| 409 * |
| 406 * [request] - The metadata request object. | 410 * [request] - The metadata request object. |
| 407 * | 411 * |
| 408 * Request parameters: | 412 * Request parameters: |
| 409 * | 413 * |
| 410 * [resource] - REQUIRED: The resource for which the policy detail is being | 414 * [resource] - REQUIRED: The resource for which the policy detail is being |
| 411 * requested. | 415 * requested. |
| 412 * `resource` is usually specified as a path. For example, a Project | 416 * `resource` is usually specified as a path. For example, a Project |
| 413 * resource is specified as `projects/{project}`. | 417 * resource is specified as `projects/{project}`. |
| 414 * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". | 418 * Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". |
| 415 * | 419 * |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 uploadMedia: _uploadMedia, | 860 uploadMedia: _uploadMedia, |
| 857 downloadOptions: _downloadOptions); | 861 downloadOptions: _downloadOptions); |
| 858 return _response.then((data) => new Policy.fromJson(data)); | 862 return _response.then((data) => new Policy.fromJson(data)); |
| 859 } | 863 } |
| 860 | 864 |
| 861 /** | 865 /** |
| 862 * Returns permissions that a caller has on the specified resource. | 866 * Returns permissions that a caller has on the specified resource. |
| 863 * If the resource does not exist, this will return an empty set of | 867 * If the resource does not exist, this will return an empty set of |
| 864 * permissions, not a NOT_FOUND error. | 868 * permissions, not a NOT_FOUND error. |
| 865 * | 869 * |
| 870 * Note: This operation is designed to be used for building permission-aware |
| 871 * UIs and command-line tools, not for authorization checking. This operation |
| 872 * may "fail open" without warning. |
| 873 * |
| 866 * [request] - The metadata request object. | 874 * [request] - The metadata request object. |
| 867 * | 875 * |
| 868 * Request parameters: | 876 * Request parameters: |
| 869 * | 877 * |
| 870 * [resource] - REQUIRED: The resource for which the policy detail is being | 878 * [resource] - REQUIRED: The resource for which the policy detail is being |
| 871 * requested. | 879 * requested. |
| 872 * `resource` is usually specified as a path. For example, a Project | 880 * `resource` is usually specified as a path. For example, a Project |
| 873 * resource is specified as `projects/{project}`. | 881 * resource is specified as `projects/{project}`. |
| 874 * Value must have pattern | 882 * Value must have pattern |
| 875 * "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$". | 883 * "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$". |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 | 1293 |
| 1286 } | 1294 } |
| 1287 | 1295 |
| 1288 | 1296 |
| 1289 | 1297 |
| 1290 /** | 1298 /** |
| 1291 * Specifies the audit configuration for a service. | 1299 * Specifies the audit configuration for a service. |
| 1292 * It consists of which permission types are logged, and what identities, if | 1300 * It consists of which permission types are logged, and what identities, if |
| 1293 * any, are exempted from logging. | 1301 * any, are exempted from logging. |
| 1294 * An AuditConifg must have one or more AuditLogConfigs. | 1302 * An AuditConifg must have one or more AuditLogConfigs. |
| 1303 * |
| 1304 * If there are AuditConfigs for both `allServices` and a specific service, |
| 1305 * the union of the two AuditConfigs is used for that service: the log_types |
| 1306 * specified in each AuditConfig are enabled, and the exempted_members in each |
| 1307 * AuditConfig are exempted. |
| 1308 * Example Policy with multiple AuditConfigs: |
| 1309 * { |
| 1310 * "audit_configs": [ |
| 1311 * { |
| 1312 * "service": "allServices" |
| 1313 * "audit_log_configs": [ |
| 1314 * { |
| 1315 * "log_type": "DATA_READ", |
| 1316 * "exempted_members": [ |
| 1317 * "user:foo@gmail.com" |
| 1318 * ] |
| 1319 * }, |
| 1320 * { |
| 1321 * "log_type": "DATA_WRITE", |
| 1322 * }, |
| 1323 * { |
| 1324 * "log_type": "ADMIN_READ", |
| 1325 * } |
| 1326 * ] |
| 1327 * }, |
| 1328 * { |
| 1329 * "service": "fooservice@googleapis.com" |
| 1330 * "audit_log_configs": [ |
| 1331 * { |
| 1332 * "log_type": "DATA_READ", |
| 1333 * }, |
| 1334 * { |
| 1335 * "log_type": "DATA_WRITE", |
| 1336 * "exempted_members": [ |
| 1337 * "user:bar@gmail.com" |
| 1338 * ] |
| 1339 * } |
| 1340 * ] |
| 1341 * } |
| 1342 * ] |
| 1343 * } |
| 1344 * For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ |
| 1345 * logging. It also exempts foo@gmail.com from DATA_READ logging, and |
| 1346 * bar@gmail.com from DATA_WRITE logging. |
| 1295 */ | 1347 */ |
| 1296 class AuditConfig { | 1348 class AuditConfig { |
| 1297 /** | 1349 /** |
| 1298 * The configuration for logging of each type of permission. | 1350 * The configuration for logging of each type of permission. |
| 1299 * Next ID: 4 | 1351 * Next ID: 4 |
| 1300 */ | 1352 */ |
| 1301 core.List<AuditLogConfig> auditLogConfigs; | 1353 core.List<AuditLogConfig> auditLogConfigs; |
| 1302 /** | |
| 1303 * Specifies the identities that are exempted from "data access" audit | |
| 1304 * logging for the `service` specified above. | |
| 1305 * Follows the same format of Binding.members. | |
| 1306 * This field is deprecated in favor of per-permission-type exemptions. | |
| 1307 */ | |
| 1308 core.List<core.String> exemptedMembers; | 1354 core.List<core.String> exemptedMembers; |
| 1309 /** | 1355 /** |
| 1310 * Specifies a service that will be enabled for audit logging. | 1356 * Specifies a service that will be enabled for audit logging. |
| 1311 * For example, `resourcemanager`, `storage`, `compute`. | 1357 * For example, `resourcemanager`, `storage`, `compute`. |
| 1312 * `allServices` is a special value that covers all services. | 1358 * `allServices` is a special value that covers all services. |
| 1313 */ | 1359 */ |
| 1314 core.String service; | 1360 core.String service; |
| 1315 | 1361 |
| 1316 AuditConfig(); | 1362 AuditConfig(); |
| 1317 | 1363 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 /** A condition to be met. */ | 1522 /** A condition to be met. */ |
| 1477 class Condition { | 1523 class Condition { |
| 1478 /** | 1524 /** |
| 1479 * Trusted attributes supplied by the IAM system. | 1525 * Trusted attributes supplied by the IAM system. |
| 1480 * Possible string values are: | 1526 * Possible string values are: |
| 1481 * - "NO_ATTR" : Default non-attribute. | 1527 * - "NO_ATTR" : Default non-attribute. |
| 1482 * - "AUTHORITY" : Either principal or (if present) authority selector. | 1528 * - "AUTHORITY" : Either principal or (if present) authority selector. |
| 1483 * - "ATTRIBUTION" : The principal (even if an authority selector is present), | 1529 * - "ATTRIBUTION" : The principal (even if an authority selector is present), |
| 1484 * which | 1530 * which |
| 1485 * must only be used for attribution, not authorization. | 1531 * must only be used for attribution, not authorization. |
| 1532 * - "APPROVER" : An approver (distinct from the requester) that has |
| 1533 * authorized this |
| 1534 * request. |
| 1535 * When used with IN, the condition indicates that one of the approvers |
| 1536 * associated with the request matches the specified principal, or is a |
| 1537 * member of the specified group. Approvers can only grant additional |
| 1538 * access, and are thus only used in a strictly positive context |
| 1539 * (e.g. ALLOW/IN or DENY/NOT_IN). |
| 1540 * See: go/rpc-security-policy-dynamicauth. |
| 1486 */ | 1541 */ |
| 1487 core.String iam; | 1542 core.String iam; |
| 1488 /** | 1543 /** |
| 1489 * An operator to apply the subject with. | 1544 * An operator to apply the subject with. |
| 1490 * Possible string values are: | 1545 * Possible string values are: |
| 1491 * - "NO_OP" : Default no-op. | 1546 * - "NO_OP" : Default no-op. |
| 1492 * - "EQUALS" : DEPRECATED. Use IN instead. | 1547 * - "EQUALS" : DEPRECATED. Use IN instead. |
| 1493 * - "NOT_EQUALS" : DEPRECATED. Use NOT_IN instead. | 1548 * - "NOT_EQUALS" : DEPRECATED. Use NOT_IN instead. |
| 1494 * - "IN" : Set-inclusion check. | 1549 * - "IN" : Set-inclusion check. |
| 1495 * - "NOT_IN" : Set-exclusion check. | 1550 * - "NOT_IN" : Set-exclusion check. |
| (...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2629 } | 2684 } |
| 2630 | 2685 |
| 2631 core.Map toJson() { | 2686 core.Map toJson() { |
| 2632 var _json = new core.Map(); | 2687 var _json = new core.Map(); |
| 2633 if (cryptoKeyVersionId != null) { | 2688 if (cryptoKeyVersionId != null) { |
| 2634 _json["cryptoKeyVersionId"] = cryptoKeyVersionId; | 2689 _json["cryptoKeyVersionId"] = cryptoKeyVersionId; |
| 2635 } | 2690 } |
| 2636 return _json; | 2691 return _json; |
| 2637 } | 2692 } |
| 2638 } | 2693 } |
| OLD | NEW |