Skip to content

Commit 10af7b9

Browse files
1 parent 1f97e3d commit 10af7b9

File tree

12 files changed

+584
-14
lines changed

12 files changed

+584
-14
lines changed

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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.ondemandscanning.v1.model;
18+
19+
/**
20+
* BaseImage describes a base image of a container image.
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 On-Demand Scanning API. For a detailed explanation
24+
* 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 BaseImage extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The name of the base image.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String name;
39+
40+
/**
41+
* The number of layers that the base image is composed of.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String numLayers;
46+
47+
/**
48+
* The repository name in which the base image is from.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String repository;
53+
54+
/**
55+
* The name of the base image.
56+
* @return value or {@code null} for none
57+
*/
58+
public java.lang.String getName() {
59+
return name;
60+
}
61+
62+
/**
63+
* The name of the base image.
64+
* @param name name or {@code null} for none
65+
*/
66+
public BaseImage setName(java.lang.String name) {
67+
this.name = name;
68+
return this;
69+
}
70+
71+
/**
72+
* The number of layers that the base image is composed of.
73+
* @return value or {@code null} for none
74+
*/
75+
public java.lang.String getNumLayers() {
76+
return numLayers;
77+
}
78+
79+
/**
80+
* The number of layers that the base image is composed of.
81+
* @param numLayers numLayers or {@code null} for none
82+
*/
83+
public BaseImage setNumLayers(java.lang.String numLayers) {
84+
this.numLayers = numLayers;
85+
return this;
86+
}
87+
88+
/**
89+
* The repository name in which the base image is from.
90+
* @return value or {@code null} for none
91+
*/
92+
public java.lang.String getRepository() {
93+
return repository;
94+
}
95+
96+
/**
97+
* The repository name in which the base image is from.
98+
* @param repository repository or {@code null} for none
99+
*/
100+
public BaseImage setRepository(java.lang.String repository) {
101+
this.repository = repository;
102+
return this;
103+
}
104+
105+
@Override
106+
public BaseImage set(String fieldName, Object value) {
107+
return (BaseImage) super.set(fieldName, value);
108+
}
109+
110+
@Override
111+
public BaseImage clone() {
112+
return (BaseImage) super.clone();
113+
}
114+
115+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
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.ondemandscanning.v1.model;
18+
19+
/**
20+
* Details about the layer a package was found in. This should be the same as the LayerDetails
21+
* message in google3/third_party/scalibr/binary/proto/scan_result.proto.
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 On-Demand Scanning API. For a detailed explanation
25+
* 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 LayerDetails extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* The base images the layer is found within.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.List<BaseImage> baseImages;
40+
41+
static {
42+
// hack to force ProGuard to consider BaseImage used, since otherwise it would be stripped out
43+
// see https://github.com/google/google-api-java-client/issues/543
44+
com.google.api.client.util.Data.nullOf(BaseImage.class);
45+
}
46+
47+
/**
48+
* The layer build command that was used to build the layer. This may not be found in all layers
49+
* depending on how the container image is built.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String command;
54+
55+
/**
56+
* The diff ID (sha256 hash) of the layer in the container image.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String diffId;
61+
62+
/**
63+
* The index of the layer in the container image.
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private java.lang.Integer index;
68+
69+
/**
70+
* The base images the layer is found within.
71+
* @return value or {@code null} for none
72+
*/
73+
public java.util.List<BaseImage> getBaseImages() {
74+
return baseImages;
75+
}
76+
77+
/**
78+
* The base images the layer is found within.
79+
* @param baseImages baseImages or {@code null} for none
80+
*/
81+
public LayerDetails setBaseImages(java.util.List<BaseImage> baseImages) {
82+
this.baseImages = baseImages;
83+
return this;
84+
}
85+
86+
/**
87+
* The layer build command that was used to build the layer. This may not be found in all layers
88+
* depending on how the container image is built.
89+
* @return value or {@code null} for none
90+
*/
91+
public java.lang.String getCommand() {
92+
return command;
93+
}
94+
95+
/**
96+
* The layer build command that was used to build the layer. This may not be found in all layers
97+
* depending on how the container image is built.
98+
* @param command command or {@code null} for none
99+
*/
100+
public LayerDetails setCommand(java.lang.String command) {
101+
this.command = command;
102+
return this;
103+
}
104+
105+
/**
106+
* The diff ID (sha256 hash) of the layer in the container image.
107+
* @return value or {@code null} for none
108+
*/
109+
public java.lang.String getDiffId() {
110+
return diffId;
111+
}
112+
113+
/**
114+
* The diff ID (sha256 hash) of the layer in the container image.
115+
* @param diffId diffId or {@code null} for none
116+
*/
117+
public LayerDetails setDiffId(java.lang.String diffId) {
118+
this.diffId = diffId;
119+
return this;
120+
}
121+
122+
/**
123+
* The index of the layer in the container image.
124+
* @return value or {@code null} for none
125+
*/
126+
public java.lang.Integer getIndex() {
127+
return index;
128+
}
129+
130+
/**
131+
* The index of the layer in the container image.
132+
* @param index index or {@code null} for none
133+
*/
134+
public LayerDetails setIndex(java.lang.Integer index) {
135+
this.index = index;
136+
return this;
137+
}
138+
139+
@Override
140+
public LayerDetails set(String fieldName, Object value) {
141+
return (LayerDetails) super.set(fieldName, value);
142+
}
143+
144+
@Override
145+
public LayerDetails clone() {
146+
return (LayerDetails) super.clone();
147+
}
148+
149+
}

clients/google-api-services-ondemandscanning/v1/2.0.0/com/google/api/services/ondemandscanning/v1/model/PackageData.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ public final class PackageData extends com.google.api.client.json.GenericJson {
101101
@com.google.api.client.util.Key
102102
private java.lang.String hashDigest;
103103

104+
/**
105+
* The value may be {@code null}.
106+
*/
107+
@com.google.api.client.util.Key
108+
private LayerDetails layerDetails;
109+
104110
/**
105111
* The list of licenses found that are related to a given package. Note that licenses may also be
106112
* stored on the BinarySourceInfo. If there is no BinarySourceInfo (because there's no concept of
@@ -300,6 +306,21 @@ public PackageData setHashDigest(java.lang.String hashDigest) {
300306
return this;
301307
}
302308

309+
/**
310+
* @return value or {@code null} for none
311+
*/
312+
public LayerDetails getLayerDetails() {
313+
return layerDetails;
314+
}
315+
316+
/**
317+
* @param layerDetails layerDetails or {@code null} for none
318+
*/
319+
public PackageData setLayerDetails(LayerDetails layerDetails) {
320+
this.layerDetails = layerDetails;
321+
return this;
322+
}
323+
303324
/**
304325
* The list of licenses found that are related to a given package. Note that licenses may also be
305326
* stored on the BinarySourceInfo. If there is no BinarySourceInfo (because there's no concept of

clients/google-api-services-ondemandscanning/v1/2.0.0/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-ondemandscanning</artifactId>
11-
<version>v1-rev20241209-2.0.0</version>
12-
<name>On-Demand Scanning API v1-rev20241209-2.0.0</name>
11+
<version>v1-rev20250210-2.0.0</version>
12+
<name>On-Demand Scanning API v1-rev20250210-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>
@@ -90,7 +90,7 @@
9090
<windowtitle>On-Demand Scanning API ${project.version}</windowtitle>
9191
<links>
9292
<link>http://docs.oracle.com/javase/7/docs/api</link>
93-
<link>https://googleapis.dev/java/google-http-client/1.45.3/</link>
93+
<link>https://googleapis.dev/java/google-http-client/1.46.1/</link>
9494
<link>https://googleapis.dev/java/google-oauth-client/1.37.0/</link>
9595
<link>https://googleapis.dev/java/google-api-client/2.7.2/</link>
9696
</links>

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

clients/google-api-services-ondemandscanning/v1beta1/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-ondemandscanning</artifactId>
25-
<version>v1beta1-rev20241209-2.0.0</version>
25+
<version>v1beta1-rev20250210-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-ondemandscanning:v1beta1-rev20241209-2.0.0'
38+
implementation 'com.google.apis:google-api-services-ondemandscanning:v1beta1-rev20250210-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)