Skip to content

Commit ca258c0

Browse files
1 parent 4b07bac commit ca258c0

File tree

14 files changed

+716
-12
lines changed

14 files changed

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
* CWE stands for Common Weakness Enumeration. Information about this weakness, as described by
21+
* [CWE](https://cwe.mitre.org/).
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 Security Command Center API. 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 Cwe extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* The CWE identifier, e.g. CWE-94
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String id;
40+
41+
/**
42+
* Any reference to the details on the CWE, for example,
43+
* https://cwe.mitre.org/data/definitions/94.html
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.util.List<Reference> references;
48+
49+
/**
50+
* The CWE identifier, e.g. CWE-94
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.String getId() {
54+
return id;
55+
}
56+
57+
/**
58+
* The CWE identifier, e.g. CWE-94
59+
* @param id id or {@code null} for none
60+
*/
61+
public Cwe setId(java.lang.String id) {
62+
this.id = id;
63+
return this;
64+
}
65+
66+
/**
67+
* Any reference to the details on the CWE, for example,
68+
* https://cwe.mitre.org/data/definitions/94.html
69+
* @return value or {@code null} for none
70+
*/
71+
public java.util.List<Reference> getReferences() {
72+
return references;
73+
}
74+
75+
/**
76+
* Any reference to the details on the CWE, for example,
77+
* https://cwe.mitre.org/data/definitions/94.html
78+
* @param references references or {@code null} for none
79+
*/
80+
public Cwe setReferences(java.util.List<Reference> references) {
81+
this.references = references;
82+
return this;
83+
}
84+
85+
@Override
86+
public Cwe set(String fieldName, Object value) {
87+
return (Cwe) super.set(fieldName, value);
88+
}
89+
90+
@Override
91+
public Cwe clone() {
92+
return (Cwe) super.clone();
93+
}
94+
95+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
* CWE stands for Common Weakness Enumeration. Information about this weakness, as described by
21+
* [CWE](https://cwe.mitre.org/).
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 Security Command Center API. 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 GoogleCloudSecuritycenterV2Cwe extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* The CWE identifier, e.g. CWE-94
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String id;
40+
41+
/**
42+
* Any reference to the details on the CWE, for example,
43+
* https://cwe.mitre.org/data/definitions/94.html
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.util.List<GoogleCloudSecuritycenterV2Reference> references;
48+
49+
/**
50+
* The CWE identifier, e.g. CWE-94
51+
* @return value or {@code null} for none
52+
*/
53+
public java.lang.String getId() {
54+
return id;
55+
}
56+
57+
/**
58+
* The CWE identifier, e.g. CWE-94
59+
* @param id id or {@code null} for none
60+
*/
61+
public GoogleCloudSecuritycenterV2Cwe setId(java.lang.String id) {
62+
this.id = id;
63+
return this;
64+
}
65+
66+
/**
67+
* Any reference to the details on the CWE, for example,
68+
* https://cwe.mitre.org/data/definitions/94.html
69+
* @return value or {@code null} for none
70+
*/
71+
public java.util.List<GoogleCloudSecuritycenterV2Reference> getReferences() {
72+
return references;
73+
}
74+
75+
/**
76+
* Any reference to the details on the CWE, for example,
77+
* https://cwe.mitre.org/data/definitions/94.html
78+
* @param references references or {@code null} for none
79+
*/
80+
public GoogleCloudSecuritycenterV2Cwe setReferences(java.util.List<GoogleCloudSecuritycenterV2Reference> references) {
81+
this.references = references;
82+
return this;
83+
}
84+
85+
@Override
86+
public GoogleCloudSecuritycenterV2Cwe set(String fieldName, Object value) {
87+
return (GoogleCloudSecuritycenterV2Cwe) super.set(fieldName, value);
88+
}
89+
90+
@Override
91+
public GoogleCloudSecuritycenterV2Cwe clone() {
92+
return (GoogleCloudSecuritycenterV2Cwe) super.clone();
93+
}
94+
95+
}

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

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ public final class GoogleCloudSecuritycenterV2Vulnerability extends com.google.a
3737
@com.google.api.client.util.Key
3838
private GoogleCloudSecuritycenterV2Cve cve;
3939

40+
/**
41+
* Represents one or more Common Weakness Enumeration (CWE) information on this vulnerability.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<GoogleCloudSecuritycenterV2Cwe> cwes;
46+
47+
static {
48+
// hack to force ProGuard to consider GoogleCloudSecuritycenterV2Cwe used, since otherwise it would be stripped out
49+
// see https://github.com/google/google-api-java-client/issues/543
50+
com.google.api.client.util.Data.nullOf(GoogleCloudSecuritycenterV2Cwe.class);
51+
}
52+
4053
/**
4154
* The fixed package is relevant to the finding.
4255
* The value may be {@code null}.
@@ -51,6 +64,21 @@ public final class GoogleCloudSecuritycenterV2Vulnerability extends com.google.a
5164
@com.google.api.client.util.Key
5265
private GoogleCloudSecuritycenterV2Package offendingPackage;
5366

67+
/**
68+
* Provider provided risk_score based on multiple factors. The higher the risk score, the more
69+
* risky the vulnerability is.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
73+
private java.lang.Long providerRiskScore;
74+
75+
/**
76+
* Represents whether the vulnerability is reachable (detected via static analysis)
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private java.lang.Boolean reachable;
81+
5482
/**
5583
* The security bulletin is relevant to this finding.
5684
* The value may be {@code null}.
@@ -75,6 +103,23 @@ public GoogleCloudSecuritycenterV2Vulnerability setCve(GoogleCloudSecuritycenter
75103
return this;
76104
}
77105

106+
/**
107+
* Represents one or more Common Weakness Enumeration (CWE) information on this vulnerability.
108+
* @return value or {@code null} for none
109+
*/
110+
public java.util.List<GoogleCloudSecuritycenterV2Cwe> getCwes() {
111+
return cwes;
112+
}
113+
114+
/**
115+
* Represents one or more Common Weakness Enumeration (CWE) information on this vulnerability.
116+
* @param cwes cwes or {@code null} for none
117+
*/
118+
public GoogleCloudSecuritycenterV2Vulnerability setCwes(java.util.List<GoogleCloudSecuritycenterV2Cwe> cwes) {
119+
this.cwes = cwes;
120+
return this;
121+
}
122+
78123
/**
79124
* The fixed package is relevant to the finding.
80125
* @return value or {@code null} for none
@@ -109,6 +154,42 @@ public GoogleCloudSecuritycenterV2Vulnerability setOffendingPackage(GoogleCloudS
109154
return this;
110155
}
111156

157+
/**
158+
* Provider provided risk_score based on multiple factors. The higher the risk score, the more
159+
* risky the vulnerability is.
160+
* @return value or {@code null} for none
161+
*/
162+
public java.lang.Long getProviderRiskScore() {
163+
return providerRiskScore;
164+
}
165+
166+
/**
167+
* Provider provided risk_score based on multiple factors. The higher the risk score, the more
168+
* risky the vulnerability is.
169+
* @param providerRiskScore providerRiskScore or {@code null} for none
170+
*/
171+
public GoogleCloudSecuritycenterV2Vulnerability setProviderRiskScore(java.lang.Long providerRiskScore) {
172+
this.providerRiskScore = providerRiskScore;
173+
return this;
174+
}
175+
176+
/**
177+
* Represents whether the vulnerability is reachable (detected via static analysis)
178+
* @return value or {@code null} for none
179+
*/
180+
public java.lang.Boolean getReachable() {
181+
return reachable;
182+
}
183+
184+
/**
185+
* Represents whether the vulnerability is reachable (detected via static analysis)
186+
* @param reachable reachable or {@code null} for none
187+
*/
188+
public GoogleCloudSecuritycenterV2Vulnerability setReachable(java.lang.Boolean reachable) {
189+
this.reachable = reachable;
190+
return this;
191+
}
192+
112193
/**
113194
* The security bulletin is relevant to this finding.
114195
* @return value or {@code null} for none

0 commit comments

Comments
 (0)