From 8020f7426144d225ab2d373ac42f34f3927f6567 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 7 Feb 2026 18:16:40 -0800 Subject: [PATCH] chore: regenerate securityposture client --- .../v1/2.0.0/README.md | 4 +- .../securityposture/v1/SecurityPosture.java | 31 ++-- ...oogleCloudSecuritypostureV1PolicyRule.java | 51 ++++-- .../model/IacValidationFailureCriteria.java | 165 ++++++++++++++++++ .../v1/model/ListOperationsResponse.java | 6 +- .../v1/model/SeverityCountThreshold.java | 90 ++++++++++ .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- 8 files changed, 316 insertions(+), 39 deletions(-) create mode 100644 clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/IacValidationFailureCriteria.java create mode 100644 clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/SeverityCountThreshold.java diff --git a/clients/google-api-services-securityposture/v1/2.0.0/README.md b/clients/google-api-services-securityposture/v1/2.0.0/README.md index 04c34353947..c60999f40c2 100644 --- a/clients/google-api-services-securityposture/v1/2.0.0/README.md +++ b/clients/google-api-services-securityposture/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-securityposture - v1-rev20251028-2.0.0 + v1-rev20260205-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-securityposture:v1-rev20251028-2.0.0' + implementation 'com.google.apis:google-api-services-securityposture:v1-rev20260205-2.0.0' } ``` diff --git a/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/SecurityPosture.java b/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/SecurityPosture.java index 0201c499e64..b74d43b259f 100644 --- a/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/SecurityPosture.java +++ b/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/SecurityPosture.java @@ -794,9 +794,9 @@ public List setPageToken(java.lang.String pageToken) { /** * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the [ListOperationsResponse.unreachable] field. - * This can only be `true` when reading across collections e.g. when `parent` is set to - * `"projects/example/locations/-"`. This field is not by default supported and will + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in * service or product specific documentation. */ @@ -804,10 +804,11 @@ public List setPageToken(java.lang.String pageToken) { private java.lang.Boolean returnPartialSuccess; /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` - when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This - field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless - explicitly documented otherwise in service or product specific documentation. + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. */ public java.lang.Boolean getReturnPartialSuccess() { return returnPartialSuccess; @@ -815,9 +816,9 @@ public java.lang.Boolean getReturnPartialSuccess() { /** * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the [ListOperationsResponse.unreachable] field. - * This can only be `true` when reading across collections e.g. when `parent` is set to - * `"projects/example/locations/-"`. This field is not by default supported and will + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in * service or product specific documentation. */ @@ -4096,7 +4097,10 @@ public Get set(String parameterName, Object value) { } } /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. * * Create a request for the method "locations.list". * @@ -4120,7 +4124,10 @@ public class List extends SecurityPostureRequest 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 Security Posture API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class IacValidationFailureCriteria extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time at which the resource was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The etag for optimistic concurrency. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Identifier. The resource name of the IacValidationFailureCriteria. Format: + * organizations/{organization}/locations/{location}/iacValidationFailureCriteria + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. A list of severity thresholds. An IaC validation fails if any threshold is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List severityCountThresholds; + + /** + * Output only. The time at which the resource was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The time at which the resource was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which the resource was created. + * @param createTime createTime or {@code null} for none + */ + public IacValidationFailureCriteria setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The etag for optimistic concurrency. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The etag for optimistic concurrency. + * @param etag etag or {@code null} for none + */ + public IacValidationFailureCriteria setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Identifier. The resource name of the IacValidationFailureCriteria. Format: + * organizations/{organization}/locations/{location}/iacValidationFailureCriteria + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the IacValidationFailureCriteria. Format: + * organizations/{organization}/locations/{location}/iacValidationFailureCriteria + * @param name name or {@code null} for none + */ + public IacValidationFailureCriteria setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. A list of severity thresholds. An IaC validation fails if any threshold is exceeded. + * @return value or {@code null} for none + */ + public java.util.List getSeverityCountThresholds() { + return severityCountThresholds; + } + + /** + * Optional. A list of severity thresholds. An IaC validation fails if any threshold is exceeded. + * @param severityCountThresholds severityCountThresholds or {@code null} for none + */ + public IacValidationFailureCriteria setSeverityCountThresholds(java.util.List severityCountThresholds) { + this.severityCountThresholds = severityCountThresholds; + return this; + } + + /** + * Output only. The time at which the resource was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time at which the resource was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public IacValidationFailureCriteria setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public IacValidationFailureCriteria set(String fieldName, Object value) { + return (IacValidationFailureCriteria) super.set(fieldName, value); + } + + @Override + public IacValidationFailureCriteria clone() { + return (IacValidationFailureCriteria) super.clone(); + } + +} diff --git a/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/ListOperationsResponse.java b/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/ListOperationsResponse.java index 120ea4f4181..2355cac577b 100644 --- a/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/ListOperationsResponse.java +++ b/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/ListOperationsResponse.java @@ -45,7 +45,7 @@ public final class ListOperationsResponse extends com.google.api.client.json.Gen /** * Unordered list. Unreachable resources. Populated when the request sets - * `ListOperationsRequest.return_partial_success` and reads across collections e.g. when + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when * attempting to list all resources across all supported locations. * The value may be {@code null}. */ @@ -88,7 +88,7 @@ public ListOperationsResponse setOperations(java.util.List operations /** * Unordered list. Unreachable resources. Populated when the request sets - * `ListOperationsRequest.return_partial_success` and reads across collections e.g. when + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when * attempting to list all resources across all supported locations. * @return value or {@code null} for none */ @@ -98,7 +98,7 @@ public java.util.List getUnreachable() { /** * Unordered list. Unreachable resources. Populated when the request sets - * `ListOperationsRequest.return_partial_success` and reads across collections e.g. when + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when * attempting to list all resources across all supported locations. * @param unreachable unreachable or {@code null} for none */ diff --git a/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/SeverityCountThreshold.java b/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/SeverityCountThreshold.java new file mode 100644 index 00000000000..97c3de45306 --- /dev/null +++ b/clients/google-api-services-securityposture/v1/2.0.0/com/google/api/services/securityposture/v1/model/SeverityCountThreshold.java @@ -0,0 +1,90 @@ +/* + * 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.securityposture.v1.model; + +/** + * Represents a threshold for a specific severity. + * + *

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 Security Posture API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SeverityCountThreshold extends com.google.api.client.json.GenericJson { + + /** + * Optional. The severity level, reusing the existing Violation.Severity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String severity; + + /** + * Optional. If violation count meets or exceeds this threshold, validation fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer thresholdCount; + + /** + * Optional. The severity level, reusing the existing Violation.Severity. + * @return value or {@code null} for none + */ + public java.lang.String getSeverity() { + return severity; + } + + /** + * Optional. The severity level, reusing the existing Violation.Severity. + * @param severity severity or {@code null} for none + */ + public SeverityCountThreshold setSeverity(java.lang.String severity) { + this.severity = severity; + return this; + } + + /** + * Optional. If violation count meets or exceeds this threshold, validation fails. + * @return value or {@code null} for none + */ + public java.lang.Integer getThresholdCount() { + return thresholdCount; + } + + /** + * Optional. If violation count meets or exceeds this threshold, validation fails. + * @param thresholdCount thresholdCount or {@code null} for none + */ + public SeverityCountThreshold setThresholdCount(java.lang.Integer thresholdCount) { + this.thresholdCount = thresholdCount; + return this; + } + + @Override + public SeverityCountThreshold set(String fieldName, Object value) { + return (SeverityCountThreshold) super.set(fieldName, value); + } + + @Override + public SeverityCountThreshold clone() { + return (SeverityCountThreshold) super.clone(); + } + +} diff --git a/clients/google-api-services-securityposture/v1/2.0.0/pom.xml b/clients/google-api-services-securityposture/v1/2.0.0/pom.xml index 3cb238b3a02..6b169a719cb 100644 --- a/clients/google-api-services-securityposture/v1/2.0.0/pom.xml +++ b/clients/google-api-services-securityposture/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-securityposture - v1-rev20251028-2.0.0 - Security Posture API v1-rev20251028-2.0.0 + v1-rev20260205-2.0.0 + Security Posture API v1-rev20260205-2.0.0 jar 2011 diff --git a/clients/google-api-services-securityposture/v1/README.md b/clients/google-api-services-securityposture/v1/README.md index 04c34353947..c60999f40c2 100644 --- a/clients/google-api-services-securityposture/v1/README.md +++ b/clients/google-api-services-securityposture/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-securityposture - v1-rev20251028-2.0.0 + v1-rev20260205-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-securityposture:v1-rev20251028-2.0.0' + implementation 'com.google.apis:google-api-services-securityposture:v1-rev20260205-2.0.0' } ```