Skip to content

Commit 9df2931

Browse files
1 parent efef77a commit 9df2931

File tree

14 files changed

+784
-12
lines changed

14 files changed

+784
-12
lines changed

clients/google-api-services-securitycenter/v1/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-securitycenter</artifactId>
25-
<version>v1-rev20241205-2.0.0</version>
25+
<version>v1-rev20241206-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-securitycenter:v1-rev20241205-2.0.0'
38+
implementation 'com.google.apis:google-api-services-securitycenter:v1-rev20241206-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
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.securitycenter.v1.model;
18+
19+
/**
20+
* Details about data retention deletion violations, in which the data is non-compliant based on
21+
* their retention or deletion time, as defined in the applicable data security policy. The Data
22+
* Retention Deletion (DRD) control is a control of the DSPM (Data Security Posture Management)
23+
* suite that enables organizations to manage data retention and deletion policies in compliance
24+
* with regulations, such as GDPR and CRPA. DRD supports two primary policy types: maximum storage
25+
* length (max TTL) and minimum storage length (min TTL). Both are aimed at helping organizations
26+
* meet regulatory and data management commitments.
27+
*
28+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
29+
* transmitted over HTTP when working with the Security Command Center API. For a detailed
30+
* explanation see:
31+
* <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>
32+
* </p>
33+
*
34+
* @author Google, Inc.
35+
*/
36+
@SuppressWarnings("javadoc")
37+
public final class DataRetentionDeletionEvent extends com.google.api.client.json.GenericJson {
38+
39+
/**
40+
* Number of objects that violated the policy for this resource. If the number is less than 1,000,
41+
* then the value of this field is the exact number. If the number of objects that violated the
42+
* policy is greater than or equal to 1,000, then the value of this field is 1000.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
46+
private java.lang.Long dataObjectCount;
47+
48+
/**
49+
* Timestamp indicating when the event was detected.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private String eventDetectionTime;
54+
55+
/**
56+
* Type of the DRD event.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String eventType;
61+
62+
/**
63+
* Maximum duration of retention allowed from the DRD control. This comes from the DRD control
64+
* where users set a max TTL for their data. For example, suppose that a user set the max TTL for
65+
* a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this
66+
* case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the
67+
* max_retention_allowed is 90 days.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private String maxRetentionAllowed;
72+
73+
/**
74+
* Number of objects that violated the policy for this resource. If the number is less than 1,000,
75+
* then the value of this field is the exact number. If the number of objects that violated the
76+
* policy is greater than or equal to 1,000, then the value of this field is 1000.
77+
* @return value or {@code null} for none
78+
*/
79+
public java.lang.Long getDataObjectCount() {
80+
return dataObjectCount;
81+
}
82+
83+
/**
84+
* Number of objects that violated the policy for this resource. If the number is less than 1,000,
85+
* then the value of this field is the exact number. If the number of objects that violated the
86+
* policy is greater than or equal to 1,000, then the value of this field is 1000.
87+
* @param dataObjectCount dataObjectCount or {@code null} for none
88+
*/
89+
public DataRetentionDeletionEvent setDataObjectCount(java.lang.Long dataObjectCount) {
90+
this.dataObjectCount = dataObjectCount;
91+
return this;
92+
}
93+
94+
/**
95+
* Timestamp indicating when the event was detected.
96+
* @return value or {@code null} for none
97+
*/
98+
public String getEventDetectionTime() {
99+
return eventDetectionTime;
100+
}
101+
102+
/**
103+
* Timestamp indicating when the event was detected.
104+
* @param eventDetectionTime eventDetectionTime or {@code null} for none
105+
*/
106+
public DataRetentionDeletionEvent setEventDetectionTime(String eventDetectionTime) {
107+
this.eventDetectionTime = eventDetectionTime;
108+
return this;
109+
}
110+
111+
/**
112+
* Type of the DRD event.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.lang.String getEventType() {
116+
return eventType;
117+
}
118+
119+
/**
120+
* Type of the DRD event.
121+
* @param eventType eventType or {@code null} for none
122+
*/
123+
public DataRetentionDeletionEvent setEventType(java.lang.String eventType) {
124+
this.eventType = eventType;
125+
return this;
126+
}
127+
128+
/**
129+
* Maximum duration of retention allowed from the DRD control. This comes from the DRD control
130+
* where users set a max TTL for their data. For example, suppose that a user set the max TTL for
131+
* a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this
132+
* case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the
133+
* max_retention_allowed is 90 days.
134+
* @return value or {@code null} for none
135+
*/
136+
public String getMaxRetentionAllowed() {
137+
return maxRetentionAllowed;
138+
}
139+
140+
/**
141+
* Maximum duration of retention allowed from the DRD control. This comes from the DRD control
142+
* where users set a max TTL for their data. For example, suppose that a user set the max TTL for
143+
* a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this
144+
* case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the
145+
* max_retention_allowed is 90 days.
146+
* @param maxRetentionAllowed maxRetentionAllowed or {@code null} for none
147+
*/
148+
public DataRetentionDeletionEvent setMaxRetentionAllowed(String maxRetentionAllowed) {
149+
this.maxRetentionAllowed = maxRetentionAllowed;
150+
return this;
151+
}
152+
153+
@Override
154+
public DataRetentionDeletionEvent set(String fieldName, Object value) {
155+
return (DataRetentionDeletionEvent) super.set(fieldName, value);
156+
}
157+
158+
@Override
159+
public DataRetentionDeletionEvent clone() {
160+
return (DataRetentionDeletionEvent) super.clone();
161+
}
162+
163+
}

clients/google-api-services-securitycenter/v1/2.0.0/com/google/api/services/securitycenter/v1/model/Finding.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,19 @@ public final class Finding extends com.google.api.client.json.GenericJson {
192192
com.google.api.client.util.Data.nullOf(DataFlowEvent.class);
193193
}
194194

195+
/**
196+
* Data retention deletion events associated with the finding.
197+
* The value may be {@code null}.
198+
*/
199+
@com.google.api.client.util.Key
200+
private java.util.List<DataRetentionDeletionEvent> dataRetentionDeletionEvents;
201+
202+
static {
203+
// hack to force ProGuard to consider DataRetentionDeletionEvent used, since otherwise it would be stripped out
204+
// see https://github.com/google/google-api-java-client/issues/543
205+
com.google.api.client.util.Data.nullOf(DataRetentionDeletionEvent.class);
206+
}
207+
195208
/**
196209
* Database associated with the finding.
197210
* The value may be {@code null}.
@@ -786,6 +799,23 @@ public Finding setDataFlowEvents(java.util.List<DataFlowEvent> dataFlowEvents) {
786799
return this;
787800
}
788801

802+
/**
803+
* Data retention deletion events associated with the finding.
804+
* @return value or {@code null} for none
805+
*/
806+
public java.util.List<DataRetentionDeletionEvent> getDataRetentionDeletionEvents() {
807+
return dataRetentionDeletionEvents;
808+
}
809+
810+
/**
811+
* Data retention deletion events associated with the finding.
812+
* @param dataRetentionDeletionEvents dataRetentionDeletionEvents or {@code null} for none
813+
*/
814+
public Finding setDataRetentionDeletionEvents(java.util.List<DataRetentionDeletionEvent> dataRetentionDeletionEvents) {
815+
this.dataRetentionDeletionEvents = dataRetentionDeletionEvents;
816+
return this;
817+
}
818+
789819
/**
790820
* Database associated with the finding.
791821
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
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.securitycenter.v1.model;
18+
19+
/**
20+
* Details about data retention deletion violations, in which the data is non-compliant based on
21+
* their retention or deletion time, as defined in the applicable data security policy. The Data
22+
* Retention Deletion (DRD) control is a control of the DSPM (Data Security Posture Management)
23+
* suite that enables organizations to manage data retention and deletion policies in compliance
24+
* with regulations, such as GDPR and CRPA. DRD supports two primary policy types: maximum storage
25+
* length (max TTL) and minimum storage length (min TTL). Both are aimed at helping organizations
26+
* meet regulatory and data management commitments.
27+
*
28+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
29+
* transmitted over HTTP when working with the Security Command Center API. For a detailed
30+
* explanation see:
31+
* <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>
32+
* </p>
33+
*
34+
* @author Google, Inc.
35+
*/
36+
@SuppressWarnings("javadoc")
37+
public final class GoogleCloudSecuritycenterV2DataRetentionDeletionEvent extends com.google.api.client.json.GenericJson {
38+
39+
/**
40+
* Number of objects that violated the policy for this resource. If the number is less than 1,000,
41+
* then the value of this field is the exact number. If the number of objects that violated the
42+
* policy is greater than or equal to 1,000, then the value of this field is 1000.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
46+
private java.lang.Long dataObjectCount;
47+
48+
/**
49+
* Timestamp indicating when the event was detected.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private String eventDetectionTime;
54+
55+
/**
56+
* Type of the DRD event.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String eventType;
61+
62+
/**
63+
* Maximum duration of retention allowed from the DRD control. This comes from the DRD control
64+
* where users set a max TTL for their data. For example, suppose that a user set the max TTL for
65+
* a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this
66+
* case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the
67+
* max_retention_allowed is 90 days.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private String maxRetentionAllowed;
72+
73+
/**
74+
* Number of objects that violated the policy for this resource. If the number is less than 1,000,
75+
* then the value of this field is the exact number. If the number of objects that violated the
76+
* policy is greater than or equal to 1,000, then the value of this field is 1000.
77+
* @return value or {@code null} for none
78+
*/
79+
public java.lang.Long getDataObjectCount() {
80+
return dataObjectCount;
81+
}
82+
83+
/**
84+
* Number of objects that violated the policy for this resource. If the number is less than 1,000,
85+
* then the value of this field is the exact number. If the number of objects that violated the
86+
* policy is greater than or equal to 1,000, then the value of this field is 1000.
87+
* @param dataObjectCount dataObjectCount or {@code null} for none
88+
*/
89+
public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent setDataObjectCount(java.lang.Long dataObjectCount) {
90+
this.dataObjectCount = dataObjectCount;
91+
return this;
92+
}
93+
94+
/**
95+
* Timestamp indicating when the event was detected.
96+
* @return value or {@code null} for none
97+
*/
98+
public String getEventDetectionTime() {
99+
return eventDetectionTime;
100+
}
101+
102+
/**
103+
* Timestamp indicating when the event was detected.
104+
* @param eventDetectionTime eventDetectionTime or {@code null} for none
105+
*/
106+
public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent setEventDetectionTime(String eventDetectionTime) {
107+
this.eventDetectionTime = eventDetectionTime;
108+
return this;
109+
}
110+
111+
/**
112+
* Type of the DRD event.
113+
* @return value or {@code null} for none
114+
*/
115+
public java.lang.String getEventType() {
116+
return eventType;
117+
}
118+
119+
/**
120+
* Type of the DRD event.
121+
* @param eventType eventType or {@code null} for none
122+
*/
123+
public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent setEventType(java.lang.String eventType) {
124+
this.eventType = eventType;
125+
return this;
126+
}
127+
128+
/**
129+
* Maximum duration of retention allowed from the DRD control. This comes from the DRD control
130+
* where users set a max TTL for their data. For example, suppose that a user set the max TTL for
131+
* a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this
132+
* case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the
133+
* max_retention_allowed is 90 days.
134+
* @return value or {@code null} for none
135+
*/
136+
public String getMaxRetentionAllowed() {
137+
return maxRetentionAllowed;
138+
}
139+
140+
/**
141+
* Maximum duration of retention allowed from the DRD control. This comes from the DRD control
142+
* where users set a max TTL for their data. For example, suppose that a user set the max TTL for
143+
* a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this
144+
* case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the
145+
* max_retention_allowed is 90 days.
146+
* @param maxRetentionAllowed maxRetentionAllowed or {@code null} for none
147+
*/
148+
public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent setMaxRetentionAllowed(String maxRetentionAllowed) {
149+
this.maxRetentionAllowed = maxRetentionAllowed;
150+
return this;
151+
}
152+
153+
@Override
154+
public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent set(String fieldName, Object value) {
155+
return (GoogleCloudSecuritycenterV2DataRetentionDeletionEvent) super.set(fieldName, value);
156+
}
157+
158+
@Override
159+
public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent clone() {
160+
return (GoogleCloudSecuritycenterV2DataRetentionDeletionEvent) super.clone();
161+
}
162+
163+
}

0 commit comments

Comments
 (0)