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-containeranalysis</artifactId>
<version>v1-rev20260918-2.0.0</version>
<version>v1-rev20260929-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-containeranalysis:v1-rev20260918-2.0.0'
implementation 'com.google.apis:google-api-services-containeranalysis:v1-rev20260929-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
/*
* 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.containeranalysis.v1.model;

/**
* Aggregated/summary metrics over the entire build lifecycle.
*
* <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 Container Analysis 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 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage extends com.google.api.client.json.GenericJson {

/**
* Output only. The average CPU utilization ratio across all vCPUs over the duration of the build,
* expressed as a fraction in the range [0.0, 1.0].
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Float averageCpuUtilization;

/**
* Output only. The average memory utilization ratio over the duration of the build, expressed as
* a fraction in the range [0.0, 1.0].
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Float averageMemoryUtilization;

/**
* Output only. The highest CPU utilization ratio across all vCPUs observed over the duration of
* the build, expressed as a fraction in the range [0.0, 1.0].
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Float peakCpuUtilization;

/**
* Output only. The highest memory utilization ratio observed over the duration of the build,
* expressed as a fraction in the range [0.0, 1.0].
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Float peakMemoryUtilization;

/**
* Output only. Total CPU execution time consumed across all cores during build execution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String totalCpuDuration;

/**
* Output only. The average CPU utilization ratio across all vCPUs over the duration of the build,
* expressed as a fraction in the range [0.0, 1.0].
* @return value or {@code null} for none
*/
public java.lang.Float getAverageCpuUtilization() {
return averageCpuUtilization;
}

/**
* Output only. The average CPU utilization ratio across all vCPUs over the duration of the build,
* expressed as a fraction in the range [0.0, 1.0].
* @param averageCpuUtilization averageCpuUtilization or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setAverageCpuUtilization(java.lang.Float averageCpuUtilization) {
this.averageCpuUtilization = averageCpuUtilization;
return this;
}

/**
* Output only. The average memory utilization ratio over the duration of the build, expressed as
* a fraction in the range [0.0, 1.0].
* @return value or {@code null} for none
*/
public java.lang.Float getAverageMemoryUtilization() {
return averageMemoryUtilization;
}

/**
* Output only. The average memory utilization ratio over the duration of the build, expressed as
* a fraction in the range [0.0, 1.0].
* @param averageMemoryUtilization averageMemoryUtilization or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setAverageMemoryUtilization(java.lang.Float averageMemoryUtilization) {
this.averageMemoryUtilization = averageMemoryUtilization;
return this;
}

/**
* Output only. The highest CPU utilization ratio across all vCPUs observed over the duration of
* the build, expressed as a fraction in the range [0.0, 1.0].
* @return value or {@code null} for none
*/
public java.lang.Float getPeakCpuUtilization() {
return peakCpuUtilization;
}

/**
* Output only. The highest CPU utilization ratio across all vCPUs observed over the duration of
* the build, expressed as a fraction in the range [0.0, 1.0].
* @param peakCpuUtilization peakCpuUtilization or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setPeakCpuUtilization(java.lang.Float peakCpuUtilization) {
this.peakCpuUtilization = peakCpuUtilization;
return this;
}

/**
* Output only. The highest memory utilization ratio observed over the duration of the build,
* expressed as a fraction in the range [0.0, 1.0].
* @return value or {@code null} for none
*/
public java.lang.Float getPeakMemoryUtilization() {
return peakMemoryUtilization;
}

/**
* Output only. The highest memory utilization ratio observed over the duration of the build,
* expressed as a fraction in the range [0.0, 1.0].
* @param peakMemoryUtilization peakMemoryUtilization or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setPeakMemoryUtilization(java.lang.Float peakMemoryUtilization) {
this.peakMemoryUtilization = peakMemoryUtilization;
return this;
}

/**
* Output only. Total CPU execution time consumed across all cores during build execution.
* @return value or {@code null} for none
*/
public String getTotalCpuDuration() {
return totalCpuDuration;
}

/**
* Output only. Total CPU execution time consumed across all cores during build execution.
* @param totalCpuDuration totalCpuDuration or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage setTotalCpuDuration(String totalCpuDuration) {
this.totalCpuDuration = totalCpuDuration;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ public final class ContaineranalysisGoogleDevtoolsCloudbuildV1Results extends co
@com.google.api.client.util.Key
private java.util.List<ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage> pythonPackages;

/**
* Output only. Aggregated metrics for the build.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage resourceUsage;

/**
* Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only
* populated when artifacts are uploaded to Cloud Storage.
Expand Down Expand Up @@ -345,6 +352,23 @@ public ContaineranalysisGoogleDevtoolsCloudbuildV1Results setPythonPackages(java
return this;
}

/**
* Output only. Aggregated metrics for the build.
* @return value or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage getResourceUsage() {
return resourceUsage;
}

/**
* Output only. Aggregated metrics for the build.
* @param resourceUsage resourceUsage or {@code null} for none
*/
public ContaineranalysisGoogleDevtoolsCloudbuildV1Results setResourceUsage(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildResourceUsage resourceUsage) {
this.resourceUsage = resourceUsage;
return this;
}

@Override
public ContaineranalysisGoogleDevtoolsCloudbuildV1Results set(String fieldName, Object value) {
return (ContaineranalysisGoogleDevtoolsCloudbuildV1Results) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-containeranalysis</artifactId>
<version>v1-rev20260918-2.0.0</version>
<name>Container Analysis API v1-rev20260918-2.0.0</name>
<version>v1-rev20260929-2.0.0</version>
<name>Container Analysis API v1-rev20260929-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-containeranalysis/v1/README.md
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-containeranalysis</artifactId>
<version>v1-rev20260918-2.0.0</version>
<version>v1-rev20260929-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-containeranalysis:v1-rev20260918-2.0.0'
implementation 'com.google.apis:google-api-services-containeranalysis:v1-rev20260929-2.0.0'
}
```

Expand Down
Loading