Skip to content

Commit 702fb63

Browse files
1 parent 85c9c43 commit 702fb63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2352
-18
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-rev20240720-2.0.0</version>
25+
<version>v1-rev20240806-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-rev20240720-2.0.0'
38+
implementation 'com.google.apis:google-api-services-securitycenter:v1-rev20240806-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ public final class BulkMuteFindingsRequest extends com.google.api.client.json.Ge
5454
@com.google.api.client.util.Key
5555
private java.lang.String muteAnnotation;
5656

57+
/**
58+
* Optional. All findings matching the given filter will have their mute state set to this value.
59+
* The default value is `MUTED`. Setting this to `UNDEFINED` will clear the mute state on all
60+
* matching findings.
61+
* The value may be {@code null}.
62+
*/
63+
@com.google.api.client.util.Key
64+
private java.lang.String muteState;
65+
5766
/**
5867
* Expression that identifies findings that should be updated. The expression is a list of zero or
5968
* more restrictions combined via logical operators `AND` and `OR`. Parentheses are supported, and
@@ -104,6 +113,27 @@ public BulkMuteFindingsRequest setMuteAnnotation(java.lang.String muteAnnotation
104113
return this;
105114
}
106115

116+
/**
117+
* Optional. All findings matching the given filter will have their mute state set to this value.
118+
* The default value is `MUTED`. Setting this to `UNDEFINED` will clear the mute state on all
119+
* matching findings.
120+
* @return value or {@code null} for none
121+
*/
122+
public java.lang.String getMuteState() {
123+
return muteState;
124+
}
125+
126+
/**
127+
* Optional. All findings matching the given filter will have their mute state set to this value.
128+
* The default value is `MUTED`. Setting this to `UNDEFINED` will clear the mute state on all
129+
* matching findings.
130+
* @param muteState muteState or {@code null} for none
131+
*/
132+
public BulkMuteFindingsRequest setMuteState(java.lang.String muteState) {
133+
this.muteState = muteState;
134+
return this;
135+
}
136+
107137
@Override
108138
public BulkMuteFindingsRequest set(String fieldName, Object value) {
109139
return (BulkMuteFindingsRequest) super.set(fieldName, value);

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ public final class Cve extends com.google.api.client.json.GenericJson {
3939
@com.google.api.client.util.Key
4040
private Cvssv3 cvssv3;
4141

42+
/**
43+
* Date the first publicly available exploit or PoC was released.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private String exploitReleaseDate;
48+
4249
/**
4350
* The exploitation activity of the vulnerability in the wild.
4451
* The value may be {@code null}.
@@ -108,6 +115,23 @@ public Cve setCvssv3(Cvssv3 cvssv3) {
108115
return this;
109116
}
110117

118+
/**
119+
* Date the first publicly available exploit or PoC was released.
120+
* @return value or {@code null} for none
121+
*/
122+
public String getExploitReleaseDate() {
123+
return exploitReleaseDate;
124+
}
125+
126+
/**
127+
* Date the first publicly available exploit or PoC was released.
128+
* @param exploitReleaseDate exploitReleaseDate or {@code null} for none
129+
*/
130+
public Cve setExploitReleaseDate(String exploitReleaseDate) {
131+
this.exploitReleaseDate = exploitReleaseDate;
132+
return this;
133+
}
134+
111135
/**
112136
* The exploitation activity of the vulnerability in the wild.
113137
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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+
* The record of a dynamic mute rule that matches the 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 Security Command Center API. 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 DynamicMuteRecord extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* When the dynamic mute rule first matched the finding.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private String matchTime;
39+
40+
/**
41+
* The relative resource name of the mute rule, represented by a mute config, that created this
42+
* record, for example `organizations/123/muteConfigs/mymuteconfig` or
43+
* `organizations/123/locations/global/muteConfigs/mymuteconfig`.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String muteConfig;
48+
49+
/**
50+
* When the dynamic mute rule first matched the finding.
51+
* @return value or {@code null} for none
52+
*/
53+
public String getMatchTime() {
54+
return matchTime;
55+
}
56+
57+
/**
58+
* When the dynamic mute rule first matched the finding.
59+
* @param matchTime matchTime or {@code null} for none
60+
*/
61+
public DynamicMuteRecord setMatchTime(String matchTime) {
62+
this.matchTime = matchTime;
63+
return this;
64+
}
65+
66+
/**
67+
* The relative resource name of the mute rule, represented by a mute config, that created this
68+
* record, for example `organizations/123/muteConfigs/mymuteconfig` or
69+
* `organizations/123/locations/global/muteConfigs/mymuteconfig`.
70+
* @return value or {@code null} for none
71+
*/
72+
public java.lang.String getMuteConfig() {
73+
return muteConfig;
74+
}
75+
76+
/**
77+
* The relative resource name of the mute rule, represented by a mute config, that created this
78+
* record, for example `organizations/123/muteConfigs/mymuteconfig` or
79+
* `organizations/123/locations/global/muteConfigs/mymuteconfig`.
80+
* @param muteConfig muteConfig or {@code null} for none
81+
*/
82+
public DynamicMuteRecord setMuteConfig(java.lang.String muteConfig) {
83+
this.muteConfig = muteConfig;
84+
return this;
85+
}
86+
87+
@Override
88+
public DynamicMuteRecord set(String fieldName, Object value) {
89+
return (DynamicMuteRecord) super.set(fieldName, value);
90+
}
91+
92+
@Override
93+
public DynamicMuteRecord clone() {
94+
return (DynamicMuteRecord) super.clone();
95+
}
96+
97+
}

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,13 @@ public final class Finding extends com.google.api.client.json.GenericJson {
312312
@com.google.api.client.util.Key
313313
private java.lang.String mute;
314314

315+
/**
316+
* Output only. The mute information regarding this finding.
317+
* The value may be {@code null}.
318+
*/
319+
@com.google.api.client.util.Key
320+
private MuteInfo muteInfo;
321+
315322
/**
316323
* Records additional information about the mute operation, for example, the [mute
317324
* configuration](/security-command-center/docs/how-to-mute-findings) that muted the finding and
@@ -1046,6 +1053,23 @@ public Finding setMute(java.lang.String mute) {
10461053
return this;
10471054
}
10481055

1056+
/**
1057+
* Output only. The mute information regarding this finding.
1058+
* @return value or {@code null} for none
1059+
*/
1060+
public MuteInfo getMuteInfo() {
1061+
return muteInfo;
1062+
}
1063+
1064+
/**
1065+
* Output only. The mute information regarding this finding.
1066+
* @param muteInfo muteInfo or {@code null} for none
1067+
*/
1068+
public Finding setMuteInfo(MuteInfo muteInfo) {
1069+
this.muteInfo = muteInfo;
1070+
return this;
1071+
}
1072+
10491073
/**
10501074
* Records additional information about the mute operation, for example, the [mute
10511075
* configuration](/security-command-center/docs/how-to-mute-findings) that muted the finding and

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

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ public final class GoogleCloudSecuritycenterV1MuteConfig extends com.google.api.
5353
@com.google.api.client.util.Key
5454
private java.lang.String displayName;
5555

56+
/**
57+
* Optional. The expiry of the mute config. Only applicable for dynamic configs. If the expiry is
58+
* set, when the config expires, it is removed from all findings.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private String expiryTime;
63+
5664
/**
5765
* Required. An expression that defines the filter to apply across create/update events of
5866
* findings. While creating a filter string, be mindful of the scope in which the mute
@@ -88,6 +96,15 @@ public final class GoogleCloudSecuritycenterV1MuteConfig extends com.google.api.
8896
@com.google.api.client.util.Key
8997
private java.lang.String name;
9098

99+
/**
100+
* Optional. The type of the mute config, which determines what type of mute state the config
101+
* affects. The static mute state takes precedence over the dynamic mute state. Immutable after
102+
* creation. STATIC by default if not set during creation.
103+
* The value may be {@code null}.
104+
*/
105+
@com.google.api.client.util.Key
106+
private java.lang.String type;
107+
91108
/**
92109
* Output only. The most recent time at which the mute config was updated. This field is set by
93110
* the server and will be ignored if provided on config creation or update.
@@ -149,6 +166,25 @@ public GoogleCloudSecuritycenterV1MuteConfig setDisplayName(java.lang.String dis
149166
return this;
150167
}
151168

169+
/**
170+
* Optional. The expiry of the mute config. Only applicable for dynamic configs. If the expiry is
171+
* set, when the config expires, it is removed from all findings.
172+
* @return value or {@code null} for none
173+
*/
174+
public String getExpiryTime() {
175+
return expiryTime;
176+
}
177+
178+
/**
179+
* Optional. The expiry of the mute config. Only applicable for dynamic configs. If the expiry is
180+
* set, when the config expires, it is removed from all findings.
181+
* @param expiryTime expiryTime or {@code null} for none
182+
*/
183+
public GoogleCloudSecuritycenterV1MuteConfig setExpiryTime(String expiryTime) {
184+
this.expiryTime = expiryTime;
185+
return this;
186+
}
187+
152188
/**
153189
* Required. An expression that defines the filter to apply across create/update events of
154190
* findings. While creating a filter string, be mindful of the scope in which the mute
@@ -228,6 +264,27 @@ public GoogleCloudSecuritycenterV1MuteConfig setName(java.lang.String name) {
228264
return this;
229265
}
230266

267+
/**
268+
* Optional. The type of the mute config, which determines what type of mute state the config
269+
* affects. The static mute state takes precedence over the dynamic mute state. Immutable after
270+
* creation. STATIC by default if not set during creation.
271+
* @return value or {@code null} for none
272+
*/
273+
public java.lang.String getType() {
274+
return type;
275+
}
276+
277+
/**
278+
* Optional. The type of the mute config, which determines what type of mute state the config
279+
* affects. The static mute state takes precedence over the dynamic mute state. Immutable after
280+
* creation. STATIC by default if not set during creation.
281+
* @param type type or {@code null} for none
282+
*/
283+
public GoogleCloudSecuritycenterV1MuteConfig setType(java.lang.String type) {
284+
this.type = type;
285+
return this;
286+
}
287+
231288
/**
232289
* Output only. The most recent time at which the mute config was updated. This field is set by
233290
* the server and will be ignored if provided on config creation or update.

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ public final class GoogleCloudSecuritycenterV2Cve extends com.google.api.client.
3939
@com.google.api.client.util.Key
4040
private GoogleCloudSecuritycenterV2Cvssv3 cvssv3;
4141

42+
/**
43+
* Date the first publicly available exploit or PoC was released.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private String exploitReleaseDate;
48+
4249
/**
4350
* The exploitation activity of the vulnerability in the wild.
4451
* The value may be {@code null}.
@@ -108,6 +115,23 @@ public GoogleCloudSecuritycenterV2Cve setCvssv3(GoogleCloudSecuritycenterV2Cvssv
108115
return this;
109116
}
110117

118+
/**
119+
* Date the first publicly available exploit or PoC was released.
120+
* @return value or {@code null} for none
121+
*/
122+
public String getExploitReleaseDate() {
123+
return exploitReleaseDate;
124+
}
125+
126+
/**
127+
* Date the first publicly available exploit or PoC was released.
128+
* @param exploitReleaseDate exploitReleaseDate or {@code null} for none
129+
*/
130+
public GoogleCloudSecuritycenterV2Cve setExploitReleaseDate(String exploitReleaseDate) {
131+
this.exploitReleaseDate = exploitReleaseDate;
132+
return this;
133+
}
134+
111135
/**
112136
* The exploitation activity of the vulnerability in the wild.
113137
* @return value or {@code null} for none

0 commit comments

Comments
 (0)