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.deploymentmanager.v2; | 3 library googleapis.deploymentmanager.v2; |
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 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 | 1340 |
1341 | 1341 |
1342 /** | 1342 /** |
1343 * Specifies the audit configuration for a service. The configuration determines | 1343 * Specifies the audit configuration for a service. The configuration determines |
1344 * which permission types are logged, and what identities, if any, are exempted | 1344 * which permission types are logged, and what identities, if any, are exempted |
1345 * from logging. An AuditConifg must have one or more AuditLogConfigs. | 1345 * from logging. An AuditConifg must have one or more AuditLogConfigs. |
1346 * | 1346 * |
1347 * If there are AuditConfigs for both `allServices` and a specific service, the | 1347 * If there are AuditConfigs for both `allServices` and a specific service, the |
1348 * union of the two AuditConfigs is used for that service: the log_types | 1348 * union of the two AuditConfigs is used for that service: the log_types |
1349 * specified in each AuditConfig are enabled, and the exempted_members in each | 1349 * specified in each AuditConfig are enabled, and the exempted_members in each |
1350 * AuditConfig are exempted. Example Policy with multiple AuditConfigs: { | 1350 * AuditConfig are exempted. |
1351 * "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { | 1351 * |
| 1352 * Example Policy with multiple AuditConfigs: |
| 1353 * |
| 1354 * { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { |
1352 * "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { | 1355 * "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { |
1353 * "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": | 1356 * "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": |
1354 * "fooservice@googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", | 1357 * "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", |
1355 * }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } | 1358 * }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } |
1356 * ] } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE and | 1359 * ] } ] } |
1357 * ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and | 1360 * |
| 1361 * For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ |
| 1362 * logging. It also exempts foo@gmail.com from DATA_READ logging, and |
1358 * bar@gmail.com from DATA_WRITE logging. | 1363 * bar@gmail.com from DATA_WRITE logging. |
1359 */ | 1364 */ |
1360 class AuditConfig { | 1365 class AuditConfig { |
1361 /** The configuration for logging of each type of permission. */ | 1366 /** The configuration for logging of each type of permission. */ |
1362 core.List<AuditLogConfig> auditLogConfigs; | 1367 core.List<AuditLogConfig> auditLogConfigs; |
1363 core.List<core.String> exemptedMembers; | 1368 core.List<core.String> exemptedMembers; |
1364 /** | 1369 /** |
1365 * Specifies a service that will be enabled for audit logging. For example, | 1370 * Specifies a service that will be enabled for audit logging. For example, |
1366 * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a | 1371 * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a |
1367 * special value that covers all services. | 1372 * special value that covers all services. |
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3463 var _json = new core.Map(); | 3468 var _json = new core.Map(); |
3464 if (nextPageToken != null) { | 3469 if (nextPageToken != null) { |
3465 _json["nextPageToken"] = nextPageToken; | 3470 _json["nextPageToken"] = nextPageToken; |
3466 } | 3471 } |
3467 if (types != null) { | 3472 if (types != null) { |
3468 _json["types"] = types.map((value) => (value).toJson()).toList(); | 3473 _json["types"] = types.map((value) => (value).toJson()).toList(); |
3469 } | 3474 } |
3470 return _json; | 3475 return _json; |
3471 } | 3476 } |
3472 } | 3477 } |
OLD | NEW |