|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.contactcenterinsights.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Specifies the audit configuration for a service. The configuration determines which permission |
| 21 | + * types are logged, and what identities, if any, are exempted from logging. An AuditConfig must |
| 22 | + * have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific |
| 23 | + * service, the union of the two AuditConfigs is used for that service: the log_types specified in |
| 24 | + * each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. |
| 25 | + * Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", |
| 26 | + * "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] |
| 27 | + * }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": |
| 28 | + * "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": |
| 29 | + * "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this |
| 30 | + * policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` |
| 31 | + * from DATA_READ logging, and `[email protected]` from DATA_WRITE logging. |
| 32 | + * |
| 33 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 34 | + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed |
| 35 | + * explanation see: |
| 36 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 37 | + * </p> |
| 38 | + * |
| 39 | + * @author Google, Inc. |
| 40 | + */ |
| 41 | +@SuppressWarnings("javadoc") |
| 42 | +public final class GoogleIamV1AuditConfig extends com.google.api.client.json.GenericJson { |
| 43 | + |
| 44 | + /** |
| 45 | + * The configuration for logging of each type of permission. |
| 46 | + * The value may be {@code null}. |
| 47 | + */ |
| 48 | + @com.google.api.client.util.Key |
| 49 | + private java.util.List<GoogleIamV1AuditLogConfig> auditLogConfigs; |
| 50 | + |
| 51 | + /** |
| 52 | + * Specifies a service that will be enabled for audit logging. For example, |
| 53 | + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that |
| 54 | + * covers all services. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private java.lang.String service; |
| 59 | + |
| 60 | + /** |
| 61 | + * The configuration for logging of each type of permission. |
| 62 | + * @return value or {@code null} for none |
| 63 | + */ |
| 64 | + public java.util.List<GoogleIamV1AuditLogConfig> getAuditLogConfigs() { |
| 65 | + return auditLogConfigs; |
| 66 | + } |
| 67 | + |
| 68 | + /** |
| 69 | + * The configuration for logging of each type of permission. |
| 70 | + * @param auditLogConfigs auditLogConfigs or {@code null} for none |
| 71 | + */ |
| 72 | + public GoogleIamV1AuditConfig setAuditLogConfigs(java.util.List<GoogleIamV1AuditLogConfig> auditLogConfigs) { |
| 73 | + this.auditLogConfigs = auditLogConfigs; |
| 74 | + return this; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Specifies a service that will be enabled for audit logging. For example, |
| 79 | + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that |
| 80 | + * covers all services. |
| 81 | + * @return value or {@code null} for none |
| 82 | + */ |
| 83 | + public java.lang.String getService() { |
| 84 | + return service; |
| 85 | + } |
| 86 | + |
| 87 | + /** |
| 88 | + * Specifies a service that will be enabled for audit logging. For example, |
| 89 | + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that |
| 90 | + * covers all services. |
| 91 | + * @param service service or {@code null} for none |
| 92 | + */ |
| 93 | + public GoogleIamV1AuditConfig setService(java.lang.String service) { |
| 94 | + this.service = service; |
| 95 | + return this; |
| 96 | + } |
| 97 | + |
| 98 | + @Override |
| 99 | + public GoogleIamV1AuditConfig set(String fieldName, Object value) { |
| 100 | + return (GoogleIamV1AuditConfig) super.set(fieldName, value); |
| 101 | + } |
| 102 | + |
| 103 | + @Override |
| 104 | + public GoogleIamV1AuditConfig clone() { |
| 105 | + return (GoogleIamV1AuditConfig) super.clone(); |
| 106 | + } |
| 107 | + |
| 108 | +} |
0 commit comments