Skip to content

Commit 349ddb4

Browse files
1 parent b830c7a commit 349ddb4

File tree

9 files changed

+234
-12
lines changed

9 files changed

+234
-12
lines changed

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-rev20260129-2.0.0</version>
25+
<version>v2-rev20260228-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-rev20260129-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260228-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class GooglePrivacyDlpV2AdjustByMatchingInfoTypes extends com.googl
4545
private java.util.List<GooglePrivacyDlpV2InfoType> infoTypes;
4646

4747
/**
48-
* How the adjustment rule is applied. Only MATCHING_TYPE_PARTIAL_MATCH is supported: - Partial
48+
* How the adjustment rule is applied. Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: - Partial
4949
* match: adjusts the findings of infoTypes specified in the inspection rule when they have a
5050
* nonempty intersection with a finding of an infoType specified in this adjustment rule.
5151
* The value may be {@code null}.
@@ -94,7 +94,7 @@ public GooglePrivacyDlpV2AdjustByMatchingInfoTypes setInfoTypes(java.util.List<G
9494
}
9595

9696
/**
97-
* How the adjustment rule is applied. Only MATCHING_TYPE_PARTIAL_MATCH is supported: - Partial
97+
* How the adjustment rule is applied. Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: - Partial
9898
* match: adjusts the findings of infoTypes specified in the inspection rule when they have a
9999
* nonempty intersection with a finding of an infoType specified in this adjustment rule.
100100
* @return value or {@code null} for none
@@ -104,7 +104,7 @@ public java.lang.String getMatchingType() {
104104
}
105105

106106
/**
107-
* How the adjustment rule is applied. Only MATCHING_TYPE_PARTIAL_MATCH is supported: - Partial
107+
* How the adjustment rule is applied. Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: - Partial
108108
* match: adjusts the findings of infoTypes specified in the inspection rule when they have a
109109
* nonempty intersection with a finding of an infoType specified in this adjustment rule.
110110
* @param matchingType matchingType 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
@@ -76,6 +76,13 @@ public final class GooglePrivacyDlpV2CustomInfoType extends com.google.api.clien
7676
@com.google.api.client.util.Key
7777
private java.lang.String likelihood;
7878

79+
/**
80+
* key-value pairs to detect in the metadata.
81+
* The value may be {@code null}.
82+
*/
83+
@com.google.api.client.util.Key
84+
private GooglePrivacyDlpV2MetadataKeyValueExpression metadataKeyValueExpression;
85+
7986
/**
8087
* Regular expression based CustomInfoType.
8188
* The value may be {@code null}.
@@ -211,6 +218,23 @@ public GooglePrivacyDlpV2CustomInfoType setLikelihood(java.lang.String likelihoo
211218
return this;
212219
}
213220

221+
/**
222+
* key-value pairs to detect in the metadata.
223+
* @return value or {@code null} for none
224+
*/
225+
public GooglePrivacyDlpV2MetadataKeyValueExpression getMetadataKeyValueExpression() {
226+
return metadataKeyValueExpression;
227+
}
228+
229+
/**
230+
* key-value pairs to detect in the metadata.
231+
* @param metadataKeyValueExpression metadataKeyValueExpression or {@code null} for none
232+
*/
233+
public GooglePrivacyDlpV2CustomInfoType setMetadataKeyValueExpression(GooglePrivacyDlpV2MetadataKeyValueExpression metadataKeyValueExpression) {
234+
this.metadataKeyValueExpression = metadataKeyValueExpression;
235+
return this;
236+
}
237+
214238
/**
215239
* Regular expression based CustomInfoType.
216240
* @return value or {@code null} for none

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public final class GooglePrivacyDlpV2InspectConfig extends com.google.api.client
127127
/**
128128
* Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the
129129
* set are executed in the end, other rules are executed in the order they are specified for each
130-
* info type.
130+
* info type. Not supported for the `metadata_key_value_expression` CustomInfoType.
131131
* The value may be {@code null}.
132132
*/
133133
@com.google.api.client.util.Key
@@ -310,7 +310,7 @@ public GooglePrivacyDlpV2InspectConfig setMinLikelihoodPerInfoType(java.util.Lis
310310
/**
311311
* Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the
312312
* set are executed in the end, other rules are executed in the order they are specified for each
313-
* info type.
313+
* info type. Not supported for the `metadata_key_value_expression` CustomInfoType.
314314
* @return value or {@code null} for none
315315
*/
316316
public java.util.List<GooglePrivacyDlpV2InspectionRuleSet> getRuleSet() {
@@ -320,7 +320,7 @@ public java.util.List<GooglePrivacyDlpV2InspectionRuleSet> getRuleSet() {
320320
/**
321321
* Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the
322322
* set are executed in the end, other rules are executed in the order they are specified for each
323-
* info type.
323+
* info type. Not supported for the `metadata_key_value_expression` CustomInfoType.
324324
* @param ruleSet ruleSet or {@code null} for none
325325
*/
326326
public GooglePrivacyDlpV2InspectConfig setRuleSet(java.util.List<GooglePrivacyDlpV2InspectionRuleSet> ruleSet) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
* The metadata key that contains a finding.
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 GooglePrivacyDlpV2KeyValueMetadataLabel extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The metadata key. The format depends on the source of the metadata. Examples: - Microsoft
35+
* Purview Information Protection keys look like
36+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled',
37+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Method',
38+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Name'. - General metadata keys look like
39+
* 'Author', 'Title', 'Description'.
40+
* The value may be {@code null}.
41+
*/
42+
@com.google.api.client.util.Key
43+
private java.lang.String key;
44+
45+
/**
46+
* The metadata key. The format depends on the source of the metadata. Examples: - Microsoft
47+
* Purview Information Protection keys look like
48+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled',
49+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Method',
50+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Name'. - General metadata keys look like
51+
* 'Author', 'Title', 'Description'.
52+
* @return value or {@code null} for none
53+
*/
54+
public java.lang.String getKey() {
55+
return key;
56+
}
57+
58+
/**
59+
* The metadata key. The format depends on the source of the metadata. Examples: - Microsoft
60+
* Purview Information Protection keys look like
61+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled',
62+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Method',
63+
* 'MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Name'. - General metadata keys look like
64+
* 'Author', 'Title', 'Description'.
65+
* @param key key or {@code null} for none
66+
*/
67+
public GooglePrivacyDlpV2KeyValueMetadataLabel setKey(java.lang.String key) {
68+
this.key = key;
69+
return this;
70+
}
71+
72+
@Override
73+
public GooglePrivacyDlpV2KeyValueMetadataLabel set(String fieldName, Object value) {
74+
return (GooglePrivacyDlpV2KeyValueMetadataLabel) super.set(fieldName, value);
75+
}
76+
77+
@Override
78+
public GooglePrivacyDlpV2KeyValueMetadataLabel clone() {
79+
return (GooglePrivacyDlpV2KeyValueMetadataLabel) super.clone();
80+
}
81+
82+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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 given expression of key-value pair in the
21+
* metadata.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
25+
* explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GooglePrivacyDlpV2MetadataKeyValueExpression extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* The regular expression for the key. Key should be non-empty.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String keyRegex;
40+
41+
/**
42+
* The regular expression for the value. Value should be non-empty.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String valueRegex;
47+
48+
/**
49+
* The regular expression for the key. Key should be non-empty.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getKeyRegex() {
53+
return keyRegex;
54+
}
55+
56+
/**
57+
* The regular expression for the key. Key should be non-empty.
58+
* @param keyRegex keyRegex or {@code null} for none
59+
*/
60+
public GooglePrivacyDlpV2MetadataKeyValueExpression setKeyRegex(java.lang.String keyRegex) {
61+
this.keyRegex = keyRegex;
62+
return this;
63+
}
64+
65+
/**
66+
* The regular expression for the value. Value should be non-empty.
67+
* @return value or {@code null} for none
68+
*/
69+
public java.lang.String getValueRegex() {
70+
return valueRegex;
71+
}
72+
73+
/**
74+
* The regular expression for the value. Value should be non-empty.
75+
* @param valueRegex valueRegex or {@code null} for none
76+
*/
77+
public GooglePrivacyDlpV2MetadataKeyValueExpression setValueRegex(java.lang.String valueRegex) {
78+
this.valueRegex = valueRegex;
79+
return this;
80+
}
81+
82+
@Override
83+
public GooglePrivacyDlpV2MetadataKeyValueExpression set(String fieldName, Object value) {
84+
return (GooglePrivacyDlpV2MetadataKeyValueExpression) super.set(fieldName, value);
85+
}
86+
87+
@Override
88+
public GooglePrivacyDlpV2MetadataKeyValueExpression clone() {
89+
return (GooglePrivacyDlpV2MetadataKeyValueExpression) super.clone();
90+
}
91+
92+
}

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

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

33+
/**
34+
* Metadata key that contains the finding.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private GooglePrivacyDlpV2KeyValueMetadataLabel keyValueMetadataLabel;
39+
3340
/**
3441
* Storage metadata.
3542
* The value may be {@code null}.
@@ -44,6 +51,23 @@ public final class GooglePrivacyDlpV2MetadataLocation extends com.google.api.cli
4451
@com.google.api.client.util.Key
4552
private java.lang.String type;
4653

54+
/**
55+
* Metadata key that contains the finding.
56+
* @return value or {@code null} for none
57+
*/
58+
public GooglePrivacyDlpV2KeyValueMetadataLabel getKeyValueMetadataLabel() {
59+
return keyValueMetadataLabel;
60+
}
61+
62+
/**
63+
* Metadata key that contains the finding.
64+
* @param keyValueMetadataLabel keyValueMetadataLabel or {@code null} for none
65+
*/
66+
public GooglePrivacyDlpV2MetadataLocation setKeyValueMetadataLabel(GooglePrivacyDlpV2KeyValueMetadataLabel keyValueMetadataLabel) {
67+
this.keyValueMetadataLabel = keyValueMetadataLabel;
68+
return this;
69+
}
70+
4771
/**
4872
* Storage metadata.
4973
* @return value or {@code null} for none

clients/google-api-services-dlp/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-dlp</artifactId>
11-
<version>v2-rev20260129-2.0.0</version>
12-
<name>Sensitive Data Protection (DLP) v2-rev20260129-2.0.0</name>
11+
<version>v2-rev20260228-2.0.0</version>
12+
<name>Sensitive Data Protection (DLP) v2-rev20260228-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-dlp/v2/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-rev20260129-2.0.0</version>
25+
<version>v2-rev20260228-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-rev20260129-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dlp:v2-rev20260228-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)