Skip to content

Commit 29252cd

Browse files
1 parent 51907fb commit 29252cd

15 files changed

Lines changed: 782 additions & 45 deletions

clients/google-api-services-dlp/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-dlp</artifactId>
25-
<version>v2-rev20260606-2.0.0</version>
25+
<version>v2-rev20260620-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260606-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260620-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-dlp/v2/2.0.0/com/google/api/services/dlp/v2/model/GooglePrivacyDlpV2ContentMetadata.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,37 @@
3030
@SuppressWarnings("javadoc")
3131
public final class GooglePrivacyDlpV2ContentMetadata extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Optional. The file labels associated with the content.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GooglePrivacyDlpV2FileLabel> fileLabels;
39+
3340
/**
3441
* User provided key-value pairs of content metadata.
3542
* The value may be {@code null}.
3643
*/
3744
@com.google.api.client.util.Key
3845
private java.util.List<GooglePrivacyDlpV2KeyValueMetadataProperty> properties;
3946

47+
/**
48+
* Optional. The file labels associated with the content.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.util.List<GooglePrivacyDlpV2FileLabel> getFileLabels() {
52+
return fileLabels;
53+
}
54+
55+
/**
56+
* Optional. The file labels associated with the content.
57+
* @param fileLabels fileLabels or {@code null} for none
58+
*/
59+
public GooglePrivacyDlpV2ContentMetadata setFileLabels(java.util.List<GooglePrivacyDlpV2FileLabel> fileLabels) {
60+
this.fileLabels = fileLabels;
61+
return this;
62+
}
63+
4064
/**
4165
* User provided key-value pairs of content metadata.
4266
* @return value or {@code null} for none

clients/google-api-services-dlp/v2/2.0.0/com/google/api/services/dlp/v2/model/GooglePrivacyDlpV2CustomInfoType.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ public final class GooglePrivacyDlpV2CustomInfoType extends com.google.api.clien
5656
@com.google.api.client.util.Key
5757
private java.lang.String exclusionType;
5858

59+
/**
60+
* File label to detect.
61+
* The value may be {@code null}.
62+
*/
63+
@com.google.api.client.util.Key
64+
private GooglePrivacyDlpV2FileLabelInfoType fileLabelInfoType;
65+
5966
/**
6067
* CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the
6168
* name matches one of existing infoTypes and that infoType is specified in
@@ -172,6 +179,23 @@ public GooglePrivacyDlpV2CustomInfoType setExclusionType(java.lang.String exclus
172179
return this;
173180
}
174181

182+
/**
183+
* File label to detect.
184+
* @return value or {@code null} for none
185+
*/
186+
public GooglePrivacyDlpV2FileLabelInfoType getFileLabelInfoType() {
187+
return fileLabelInfoType;
188+
}
189+
190+
/**
191+
* File label to detect.
192+
* @param fileLabelInfoType fileLabelInfoType or {@code null} for none
193+
*/
194+
public GooglePrivacyDlpV2CustomInfoType setFileLabelInfoType(GooglePrivacyDlpV2FileLabelInfoType fileLabelInfoType) {
195+
this.fileLabelInfoType = fileLabelInfoType;
196+
return this;
197+
}
198+
175199
/**
176200
* CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the
177201
* name matches one of existing infoTypes and that infoType is specified in
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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.dlp.v2.model;
18+
19+
/**
20+
* Represents a file label.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
24+
* explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GooglePrivacyDlpV2FileLabel extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Google Drive labels published by Google.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private GooglePrivacyDlpV2GoogleDriveLabelMetadata googleDriveLabel;
39+
40+
/**
41+
* Sensitivity labels published by Microsoft.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GooglePrivacyDlpV2SensitivityLabelMetadata sensitivityLabel;
46+
47+
/**
48+
* Google Drive labels published by Google.
49+
* @return value or {@code null} for none
50+
*/
51+
public GooglePrivacyDlpV2GoogleDriveLabelMetadata getGoogleDriveLabel() {
52+
return googleDriveLabel;
53+
}
54+
55+
/**
56+
* Google Drive labels published by Google.
57+
* @param googleDriveLabel googleDriveLabel or {@code null} for none
58+
*/
59+
public GooglePrivacyDlpV2FileLabel setGoogleDriveLabel(GooglePrivacyDlpV2GoogleDriveLabelMetadata googleDriveLabel) {
60+
this.googleDriveLabel = googleDriveLabel;
61+
return this;
62+
}
63+
64+
/**
65+
* Sensitivity labels published by Microsoft.
66+
* @return value or {@code null} for none
67+
*/
68+
public GooglePrivacyDlpV2SensitivityLabelMetadata getSensitivityLabel() {
69+
return sensitivityLabel;
70+
}
71+
72+
/**
73+
* Sensitivity labels published by Microsoft.
74+
* @param sensitivityLabel sensitivityLabel or {@code null} for none
75+
*/
76+
public GooglePrivacyDlpV2FileLabel setSensitivityLabel(GooglePrivacyDlpV2SensitivityLabelMetadata sensitivityLabel) {
77+
this.sensitivityLabel = sensitivityLabel;
78+
return this;
79+
}
80+
81+
@Override
82+
public GooglePrivacyDlpV2FileLabel set(String fieldName, Object value) {
83+
return (GooglePrivacyDlpV2FileLabel) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GooglePrivacyDlpV2FileLabel clone() {
88+
return (GooglePrivacyDlpV2FileLabel) super.clone();
89+
}
90+
91+
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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.dlp.v2.model;
18+
19+
/**
20+
* Configuration for a custom infoType that detects file labels.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
24+
* explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GooglePrivacyDlpV2FileLabelInfoType extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Google Drive labels published by Google.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private GooglePrivacyDlpV2GoogleDriveLabel googleDriveLabel;
39+
40+
/**
41+
* Sensitivity labels published by Microsoft.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GooglePrivacyDlpV2SensitivityLabel sensitivityLabel;
46+
47+
/**
48+
* Google Drive labels published by Google.
49+
* @return value or {@code null} for none
50+
*/
51+
public GooglePrivacyDlpV2GoogleDriveLabel getGoogleDriveLabel() {
52+
return googleDriveLabel;
53+
}
54+
55+
/**
56+
* Google Drive labels published by Google.
57+
* @param googleDriveLabel googleDriveLabel or {@code null} for none
58+
*/
59+
public GooglePrivacyDlpV2FileLabelInfoType setGoogleDriveLabel(GooglePrivacyDlpV2GoogleDriveLabel googleDriveLabel) {
60+
this.googleDriveLabel = googleDriveLabel;
61+
return this;
62+
}
63+
64+
/**
65+
* Sensitivity labels published by Microsoft.
66+
* @return value or {@code null} for none
67+
*/
68+
public GooglePrivacyDlpV2SensitivityLabel getSensitivityLabel() {
69+
return sensitivityLabel;
70+
}
71+
72+
/**
73+
* Sensitivity labels published by Microsoft.
74+
* @param sensitivityLabel sensitivityLabel or {@code null} for none
75+
*/
76+
public GooglePrivacyDlpV2FileLabelInfoType setSensitivityLabel(GooglePrivacyDlpV2SensitivityLabel sensitivityLabel) {
77+
this.sensitivityLabel = sensitivityLabel;
78+
return this;
79+
}
80+
81+
@Override
82+
public GooglePrivacyDlpV2FileLabelInfoType set(String fieldName, Object value) {
83+
return (GooglePrivacyDlpV2FileLabelInfoType) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GooglePrivacyDlpV2FileLabelInfoType clone() {
88+
return (GooglePrivacyDlpV2FileLabelInfoType) super.clone();
89+
}
90+
91+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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.dlp.v2.model;
18+
19+
/**
20+
* Google Drive labels published by Google.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
24+
* explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GooglePrivacyDlpV2GoogleDriveLabel extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The field values of the Google Drive label to match.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GooglePrivacyDlpV2LabelField> labelFieldsToMatch;
39+
40+
/**
41+
* The [label ID](https://developers.google.com/workspace/drive/labels/guides/overview) of the
42+
* Google Drive label.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String labelId;
47+
48+
/**
49+
* The field values of the Google Drive label to match.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.util.List<GooglePrivacyDlpV2LabelField> getLabelFieldsToMatch() {
53+
return labelFieldsToMatch;
54+
}
55+
56+
/**
57+
* The field values of the Google Drive label to match.
58+
* @param labelFieldsToMatch labelFieldsToMatch or {@code null} for none
59+
*/
60+
public GooglePrivacyDlpV2GoogleDriveLabel setLabelFieldsToMatch(java.util.List<GooglePrivacyDlpV2LabelField> labelFieldsToMatch) {
61+
this.labelFieldsToMatch = labelFieldsToMatch;
62+
return this;
63+
}
64+
65+
/**
66+
* The [label ID](https://developers.google.com/workspace/drive/labels/guides/overview) of the
67+
* Google Drive label.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.lang.String getLabelId() {
71+
return labelId;
72+
}
73+
74+
/**
75+
* The [label ID](https://developers.google.com/workspace/drive/labels/guides/overview) of the
76+
* Google Drive label.
77+
* @param labelId labelId or {@code null} for none
78+
*/
79+
public GooglePrivacyDlpV2GoogleDriveLabel setLabelId(java.lang.String labelId) {
80+
this.labelId = labelId;
81+
return this;
82+
}
83+
84+
@Override
85+
public GooglePrivacyDlpV2GoogleDriveLabel set(String fieldName, Object value) {
86+
return (GooglePrivacyDlpV2GoogleDriveLabel) super.set(fieldName, value);
87+
}
88+
89+
@Override
90+
public GooglePrivacyDlpV2GoogleDriveLabel clone() {
91+
return (GooglePrivacyDlpV2GoogleDriveLabel) super.clone();
92+
}
93+
94+
}

0 commit comments

Comments
 (0)