Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-ondemandscanning</artifactId>
<version>v1-rev20261009-2.9.2</version>
<version>v1-rev20261023-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-ondemandscanning:v1-rev20261009-2.9.2'
implementation 'com.google.apis:google-api-services-ondemandscanning:v1-rev20261023-2.9.2'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.ondemandscanning.v1.model;

/**
* Exploitability information for a vulnerability. This data can be used across multiple sources,
* including, but not limited to a top-level vulnerability, a package occurrence, or a package file
* location.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the On-Demand Scanning API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Exploitability extends com.google.api.client.json.GenericJson {

/**
* Individual exploitability signals from various sources.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<ExploitabilitySignal> signals;

/**
* Rollup summary of the exploitability signals.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ExploitabilitySummary summary;

/**
* Individual exploitability signals from various sources.
* @return value or {@code null} for none
*/
public java.util.List<ExploitabilitySignal> getSignals() {
return signals;
}

/**
* Individual exploitability signals from various sources.
* @param signals signals or {@code null} for none
*/
public Exploitability setSignals(java.util.List<ExploitabilitySignal> signals) {
this.signals = signals;
return this;
}

/**
* Rollup summary of the exploitability signals.
* @return value or {@code null} for none
*/
public ExploitabilitySummary getSummary() {
return summary;
}

/**
* Rollup summary of the exploitability signals.
* @param summary summary or {@code null} for none
*/
public Exploitability setSummary(ExploitabilitySummary summary) {
this.summary = summary;
return this;
}

@Override
public Exploitability set(String fieldName, Object value) {
return (Exploitability) super.set(fieldName, value);
}

@Override
public Exploitability clone() {
return (Exploitability) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.ondemandscanning.v1.model;

/**
* A single exploitability signal from a specific source (e.g., an upstream advisory, a customer VEX
* document, or an internal build analysis).
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the On-Demand Scanning API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ExploitabilitySignal extends com.google.api.client.json.GenericJson {

/**
* Human-readable explanation of this signal.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String rationale;

/**
* Identifier of the signal source.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String source;

/**
* Justification for why the vulnerability is not exploitable.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String vexJustification;

/**
* The VEX status asserted by this signal.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String vexStatus;

/**
* Human-readable explanation of this signal.
* @return value or {@code null} for none
*/
public java.lang.String getRationale() {
return rationale;
}

/**
* Human-readable explanation of this signal.
* @param rationale rationale or {@code null} for none
*/
public ExploitabilitySignal setRationale(java.lang.String rationale) {
this.rationale = rationale;
return this;
}

/**
* Identifier of the signal source.
* @return value or {@code null} for none
*/
public java.lang.String getSource() {
return source;
}

/**
* Identifier of the signal source.
* @param source source or {@code null} for none
*/
public ExploitabilitySignal setSource(java.lang.String source) {
this.source = source;
return this;
}

/**
* Justification for why the vulnerability is not exploitable.
* @return value or {@code null} for none
*/
public java.lang.String getVexJustification() {
return vexJustification;
}

/**
* Justification for why the vulnerability is not exploitable.
* @param vexJustification vexJustification or {@code null} for none
*/
public ExploitabilitySignal setVexJustification(java.lang.String vexJustification) {
this.vexJustification = vexJustification;
return this;
}

/**
* The VEX status asserted by this signal.
* @return value or {@code null} for none
*/
public java.lang.String getVexStatus() {
return vexStatus;
}

/**
* The VEX status asserted by this signal.
* @param vexStatus vexStatus or {@code null} for none
*/
public ExploitabilitySignal setVexStatus(java.lang.String vexStatus) {
this.vexStatus = vexStatus;
return this;
}

@Override
public ExploitabilitySignal set(String fieldName, Object value) {
return (ExploitabilitySignal) super.set(fieldName, value);
}

@Override
public ExploitabilitySignal clone() {
return (ExploitabilitySignal) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.ondemandscanning.v1.model;

/**
* Rollup summary of exploitability across signals.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the On-Demand Scanning API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ExploitabilitySummary extends com.google.api.client.json.GenericJson {

/**
* Human-readable explanation of the summary.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String rationale;

/**
* The rolled-up VEX status. Usually, this should result in an AFFECTED or NOT_AFFECTED vex
* status.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String vexStatus;

/**
* Human-readable explanation of the summary.
* @return value or {@code null} for none
*/
public java.lang.String getRationale() {
return rationale;
}

/**
* Human-readable explanation of the summary.
* @param rationale rationale or {@code null} for none
*/
public ExploitabilitySummary setRationale(java.lang.String rationale) {
this.rationale = rationale;
return this;
}

/**
* The rolled-up VEX status. Usually, this should result in an AFFECTED or NOT_AFFECTED vex
* status.
* @return value or {@code null} for none
*/
public java.lang.String getVexStatus() {
return vexStatus;
}

/**
* The rolled-up VEX status. Usually, this should result in an AFFECTED or NOT_AFFECTED vex
* status.
* @param vexStatus vexStatus or {@code null} for none
*/
public ExploitabilitySummary setVexStatus(java.lang.String vexStatus) {
this.vexStatus = vexStatus;
return this;
}

@Override
public ExploitabilitySummary set(String fieldName, Object value) {
return (ExploitabilitySummary) super.set(fieldName, value);
}

@Override
public ExploitabilitySummary clone() {
return (ExploitabilitySummary) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public final class PackageIssue extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String effectiveSeverity;

/**
* Output only. Exploitability signals and summary for this package issue.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Exploitability exploitability;

/**
* The location at which this package was found.
* The value may be {@code null}.
Expand Down Expand Up @@ -184,6 +191,23 @@ public PackageIssue setEffectiveSeverity(java.lang.String effectiveSeverity) {
return this;
}

/**
* Output only. Exploitability signals and summary for this package issue.
* @return value or {@code null} for none
*/
public Exploitability getExploitability() {
return exploitability;
}

/**
* Output only. Exploitability signals and summary for this package issue.
* @param exploitability exploitability or {@code null} for none
*/
public PackageIssue setExploitability(Exploitability exploitability) {
this.exploitability = exploitability;
return this;
}

/**
* The location at which this package was found.
* @return value or {@code null} for none
Expand Down
Loading
Loading