Skip to content

Commit 8b28fed

Browse files
1 parent ae76d64 commit 8b28fed

File tree

7 files changed

+159
-6
lines changed

7 files changed

+159
-6
lines changed

clients/google-api-services-securitycenter/v1beta2/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-securitycenter</artifactId>
25-
<version>v1beta2-rev20240927-2.0.0</version>
25+
<version>v1beta2-rev20241004-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-securitycenter:v1beta2-rev20240927-2.0.0'
38+
implementation 'com.google.apis:google-api-services-securitycenter:v1beta2-rev20241004-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-securitycenter/v1beta2/2.0.0/com/google/api/services/securitycenter/v1beta2/model/AzureResourceGroup.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,37 @@
3030
@SuppressWarnings("javadoc")
3131
public final class AzureResourceGroup extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* The ID of the Azure resource group.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String id;
39+
3340
/**
3441
* The name of the Azure resource group. This is not a UUID.
3542
* The value may be {@code null}.
3643
*/
3744
@com.google.api.client.util.Key
3845
private java.lang.String name;
3946

47+
/**
48+
* The ID of the Azure resource group.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getId() {
52+
return id;
53+
}
54+
55+
/**
56+
* The ID of the Azure resource group.
57+
* @param id id or {@code null} for none
58+
*/
59+
public AzureResourceGroup setId(java.lang.String id) {
60+
this.id = id;
61+
return this;
62+
}
63+
4064
/**
4165
* The name of the Azure resource group. This is not a UUID.
4266
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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.securitycenter.v1beta2.model;
18+
19+
/**
20+
* YAML-based rule that uses CEL, which supports the declaration of variables and a filtering
21+
* predicate. A vulnerable resource is emitted if the evaluation is false. Given: 1) the resource
22+
* types as: - resource_types: "compute.googleapis.com/Instance" - resource_types:
23+
* "compute.googleapis.com/Firewall" 2) the CEL policy spec as: name: bad_instance resource_filters:
24+
* - name: instance resource_type: compute.googleapis.com/Instance filter: > instance.status ==
25+
* 'RUNNING' && 'public' in instance.tags.items - name: firewall resource_type:
26+
* compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && !firewall.disabled
27+
* && firewall.allowed.exists(rule, rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] &&
28+
* rule.ports.exists(port, network.portsInRange(port, '11-256'))) rule: match: - predicate: >
29+
* instance.networkInterfaces.exists(net, firewall.network == net.network) output: > {'message':
30+
* 'Compute instance with publicly accessible ports', 'instance': instance.name} Users are able to
31+
* join resource types together using the exact format as Kubernetes Validating Admission policies.
32+
*
33+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
34+
* transmitted over HTTP when working with the Security Command Center API. For a detailed
35+
* explanation see:
36+
* <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>
37+
* </p>
38+
*
39+
* @author Google, Inc.
40+
*/
41+
@SuppressWarnings("javadoc")
42+
public final class CelPolicySpec extends com.google.api.client.json.GenericJson {
43+
44+
/**
45+
* The CEL policy to evaluate to produce findings. A finding is generated when the policy
46+
* validation evaluates to false.
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.lang.String spec;
51+
52+
/**
53+
* The CEL policy to evaluate to produce findings. A finding is generated when the policy
54+
* validation evaluates to false.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.lang.String getSpec() {
58+
return spec;
59+
}
60+
61+
/**
62+
* The CEL policy to evaluate to produce findings. A finding is generated when the policy
63+
* validation evaluates to false.
64+
* @param spec spec or {@code null} for none
65+
*/
66+
public CelPolicySpec setSpec(java.lang.String spec) {
67+
this.spec = spec;
68+
return this;
69+
}
70+
71+
@Override
72+
public CelPolicySpec set(String fieldName, Object value) {
73+
return (CelPolicySpec) super.set(fieldName, value);
74+
}
75+
76+
@Override
77+
public CelPolicySpec clone() {
78+
return (CelPolicySpec) super.clone();
79+
}
80+
81+
}

clients/google-api-services-securitycenter/v1beta2/2.0.0/com/google/api/services/securitycenter/v1beta2/model/GoogleCloudSecuritycenterV1CustomConfig.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
@SuppressWarnings("javadoc")
3333
public final class GoogleCloudSecuritycenterV1CustomConfig extends com.google.api.client.json.GenericJson {
3434

35+
/**
36+
* The CEL policy spec attached to the custom module.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private CelPolicySpec celPolicy;
41+
3542
/**
3643
* Custom output properties.
3744
* The value may be {@code null}.
@@ -80,6 +87,23 @@ public final class GoogleCloudSecuritycenterV1CustomConfig extends com.google.ap
8087
@com.google.api.client.util.Key
8188
private java.lang.String severity;
8289

90+
/**
91+
* The CEL policy spec attached to the custom module.
92+
* @return value or {@code null} for none
93+
*/
94+
public CelPolicySpec getCelPolicy() {
95+
return celPolicy;
96+
}
97+
98+
/**
99+
* The CEL policy spec attached to the custom module.
100+
* @param celPolicy celPolicy or {@code null} for none
101+
*/
102+
public GoogleCloudSecuritycenterV1CustomConfig setCelPolicy(CelPolicySpec celPolicy) {
103+
this.celPolicy = celPolicy;
104+
return this;
105+
}
106+
83107
/**
84108
* Custom output properties.
85109
* @return value or {@code null} for none

clients/google-api-services-securitycenter/v1beta2/2.0.0/com/google/api/services/securitycenter/v1beta2/model/GoogleCloudSecuritycenterV2AzureResourceGroup.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,37 @@
3030
@SuppressWarnings("javadoc")
3131
public final class GoogleCloudSecuritycenterV2AzureResourceGroup extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* The ID of the Azure resource group.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String id;
39+
3340
/**
3441
* The name of the Azure resource group. This is not a UUID.
3542
* The value may be {@code null}.
3643
*/
3744
@com.google.api.client.util.Key
3845
private java.lang.String name;
3946

47+
/**
48+
* The ID of the Azure resource group.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getId() {
52+
return id;
53+
}
54+
55+
/**
56+
* The ID of the Azure resource group.
57+
* @param id id or {@code null} for none
58+
*/
59+
public GoogleCloudSecuritycenterV2AzureResourceGroup setId(java.lang.String id) {
60+
this.id = id;
61+
return this;
62+
}
63+
4064
/**
4165
* The name of the Azure resource group. This is not a UUID.
4266
* @return value or {@code null} for none

clients/google-api-services-securitycenter/v1beta2/2.0.0/pom.xml

Lines changed: 2 additions & 2 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-securitycenter</artifactId>
11-
<version>v1beta2-rev20240927-2.0.0</version>
12-
<name>Security Command Center API v1beta2-rev20240927-2.0.0</name>
11+
<version>v1beta2-rev20241004-2.0.0</version>
12+
<name>Security Command Center API v1beta2-rev20241004-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-securitycenter/v1beta2/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-securitycenter</artifactId>
25-
<version>v1beta2-rev20240927-2.0.0</version>
25+
<version>v1beta2-rev20241004-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-securitycenter:v1beta2-rev20240927-2.0.0'
38+
implementation 'com.google.apis:google-api-services-securitycenter:v1beta2-rev20241004-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)