Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-dlp/v2/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-dlp</artifactId>
<version>v2-rev20260530-2.0.0</version>
<version>v2-rev20260606-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260530-2.0.0'
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260606-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.dlp.v2.model;

/**
* A policy to apply to content based on its inspection findings.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
* explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GooglePrivacyDlpV2ContentPolicy extends com.google.api.client.json.GenericJson {

/**
* Output only. The creation timestamp of a contentPolicy; output-only field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;

/**
* Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW
* verdict if not set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2PolicyAction defaultAction;

/**
* Optional. Display name (max 63 chars)
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String displayName;

/**
* Output only. A stream of errors encountered when the policy was applied. Output only field.
* Will return the last 100 errors. Whenever the policy is modified this list will be cleared.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<GooglePrivacyDlpV2Error> errors;

/**
* Optional. Action to take if the content is a supported file type and size but fails to be
* scanned, for example because the file is encrypted or corrupted.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2PolicyAction failedToScanSupportedFileType;

/**
* Optional. Action to take if the content is a supported file type but is too large to be
* scanned.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2PolicyAction inputTooLarge;

/**
* Optional. InspectConfig to use to produce findings.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2InspectConfig inspectConfig;

/**
* Optional. InspectTemplate to use to produce findings. Deprecated: use inspect_config instead.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2InspectTemplate inspectTemplate;

/**
* Optional. Log the actions taken by the content policy to external systems.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<GooglePrivacyDlpV2LoggingConfig> loggingConfigs;

/**
* Output only. Resource name of the policy.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Required. Policies to apply, based on the findings returned by inspection. The first rule to
* match applies.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<GooglePrivacyDlpV2PolicyRule> rules;

/**
* Optional. Action to take if the content is an unsupported file type.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GooglePrivacyDlpV2PolicyAction unsupportedFileType;

/**
* Output only. The last update timestamp of a contentPolicy; output-only field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;

/**
* Output only. The creation timestamp of a contentPolicy; output-only field.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}

/**
* Output only. The creation timestamp of a contentPolicy; output-only field.
* @param createTime createTime or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}

/**
* Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW
* verdict if not set.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2PolicyAction getDefaultAction() {
return defaultAction;
}

/**
* Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW
* verdict if not set.
* @param defaultAction defaultAction or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setDefaultAction(GooglePrivacyDlpV2PolicyAction defaultAction) {
this.defaultAction = defaultAction;
return this;
}

/**
* Optional. Display name (max 63 chars)
* @return value or {@code null} for none
*/
public java.lang.String getDisplayName() {
return displayName;
}

/**
* Optional. Display name (max 63 chars)
* @param displayName displayName or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setDisplayName(java.lang.String displayName) {
this.displayName = displayName;
return this;
}

/**
* Output only. A stream of errors encountered when the policy was applied. Output only field.
* Will return the last 100 errors. Whenever the policy is modified this list will be cleared.
* @return value or {@code null} for none
*/
public java.util.List<GooglePrivacyDlpV2Error> getErrors() {
return errors;
}

/**
* Output only. A stream of errors encountered when the policy was applied. Output only field.
* Will return the last 100 errors. Whenever the policy is modified this list will be cleared.
* @param errors errors or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setErrors(java.util.List<GooglePrivacyDlpV2Error> errors) {
this.errors = errors;
return this;
}

/**
* Optional. Action to take if the content is a supported file type and size but fails to be
* scanned, for example because the file is encrypted or corrupted.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2PolicyAction getFailedToScanSupportedFileType() {
return failedToScanSupportedFileType;
}

/**
* Optional. Action to take if the content is a supported file type and size but fails to be
* scanned, for example because the file is encrypted or corrupted.
* @param failedToScanSupportedFileType failedToScanSupportedFileType or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setFailedToScanSupportedFileType(GooglePrivacyDlpV2PolicyAction failedToScanSupportedFileType) {
this.failedToScanSupportedFileType = failedToScanSupportedFileType;
return this;
}

/**
* Optional. Action to take if the content is a supported file type but is too large to be
* scanned.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2PolicyAction getInputTooLarge() {
return inputTooLarge;
}

/**
* Optional. Action to take if the content is a supported file type but is too large to be
* scanned.
* @param inputTooLarge inputTooLarge or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setInputTooLarge(GooglePrivacyDlpV2PolicyAction inputTooLarge) {
this.inputTooLarge = inputTooLarge;
return this;
}

/**
* Optional. InspectConfig to use to produce findings.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2InspectConfig getInspectConfig() {
return inspectConfig;
}

/**
* Optional. InspectConfig to use to produce findings.
* @param inspectConfig inspectConfig or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setInspectConfig(GooglePrivacyDlpV2InspectConfig inspectConfig) {
this.inspectConfig = inspectConfig;
return this;
}

/**
* Optional. InspectTemplate to use to produce findings. Deprecated: use inspect_config instead.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2InspectTemplate getInspectTemplate() {
return inspectTemplate;
}

/**
* Optional. InspectTemplate to use to produce findings. Deprecated: use inspect_config instead.
* @param inspectTemplate inspectTemplate or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setInspectTemplate(GooglePrivacyDlpV2InspectTemplate inspectTemplate) {
this.inspectTemplate = inspectTemplate;
return this;
}

/**
* Optional. Log the actions taken by the content policy to external systems.
* @return value or {@code null} for none
*/
public java.util.List<GooglePrivacyDlpV2LoggingConfig> getLoggingConfigs() {
return loggingConfigs;
}

/**
* Optional. Log the actions taken by the content policy to external systems.
* @param loggingConfigs loggingConfigs or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setLoggingConfigs(java.util.List<GooglePrivacyDlpV2LoggingConfig> loggingConfigs) {
this.loggingConfigs = loggingConfigs;
return this;
}

/**
* Output only. Resource name of the policy.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* Output only. Resource name of the policy.
* @param name name or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setName(java.lang.String name) {
this.name = name;
return this;
}

/**
* Required. Policies to apply, based on the findings returned by inspection. The first rule to
* match applies.
* @return value or {@code null} for none
*/
public java.util.List<GooglePrivacyDlpV2PolicyRule> getRules() {
return rules;
}

/**
* Required. Policies to apply, based on the findings returned by inspection. The first rule to
* match applies.
* @param rules rules or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setRules(java.util.List<GooglePrivacyDlpV2PolicyRule> rules) {
this.rules = rules;
return this;
}

/**
* Optional. Action to take if the content is an unsupported file type.
* @return value or {@code null} for none
*/
public GooglePrivacyDlpV2PolicyAction getUnsupportedFileType() {
return unsupportedFileType;
}

/**
* Optional. Action to take if the content is an unsupported file type.
* @param unsupportedFileType unsupportedFileType or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setUnsupportedFileType(GooglePrivacyDlpV2PolicyAction unsupportedFileType) {
this.unsupportedFileType = unsupportedFileType;
return this;
}

/**
* Output only. The last update timestamp of a contentPolicy; output-only field.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}

/**
* Output only. The last update timestamp of a contentPolicy; output-only field.
* @param updateTime updateTime or {@code null} for none
*/
public GooglePrivacyDlpV2ContentPolicy setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}

@Override
public GooglePrivacyDlpV2ContentPolicy set(String fieldName, Object value) {
return (GooglePrivacyDlpV2ContentPolicy) super.set(fieldName, value);
}

@Override
public GooglePrivacyDlpV2ContentPolicy clone() {
return (GooglePrivacyDlpV2ContentPolicy) super.clone();
}

}
Loading
Loading