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
7 changes: 7 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4144,6 +4144,13 @@ components:
**Note:** This field is deprecated. Instead, use `monitored_resource_configs` with `type=gce_instance`
example: "$KEY1:$VALUE1,$KEY2:$VALUE2"
type: string
id:
description: |-
The Datadog-assigned ID of the GCP integration account.
example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
format: uuid
readOnly: true
type: string
is_cspm_enabled:
description: |-
When enabled, Datadog will activate the Cloud Security Monitoring product for this service account. Note: This requires resource_collection_enabled to be set to true.
Expand Down
20 changes: 20 additions & 0 deletions src/main/java/com/datadog/api/client/v1/model/GCPAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.UUID;

/** Your Google Cloud Platform Account. */
@JsonPropertyOrder({
Expand All @@ -29,6 +30,7 @@
GCPAccount.JSON_PROPERTY_CLOUD_RUN_REVISION_FILTERS,
GCPAccount.JSON_PROPERTY_ERRORS,
GCPAccount.JSON_PROPERTY_HOST_FILTERS,
GCPAccount.JSON_PROPERTY_ID,
GCPAccount.JSON_PROPERTY_IS_CSPM_ENABLED,
GCPAccount.JSON_PROPERTY_IS_RESOURCE_CHANGE_COLLECTION_ENABLED,
GCPAccount.JSON_PROPERTY_IS_SECURITY_COMMAND_CENTER_ENABLED,
Expand Down Expand Up @@ -73,6 +75,9 @@ public class GCPAccount {
public static final String JSON_PROPERTY_HOST_FILTERS = "host_filters";
private String hostFilters;

public static final String JSON_PROPERTY_ID = "id";
private UUID id;

public static final String JSON_PROPERTY_IS_CSPM_ENABLED = "is_cspm_enabled";
private Boolean isCspmEnabled;

Expand Down Expand Up @@ -325,6 +330,18 @@ public void setHostFilters(String hostFilters) {
this.hostFilters = hostFilters;
}

/**
* The Datadog-assigned ID of the GCP integration account.
*
* @return id
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getId() {
return id;
}

public GCPAccount isCspmEnabled(Boolean isCspmEnabled) {
this.isCspmEnabled = isCspmEnabled;
return this;
Expand Down Expand Up @@ -624,6 +641,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.cloudRunRevisionFilters, gcpAccount.cloudRunRevisionFilters)
&& Objects.equals(this.errors, gcpAccount.errors)
&& Objects.equals(this.hostFilters, gcpAccount.hostFilters)
&& Objects.equals(this.id, gcpAccount.id)
&& Objects.equals(this.isCspmEnabled, gcpAccount.isCspmEnabled)
&& Objects.equals(
this.isResourceChangeCollectionEnabled, gcpAccount.isResourceChangeCollectionEnabled)
Expand Down Expand Up @@ -651,6 +669,7 @@ public int hashCode() {
cloudRunRevisionFilters,
errors,
hostFilters,
id,
isCspmEnabled,
isResourceChangeCollectionEnabled,
isSecurityCommandCenterEnabled,
Expand Down Expand Up @@ -681,6 +700,7 @@ public String toString() {
.append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" hostFilters: ").append(toIndentedString(hostFilters)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" isCspmEnabled: ").append(toIndentedString(isCspmEnabled)).append("\n");
sb.append(" isResourceChangeCollectionEnabled: ")
.append(toIndentedString(isResourceChangeCollectionEnabled))
Expand Down
Loading