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

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

/**
* Details about a data access attempt made by an agent principal not authorized under applicable
* data security policy.
*
* <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 Command Center 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 AgentDataAccessEvent extends com.google.api.client.json.GenericJson {

/**
* Unique identifier for data access event.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String eventId;

/**
* Timestamp of data access event.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String eventTime;

/**
* The operation performed by the principal to access the data.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String operation;

/**
* The agent principal that accessed the data.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String principalSubject;

/**
* Unique identifier for data access event.
* @return value or {@code null} for none
*/
public java.lang.String getEventId() {
return eventId;
}

/**
* Unique identifier for data access event.
* @param eventId eventId or {@code null} for none
*/
public AgentDataAccessEvent setEventId(java.lang.String eventId) {
this.eventId = eventId;
return this;
}

/**
* Timestamp of data access event.
* @return value or {@code null} for none
*/
public String getEventTime() {
return eventTime;
}

/**
* Timestamp of data access event.
* @param eventTime eventTime or {@code null} for none
*/
public AgentDataAccessEvent setEventTime(String eventTime) {
this.eventTime = eventTime;
return this;
}

/**
* The operation performed by the principal to access the data.
* @return value or {@code null} for none
*/
public java.lang.String getOperation() {
return operation;
}

/**
* The operation performed by the principal to access the data.
* @param operation operation or {@code null} for none
*/
public AgentDataAccessEvent setOperation(java.lang.String operation) {
this.operation = operation;
return this;
}

/**
* The agent principal that accessed the data.
* @return value or {@code null} for none
*/
public java.lang.String getPrincipalSubject() {
return principalSubject;
}

/**
* The agent principal that accessed the data.
* @param principalSubject principalSubject or {@code null} for none
*/
public AgentDataAccessEvent setPrincipalSubject(java.lang.String principalSubject) {
this.principalSubject = principalSubject;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ public final class Finding extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private AffectedResources affectedResources;

/**
* Agent data access events associated with the finding.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<AgentDataAccessEvent> agentDataAccessEvents;

static {
// hack to force ProGuard to consider AgentDataAccessEvent used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(AgentDataAccessEvent.class);
}

/**
* The AI model associated with the finding.
* The value may be {@code null}.
Expand Down Expand Up @@ -497,6 +510,13 @@ public final class Finding extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String parentDisplayName;

/**
* PolicyViolationSummary associated with the finding.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PolicyViolationSummary policyViolationSummary;

/**
* Represents operating system processes associated with the Finding.
* The value may be {@code null}.
Expand Down Expand Up @@ -621,6 +641,23 @@ public Finding setAffectedResources(AffectedResources affectedResources) {
return this;
}

/**
* Agent data access events associated with the finding.
* @return value or {@code null} for none
*/
public java.util.List<AgentDataAccessEvent> getAgentDataAccessEvents() {
return agentDataAccessEvents;
}

/**
* Agent data access events associated with the finding.
* @param agentDataAccessEvents agentDataAccessEvents or {@code null} for none
*/
public Finding setAgentDataAccessEvents(java.util.List<AgentDataAccessEvent> agentDataAccessEvents) {
this.agentDataAccessEvents = agentDataAccessEvents;
return this;
}

/**
* The AI model associated with the finding.
* @return value or {@code null} for none
Expand Down Expand Up @@ -1579,6 +1616,23 @@ public Finding setParentDisplayName(java.lang.String parentDisplayName) {
return this;
}

/**
* PolicyViolationSummary associated with the finding.
* @return value or {@code null} for none
*/
public PolicyViolationSummary getPolicyViolationSummary() {
return policyViolationSummary;
}

/**
* PolicyViolationSummary associated with the finding.
* @param policyViolationSummary policyViolationSummary or {@code null} for none
*/
public Finding setPolicyViolationSummary(PolicyViolationSummary policyViolationSummary) {
this.policyViolationSummary = policyViolationSummary;
return this;
}

/**
* Represents operating system processes associated with the Finding.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* 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.securitycenter.v1.model;

/**
* Details about a data access attempt made by an agent principal not authorized under applicable
* data security policy.
*
* <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 Command Center 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 GoogleCloudSecuritycenterV2AgentDataAccessEvent extends com.google.api.client.json.GenericJson {

/**
* Unique identifier for data access event.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String eventId;

/**
* Timestamp of data access event.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String eventTime;

/**
* The operation performed by the principal to access the data.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String operation;

/**
* The agent principal that accessed the data.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String principalSubject;

/**
* Unique identifier for data access event.
* @return value or {@code null} for none
*/
public java.lang.String getEventId() {
return eventId;
}

/**
* Unique identifier for data access event.
* @param eventId eventId or {@code null} for none
*/
public GoogleCloudSecuritycenterV2AgentDataAccessEvent setEventId(java.lang.String eventId) {
this.eventId = eventId;
return this;
}

/**
* Timestamp of data access event.
* @return value or {@code null} for none
*/
public String getEventTime() {
return eventTime;
}

/**
* Timestamp of data access event.
* @param eventTime eventTime or {@code null} for none
*/
public GoogleCloudSecuritycenterV2AgentDataAccessEvent setEventTime(String eventTime) {
this.eventTime = eventTime;
return this;
}

/**
* The operation performed by the principal to access the data.
* @return value or {@code null} for none
*/
public java.lang.String getOperation() {
return operation;
}

/**
* The operation performed by the principal to access the data.
* @param operation operation or {@code null} for none
*/
public GoogleCloudSecuritycenterV2AgentDataAccessEvent setOperation(java.lang.String operation) {
this.operation = operation;
return this;
}

/**
* The agent principal that accessed the data.
* @return value or {@code null} for none
*/
public java.lang.String getPrincipalSubject() {
return principalSubject;
}

/**
* The agent principal that accessed the data.
* @param principalSubject principalSubject or {@code null} for none
*/
public GoogleCloudSecuritycenterV2AgentDataAccessEvent setPrincipalSubject(java.lang.String principalSubject) {
this.principalSubject = principalSubject;
return this;
}

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

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

}
Loading