Skip to content
Open
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-securityposture</artifactId>
<version>v1-rev20251028-2.0.0</version>
<version>v1-rev20260205-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -794,30 +794,31 @@ 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.
*/
@com.google.api.client.util.Key
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;
}

/**
* 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.
*/
Expand Down Expand Up @@ -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".
*
Expand All @@ -4120,7 +4124,10 @@ public class List extends SecurityPostureRequest<com.google.api.services.securit
java.util.regex.Pattern.compile("^projects/[^/]+$");

/**
* 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".
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,21 @@ public final class GoogleCloudSecuritypostureV1PolicyRule extends com.google.api
/**
* A condition that determines whether this rule is used to evaluate the policy. When set, the
* google.type.Expr.expression field must contain 1 to 10 subexpressions, joined by the `||` or
* `&&` operators. Each subexpression must use the `resource.matchTag()` or
* `resource.matchTagId()` Common Expression Language (CEL) function. The `resource.matchTag()`
* function takes the following arguments: * `key_name`: the namespaced name of the tag key, with
* the organization ID and a slash (`/`) as a prefix; for example, `123456789012/environment` *
* `value_name`: the short name of the tag value For example:
* `&&` operators. Each subexpression must use the `resource.matchTag()`, `resource.matchTagId()`,
* `resource.hasTagKey()`, or `resource.hasTagKeyId()` Common Expression Language (CEL) function.
* The `resource.matchTag()` function takes the following arguments: * `key_name`: the namespaced
* name of the tag key, with the organization ID and a slash (`/`) as a prefix; for example,
* `123456789012/environment` * `value_name`: the short name of the tag value For example:
* `resource.matchTag('123456789012/environment, 'prod')` The `resource.matchTagId()` function
* takes the following arguments: * `key_id`: the permanent ID of the tag key; for example,
* `tagKeys/123456789012` * `value_id`: the permanent ID of the tag value; for example,
* `tagValues/567890123456` For example: `resource.matchTagId('tagKeys/123456789012',
* 'tagValues/567890123456')`
* 'tagValues/567890123456')` The `resource.hasTagKey()` function takes the following argument: *
* `key_name`: the namespaced name of the tag key, with the organization ID and a slash (`/`) as a
* prefix; for example, `123456789012/environment` For example:
* `resource.hasTagKey('123456789012/environment')` The `resource.hasTagKeyId()` function takes
* the following arguments: * `key_id`: the permanent ID of the tag key; for example,
* `tagKeys/123456789012` For example: `resource.hasTagKeyId('tagKeys/123456789012')`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -113,16 +118,21 @@ public GoogleCloudSecuritypostureV1PolicyRule setAllowAll(java.lang.Boolean allo
/**
* A condition that determines whether this rule is used to evaluate the policy. When set, the
* google.type.Expr.expression field must contain 1 to 10 subexpressions, joined by the `||` or
* `&&` operators. Each subexpression must use the `resource.matchTag()` or
* `resource.matchTagId()` Common Expression Language (CEL) function. The `resource.matchTag()`
* function takes the following arguments: * `key_name`: the namespaced name of the tag key, with
* the organization ID and a slash (`/`) as a prefix; for example, `123456789012/environment` *
* `value_name`: the short name of the tag value For example:
* `&&` operators. Each subexpression must use the `resource.matchTag()`, `resource.matchTagId()`,
* `resource.hasTagKey()`, or `resource.hasTagKeyId()` Common Expression Language (CEL) function.
* The `resource.matchTag()` function takes the following arguments: * `key_name`: the namespaced
* name of the tag key, with the organization ID and a slash (`/`) as a prefix; for example,
* `123456789012/environment` * `value_name`: the short name of the tag value For example:
* `resource.matchTag('123456789012/environment, 'prod')` The `resource.matchTagId()` function
* takes the following arguments: * `key_id`: the permanent ID of the tag key; for example,
* `tagKeys/123456789012` * `value_id`: the permanent ID of the tag value; for example,
* `tagValues/567890123456` For example: `resource.matchTagId('tagKeys/123456789012',
* 'tagValues/567890123456')`
* 'tagValues/567890123456')` The `resource.hasTagKey()` function takes the following argument: *
* `key_name`: the namespaced name of the tag key, with the organization ID and a slash (`/`) as a
* prefix; for example, `123456789012/environment` For example:
* `resource.hasTagKey('123456789012/environment')` The `resource.hasTagKeyId()` function takes
* the following arguments: * `key_id`: the permanent ID of the tag key; for example,
* `tagKeys/123456789012` For example: `resource.hasTagKeyId('tagKeys/123456789012')`
* @return value or {@code null} for none
*/
public Expr getCondition() {
Expand All @@ -132,16 +142,21 @@ public Expr getCondition() {
/**
* A condition that determines whether this rule is used to evaluate the policy. When set, the
* google.type.Expr.expression field must contain 1 to 10 subexpressions, joined by the `||` or
* `&&` operators. Each subexpression must use the `resource.matchTag()` or
* `resource.matchTagId()` Common Expression Language (CEL) function. The `resource.matchTag()`
* function takes the following arguments: * `key_name`: the namespaced name of the tag key, with
* the organization ID and a slash (`/`) as a prefix; for example, `123456789012/environment` *
* `value_name`: the short name of the tag value For example:
* `&&` operators. Each subexpression must use the `resource.matchTag()`, `resource.matchTagId()`,
* `resource.hasTagKey()`, or `resource.hasTagKeyId()` Common Expression Language (CEL) function.
* The `resource.matchTag()` function takes the following arguments: * `key_name`: the namespaced
* name of the tag key, with the organization ID and a slash (`/`) as a prefix; for example,
* `123456789012/environment` * `value_name`: the short name of the tag value For example:
* `resource.matchTag('123456789012/environment, 'prod')` The `resource.matchTagId()` function
* takes the following arguments: * `key_id`: the permanent ID of the tag key; for example,
* `tagKeys/123456789012` * `value_id`: the permanent ID of the tag value; for example,
* `tagValues/567890123456` For example: `resource.matchTagId('tagKeys/123456789012',
* 'tagValues/567890123456')`
* 'tagValues/567890123456')` The `resource.hasTagKey()` function takes the following argument: *
* `key_name`: the namespaced name of the tag key, with the organization ID and a slash (`/`) as a
* prefix; for example, `123456789012/environment` For example:
* `resource.hasTagKey('123456789012/environment')` The `resource.hasTagKeyId()` function takes
* the following arguments: * `key_id`: the permanent ID of the tag key; for example,
* `tagKeys/123456789012` For example: `resource.hasTagKeyId('tagKeys/123456789012')`
* @param condition condition or {@code null} for none
*/
public GoogleCloudSecuritypostureV1PolicyRule setCondition(Expr condition) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
/*
* 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 the criteria for considering an IaC validation as a failure.
*
* <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 Security Posture 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 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<SeverityCountThreshold> 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<SeverityCountThreshold> 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<SeverityCountThreshold> 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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
*/
Expand Down Expand Up @@ -88,7 +88,7 @@ public ListOperationsResponse setOperations(java.util.List<Operation> 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
*/
Expand All @@ -98,7 +98,7 @@ public java.util.List<java.lang.String> 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
*/
Expand Down
Loading