From 57a43bebc8ab86e95b9fa79239c62419a4946ce5 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 24 Nov 2026 16:25:19 +0000 Subject: [PATCH] Regenerate client from commit 18a46b4 of spec repo --- .generator/schemas/v2/openapi.yaml | 168 +++----- .../client/v2/api/SecurityMonitoringApi.java | 10 +- .../v2/model/RemediationGroupAttributes.java | 54 +-- .../client/v2/model/RemediationGroupData.java | 4 +- .../v2/model/RemediationGroupFindingType.java | 5 +- .../v2/model/RemediationGroupImageUpdate.java | 374 ------------------ .../v2/model/RemediationGroupOwnerList.java | 185 +++++++++ .../v2/model/RemediationGroupOwners.java | 192 +++++++++ .../v2/security-monitoring.json | 10 +- 9 files changed, 471 insertions(+), 531 deletions(-) delete mode 100644 src/main/java/com/datadog/api/client/v2/model/RemediationGroupImageUpdate.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/RemediationGroupOwnerList.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/RemediationGroupOwners.java diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d301c22ee3b..27248a64121 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -120114,18 +120114,16 @@ components: type: object RemediationGroupAttributes: description: |- - Attributes of a remediation group. Each group includes one kind object, `package_update` or `image_update`, - depending on its grouping definition. + Attributes of a remediation group. Each group includes one kind object, depending on its grouping definition. properties: findings: $ref: "#/components/schemas/RemediationGroupFindings" grouping_definition_id: - description: |- - Grouping definition that formed the group: `sca.package_update` or `cloudvm.image_update`. + description: Grouping definition that formed the group, such as `sca.package_update`. example: sca.package_update type: string - image_update: - $ref: "#/components/schemas/RemediationGroupImageUpdate" + owners: + $ref: "#/components/schemas/RemediationGroupOwners" package_update: $ref: "#/components/schemas/RemediationGroupPackageUpdate" title: @@ -120136,6 +120134,7 @@ components: - grouping_definition_id - title - findings + - owners type: object RemediationGroupCaseRelationship: description: Relationship to the case that tracks the group's remediation. @@ -120184,12 +120183,10 @@ components: description: Value of the findings' `@finding_type` attribute that a grouping definition covers. enum: - library_vulnerability - - host_and_container_vulnerability example: library_vulnerability type: string x-enum-varnames: - LIBRARY_VULNERABILITY - - HOST_AND_CONTAINER_VULNERABILITY RemediationGroupFindings: description: |- Counts of the group's open findings. The counts include every finding in the group, including findings that @@ -120255,70 +120252,6 @@ components: - none - unknown type: object - RemediationGroupImageUpdate: - description: |- - An image or package to upgrade, for a group of host and container vulnerabilities (`cloudvm.image_update`). - The group gathers the open vulnerabilities of running production images that have a fix available, and groups - them by `grouping_location`, `remediation_kind`, and `action`. - properties: - action: - description: |- - Name of the container image, base image, or package to upgrade. The value comes from the first of these - attributes that the findings have: `@remediation.container_image.latest_major.name`, - `@remediation.base_image.latest_major.name`, or `@remediation.recommended.name`. - example: alpine - type: string - advisory_count: - description: Number of distinct values of `@advisory.id` across the group's findings. - example: 25 - format: int64 - type: integer - exploitable_cve_count: - description: |- - Number of distinct values of `@advisory.id` across the group's findings that have - `@risk.has_exploit_available` set to `true`. - example: 2 - format: int64 - type: integer - file_count: - description: Number of distinct values of `@code_location.filename` across the group's findings. - example: 1 - format: int64 - type: integer - grouping_location: - description: |- - File that contains the findings, from their `@code_location.filename` attribute. When no file is known, - the value is the findings' `@container_image.name`. - example: Dockerfile - type: string - location_is_filename: - description: Whether `grouping_location` is a `@code_location.filename` rather than a `@container_image.name`. - example: true - type: boolean - remediation_kind: - description: |- - Kind of upgrade: `image_update` when the findings have a `@remediation.container_image.latest_major.name`, - `base_image_bump` when they have `@vulnerability.is_inherited_from_base_image` set to `true`, and - `package_update` otherwise. - example: image_update - type: string - target_version: - description: |- - Version to upgrade to: the `@remediation.container_image.latest_major.tag` or - `@remediation.base_image.latest_major.tag` of the image in `action`, or else the highest - `@remediation.recommended.version` across the group's findings. Omitted when no version is recommended - or when the recommended versions can't be ordered. - example: 3.20.3 - type: string - required: - - grouping_location - - location_is_filename - - remediation_kind - - action - - advisory_count - - exploitable_cve_count - - file_count - type: object RemediationGroupInclude: description: Related resource to add to `included`. enum: @@ -120327,6 +120260,42 @@ components: type: string x-enum-varnames: - CASE + RemediationGroupOwnerList: + description: |- + Owners of the group's open findings. `items` lists at most 5 owners, the owners of the most findings first, + then by name. `total` counts every distinct owner, so the list is cut when `total` is larger than the number + of items. + properties: + items: + description: Owners of the most findings in the group, at most 5. + example: + - "@acme/payments" + - "@acme/platform" + items: + type: string + type: array + total: + description: Number of distinct owners across the group's findings. + example: 2 + format: int64 + type: integer + required: + - items + - total + type: object + RemediationGroupOwners: + description: |- + Who should fix the group: the code owners of the group's findings, from their `@git.codeowners` attribute, + and their Datadog teams, from their `team` tag. A group with no owners has empty `items` and a `total` of 0. + properties: + codeowners: + $ref: "#/components/schemas/RemediationGroupOwnerList" + teams: + $ref: "#/components/schemas/RemediationGroupOwnerList" + required: + - codeowners + - teams + type: object RemediationGroupPackageUpdate: description: |- A package to update in a repository, for a group of library vulnerabilities (`sca.package_update`). The group @@ -257903,15 +257872,14 @@ paths: get: description: |- Search the remediation groups of your organization. A remediation group gathers the open security findings - that one change fixes, such as updating a package in a repository or upgrading an image. + that one change fixes, such as updating a package in a repository. Each group comes from a grouping definition, which sets the finding type it covers and the kind object the group returns: - | Grouping definition | Finding type | Kind object | - | ---------------------- | ---------------------------------- | ---------------- | - | `sca.package_update` | `library_vulnerability` | `package_update` | - | `cloudvm.image_update` | `host_and_container_vulnerability` | `image_update` | + | Grouping definition | Finding type | Kind object | + | -------------------- | ----------------------- | ---------------- | + | `sca.package_update` | `library_vulnerability` | `package_update` | Groups are computed from the attributes of security findings, described in the [security findings schema](https://docs.datadoghq.com/security/guide/findings-schema/). The description of @@ -257991,42 +257959,6 @@ paths: content: application/json: examples: - cloud_vm_group_without_case: - summary: A host and container vulnerability group with no case yet - value: - data: - - attributes: - findings: - by_severity: - critical: 1 - high: 9 - info: 0 - low: 10 - medium: 20 - none: 0 - unknown: 0 - total: 40 - grouping_definition_id: cloudvm.image_update - image_update: - action: alpine - advisory_count: 25 - exploitable_cve_count: 2 - file_count: 1 - grouping_location: Dockerfile - location_is_filename: true - remediation_kind: image_update - target_version: 3.20.3 - title: Upgrade alpine to 3.20.3 - id: cloudvm.image_update:eyJhY3Rpb24iOiJhbHBpbmUiLCJncm91cGluZ19sb2NhdGlvbiI6IkRvY2tlcmZpbGUiLCJyZW1lZGlhdGlvbl9raW5kIjoiaW1hZ2VfdXBkYXRlIn0 - relationships: - case: - data: - type: remediation_groups - meta: - page: - number: 1 - size: 50 - total_filtered_count: 134 default: summary: A library vulnerability group with a case, with include=case value: @@ -258043,6 +257975,16 @@ paths: unknown: 0 total: 12 grouping_definition_id: sca.package_update + owners: + codeowners: + items: + - "@acme/payments" + - "@acme/platform" + total: 2 + teams: + items: + - payments + total: 1 package_update: advisory_count: 3 ecosystem: npm diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index e5a6be551eb..536c9fb0dc1 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -29951,16 +29951,14 @@ public PaginationIterable searchRemediationGroupsWithPagin /** * Search the remediation groups of your organization. A remediation group gathers the open - * security findings that one change fixes, such as updating a package in a repository or - * upgrading an image. + * security findings that one change fixes, such as updating a package in a repository. * *

Each group comes from a grouping definition, which sets the finding type it covers and the * kind object the group returns: * - *

| Grouping definition | Finding type | Kind object | | ---------------------- | - * ---------------------------------- | ---------------- | | sca.package_update | - * library_vulnerability | package_update | | cloudvm.image_update - * | host_and_container_vulnerability | image_update | + *

| Grouping definition | Finding type | Kind object | | -------------------- | + * ----------------------- | ---------------- | | sca.package_update | + * library_vulnerability | package_update | * *

Groups are computed from the attributes of security findings, described in the security findings schema. diff --git a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupAttributes.java b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupAttributes.java index 472d7782530..6760af3c2da 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupAttributes.java @@ -18,13 +18,13 @@ import java.util.Objects; /** - * Attributes of a remediation group. Each group includes one kind object, package_update - * or image_update, depending on its grouping definition. + * Attributes of a remediation group. Each group includes one kind object, depending on its grouping + * definition. */ @JsonPropertyOrder({ RemediationGroupAttributes.JSON_PROPERTY_FINDINGS, RemediationGroupAttributes.JSON_PROPERTY_GROUPING_DEFINITION_ID, - RemediationGroupAttributes.JSON_PROPERTY_IMAGE_UPDATE, + RemediationGroupAttributes.JSON_PROPERTY_OWNERS, RemediationGroupAttributes.JSON_PROPERTY_PACKAGE_UPDATE, RemediationGroupAttributes.JSON_PROPERTY_TITLE }) @@ -38,8 +38,8 @@ public class RemediationGroupAttributes { public static final String JSON_PROPERTY_GROUPING_DEFINITION_ID = "grouping_definition_id"; private String groupingDefinitionId; - public static final String JSON_PROPERTY_IMAGE_UPDATE = "image_update"; - private RemediationGroupImageUpdate imageUpdate; + public static final String JSON_PROPERTY_OWNERS = "owners"; + private RemediationGroupOwners owners; public static final String JSON_PROPERTY_PACKAGE_UPDATE = "package_update"; private RemediationGroupPackageUpdate packageUpdate; @@ -55,10 +55,13 @@ public RemediationGroupAttributes( RemediationGroupFindings findings, @JsonProperty(required = true, value = JSON_PROPERTY_GROUPING_DEFINITION_ID) String groupingDefinitionId, + @JsonProperty(required = true, value = JSON_PROPERTY_OWNERS) RemediationGroupOwners owners, @JsonProperty(required = true, value = JSON_PROPERTY_TITLE) String title) { this.findings = findings; this.unparsed |= findings.unparsed; this.groupingDefinitionId = groupingDefinitionId; + this.owners = owners; + this.unparsed |= owners.unparsed; this.title = title; } @@ -93,8 +96,7 @@ public RemediationGroupAttributes groupingDefinitionId(String groupingDefinition } /** - * Grouping definition that formed the group: sca.package_update or - * cloudvm.image_update. + * Grouping definition that formed the group, such as sca.package_update. * * @return groupingDefinitionId */ @@ -108,31 +110,29 @@ public void setGroupingDefinitionId(String groupingDefinitionId) { this.groupingDefinitionId = groupingDefinitionId; } - public RemediationGroupAttributes imageUpdate(RemediationGroupImageUpdate imageUpdate) { - this.imageUpdate = imageUpdate; - this.unparsed |= imageUpdate.unparsed; + public RemediationGroupAttributes owners(RemediationGroupOwners owners) { + this.owners = owners; + this.unparsed |= owners.unparsed; return this; } /** - * An image or package to upgrade, for a group of host and container vulnerabilities ( - * cloudvm.image_update). The group gathers the open vulnerabilities of running production - * images that have a fix available, and groups them by grouping_location, - * remediation_kind, and action. + * Who should fix the group: the code owners of the group's findings, from their + * @git.codeowners attribute, and their Datadog teams, from their team tag. A + * group with no owners has empty items and a total of 0. * - * @return imageUpdate + * @return owners */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IMAGE_UPDATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RemediationGroupImageUpdate getImageUpdate() { - return imageUpdate; + @JsonProperty(JSON_PROPERTY_OWNERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public RemediationGroupOwners getOwners() { + return owners; } - public void setImageUpdate(RemediationGroupImageUpdate imageUpdate) { - this.imageUpdate = imageUpdate; - if (imageUpdate != null) { - this.unparsed |= imageUpdate.unparsed; + public void setOwners(RemediationGroupOwners owners) { + this.owners = owners; + if (owners != null) { + this.unparsed |= owners.unparsed; } } @@ -243,7 +243,7 @@ public boolean equals(Object o) { return Objects.equals(this.findings, remediationGroupAttributes.findings) && Objects.equals( this.groupingDefinitionId, remediationGroupAttributes.groupingDefinitionId) - && Objects.equals(this.imageUpdate, remediationGroupAttributes.imageUpdate) + && Objects.equals(this.owners, remediationGroupAttributes.owners) && Objects.equals(this.packageUpdate, remediationGroupAttributes.packageUpdate) && Objects.equals(this.title, remediationGroupAttributes.title) && Objects.equals( @@ -253,7 +253,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - findings, groupingDefinitionId, imageUpdate, packageUpdate, title, additionalProperties); + findings, groupingDefinitionId, owners, packageUpdate, title, additionalProperties); } @Override @@ -264,7 +264,7 @@ public String toString() { sb.append(" groupingDefinitionId: ") .append(toIndentedString(groupingDefinitionId)) .append("\n"); - sb.append(" imageUpdate: ").append(toIndentedString(imageUpdate)).append("\n"); + sb.append(" owners: ").append(toIndentedString(owners)).append("\n"); sb.append(" packageUpdate: ").append(toIndentedString(packageUpdate)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupData.java b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupData.java index 018837b37b8..6b48ce8e6fa 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupData.java +++ b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupData.java @@ -66,8 +66,8 @@ public RemediationGroupData attributes(RemediationGroupAttributes attributes) { } /** - * Attributes of a remediation group. Each group includes one kind object, package_update - * or image_update, depending on its grouping definition. + * Attributes of a remediation group. Each group includes one kind object, depending on its + * grouping definition. * * @return attributes */ diff --git a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupFindingType.java b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupFindingType.java index 7a88f8e804c..65181468c78 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupFindingType.java +++ b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupFindingType.java @@ -25,13 +25,10 @@ public class RemediationGroupFindingType extends ModelEnum { private static final Set allowedValues = - new HashSet( - Arrays.asList("library_vulnerability", "host_and_container_vulnerability")); + new HashSet(Arrays.asList("library_vulnerability")); public static final RemediationGroupFindingType LIBRARY_VULNERABILITY = new RemediationGroupFindingType("library_vulnerability"); - public static final RemediationGroupFindingType HOST_AND_CONTAINER_VULNERABILITY = - new RemediationGroupFindingType("host_and_container_vulnerability"); RemediationGroupFindingType(String value) { super(value, allowedValues); diff --git a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupImageUpdate.java b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupImageUpdate.java deleted file mode 100644 index 91e2e9eed21..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupImageUpdate.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** - * An image or package to upgrade, for a group of host and container vulnerabilities ( - * cloudvm.image_update). The group gathers the open vulnerabilities of running production - * images that have a fix available, and groups them by grouping_location, - * remediation_kind, and action. - */ -@JsonPropertyOrder({ - RemediationGroupImageUpdate.JSON_PROPERTY_ACTION, - RemediationGroupImageUpdate.JSON_PROPERTY_ADVISORY_COUNT, - RemediationGroupImageUpdate.JSON_PROPERTY_EXPLOITABLE_CVE_COUNT, - RemediationGroupImageUpdate.JSON_PROPERTY_FILE_COUNT, - RemediationGroupImageUpdate.JSON_PROPERTY_GROUPING_LOCATION, - RemediationGroupImageUpdate.JSON_PROPERTY_LOCATION_IS_FILENAME, - RemediationGroupImageUpdate.JSON_PROPERTY_REMEDIATION_KIND, - RemediationGroupImageUpdate.JSON_PROPERTY_TARGET_VERSION -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class RemediationGroupImageUpdate { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ACTION = "action"; - private String action; - - public static final String JSON_PROPERTY_ADVISORY_COUNT = "advisory_count"; - private Long advisoryCount; - - public static final String JSON_PROPERTY_EXPLOITABLE_CVE_COUNT = "exploitable_cve_count"; - private Long exploitableCveCount; - - public static final String JSON_PROPERTY_FILE_COUNT = "file_count"; - private Long fileCount; - - public static final String JSON_PROPERTY_GROUPING_LOCATION = "grouping_location"; - private String groupingLocation; - - public static final String JSON_PROPERTY_LOCATION_IS_FILENAME = "location_is_filename"; - private Boolean locationIsFilename; - - public static final String JSON_PROPERTY_REMEDIATION_KIND = "remediation_kind"; - private String remediationKind; - - public static final String JSON_PROPERTY_TARGET_VERSION = "target_version"; - private String targetVersion; - - public RemediationGroupImageUpdate() {} - - @JsonCreator - public RemediationGroupImageUpdate( - @JsonProperty(required = true, value = JSON_PROPERTY_ACTION) String action, - @JsonProperty(required = true, value = JSON_PROPERTY_ADVISORY_COUNT) Long advisoryCount, - @JsonProperty(required = true, value = JSON_PROPERTY_EXPLOITABLE_CVE_COUNT) - Long exploitableCveCount, - @JsonProperty(required = true, value = JSON_PROPERTY_FILE_COUNT) Long fileCount, - @JsonProperty(required = true, value = JSON_PROPERTY_GROUPING_LOCATION) - String groupingLocation, - @JsonProperty(required = true, value = JSON_PROPERTY_LOCATION_IS_FILENAME) - Boolean locationIsFilename, - @JsonProperty(required = true, value = JSON_PROPERTY_REMEDIATION_KIND) - String remediationKind) { - this.action = action; - this.advisoryCount = advisoryCount; - this.exploitableCveCount = exploitableCveCount; - this.fileCount = fileCount; - this.groupingLocation = groupingLocation; - this.locationIsFilename = locationIsFilename; - this.remediationKind = remediationKind; - } - - public RemediationGroupImageUpdate action(String action) { - this.action = action; - return this; - } - - /** - * Name of the container image, base image, or package to upgrade. The value comes from the first - * of these attributes that the findings have: - * @remediation.container_image.latest_major.name, - * @remediation.base_image.latest_major.name, or @remediation.recommended.name - * . - * - * @return action - */ - @JsonProperty(JSON_PROPERTY_ACTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAction() { - return action; - } - - public void setAction(String action) { - this.action = action; - } - - public RemediationGroupImageUpdate advisoryCount(Long advisoryCount) { - this.advisoryCount = advisoryCount; - return this; - } - - /** - * Number of distinct values of @advisory.id across the group's findings. - * - * @return advisoryCount - */ - @JsonProperty(JSON_PROPERTY_ADVISORY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAdvisoryCount() { - return advisoryCount; - } - - public void setAdvisoryCount(Long advisoryCount) { - this.advisoryCount = advisoryCount; - } - - public RemediationGroupImageUpdate exploitableCveCount(Long exploitableCveCount) { - this.exploitableCveCount = exploitableCveCount; - return this; - } - - /** - * Number of distinct values of @advisory.id across the group's findings that have - * @risk.has_exploit_available set to true. - * - * @return exploitableCveCount - */ - @JsonProperty(JSON_PROPERTY_EXPLOITABLE_CVE_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getExploitableCveCount() { - return exploitableCveCount; - } - - public void setExploitableCveCount(Long exploitableCveCount) { - this.exploitableCveCount = exploitableCveCount; - } - - public RemediationGroupImageUpdate fileCount(Long fileCount) { - this.fileCount = fileCount; - return this; - } - - /** - * Number of distinct values of @code_location.filename across the group's findings. - * - * @return fileCount - */ - @JsonProperty(JSON_PROPERTY_FILE_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getFileCount() { - return fileCount; - } - - public void setFileCount(Long fileCount) { - this.fileCount = fileCount; - } - - public RemediationGroupImageUpdate groupingLocation(String groupingLocation) { - this.groupingLocation = groupingLocation; - return this; - } - - /** - * File that contains the findings, from their @code_location.filename attribute. - * When no file is known, the value is the findings' @container_image.name. - * - * @return groupingLocation - */ - @JsonProperty(JSON_PROPERTY_GROUPING_LOCATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getGroupingLocation() { - return groupingLocation; - } - - public void setGroupingLocation(String groupingLocation) { - this.groupingLocation = groupingLocation; - } - - public RemediationGroupImageUpdate locationIsFilename(Boolean locationIsFilename) { - this.locationIsFilename = locationIsFilename; - return this; - } - - /** - * Whether grouping_location is a @code_location.filename rather than a - * @container_image.name. - * - * @return locationIsFilename - */ - @JsonProperty(JSON_PROPERTY_LOCATION_IS_FILENAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getLocationIsFilename() { - return locationIsFilename; - } - - public void setLocationIsFilename(Boolean locationIsFilename) { - this.locationIsFilename = locationIsFilename; - } - - public RemediationGroupImageUpdate remediationKind(String remediationKind) { - this.remediationKind = remediationKind; - return this; - } - - /** - * Kind of upgrade: image_update when the findings have a - * @remediation.container_image.latest_major.name, base_image_bump when they - * have @vulnerability.is_inherited_from_base_image set to true, and - * package_update otherwise. - * - * @return remediationKind - */ - @JsonProperty(JSON_PROPERTY_REMEDIATION_KIND) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRemediationKind() { - return remediationKind; - } - - public void setRemediationKind(String remediationKind) { - this.remediationKind = remediationKind; - } - - public RemediationGroupImageUpdate targetVersion(String targetVersion) { - this.targetVersion = targetVersion; - return this; - } - - /** - * Version to upgrade to: the @remediation.container_image.latest_major.tag or - * @remediation.base_image.latest_major.tag of the image in action, or else - * the highest @remediation.recommended.version across the group's findings. Omitted - * when no version is recommended or when the recommended versions can't be ordered. - * - * @return targetVersion - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TARGET_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTargetVersion() { - return targetVersion; - } - - public void setTargetVersion(String targetVersion) { - this.targetVersion = targetVersion; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return RemediationGroupImageUpdate - */ - @JsonAnySetter - public RemediationGroupImageUpdate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this RemediationGroupImageUpdate object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RemediationGroupImageUpdate remediationGroupImageUpdate = (RemediationGroupImageUpdate) o; - return Objects.equals(this.action, remediationGroupImageUpdate.action) - && Objects.equals(this.advisoryCount, remediationGroupImageUpdate.advisoryCount) - && Objects.equals(this.exploitableCveCount, remediationGroupImageUpdate.exploitableCveCount) - && Objects.equals(this.fileCount, remediationGroupImageUpdate.fileCount) - && Objects.equals(this.groupingLocation, remediationGroupImageUpdate.groupingLocation) - && Objects.equals(this.locationIsFilename, remediationGroupImageUpdate.locationIsFilename) - && Objects.equals(this.remediationKind, remediationGroupImageUpdate.remediationKind) - && Objects.equals(this.targetVersion, remediationGroupImageUpdate.targetVersion) - && Objects.equals( - this.additionalProperties, remediationGroupImageUpdate.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - action, - advisoryCount, - exploitableCveCount, - fileCount, - groupingLocation, - locationIsFilename, - remediationKind, - targetVersion, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RemediationGroupImageUpdate {\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); - sb.append(" advisoryCount: ").append(toIndentedString(advisoryCount)).append("\n"); - sb.append(" exploitableCveCount: ") - .append(toIndentedString(exploitableCveCount)) - .append("\n"); - sb.append(" fileCount: ").append(toIndentedString(fileCount)).append("\n"); - sb.append(" groupingLocation: ").append(toIndentedString(groupingLocation)).append("\n"); - sb.append(" locationIsFilename: ").append(toIndentedString(locationIsFilename)).append("\n"); - sb.append(" remediationKind: ").append(toIndentedString(remediationKind)).append("\n"); - sb.append(" targetVersion: ").append(toIndentedString(targetVersion)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupOwnerList.java b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupOwnerList.java new file mode 100644 index 00000000000..0c3466b667e --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupOwnerList.java @@ -0,0 +1,185 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * Owners of the group's open findings. items lists at most 5 owners, the owners of the + * most findings first, then by name. total counts every distinct owner, so the list is + * cut when total is larger than the number of items. + */ +@JsonPropertyOrder({ + RemediationGroupOwnerList.JSON_PROPERTY_ITEMS, + RemediationGroupOwnerList.JSON_PROPERTY_TOTAL +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class RemediationGroupOwnerList { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ITEMS = "items"; + private List items = new ArrayList<>(); + + public static final String JSON_PROPERTY_TOTAL = "total"; + private Long total; + + public RemediationGroupOwnerList() {} + + @JsonCreator + public RemediationGroupOwnerList( + @JsonProperty(required = true, value = JSON_PROPERTY_ITEMS) List items, + @JsonProperty(required = true, value = JSON_PROPERTY_TOTAL) Long total) { + this.items = items; + this.total = total; + } + + public RemediationGroupOwnerList items(List items) { + this.items = items; + return this; + } + + public RemediationGroupOwnerList addItemsItem(String itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * Owners of the most findings in the group, at most 5. + * + * @return items + */ + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + public RemediationGroupOwnerList total(Long total) { + this.total = total; + return this; + } + + /** + * Number of distinct owners across the group's findings. + * + * @return total + */ + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Long getTotal() { + return total; + } + + public void setTotal(Long total) { + this.total = total; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RemediationGroupOwnerList + */ + @JsonAnySetter + public RemediationGroupOwnerList putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this RemediationGroupOwnerList object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemediationGroupOwnerList remediationGroupOwnerList = (RemediationGroupOwnerList) o; + return Objects.equals(this.items, remediationGroupOwnerList.items) + && Objects.equals(this.total, remediationGroupOwnerList.total) + && Objects.equals( + this.additionalProperties, remediationGroupOwnerList.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(items, total, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationGroupOwnerList {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/RemediationGroupOwners.java b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupOwners.java new file mode 100644 index 00000000000..676507a9517 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/RemediationGroupOwners.java @@ -0,0 +1,192 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Who should fix the group: the code owners of the group's findings, from their + * @git.codeowners attribute, and their Datadog teams, from their team tag. A + * group with no owners has empty items and a total of 0. + */ +@JsonPropertyOrder({ + RemediationGroupOwners.JSON_PROPERTY_CODEOWNERS, + RemediationGroupOwners.JSON_PROPERTY_TEAMS +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class RemediationGroupOwners { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_CODEOWNERS = "codeowners"; + private RemediationGroupOwnerList codeowners; + + public static final String JSON_PROPERTY_TEAMS = "teams"; + private RemediationGroupOwnerList teams; + + public RemediationGroupOwners() {} + + @JsonCreator + public RemediationGroupOwners( + @JsonProperty(required = true, value = JSON_PROPERTY_CODEOWNERS) + RemediationGroupOwnerList codeowners, + @JsonProperty(required = true, value = JSON_PROPERTY_TEAMS) RemediationGroupOwnerList teams) { + this.codeowners = codeowners; + this.unparsed |= codeowners.unparsed; + this.teams = teams; + this.unparsed |= teams.unparsed; + } + + public RemediationGroupOwners codeowners(RemediationGroupOwnerList codeowners) { + this.codeowners = codeowners; + this.unparsed |= codeowners.unparsed; + return this; + } + + /** + * Owners of the group's open findings. items lists at most 5 owners, the owners of + * the most findings first, then by name. total counts every distinct owner, so the + * list is cut when total is larger than the number of items. + * + * @return codeowners + */ + @JsonProperty(JSON_PROPERTY_CODEOWNERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public RemediationGroupOwnerList getCodeowners() { + return codeowners; + } + + public void setCodeowners(RemediationGroupOwnerList codeowners) { + this.codeowners = codeowners; + if (codeowners != null) { + this.unparsed |= codeowners.unparsed; + } + } + + public RemediationGroupOwners teams(RemediationGroupOwnerList teams) { + this.teams = teams; + this.unparsed |= teams.unparsed; + return this; + } + + /** + * Owners of the group's open findings. items lists at most 5 owners, the owners of + * the most findings first, then by name. total counts every distinct owner, so the + * list is cut when total is larger than the number of items. + * + * @return teams + */ + @JsonProperty(JSON_PROPERTY_TEAMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public RemediationGroupOwnerList getTeams() { + return teams; + } + + public void setTeams(RemediationGroupOwnerList teams) { + this.teams = teams; + if (teams != null) { + this.unparsed |= teams.unparsed; + } + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return RemediationGroupOwners + */ + @JsonAnySetter + public RemediationGroupOwners putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this RemediationGroupOwners object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemediationGroupOwners remediationGroupOwners = (RemediationGroupOwners) o; + return Objects.equals(this.codeowners, remediationGroupOwners.codeowners) + && Objects.equals(this.teams, remediationGroupOwners.teams) + && Objects.equals(this.additionalProperties, remediationGroupOwners.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(codeowners, teams, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemediationGroupOwners {\n"); + sb.append(" codeowners: ").append(toIndentedString(codeowners)).append("\n"); + sb.append(" teams: ").append(toIndentedString(teams)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/test/resources/generated-test/test-server-data/v2/security-monitoring.json b/src/test/resources/generated-test/test-server-data/v2/security-monitoring.json index df58f20bb98..4a4ef4c4d0c 100644 --- a/src/test/resources/generated-test/test-server-data/v2/security-monitoring.json +++ b/src/test/resources/generated-test/test-server-data/v2/security-monitoring.json @@ -13360,7 +13360,7 @@ }, { "feature": "Security Monitoring", - "frozen_at": "2026-11-20T12:31:22.390Z", + "frozen_at": "2026-11-24T09:56:57.916Z", "interactions": [ { "request": { @@ -13376,7 +13376,7 @@ "response": { "body": { "encoding": "text", - "value": "{\"data\":[{\"id\":\"sca.package_update:eyJlY29zeXN0ZW0iOiJucG0iLCJyZWNvbW1lbmRlZF9uYW1lIjoibG9kYXNoIiwicmVwb3NpdG9yeV9pZCI6ImdpdGh1Yi5jb20vYWNtZS9hcGkifQ\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"sca.package_update\",\"title\":\"Update lodash to 4.17.21 in github.com/acme/api\",\"findings\":{\"total\":12,\"by_severity\":{\"critical\":2,\"high\":5,\"medium\":4,\"low\":1,\"info\":0,\"none\":0,\"unknown\":0}},\"package_update\":{\"repository_id\":\"github.com/acme/api\",\"ecosystem\":\"npm\",\"package_name\":\"lodash\",\"target_version\":\"4.17.21\",\"advisory_count\":3,\"exploitable_cve_count\":1,\"file_count\":2}},\"relationships\":{\"case\":{\"data\":{\"id\":\"c1234567-89ab-cdef-0123-456789abcdef\",\"type\":\"cases\"}}}},{\"id\":\"cloudvm.image_update:eyJhY3Rpb24iOiJhbHBpbmUiLCJncm91cGluZ19sb2NhdGlvbiI6IkRvY2tlcmZpbGUiLCJyZW1lZGlhdGlvbl9raW5kIjoiaW1hZ2VfdXBkYXRlIn0\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"cloudvm.image_update\",\"title\":\"Upgrade alpine to 3.20.3\",\"findings\":{\"total\":40,\"by_severity\":{\"critical\":1,\"high\":9,\"medium\":20,\"low\":10,\"info\":0,\"none\":0,\"unknown\":0}},\"image_update\":{\"grouping_location\":\"Dockerfile\",\"location_is_filename\":true,\"remediation_kind\":\"image_update\",\"action\":\"alpine\",\"target_version\":\"3.20.3\",\"advisory_count\":25,\"exploitable_cve_count\":2,\"file_count\":1}},\"relationships\":{\"case\":{\"data\":null}}}],\"meta\":{\"page\":{\"number\":1,\"size\":50,\"total_filtered_count\":2}}}" + "value": "{\"data\":[{\"id\":\"sca.package_update:eyJlY29zeXN0ZW0iOiJucG0iLCJyZWNvbW1lbmRlZF9uYW1lIjoibG9kYXNoIiwicmVwb3NpdG9yeV9pZCI6ImdpdGh1Yi5jb20vYWNtZS9hcGkifQ\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"sca.package_update\",\"title\":\"Update lodash to 4.17.21 in github.com/acme/api\",\"findings\":{\"total\":12,\"by_severity\":{\"critical\":2,\"high\":5,\"medium\":4,\"low\":1,\"info\":0,\"none\":0,\"unknown\":0}},\"owners\":{\"codeowners\":{\"items\":[\"@acme/payments\",\"@acme/platform\"],\"total\":2},\"teams\":{\"items\":[\"payments\"],\"total\":1}},\"package_update\":{\"repository_id\":\"github.com/acme/api\",\"ecosystem\":\"npm\",\"package_name\":\"lodash\",\"target_version\":\"4.17.21\",\"advisory_count\":3,\"exploitable_cve_count\":1,\"file_count\":2}},\"relationships\":{\"case\":{\"data\":{\"id\":\"c1234567-89ab-cdef-0123-456789abcdef\",\"type\":\"cases\"}}}},{\"id\":\"sca.package_update:eyJlY29zeXN0ZW0iOiJucG0iLCJyZWNvbW1lbmRlZF9uYW1lIjoiYXhpb3MiLCJyZXBvc2l0b3J5X2lkIjoiZ2l0aHViLmNvbS9hY21lL2FwaSJ9\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"sca.package_update\",\"title\":\"Update axios to 1.7.4 in github.com/acme/api\",\"findings\":{\"total\":6,\"by_severity\":{\"critical\":0,\"high\":3,\"medium\":2,\"low\":1,\"info\":0,\"none\":0,\"unknown\":0}},\"owners\":{\"codeowners\":{\"items\":[\"@acme/platform\"],\"total\":1},\"teams\":{\"items\":[\"platform\"],\"total\":1}},\"package_update\":{\"repository_id\":\"github.com/acme/api\",\"ecosystem\":\"npm\",\"package_name\":\"axios\",\"target_version\":\"1.7.4\",\"advisory_count\":2,\"exploitable_cve_count\":0,\"file_count\":1}},\"relationships\":{\"case\":{\"data\":null}}}],\"meta\":{\"page\":{\"number\":1,\"size\":50,\"total_filtered_count\":2}}}" }, "headers": { "content-type": "application/vnd.api+json" @@ -13391,7 +13391,7 @@ }, { "feature": "Security Monitoring", - "frozen_at": "2026-11-20T12:54:33.999Z", + "frozen_at": "2026-11-24T09:57:00.903Z", "interactions": [ { "request": { @@ -13416,7 +13416,7 @@ "response": { "body": { "encoding": "text", - "value": "{\"data\":[{\"id\":\"sca.package_update:eyJlY29zeXN0ZW0iOiJucG0iLCJyZWNvbW1lbmRlZF9uYW1lIjoibG9kYXNoIiwicmVwb3NpdG9yeV9pZCI6ImdpdGh1Yi5jb20vYWNtZS9hcGkifQ\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"sca.package_update\",\"title\":\"Update lodash to 4.17.21 in github.com/acme/api\",\"findings\":{\"total\":12,\"by_severity\":{\"critical\":2,\"high\":5,\"medium\":4,\"low\":1,\"info\":0,\"none\":0,\"unknown\":0}},\"package_update\":{\"repository_id\":\"github.com/acme/api\",\"ecosystem\":\"npm\",\"package_name\":\"lodash\",\"target_version\":\"4.17.21\",\"advisory_count\":3,\"exploitable_cve_count\":1,\"file_count\":2}},\"relationships\":{\"case\":{\"data\":{\"id\":\"c1234567-89ab-cdef-0123-456789abcdef\",\"type\":\"cases\"}}}},{\"id\":\"cloudvm.image_update:eyJhY3Rpb24iOiJhbHBpbmUiLCJncm91cGluZ19sb2NhdGlvbiI6IkRvY2tlcmZpbGUiLCJyZW1lZGlhdGlvbl9raW5kIjoiaW1hZ2VfdXBkYXRlIn0\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"cloudvm.image_update\",\"title\":\"Upgrade alpine to 3.20.3\",\"findings\":{\"total\":40,\"by_severity\":{\"critical\":1,\"high\":9,\"medium\":20,\"low\":10,\"info\":0,\"none\":0,\"unknown\":0}},\"image_update\":{\"grouping_location\":\"Dockerfile\",\"location_is_filename\":true,\"remediation_kind\":\"image_update\",\"action\":\"alpine\",\"target_version\":\"3.20.3\",\"advisory_count\":25,\"exploitable_cve_count\":2,\"file_count\":1}},\"relationships\":{\"case\":{\"data\":null}}}],\"meta\":{\"page\":{\"number\":1,\"size\":2,\"total_filtered_count\":3}}}" + "value": "{\"data\":[{\"id\":\"sca.package_update:eyJlY29zeXN0ZW0iOiJucG0iLCJyZWNvbW1lbmRlZF9uYW1lIjoibG9kYXNoIiwicmVwb3NpdG9yeV9pZCI6ImdpdGh1Yi5jb20vYWNtZS9hcGkifQ\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"sca.package_update\",\"title\":\"Update lodash to 4.17.21 in github.com/acme/api\",\"findings\":{\"total\":12,\"by_severity\":{\"critical\":2,\"high\":5,\"medium\":4,\"low\":1,\"info\":0,\"none\":0,\"unknown\":0}},\"owners\":{\"codeowners\":{\"items\":[\"@acme/payments\",\"@acme/platform\"],\"total\":2},\"teams\":{\"items\":[\"payments\"],\"total\":1}},\"package_update\":{\"repository_id\":\"github.com/acme/api\",\"ecosystem\":\"npm\",\"package_name\":\"lodash\",\"target_version\":\"4.17.21\",\"advisory_count\":3,\"exploitable_cve_count\":1,\"file_count\":2}},\"relationships\":{\"case\":{\"data\":{\"id\":\"c1234567-89ab-cdef-0123-456789abcdef\",\"type\":\"cases\"}}}},{\"id\":\"sca.package_update:eyJlY29zeXN0ZW0iOiJucG0iLCJyZWNvbW1lbmRlZF9uYW1lIjoiYXhpb3MiLCJyZXBvc2l0b3J5X2lkIjoiZ2l0aHViLmNvbS9hY21lL2FwaSJ9\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"sca.package_update\",\"title\":\"Update axios to 1.7.4 in github.com/acme/api\",\"findings\":{\"total\":6,\"by_severity\":{\"critical\":0,\"high\":3,\"medium\":2,\"low\":1,\"info\":0,\"none\":0,\"unknown\":0}},\"owners\":{\"codeowners\":{\"items\":[\"@acme/platform\"],\"total\":1},\"teams\":{\"items\":[\"platform\"],\"total\":1}},\"package_update\":{\"repository_id\":\"github.com/acme/api\",\"ecosystem\":\"npm\",\"package_name\":\"axios\",\"target_version\":\"1.7.4\",\"advisory_count\":2,\"exploitable_cve_count\":0,\"file_count\":1}},\"relationships\":{\"case\":{\"data\":null}}}],\"meta\":{\"page\":{\"number\":1,\"size\":2,\"total_filtered_count\":3}}}" }, "headers": { "content-type": "application/vnd.api+json" @@ -13448,7 +13448,7 @@ "response": { "body": { "encoding": "text", - "value": "{\"data\":[{\"id\":\"sca.package_update:eyJlY29zeXN0ZW0iOiJucG0iLCJyZWNvbW1lbmRlZF9uYW1lIjoibWluaW1pc3QiLCJyZXBvc2l0b3J5X2lkIjoiZ2l0aHViLmNvbS9hY21lL3dlYiJ9\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"sca.package_update\",\"title\":\"Update minimist to 1.2.8 in github.com/acme/web\",\"findings\":{\"total\":4,\"by_severity\":{\"critical\":1,\"high\":2,\"medium\":1,\"low\":0,\"info\":0,\"none\":0,\"unknown\":0}},\"package_update\":{\"repository_id\":\"github.com/acme/web\",\"ecosystem\":\"npm\",\"package_name\":\"minimist\",\"target_version\":\"1.2.8\",\"advisory_count\":2,\"exploitable_cve_count\":0,\"file_count\":1}},\"relationships\":{\"case\":{\"data\":null}}}],\"meta\":{\"page\":{\"number\":2,\"size\":2,\"total_filtered_count\":3}}}" + "value": "{\"data\":[{\"id\":\"sca.package_update:eyJlY29zeXN0ZW0iOiJucG0iLCJyZWNvbW1lbmRlZF9uYW1lIjoibWluaW1pc3QiLCJyZXBvc2l0b3J5X2lkIjoiZ2l0aHViLmNvbS9hY21lL3dlYiJ9\",\"type\":\"remediation_groups\",\"attributes\":{\"grouping_definition_id\":\"sca.package_update\",\"title\":\"Update minimist to 1.2.8 in github.com/acme/web\",\"findings\":{\"total\":4,\"by_severity\":{\"critical\":1,\"high\":2,\"medium\":1,\"low\":0,\"info\":0,\"none\":0,\"unknown\":0}},\"owners\":{\"codeowners\":{\"items\":[],\"total\":0},\"teams\":{\"items\":[\"web\"],\"total\":1}},\"package_update\":{\"repository_id\":\"github.com/acme/web\",\"ecosystem\":\"npm\",\"package_name\":\"minimist\",\"target_version\":\"1.2.8\",\"advisory_count\":2,\"exploitable_cve_count\":0,\"file_count\":1}},\"relationships\":{\"case\":{\"data\":null}}}],\"meta\":{\"page\":{\"number\":2,\"size\":2,\"total_filtered_count\":3}}}" }, "headers": { "content-type": "application/vnd.api+json"