Skip to content

Commit eb16079

Browse files
1 parent f07cb69 commit eb16079

22 files changed

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

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

Lines changed: 96 additions & 96 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
* Match discovery resources not covered by any other filter.
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 GooglePrivacyDlpV2AllOtherResources extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public GooglePrivacyDlpV2AllOtherResources set(String fieldName, Object value) {
35+
return (GooglePrivacyDlpV2AllOtherResources) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public GooglePrivacyDlpV2AllOtherResources clone() {
40+
return (GooglePrivacyDlpV2AllOtherResources) super.clone();
41+
}
42+
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
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+
* Target used to match against for discovery with Cloud Storage buckets.
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 GooglePrivacyDlpV2CloudStorageDiscoveryTarget extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. In addition to matching the filter, these conditions must be true before a profile is
35+
* generated.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private GooglePrivacyDlpV2DiscoveryFileStoreConditions conditions;
40+
41+
/**
42+
* Optional. Disable profiling for buckets that match this filter.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private GooglePrivacyDlpV2Disabled disabled;
47+
48+
/**
49+
* Required. The buckets the generation_cadence applies to. The first target with a matching
50+
* filter will be the one to apply to a bucket.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private GooglePrivacyDlpV2DiscoveryCloudStorageFilter filter;
55+
56+
/**
57+
* Optional. How often and when to update profiles. New buckets that match both the filter and
58+
* conditions are scanned as quickly as possible depending on system capacity.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence generationCadence;
63+
64+
/**
65+
* Optional. In addition to matching the filter, these conditions must be true before a profile is
66+
* generated.
67+
* @return value or {@code null} for none
68+
*/
69+
public GooglePrivacyDlpV2DiscoveryFileStoreConditions getConditions() {
70+
return conditions;
71+
}
72+
73+
/**
74+
* Optional. In addition to matching the filter, these conditions must be true before a profile is
75+
* generated.
76+
* @param conditions conditions or {@code null} for none
77+
*/
78+
public GooglePrivacyDlpV2CloudStorageDiscoveryTarget setConditions(GooglePrivacyDlpV2DiscoveryFileStoreConditions conditions) {
79+
this.conditions = conditions;
80+
return this;
81+
}
82+
83+
/**
84+
* Optional. Disable profiling for buckets that match this filter.
85+
* @return value or {@code null} for none
86+
*/
87+
public GooglePrivacyDlpV2Disabled getDisabled() {
88+
return disabled;
89+
}
90+
91+
/**
92+
* Optional. Disable profiling for buckets that match this filter.
93+
* @param disabled disabled or {@code null} for none
94+
*/
95+
public GooglePrivacyDlpV2CloudStorageDiscoveryTarget setDisabled(GooglePrivacyDlpV2Disabled disabled) {
96+
this.disabled = disabled;
97+
return this;
98+
}
99+
100+
/**
101+
* Required. The buckets the generation_cadence applies to. The first target with a matching
102+
* filter will be the one to apply to a bucket.
103+
* @return value or {@code null} for none
104+
*/
105+
public GooglePrivacyDlpV2DiscoveryCloudStorageFilter getFilter() {
106+
return filter;
107+
}
108+
109+
/**
110+
* Required. The buckets the generation_cadence applies to. The first target with a matching
111+
* filter will be the one to apply to a bucket.
112+
* @param filter filter or {@code null} for none
113+
*/
114+
public GooglePrivacyDlpV2CloudStorageDiscoveryTarget setFilter(GooglePrivacyDlpV2DiscoveryCloudStorageFilter filter) {
115+
this.filter = filter;
116+
return this;
117+
}
118+
119+
/**
120+
* Optional. How often and when to update profiles. New buckets that match both the filter and
121+
* conditions are scanned as quickly as possible depending on system capacity.
122+
* @return value or {@code null} for none
123+
*/
124+
public GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence getGenerationCadence() {
125+
return generationCadence;
126+
}
127+
128+
/**
129+
* Optional. How often and when to update profiles. New buckets that match both the filter and
130+
* conditions are scanned as quickly as possible depending on system capacity.
131+
* @param generationCadence generationCadence or {@code null} for none
132+
*/
133+
public GooglePrivacyDlpV2CloudStorageDiscoveryTarget setGenerationCadence(GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence generationCadence) {
134+
this.generationCadence = generationCadence;
135+
return this;
136+
}
137+
138+
@Override
139+
public GooglePrivacyDlpV2CloudStorageDiscoveryTarget set(String fieldName, Object value) {
140+
return (GooglePrivacyDlpV2CloudStorageDiscoveryTarget) super.set(fieldName, value);
141+
}
142+
143+
@Override
144+
public GooglePrivacyDlpV2CloudStorageDiscoveryTarget clone() {
145+
return (GooglePrivacyDlpV2CloudStorageDiscoveryTarget) super.clone();
146+
}
147+
148+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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+
* A pattern to match against one or more file stores. At least one pattern must be specified.
21+
* Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be
22+
* found under the google/re2 repository on GitHub.
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Sensitive Data Protection (DLP). For a detailed
26+
* explanation see:
27+
* <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>
28+
* </p>
29+
*
30+
* @author Google, Inc.
31+
*/
32+
@SuppressWarnings("javadoc")
33+
public final class GooglePrivacyDlpV2CloudStorageRegex extends com.google.api.client.json.GenericJson {
34+
35+
/**
36+
* Optional. Regex to test the bucket name against. If empty, all buckets match. Example:
37+
* "marketing2021" or "(marketing)\d{4}" will both match the bucket gs://marketing2021
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private java.lang.String bucketNameRegex;
42+
43+
/**
44+
* Optional. For organizations, if unset, will match all projects.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String projectIdRegex;
49+
50+
/**
51+
* Optional. Regex to test the bucket name against. If empty, all buckets match. Example:
52+
* "marketing2021" or "(marketing)\d{4}" will both match the bucket gs://marketing2021
53+
* @return value or {@code null} for none
54+
*/
55+
public java.lang.String getBucketNameRegex() {
56+
return bucketNameRegex;
57+
}
58+
59+
/**
60+
* Optional. Regex to test the bucket name against. If empty, all buckets match. Example:
61+
* "marketing2021" or "(marketing)\d{4}" will both match the bucket gs://marketing2021
62+
* @param bucketNameRegex bucketNameRegex or {@code null} for none
63+
*/
64+
public GooglePrivacyDlpV2CloudStorageRegex setBucketNameRegex(java.lang.String bucketNameRegex) {
65+
this.bucketNameRegex = bucketNameRegex;
66+
return this;
67+
}
68+
69+
/**
70+
* Optional. For organizations, if unset, will match all projects.
71+
* @return value or {@code null} for none
72+
*/
73+
public java.lang.String getProjectIdRegex() {
74+
return projectIdRegex;
75+
}
76+
77+
/**
78+
* Optional. For organizations, if unset, will match all projects.
79+
* @param projectIdRegex projectIdRegex or {@code null} for none
80+
*/
81+
public GooglePrivacyDlpV2CloudStorageRegex setProjectIdRegex(java.lang.String projectIdRegex) {
82+
this.projectIdRegex = projectIdRegex;
83+
return this;
84+
}
85+
86+
@Override
87+
public GooglePrivacyDlpV2CloudStorageRegex set(String fieldName, Object value) {
88+
return (GooglePrivacyDlpV2CloudStorageRegex) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public GooglePrivacyDlpV2CloudStorageRegex clone() {
93+
return (GooglePrivacyDlpV2CloudStorageRegex) super.clone();
94+
}
95+
96+
}
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+
* Identifies a single Cloud Storage bucket.
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 GooglePrivacyDlpV2CloudStorageResourceReference extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The bucket to scan.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String bucketName;
39+
40+
/**
41+
* Required. If within a project-level config, then this must match the config's project id.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String projectId;
46+
47+
/**
48+
* Required. The bucket to scan.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getBucketName() {
52+
return bucketName;
53+
}
54+
55+
/**
56+
* Required. The bucket to scan.
57+
* @param bucketName bucketName or {@code null} for none
58+
*/
59+
public GooglePrivacyDlpV2CloudStorageResourceReference setBucketName(java.lang.String bucketName) {
60+
this.bucketName = bucketName;
61+
return this;
62+
}
63+
64+
/**
65+
* Required. If within a project-level config, then this must match the config's project id.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.lang.String getProjectId() {
69+
return projectId;
70+
}
71+
72+
/**
73+
* Required. If within a project-level config, then this must match the config's project id.
74+
* @param projectId projectId or {@code null} for none
75+
*/
76+
public GooglePrivacyDlpV2CloudStorageResourceReference setProjectId(java.lang.String projectId) {
77+
this.projectId = projectId;
78+
return this;
79+
}
80+
81+
@Override
82+
public GooglePrivacyDlpV2CloudStorageResourceReference set(String fieldName, Object value) {
83+
return (GooglePrivacyDlpV2CloudStorageResourceReference) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GooglePrivacyDlpV2CloudStorageResourceReference clone() {
88+
return (GooglePrivacyDlpV2CloudStorageResourceReference) super.clone();
89+
}
90+
91+
}

0 commit comments

Comments
 (0)