diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 17509b56882..09edf2f7e31 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -37849,6 +37849,121 @@ components:
type: string
x-enum-varnames:
- RULESET
+ ResolveVulnerableSymbolsRequest:
+ description: The definition of `ResolveVulnerableSymbolsRequest` object.
+ properties:
+ data:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsRequestData'
+ type: object
+ ResolveVulnerableSymbolsRequestData:
+ description: The definition of `ResolveVulnerableSymbolsRequestData` object.
+ properties:
+ attributes:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsRequestDataAttributes'
+ id:
+ description: The `ResolveVulnerableSymbolsRequestData` `id`.
+ type: string
+ type:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsRequestDataType'
+ required:
+ - type
+ type: object
+ ResolveVulnerableSymbolsRequestDataAttributes:
+ description: The definition of `ResolveVulnerableSymbolsRequestDataAttributes`
+ object.
+ properties:
+ purls:
+ description: The `attributes` `purls`.
+ items:
+ type: string
+ type: array
+ type: object
+ ResolveVulnerableSymbolsRequestDataType:
+ default: resolve-vulnerable-symbols-request
+ description: Resolve vulnerable symbols request resource type.
+ enum:
+ - resolve-vulnerable-symbols-request
+ example: resolve-vulnerable-symbols-request
+ type: string
+ x-enum-varnames:
+ - RESOLVE_VULNERABLE_SYMBOLS_REQUEST
+ ResolveVulnerableSymbolsResponse:
+ description: The definition of `ResolveVulnerableSymbolsResponse` object.
+ properties:
+ data:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseData'
+ type: object
+ ResolveVulnerableSymbolsResponseData:
+ description: The definition of `ResolveVulnerableSymbolsResponseData` object.
+ properties:
+ attributes:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseDataAttributes'
+ id:
+ description: The `ResolveVulnerableSymbolsResponseData` `id`.
+ type: string
+ type:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseDataType'
+ required:
+ - type
+ type: object
+ ResolveVulnerableSymbolsResponseDataAttributes:
+ description: The definition of `ResolveVulnerableSymbolsResponseDataAttributes`
+ object.
+ properties:
+ results:
+ description: The `attributes` `results`.
+ items:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseResults'
+ type: array
+ type: object
+ ResolveVulnerableSymbolsResponseDataType:
+ default: resolve-vulnerable-symbols-response
+ description: Resolve vulnerable symbols response resource type.
+ enum:
+ - resolve-vulnerable-symbols-response
+ example: resolve-vulnerable-symbols-response
+ type: string
+ x-enum-varnames:
+ - RESOLVE_VULNERABLE_SYMBOLS_RESPONSE
+ ResolveVulnerableSymbolsResponseResults:
+ description: The definition of `ResolveVulnerableSymbolsResponseResults` object.
+ properties:
+ purl:
+ description: The `items` `purl`.
+ type: string
+ vulnerable_symbols:
+ description: The `items` `vulnerable_symbols`.
+ items:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols'
+ type: array
+ type: object
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbols:
+ description: The definition of `ResolveVulnerableSymbolsResponseResultsVulnerableSymbols`
+ object.
+ properties:
+ advisory_id:
+ description: The `items` `advisory_id`.
+ type: string
+ symbols:
+ description: The `items` `symbols`.
+ items:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols'
+ type: array
+ type: object
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols:
+ description: The definition of `ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols`
+ object.
+ properties:
+ name:
+ description: The `items` `name`.
+ type: string
+ type:
+ description: The `items` `type`.
+ type: string
+ value:
+ description: The `items` `value`.
+ type: string
+ type: object
ResourceFilterAttributes:
description: Attributes of a resource filter.
example:
@@ -40193,6 +40308,243 @@ components:
example: report_id
type: string
type: object
+ ScaRequest:
+ description: The definition of `ScaRequest` object.
+ properties:
+ data:
+ $ref: '#/components/schemas/ScaRequestData'
+ type: object
+ ScaRequestData:
+ description: The definition of `ScaRequestData` object.
+ properties:
+ attributes:
+ $ref: '#/components/schemas/ScaRequestDataAttributes'
+ id:
+ description: The `ScaRequestData` `id`.
+ type: string
+ type:
+ $ref: '#/components/schemas/ScaRequestDataType'
+ required:
+ - type
+ type: object
+ ScaRequestDataAttributes:
+ description: The definition of `ScaRequestDataAttributes` object.
+ properties:
+ commit:
+ $ref: '#/components/schemas/ScaRequestDataAttributesCommit'
+ dependencies:
+ description: The `attributes` `dependencies`.
+ items:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItems'
+ type: array
+ env:
+ description: The `attributes` `env`.
+ type: string
+ files:
+ description: The `attributes` `files`.
+ items:
+ $ref: '#/components/schemas/ScaRequestDataAttributesFilesItems'
+ type: array
+ relations:
+ description: The `attributes` `relations`.
+ items:
+ $ref: '#/components/schemas/ScaRequestDataAttributesRelationsItems'
+ type: array
+ repository:
+ $ref: '#/components/schemas/ScaRequestDataAttributesRepository'
+ service:
+ description: The `attributes` `service`.
+ type: string
+ tags:
+ additionalProperties:
+ type: string
+ description: The `attributes` `tags`.
+ type: object
+ vulnerabilities:
+ description: The `attributes` `vulnerabilities`.
+ items:
+ $ref: '#/components/schemas/ScaRequestDataAttributesVulnerabilitiesItems'
+ type: array
+ type: object
+ ScaRequestDataAttributesCommit:
+ description: The definition of `ScaRequestDataAttributesCommit` object.
+ properties:
+ author_date:
+ description: The `commit` `author_date`.
+ type: string
+ author_email:
+ description: The `commit` `author_email`.
+ type: string
+ author_name:
+ description: The `commit` `author_name`.
+ type: string
+ branch:
+ description: The `commit` `branch`.
+ type: string
+ committer_email:
+ description: The `commit` `committer_email`.
+ type: string
+ committer_name:
+ description: The `commit` `committer_name`.
+ type: string
+ sha:
+ description: The `commit` `sha`.
+ type: string
+ type: object
+ ScaRequestDataAttributesDependenciesItems:
+ description: The definition of `ScaRequestDataAttributesDependenciesItems` object.
+ properties:
+ exclusions:
+ description: The `items` `exclusions`.
+ items:
+ type: string
+ type: array
+ group:
+ description: The `items` `group`.
+ type: string
+ is_dev:
+ description: The `items` `is_dev`.
+ type: boolean
+ is_direct:
+ description: The `items` `is_direct`.
+ type: boolean
+ language:
+ description: The `items` `language`.
+ type: string
+ locations:
+ description: The `items` `locations`.
+ items:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItems'
+ type: array
+ name:
+ description: The `items` `name`.
+ type: string
+ package_manager:
+ description: The `items` `package_manager`.
+ type: string
+ purl:
+ description: The `items` `purl`.
+ type: string
+ reachable_symbol_properties:
+ description: The `items` `reachable_symbol_properties`.
+ items:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems'
+ type: array
+ version:
+ description: The `items` `version`.
+ type: string
+ type: object
+ ScaRequestDataAttributesDependenciesItemsLocationsItems:
+ description: The definition of `ScaRequestDataAttributesDependenciesItemsLocationsItems`
+ object.
+ properties:
+ block:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition'
+ name:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition'
+ namespace:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition'
+ version:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition'
+ type: object
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition:
+ description: A position in a file
+ properties:
+ end:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition'
+ file_name:
+ description: The `file_name`.
+ type: string
+ start:
+ $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition'
+ type: object
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition:
+ description: A position
+ properties:
+ col:
+ description: The `col`.
+ format: int32
+ maximum: 2147483647
+ type: integer
+ line:
+ description: The `line`.
+ format: int32
+ maximum: 2147483647
+ type: integer
+ type: object
+ ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems:
+ description: The definition of `ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems`
+ object.
+ properties:
+ name:
+ description: The `items` `name`.
+ type: string
+ value:
+ description: The `items` `value`.
+ type: string
+ type: object
+ ScaRequestDataAttributesFilesItems:
+ description: The definition of `ScaRequestDataAttributesFilesItems` object.
+ properties:
+ name:
+ description: The `items` `name`.
+ type: string
+ purl:
+ description: The `items` `purl`.
+ type: string
+ type: object
+ ScaRequestDataAttributesRelationsItems:
+ description: The definition of `ScaRequestDataAttributesRelationsItems` object.
+ properties:
+ depends_on:
+ description: The `items` `depends_on`.
+ items:
+ type: string
+ type: array
+ ref:
+ description: The `items` `ref`.
+ type: string
+ type: object
+ ScaRequestDataAttributesRepository:
+ description: The definition of `ScaRequestDataAttributesRepository` object.
+ properties:
+ url:
+ description: The `repository` `url`.
+ type: string
+ type: object
+ ScaRequestDataAttributesVulnerabilitiesItems:
+ description: The definition of `ScaRequestDataAttributesVulnerabilitiesItems`
+ object.
+ properties:
+ affects:
+ description: The `items` `affects`.
+ items:
+ $ref: '#/components/schemas/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems'
+ type: array
+ bom_ref:
+ description: The `items` `bom_ref`.
+ type: string
+ id:
+ description: The `items` `id`.
+ type: string
+ type: object
+ ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems:
+ description: The definition of `ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems`
+ object.
+ properties:
+ ref:
+ description: The `items` `ref`.
+ type: string
+ type: object
+ ScaRequestDataType:
+ default: scarequests
+ description: Scarequests resource type.
+ enum:
+ - scarequests
+ example: scarequests
+ type: string
+ x-enum-varnames:
+ - SCAREQUESTS
ScalarColumn:
description: A single column in a scalar query response.
oneOf:
@@ -73460,6 +73812,58 @@ paths:
cursorPath: meta.page.after
limitParam: body.data.attributes.page.limit
resultsPath: data
+ /api/v2/static-analysis-sca/dependencies:
+ post:
+ description: Post dependencies for analysis
+ operationId: CreateSCAResult
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ScaRequest'
+ required: true
+ responses:
+ '200':
+ description: OK
+ '429':
+ $ref: '#/components/responses/TooManyRequestsResponse'
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - code_analysis_read
+ summary: Post dependencies for analysis
+ tags:
+ - Static Analysis
+ x-unstable: '**Note**: This endpoint may be subject to changes.'
+ /api/v2/static-analysis-sca/vulnerabilities/resolve-vulnerable-symbols:
+ post:
+ description: Post vulnerable symbols
+ operationId: CreateSCAResolveVulnerableSymbols
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsRequest'
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ResolveVulnerableSymbolsResponse'
+ description: OK
+ '429':
+ $ref: '#/components/responses/TooManyRequestsResponse'
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ:
+ - code_analysis_read
+ summary: POST request to resolve vulnerable symbols
+ tags:
+ - Static Analysis
+ x-unstable: '**Note**: This endpoint may be subject to changes.'
/api/v2/synthetics/settings/on_demand_concurrency_cap:
get:
description: Get the on-demand concurrency cap.
@@ -76975,6 +77379,8 @@ tags:
description: Find out more at
url: https://docs.datadoghq.com/tracing/metrics/metrics_namespace/
name: Spans Metrics
+- description: API for static analysis
+ name: Static Analysis
- description: "Datadog Synthetics uses simulated user requests and browser rendering
to help you ensure uptime,\nidentify regional issues, and track your application
performance. Datadog Synthetics tests come in\ntwo different flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/)\nand
diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline.java b/examples/v1/logs-pipelines/CreateLogsPipeline.java
index 653c2920035..91d40089f1a 100644
--- a/examples/v1/logs-pipelines/CreateLogsPipeline.java
+++ b/examples/v1/logs-pipelines/CreateLogsPipeline.java
@@ -29,12 +29,10 @@ public static void main(String[] args) {
.matchRules("""
rule_name_1 foo
rule_name_2 bar
-
""")
.supportRules("""
rule_name_1 foo
rule_name_2 bar
-
"""))
.isEnabled(false)
.source("message")
diff --git a/examples/v1/logs-pipelines/UpdateLogsPipeline.java b/examples/v1/logs-pipelines/UpdateLogsPipeline.java
index bf5e4f82fe3..12e3d98923f 100644
--- a/examples/v1/logs-pipelines/UpdateLogsPipeline.java
+++ b/examples/v1/logs-pipelines/UpdateLogsPipeline.java
@@ -29,12 +29,10 @@ public static void main(String[] args) {
.matchRules("""
rule_name_1 foo
rule_name_2 bar
-
""")
.supportRules("""
rule_name_1 foo
rule_name_2 bar
-
"""))
.isEnabled(false)
.source("message")
diff --git a/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.java b/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.java
new file mode 100644
index 00000000000..041e9d22a18
--- /dev/null
+++ b/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.java
@@ -0,0 +1,39 @@
+// POST request to resolve vulnerable symbols returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.StaticAnalysisApi;
+import com.datadog.api.client.v2.model.ResolveVulnerableSymbolsRequest;
+import com.datadog.api.client.v2.model.ResolveVulnerableSymbolsRequestData;
+import com.datadog.api.client.v2.model.ResolveVulnerableSymbolsRequestDataAttributes;
+import com.datadog.api.client.v2.model.ResolveVulnerableSymbolsRequestDataType;
+import com.datadog.api.client.v2.model.ResolveVulnerableSymbolsResponse;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createSCAResolveVulnerableSymbols", true);
+ StaticAnalysisApi apiInstance = new StaticAnalysisApi(defaultClient);
+
+ ResolveVulnerableSymbolsRequest body =
+ new ResolveVulnerableSymbolsRequest()
+ .data(
+ new ResolveVulnerableSymbolsRequestData()
+ .attributes(new ResolveVulnerableSymbolsRequestDataAttributes())
+ .type(
+ ResolveVulnerableSymbolsRequestDataType
+ .RESOLVE_VULNERABLE_SYMBOLS_REQUEST));
+
+ try {
+ ResolveVulnerableSymbolsResponse result = apiInstance.createSCAResolveVulnerableSymbols(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println(
+ "Exception when calling StaticAnalysisApi#createSCAResolveVulnerableSymbols");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/static-analysis/CreateSCAResult.java b/examples/v2/static-analysis/CreateSCAResult.java
new file mode 100644
index 00000000000..d0855efc5d6
--- /dev/null
+++ b/examples/v2/static-analysis/CreateSCAResult.java
@@ -0,0 +1,93 @@
+// Post dependencies for analysis returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.StaticAnalysisApi;
+import com.datadog.api.client.v2.model.ScaRequest;
+import com.datadog.api.client.v2.model.ScaRequestData;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributes;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesCommit;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesDependenciesItems;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesDependenciesItemsLocationsItems;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesFilesItems;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesRelationsItems;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesRepository;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesVulnerabilitiesItems;
+import com.datadog.api.client.v2.model.ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems;
+import com.datadog.api.client.v2.model.ScaRequestDataType;
+import java.util.Collections;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ defaultClient.setUnstableOperationEnabled("v2.createSCAResult", true);
+ StaticAnalysisApi apiInstance = new StaticAnalysisApi(defaultClient);
+
+ ScaRequest body =
+ new ScaRequest()
+ .data(
+ new ScaRequestData()
+ .attributes(
+ new ScaRequestDataAttributes()
+ .commit(new ScaRequestDataAttributesCommit())
+ .dependencies(
+ Collections.singletonList(
+ new ScaRequestDataAttributesDependenciesItems()
+ .locations(
+ Collections.singletonList(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItems()
+ .block(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition()
+ .end(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition())
+ .start(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition()))
+ .name(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition()
+ .end(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition())
+ .start(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition()))
+ .namespace(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition()
+ .end(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition())
+ .start(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition()))
+ .version(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition()
+ .end(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition())
+ .start(
+ new ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition()))))
+ .reachableSymbolProperties(
+ Collections.singletonList(
+ new ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems()))))
+ .files(
+ Collections.singletonList(new ScaRequestDataAttributesFilesItems()))
+ .relations(
+ Collections.singletonList(
+ new ScaRequestDataAttributesRelationsItems()))
+ .repository(new ScaRequestDataAttributesRepository())
+ .vulnerabilities(
+ Collections.singletonList(
+ new ScaRequestDataAttributesVulnerabilitiesItems()
+ .affects(
+ Collections.singletonList(
+ new ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems())))))
+ .type(ScaRequestDataType.SCAREQUESTS));
+
+ try {
+ apiInstance.createSCAResult(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StaticAnalysisApi#createSCAResult");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java
index 089349ea92e..1ca9dac616f 100644
--- a/src/main/java/com/datadog/api/client/ApiClient.java
+++ b/src/main/java/com/datadog/api/client/ApiClient.java
@@ -784,6 +784,8 @@ public class ApiClient {
put("v2.getSLOReport", false);
put("v2.getSLOReportJobStatus", false);
put("v2.getSPARecommendations", false);
+ put("v2.createSCAResolveVulnerableSymbols", false);
+ put("v2.createSCAResult", false);
put("v2.addMemberTeam", false);
put("v2.listMemberTeams", false);
put("v2.removeMemberTeam", false);
diff --git a/src/main/java/com/datadog/api/client/v2/api/StaticAnalysisApi.java b/src/main/java/com/datadog/api/client/v2/api/StaticAnalysisApi.java
new file mode 100644
index 00000000000..2c98069513b
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/api/StaticAnalysisApi.java
@@ -0,0 +1,345 @@
+package com.datadog.api.client.v2.api;
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.ApiResponse;
+import com.datadog.api.client.Pair;
+import com.datadog.api.client.v2.model.ResolveVulnerableSymbolsRequest;
+import com.datadog.api.client.v2.model.ResolveVulnerableSymbolsResponse;
+import com.datadog.api.client.v2.model.ScaRequest;
+import jakarta.ws.rs.client.Invocation;
+import jakarta.ws.rs.core.GenericType;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.CompletableFuture;
+
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class StaticAnalysisApi {
+ private ApiClient apiClient;
+
+ public StaticAnalysisApi() {
+ this(ApiClient.getDefaultApiClient());
+ }
+
+ public StaticAnalysisApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Get the API client.
+ *
+ * @return API client
+ */
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ /**
+ * Set the API client.
+ *
+ * @param apiClient an instance of API client
+ */
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * POST request to resolve vulnerable symbols.
+ *
+ *
See {@link #createSCAResolveVulnerableSymbolsWithHttpInfo}.
+ *
+ * @param body (required)
+ * @return ResolveVulnerableSymbolsResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ResolveVulnerableSymbolsResponse createSCAResolveVulnerableSymbols(
+ ResolveVulnerableSymbolsRequest body) throws ApiException {
+ return createSCAResolveVulnerableSymbolsWithHttpInfo(body).getData();
+ }
+
+ /**
+ * POST request to resolve vulnerable symbols.
+ *
+ *
See {@link #createSCAResolveVulnerableSymbolsWithHttpInfoAsync}.
+ *
+ * @param body (required)
+ * @return CompletableFuture<ResolveVulnerableSymbolsResponse>
+ */
+ public CompletableFuture createSCAResolveVulnerableSymbolsAsync(
+ ResolveVulnerableSymbolsRequest body) {
+ return createSCAResolveVulnerableSymbolsWithHttpInfoAsync(body)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Post vulnerable symbols
+ *
+ * @param body (required)
+ * @return ApiResponse<ResolveVulnerableSymbolsResponse>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse
+ createSCAResolveVulnerableSymbolsWithHttpInfo(ResolveVulnerableSymbolsRequest body)
+ throws ApiException {
+ // Check if unstable operation is enabled
+ String operationId = "createSCAResolveVulnerableSymbols";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
+ }
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(
+ 400,
+ "Missing the required parameter 'body' when calling createSCAResolveVulnerableSymbols");
+ }
+ // create path and map variables
+ String localVarPath = "/api/v2/static-analysis-sca/vulnerabilities/resolve-vulnerable-symbols";
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.StaticAnalysisApi.createSCAResolveVulnerableSymbols",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "POST",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * POST request to resolve vulnerable symbols.
+ *
+ * See {@link #createSCAResolveVulnerableSymbolsWithHttpInfo}.
+ *
+ * @param body (required)
+ * @return CompletableFuture<ApiResponse<ResolveVulnerableSymbolsResponse>>
+ */
+ public CompletableFuture>
+ createSCAResolveVulnerableSymbolsWithHttpInfoAsync(ResolveVulnerableSymbolsRequest body) {
+ // Check if unstable operation is enabled
+ String operationId = "createSCAResolveVulnerableSymbols";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
+ return result;
+ }
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400,
+ "Missing the required parameter 'body' when calling"
+ + " createSCAResolveVulnerableSymbols"));
+ return result;
+ }
+ // create path and map variables
+ String localVarPath = "/api/v2/static-analysis-sca/vulnerabilities/resolve-vulnerable-symbols";
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.StaticAnalysisApi.createSCAResolveVulnerableSymbols",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result =
+ new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "POST",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * Post dependencies for analysis.
+ *
+ * See {@link #createSCAResultWithHttpInfo}.
+ *
+ * @param body (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void createSCAResult(ScaRequest body) throws ApiException {
+ createSCAResultWithHttpInfo(body);
+ }
+
+ /**
+ * Post dependencies for analysis.
+ *
+ *
See {@link #createSCAResultWithHttpInfoAsync}.
+ *
+ * @param body (required)
+ * @return CompletableFuture
+ */
+ public CompletableFuture createSCAResultAsync(ScaRequest body) {
+ return createSCAResultWithHttpInfoAsync(body)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Post dependencies for analysis
+ *
+ * @param body (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * Status Code | Description | Response Headers |
+ * 200 | OK | - |
+ * 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse createSCAResultWithHttpInfo(ScaRequest body) throws ApiException {
+ // Check if unstable operation is enabled
+ String operationId = "createSCAResult";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
+ }
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(
+ 400, "Missing the required parameter 'body' when calling createSCAResult");
+ }
+ // create path and map variables
+ String localVarPath = "/api/v2/static-analysis-sca/dependencies";
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.StaticAnalysisApi.createSCAResult",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"*/*"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "POST",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ null);
+ }
+
+ /**
+ * Post dependencies for analysis.
+ *
+ * See {@link #createSCAResultWithHttpInfo}.
+ *
+ * @param body (required)
+ * @return CompletableFuture<ApiResponse<Void>>
+ */
+ public CompletableFuture> createSCAResultWithHttpInfoAsync(ScaRequest body) {
+ // Check if unstable operation is enabled
+ String operationId = "createSCAResult";
+ if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
+ apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
+ } else {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
+ return result;
+ }
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400, "Missing the required parameter 'body' when calling createSCAResult"));
+ return result;
+ }
+ // create path and map variables
+ String localVarPath = "/api/v2/static-analysis-sca/dependencies";
+
+ Map localVarHeaderParams = new HashMap();
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.StaticAnalysisApi.createSCAResult",
+ localVarPath,
+ new ArrayList(),
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"*/*"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "POST",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ null);
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequest.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequest.java
new file mode 100644
index 00000000000..3d46b8a14b2
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequest.java
@@ -0,0 +1,138 @@
+/*
+ * 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.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;
+
+/** The definition of ResolveVulnerableSymbolsRequest
object. */
+@JsonPropertyOrder({ResolveVulnerableSymbolsRequest.JSON_PROPERTY_DATA})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsRequest {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_DATA = "data";
+ private ResolveVulnerableSymbolsRequestData data;
+
+ public ResolveVulnerableSymbolsRequest data(ResolveVulnerableSymbolsRequestData data) {
+ this.data = data;
+ this.unparsed |= data.unparsed;
+ return this;
+ }
+
+ /**
+ * The definition of ResolveVulnerableSymbolsRequestData
object.
+ *
+ * @return data
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_DATA)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ResolveVulnerableSymbolsRequestData getData() {
+ return data;
+ }
+
+ public void setData(ResolveVulnerableSymbolsRequestData data) {
+ this.data = data;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsRequest
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsRequest 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 ResolveVulnerableSymbolsRequest object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsRequest resolveVulnerableSymbolsRequest =
+ (ResolveVulnerableSymbolsRequest) o;
+ return Objects.equals(this.data, resolveVulnerableSymbolsRequest.data)
+ && Objects.equals(
+ this.additionalProperties, resolveVulnerableSymbolsRequest.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(data, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsRequest {\n");
+ sb.append(" data: ").append(toIndentedString(data)).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/ResolveVulnerableSymbolsRequestData.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequestData.java
new file mode 100644
index 00000000000..6bea54384e0
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequestData.java
@@ -0,0 +1,210 @@
+/*
+ * 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;
+
+/** The definition of ResolveVulnerableSymbolsRequestData
object. */
+@JsonPropertyOrder({
+ ResolveVulnerableSymbolsRequestData.JSON_PROPERTY_ATTRIBUTES,
+ ResolveVulnerableSymbolsRequestData.JSON_PROPERTY_ID,
+ ResolveVulnerableSymbolsRequestData.JSON_PROPERTY_TYPE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsRequestData {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
+ private ResolveVulnerableSymbolsRequestDataAttributes attributes;
+
+ public static final String JSON_PROPERTY_ID = "id";
+ private String id;
+
+ public static final String JSON_PROPERTY_TYPE = "type";
+ private ResolveVulnerableSymbolsRequestDataType type =
+ ResolveVulnerableSymbolsRequestDataType.RESOLVE_VULNERABLE_SYMBOLS_REQUEST;
+
+ public ResolveVulnerableSymbolsRequestData() {}
+
+ @JsonCreator
+ public ResolveVulnerableSymbolsRequestData(
+ @JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
+ ResolveVulnerableSymbolsRequestDataType type) {
+ this.type = type;
+ this.unparsed |= !type.isValid();
+ }
+
+ public ResolveVulnerableSymbolsRequestData attributes(
+ ResolveVulnerableSymbolsRequestDataAttributes attributes) {
+ this.attributes = attributes;
+ this.unparsed |= attributes.unparsed;
+ return this;
+ }
+
+ /**
+ * The definition of ResolveVulnerableSymbolsRequestDataAttributes
object.
+ *
+ * @return attributes
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ResolveVulnerableSymbolsRequestDataAttributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(ResolveVulnerableSymbolsRequestDataAttributes attributes) {
+ this.attributes = attributes;
+ }
+
+ public ResolveVulnerableSymbolsRequestData id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * The ResolveVulnerableSymbolsRequestData
id
.
+ *
+ * @return id
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public ResolveVulnerableSymbolsRequestData type(ResolveVulnerableSymbolsRequestDataType type) {
+ this.type = type;
+ this.unparsed |= !type.isValid();
+ return this;
+ }
+
+ /**
+ * Resolve vulnerable symbols request resource type.
+ *
+ * @return type
+ */
+ @JsonProperty(JSON_PROPERTY_TYPE)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public ResolveVulnerableSymbolsRequestDataType getType() {
+ return type;
+ }
+
+ public void setType(ResolveVulnerableSymbolsRequestDataType type) {
+ if (!type.isValid()) {
+ this.unparsed = true;
+ }
+ this.type = type;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsRequestData
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsRequestData 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 ResolveVulnerableSymbolsRequestData object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsRequestData resolveVulnerableSymbolsRequestData =
+ (ResolveVulnerableSymbolsRequestData) o;
+ return Objects.equals(this.attributes, resolveVulnerableSymbolsRequestData.attributes)
+ && Objects.equals(this.id, resolveVulnerableSymbolsRequestData.id)
+ && Objects.equals(this.type, resolveVulnerableSymbolsRequestData.type)
+ && Objects.equals(
+ this.additionalProperties, resolveVulnerableSymbolsRequestData.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(attributes, id, type, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsRequestData {\n");
+ sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).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/ResolveVulnerableSymbolsRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequestDataAttributes.java
new file mode 100644
index 00000000000..b036aa4f4ea
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequestDataAttributes.java
@@ -0,0 +1,149 @@
+/*
+ * 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.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;
+
+/** The definition of ResolveVulnerableSymbolsRequestDataAttributes
object. */
+@JsonPropertyOrder({ResolveVulnerableSymbolsRequestDataAttributes.JSON_PROPERTY_PURLS})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsRequestDataAttributes {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_PURLS = "purls";
+ private List purls = null;
+
+ public ResolveVulnerableSymbolsRequestDataAttributes purls(List purls) {
+ this.purls = purls;
+ return this;
+ }
+
+ public ResolveVulnerableSymbolsRequestDataAttributes addPurlsItem(String purlsItem) {
+ if (this.purls == null) {
+ this.purls = new ArrayList<>();
+ }
+ this.purls.add(purlsItem);
+ return this;
+ }
+
+ /**
+ * The attributes
purls
.
+ *
+ * @return purls
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PURLS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getPurls() {
+ return purls;
+ }
+
+ public void setPurls(List purls) {
+ this.purls = purls;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsRequestDataAttributes
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsRequestDataAttributes 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 ResolveVulnerableSymbolsRequestDataAttributes object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsRequestDataAttributes resolveVulnerableSymbolsRequestDataAttributes =
+ (ResolveVulnerableSymbolsRequestDataAttributes) o;
+ return Objects.equals(this.purls, resolveVulnerableSymbolsRequestDataAttributes.purls)
+ && Objects.equals(
+ this.additionalProperties,
+ resolveVulnerableSymbolsRequestDataAttributes.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(purls, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsRequestDataAttributes {\n");
+ sb.append(" purls: ").append(toIndentedString(purls)).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/ResolveVulnerableSymbolsRequestDataType.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequestDataType.java
new file mode 100644
index 00000000000..0c62062c3a7
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsRequestDataType.java
@@ -0,0 +1,63 @@
+/*
+ * 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.datadog.api.client.ModelEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/** Resolve vulnerable symbols request resource type. */
+@JsonSerialize(
+ using =
+ ResolveVulnerableSymbolsRequestDataType.ResolveVulnerableSymbolsRequestDataTypeSerializer
+ .class)
+public class ResolveVulnerableSymbolsRequestDataType extends ModelEnum {
+
+ private static final Set allowedValues =
+ new HashSet(Arrays.asList("resolve-vulnerable-symbols-request"));
+
+ public static final ResolveVulnerableSymbolsRequestDataType RESOLVE_VULNERABLE_SYMBOLS_REQUEST =
+ new ResolveVulnerableSymbolsRequestDataType("resolve-vulnerable-symbols-request");
+
+ ResolveVulnerableSymbolsRequestDataType(String value) {
+ super(value, allowedValues);
+ }
+
+ public static class ResolveVulnerableSymbolsRequestDataTypeSerializer
+ extends StdSerializer {
+ public ResolveVulnerableSymbolsRequestDataTypeSerializer(
+ Class t) {
+ super(t);
+ }
+
+ public ResolveVulnerableSymbolsRequestDataTypeSerializer() {
+ this(null);
+ }
+
+ @Override
+ public void serialize(
+ ResolveVulnerableSymbolsRequestDataType value,
+ JsonGenerator jgen,
+ SerializerProvider provider)
+ throws IOException, JsonProcessingException {
+ jgen.writeObject(value.value);
+ }
+ }
+
+ @JsonCreator
+ public static ResolveVulnerableSymbolsRequestDataType fromValue(String value) {
+ return new ResolveVulnerableSymbolsRequestDataType(value);
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponse.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponse.java
new file mode 100644
index 00000000000..46eaccbb890
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponse.java
@@ -0,0 +1,138 @@
+/*
+ * 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.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;
+
+/** The definition of ResolveVulnerableSymbolsResponse
object. */
+@JsonPropertyOrder({ResolveVulnerableSymbolsResponse.JSON_PROPERTY_DATA})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsResponse {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_DATA = "data";
+ private ResolveVulnerableSymbolsResponseData data;
+
+ public ResolveVulnerableSymbolsResponse data(ResolveVulnerableSymbolsResponseData data) {
+ this.data = data;
+ this.unparsed |= data.unparsed;
+ return this;
+ }
+
+ /**
+ * The definition of ResolveVulnerableSymbolsResponseData
object.
+ *
+ * @return data
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_DATA)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ResolveVulnerableSymbolsResponseData getData() {
+ return data;
+ }
+
+ public void setData(ResolveVulnerableSymbolsResponseData data) {
+ this.data = data;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsResponse
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsResponse 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 ResolveVulnerableSymbolsResponse object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsResponse resolveVulnerableSymbolsResponse =
+ (ResolveVulnerableSymbolsResponse) o;
+ return Objects.equals(this.data, resolveVulnerableSymbolsResponse.data)
+ && Objects.equals(
+ this.additionalProperties, resolveVulnerableSymbolsResponse.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(data, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsResponse {\n");
+ sb.append(" data: ").append(toIndentedString(data)).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/ResolveVulnerableSymbolsResponseData.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseData.java
new file mode 100644
index 00000000000..e7983f4c927
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseData.java
@@ -0,0 +1,210 @@
+/*
+ * 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;
+
+/** The definition of ResolveVulnerableSymbolsResponseData
object. */
+@JsonPropertyOrder({
+ ResolveVulnerableSymbolsResponseData.JSON_PROPERTY_ATTRIBUTES,
+ ResolveVulnerableSymbolsResponseData.JSON_PROPERTY_ID,
+ ResolveVulnerableSymbolsResponseData.JSON_PROPERTY_TYPE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsResponseData {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
+ private ResolveVulnerableSymbolsResponseDataAttributes attributes;
+
+ public static final String JSON_PROPERTY_ID = "id";
+ private String id;
+
+ public static final String JSON_PROPERTY_TYPE = "type";
+ private ResolveVulnerableSymbolsResponseDataType type =
+ ResolveVulnerableSymbolsResponseDataType.RESOLVE_VULNERABLE_SYMBOLS_RESPONSE;
+
+ public ResolveVulnerableSymbolsResponseData() {}
+
+ @JsonCreator
+ public ResolveVulnerableSymbolsResponseData(
+ @JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
+ ResolveVulnerableSymbolsResponseDataType type) {
+ this.type = type;
+ this.unparsed |= !type.isValid();
+ }
+
+ public ResolveVulnerableSymbolsResponseData attributes(
+ ResolveVulnerableSymbolsResponseDataAttributes attributes) {
+ this.attributes = attributes;
+ this.unparsed |= attributes.unparsed;
+ return this;
+ }
+
+ /**
+ * The definition of ResolveVulnerableSymbolsResponseDataAttributes
object.
+ *
+ * @return attributes
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ResolveVulnerableSymbolsResponseDataAttributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(ResolveVulnerableSymbolsResponseDataAttributes attributes) {
+ this.attributes = attributes;
+ }
+
+ public ResolveVulnerableSymbolsResponseData id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * The ResolveVulnerableSymbolsResponseData
id
.
+ *
+ * @return id
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public ResolveVulnerableSymbolsResponseData type(ResolveVulnerableSymbolsResponseDataType type) {
+ this.type = type;
+ this.unparsed |= !type.isValid();
+ return this;
+ }
+
+ /**
+ * Resolve vulnerable symbols response resource type.
+ *
+ * @return type
+ */
+ @JsonProperty(JSON_PROPERTY_TYPE)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public ResolveVulnerableSymbolsResponseDataType getType() {
+ return type;
+ }
+
+ public void setType(ResolveVulnerableSymbolsResponseDataType type) {
+ if (!type.isValid()) {
+ this.unparsed = true;
+ }
+ this.type = type;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsResponseData
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsResponseData 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 ResolveVulnerableSymbolsResponseData object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsResponseData resolveVulnerableSymbolsResponseData =
+ (ResolveVulnerableSymbolsResponseData) o;
+ return Objects.equals(this.attributes, resolveVulnerableSymbolsResponseData.attributes)
+ && Objects.equals(this.id, resolveVulnerableSymbolsResponseData.id)
+ && Objects.equals(this.type, resolveVulnerableSymbolsResponseData.type)
+ && Objects.equals(
+ this.additionalProperties, resolveVulnerableSymbolsResponseData.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(attributes, id, type, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsResponseData {\n");
+ sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).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/ResolveVulnerableSymbolsResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseDataAttributes.java
new file mode 100644
index 00000000000..4bedb57d808
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseDataAttributes.java
@@ -0,0 +1,155 @@
+/*
+ * 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.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;
+
+/** The definition of ResolveVulnerableSymbolsResponseDataAttributes
object. */
+@JsonPropertyOrder({ResolveVulnerableSymbolsResponseDataAttributes.JSON_PROPERTY_RESULTS})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsResponseDataAttributes {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_RESULTS = "results";
+ private List results = null;
+
+ public ResolveVulnerableSymbolsResponseDataAttributes results(
+ List results) {
+ this.results = results;
+ for (ResolveVulnerableSymbolsResponseResults item : results) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ResolveVulnerableSymbolsResponseDataAttributes addResultsItem(
+ ResolveVulnerableSymbolsResponseResults resultsItem) {
+ if (this.results == null) {
+ this.results = new ArrayList<>();
+ }
+ this.results.add(resultsItem);
+ this.unparsed |= resultsItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The attributes
results
.
+ *
+ * @return results
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_RESULTS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getResults() {
+ return results;
+ }
+
+ public void setResults(List results) {
+ this.results = results;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsResponseDataAttributes
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsResponseDataAttributes 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 ResolveVulnerableSymbolsResponseDataAttributes object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsResponseDataAttributes resolveVulnerableSymbolsResponseDataAttributes =
+ (ResolveVulnerableSymbolsResponseDataAttributes) o;
+ return Objects.equals(this.results, resolveVulnerableSymbolsResponseDataAttributes.results)
+ && Objects.equals(
+ this.additionalProperties,
+ resolveVulnerableSymbolsResponseDataAttributes.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(results, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsResponseDataAttributes {\n");
+ sb.append(" results: ").append(toIndentedString(results)).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/ResolveVulnerableSymbolsResponseDataType.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseDataType.java
new file mode 100644
index 00000000000..4f40d1a05a4
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseDataType.java
@@ -0,0 +1,63 @@
+/*
+ * 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.datadog.api.client.ModelEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/** Resolve vulnerable symbols response resource type. */
+@JsonSerialize(
+ using =
+ ResolveVulnerableSymbolsResponseDataType.ResolveVulnerableSymbolsResponseDataTypeSerializer
+ .class)
+public class ResolveVulnerableSymbolsResponseDataType extends ModelEnum {
+
+ private static final Set allowedValues =
+ new HashSet(Arrays.asList("resolve-vulnerable-symbols-response"));
+
+ public static final ResolveVulnerableSymbolsResponseDataType RESOLVE_VULNERABLE_SYMBOLS_RESPONSE =
+ new ResolveVulnerableSymbolsResponseDataType("resolve-vulnerable-symbols-response");
+
+ ResolveVulnerableSymbolsResponseDataType(String value) {
+ super(value, allowedValues);
+ }
+
+ public static class ResolveVulnerableSymbolsResponseDataTypeSerializer
+ extends StdSerializer {
+ public ResolveVulnerableSymbolsResponseDataTypeSerializer(
+ Class t) {
+ super(t);
+ }
+
+ public ResolveVulnerableSymbolsResponseDataTypeSerializer() {
+ this(null);
+ }
+
+ @Override
+ public void serialize(
+ ResolveVulnerableSymbolsResponseDataType value,
+ JsonGenerator jgen,
+ SerializerProvider provider)
+ throws IOException, JsonProcessingException {
+ jgen.writeObject(value.value);
+ }
+ }
+
+ @JsonCreator
+ public static ResolveVulnerableSymbolsResponseDataType fromValue(String value) {
+ return new ResolveVulnerableSymbolsResponseDataType(value);
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseResults.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseResults.java
new file mode 100644
index 00000000000..0d56aedf422
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseResults.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.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;
+
+/** The definition of ResolveVulnerableSymbolsResponseResults
object. */
+@JsonPropertyOrder({
+ ResolveVulnerableSymbolsResponseResults.JSON_PROPERTY_PURL,
+ ResolveVulnerableSymbolsResponseResults.JSON_PROPERTY_VULNERABLE_SYMBOLS
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsResponseResults {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_PURL = "purl";
+ private String purl;
+
+ public static final String JSON_PROPERTY_VULNERABLE_SYMBOLS = "vulnerable_symbols";
+ private List vulnerableSymbols = null;
+
+ public ResolveVulnerableSymbolsResponseResults purl(String purl) {
+ this.purl = purl;
+ return this;
+ }
+
+ /**
+ * The items
purl
.
+ *
+ * @return purl
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PURL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPurl() {
+ return purl;
+ }
+
+ public void setPurl(String purl) {
+ this.purl = purl;
+ }
+
+ public ResolveVulnerableSymbolsResponseResults vulnerableSymbols(
+ List vulnerableSymbols) {
+ this.vulnerableSymbols = vulnerableSymbols;
+ for (ResolveVulnerableSymbolsResponseResultsVulnerableSymbols item : vulnerableSymbols) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ResolveVulnerableSymbolsResponseResults addVulnerableSymbolsItem(
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbols vulnerableSymbolsItem) {
+ if (this.vulnerableSymbols == null) {
+ this.vulnerableSymbols = new ArrayList<>();
+ }
+ this.vulnerableSymbols.add(vulnerableSymbolsItem);
+ this.unparsed |= vulnerableSymbolsItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The items
vulnerable_symbols
.
+ *
+ * @return vulnerableSymbols
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VULNERABLE_SYMBOLS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getVulnerableSymbols() {
+ return vulnerableSymbols;
+ }
+
+ public void setVulnerableSymbols(
+ List vulnerableSymbols) {
+ this.vulnerableSymbols = vulnerableSymbols;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsResponseResults
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsResponseResults 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 ResolveVulnerableSymbolsResponseResults object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsResponseResults resolveVulnerableSymbolsResponseResults =
+ (ResolveVulnerableSymbolsResponseResults) o;
+ return Objects.equals(this.purl, resolveVulnerableSymbolsResponseResults.purl)
+ && Objects.equals(
+ this.vulnerableSymbols, resolveVulnerableSymbolsResponseResults.vulnerableSymbols)
+ && Objects.equals(
+ this.additionalProperties,
+ resolveVulnerableSymbolsResponseResults.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(purl, vulnerableSymbols, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsResponseResults {\n");
+ sb.append(" purl: ").append(toIndentedString(purl)).append("\n");
+ sb.append(" vulnerableSymbols: ").append(toIndentedString(vulnerableSymbols)).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/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.java
new file mode 100644
index 00000000000..90864069555
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.java
@@ -0,0 +1,193 @@
+/*
+ * 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.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;
+
+/**
+ * The definition of ResolveVulnerableSymbolsResponseResultsVulnerableSymbols
object.
+ */
+@JsonPropertyOrder({
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.JSON_PROPERTY_ADVISORY_ID,
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.JSON_PROPERTY_SYMBOLS
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsResponseResultsVulnerableSymbols {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADVISORY_ID = "advisory_id";
+ private String advisoryId;
+
+ public static final String JSON_PROPERTY_SYMBOLS = "symbols";
+ private List symbols = null;
+
+ public ResolveVulnerableSymbolsResponseResultsVulnerableSymbols advisoryId(String advisoryId) {
+ this.advisoryId = advisoryId;
+ return this;
+ }
+
+ /**
+ * The items
advisory_id
.
+ *
+ * @return advisoryId
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADVISORY_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAdvisoryId() {
+ return advisoryId;
+ }
+
+ public void setAdvisoryId(String advisoryId) {
+ this.advisoryId = advisoryId;
+ }
+
+ public ResolveVulnerableSymbolsResponseResultsVulnerableSymbols symbols(
+ List symbols) {
+ this.symbols = symbols;
+ for (ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols item : symbols) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ResolveVulnerableSymbolsResponseResultsVulnerableSymbols addSymbolsItem(
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols symbolsItem) {
+ if (this.symbols == null) {
+ this.symbols = new ArrayList<>();
+ }
+ this.symbols.add(symbolsItem);
+ this.unparsed |= symbolsItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The items
symbols
.
+ *
+ * @return symbols
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_SYMBOLS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getSymbols() {
+ return symbols;
+ }
+
+ public void setSymbols(
+ List symbols) {
+ this.symbols = symbols;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsResponseResultsVulnerableSymbols
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsResponseResultsVulnerableSymbols 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 ResolveVulnerableSymbolsResponseResultsVulnerableSymbols object is equal to
+ * o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbols
+ resolveVulnerableSymbolsResponseResultsVulnerableSymbols =
+ (ResolveVulnerableSymbolsResponseResultsVulnerableSymbols) o;
+ return Objects.equals(
+ this.advisoryId, resolveVulnerableSymbolsResponseResultsVulnerableSymbols.advisoryId)
+ && Objects.equals(
+ this.symbols, resolveVulnerableSymbolsResponseResultsVulnerableSymbols.symbols)
+ && Objects.equals(
+ this.additionalProperties,
+ resolveVulnerableSymbolsResponseResultsVulnerableSymbols.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(advisoryId, symbols, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsResponseResultsVulnerableSymbols {\n");
+ sb.append(" advisoryId: ").append(toIndentedString(advisoryId)).append("\n");
+ sb.append(" symbols: ").append(toIndentedString(symbols)).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/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.java b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.java
new file mode 100644
index 00000000000..74cb137be0a
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.java
@@ -0,0 +1,205 @@
+/*
+ * 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.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;
+
+/**
+ * The definition of ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols
+ * object.
+ */
+@JsonPropertyOrder({
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.JSON_PROPERTY_NAME,
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.JSON_PROPERTY_TYPE,
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.JSON_PROPERTY_VALUE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_NAME = "name";
+ private String name;
+
+ public static final String JSON_PROPERTY_TYPE = "type";
+ private String type;
+
+ public static final String JSON_PROPERTY_VALUE = "value";
+ private String value;
+
+ public ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * The items
name
.
+ *
+ * @return name
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * The items
type
.
+ *
+ * @return type
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TYPE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols value(String value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * The items
value
.
+ *
+ * @return value
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VALUE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * 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 ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols
+ */
+ @JsonAnySetter
+ public ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols 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 ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols object is
+ * equal to o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols
+ resolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols =
+ (ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols) o;
+ return Objects.equals(
+ this.name, resolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.name)
+ && Objects.equals(
+ this.type, resolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.type)
+ && Objects.equals(
+ this.value, resolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.value)
+ && Objects.equals(
+ this.additionalProperties,
+ resolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name, type, value, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols {\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" value: ").append(toIndentedString(value)).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/ScaRequest.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequest.java
new file mode 100644
index 00000000000..a515122f853
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequest.java
@@ -0,0 +1,136 @@
+/*
+ * 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.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;
+
+/** The definition of ScaRequest
object. */
+@JsonPropertyOrder({ScaRequest.JSON_PROPERTY_DATA})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequest {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_DATA = "data";
+ private ScaRequestData data;
+
+ public ScaRequest data(ScaRequestData data) {
+ this.data = data;
+ this.unparsed |= data.unparsed;
+ return this;
+ }
+
+ /**
+ * The definition of ScaRequestData
object.
+ *
+ * @return data
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_DATA)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestData getData() {
+ return data;
+ }
+
+ public void setData(ScaRequestData data) {
+ this.data = data;
+ }
+
+ /**
+ * 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 ScaRequest
+ */
+ @JsonAnySetter
+ public ScaRequest 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 ScaRequest object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequest scaRequest = (ScaRequest) o;
+ return Objects.equals(this.data, scaRequest.data)
+ && Objects.equals(this.additionalProperties, scaRequest.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(data, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequest {\n");
+ sb.append(" data: ").append(toIndentedString(data)).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/ScaRequestData.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestData.java
new file mode 100644
index 00000000000..64ede40f4bd
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestData.java
@@ -0,0 +1,205 @@
+/*
+ * 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;
+
+/** The definition of ScaRequestData
object. */
+@JsonPropertyOrder({
+ ScaRequestData.JSON_PROPERTY_ATTRIBUTES,
+ ScaRequestData.JSON_PROPERTY_ID,
+ ScaRequestData.JSON_PROPERTY_TYPE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestData {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
+ private ScaRequestDataAttributes attributes;
+
+ public static final String JSON_PROPERTY_ID = "id";
+ private String id;
+
+ public static final String JSON_PROPERTY_TYPE = "type";
+ private ScaRequestDataType type = ScaRequestDataType.SCAREQUESTS;
+
+ public ScaRequestData() {}
+
+ @JsonCreator
+ public ScaRequestData(
+ @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) ScaRequestDataType type) {
+ this.type = type;
+ this.unparsed |= !type.isValid();
+ }
+
+ public ScaRequestData attributes(ScaRequestDataAttributes attributes) {
+ this.attributes = attributes;
+ this.unparsed |= attributes.unparsed;
+ return this;
+ }
+
+ /**
+ * The definition of ScaRequestDataAttributes
object.
+ *
+ * @return attributes
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(ScaRequestDataAttributes attributes) {
+ this.attributes = attributes;
+ }
+
+ public ScaRequestData id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * The ScaRequestData
id
.
+ *
+ * @return id
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public ScaRequestData type(ScaRequestDataType type) {
+ this.type = type;
+ this.unparsed |= !type.isValid();
+ return this;
+ }
+
+ /**
+ * Scarequests resource type.
+ *
+ * @return type
+ */
+ @JsonProperty(JSON_PROPERTY_TYPE)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public ScaRequestDataType getType() {
+ return type;
+ }
+
+ public void setType(ScaRequestDataType type) {
+ if (!type.isValid()) {
+ this.unparsed = true;
+ }
+ this.type = type;
+ }
+
+ /**
+ * 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 ScaRequestData
+ */
+ @JsonAnySetter
+ public ScaRequestData 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 ScaRequestData object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestData scaRequestData = (ScaRequestData) o;
+ return Objects.equals(this.attributes, scaRequestData.attributes)
+ && Objects.equals(this.id, scaRequestData.id)
+ && Objects.equals(this.type, scaRequestData.type)
+ && Objects.equals(this.additionalProperties, scaRequestData.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(attributes, id, type, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestData {\n");
+ sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).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/ScaRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributes.java
new file mode 100644
index 00000000000..0075c9299fc
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributes.java
@@ -0,0 +1,430 @@
+/*
+ * 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.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;
+
+/** The definition of ScaRequestDataAttributes
object. */
+@JsonPropertyOrder({
+ ScaRequestDataAttributes.JSON_PROPERTY_COMMIT,
+ ScaRequestDataAttributes.JSON_PROPERTY_DEPENDENCIES,
+ ScaRequestDataAttributes.JSON_PROPERTY_ENV,
+ ScaRequestDataAttributes.JSON_PROPERTY_FILES,
+ ScaRequestDataAttributes.JSON_PROPERTY_RELATIONS,
+ ScaRequestDataAttributes.JSON_PROPERTY_REPOSITORY,
+ ScaRequestDataAttributes.JSON_PROPERTY_SERVICE,
+ ScaRequestDataAttributes.JSON_PROPERTY_TAGS,
+ ScaRequestDataAttributes.JSON_PROPERTY_VULNERABILITIES
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributes {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_COMMIT = "commit";
+ private ScaRequestDataAttributesCommit commit;
+
+ public static final String JSON_PROPERTY_DEPENDENCIES = "dependencies";
+ private List dependencies = null;
+
+ public static final String JSON_PROPERTY_ENV = "env";
+ private String env;
+
+ public static final String JSON_PROPERTY_FILES = "files";
+ private List files = null;
+
+ public static final String JSON_PROPERTY_RELATIONS = "relations";
+ private List relations = null;
+
+ public static final String JSON_PROPERTY_REPOSITORY = "repository";
+ private ScaRequestDataAttributesRepository repository;
+
+ public static final String JSON_PROPERTY_SERVICE = "service";
+ private String service;
+
+ public static final String JSON_PROPERTY_TAGS = "tags";
+ private Map tags = null;
+
+ public static final String JSON_PROPERTY_VULNERABILITIES = "vulnerabilities";
+ private List vulnerabilities = null;
+
+ public ScaRequestDataAttributes commit(ScaRequestDataAttributesCommit commit) {
+ this.commit = commit;
+ this.unparsed |= commit.unparsed;
+ return this;
+ }
+
+ /**
+ * The definition of ScaRequestDataAttributesCommit
object.
+ *
+ * @return commit
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_COMMIT)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributesCommit getCommit() {
+ return commit;
+ }
+
+ public void setCommit(ScaRequestDataAttributesCommit commit) {
+ this.commit = commit;
+ }
+
+ public ScaRequestDataAttributes dependencies(
+ List dependencies) {
+ this.dependencies = dependencies;
+ for (ScaRequestDataAttributesDependenciesItems item : dependencies) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ScaRequestDataAttributes addDependenciesItem(
+ ScaRequestDataAttributesDependenciesItems dependenciesItem) {
+ if (this.dependencies == null) {
+ this.dependencies = new ArrayList<>();
+ }
+ this.dependencies.add(dependenciesItem);
+ this.unparsed |= dependenciesItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The attributes
dependencies
.
+ *
+ * @return dependencies
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_DEPENDENCIES)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getDependencies() {
+ return dependencies;
+ }
+
+ public void setDependencies(List dependencies) {
+ this.dependencies = dependencies;
+ }
+
+ public ScaRequestDataAttributes env(String env) {
+ this.env = env;
+ return this;
+ }
+
+ /**
+ * The attributes
env
.
+ *
+ * @return env
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENV)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEnv() {
+ return env;
+ }
+
+ public void setEnv(String env) {
+ this.env = env;
+ }
+
+ public ScaRequestDataAttributes files(List files) {
+ this.files = files;
+ for (ScaRequestDataAttributesFilesItems item : files) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ScaRequestDataAttributes addFilesItem(ScaRequestDataAttributesFilesItems filesItem) {
+ if (this.files == null) {
+ this.files = new ArrayList<>();
+ }
+ this.files.add(filesItem);
+ this.unparsed |= filesItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The attributes
files
.
+ *
+ * @return files
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_FILES)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getFiles() {
+ return files;
+ }
+
+ public void setFiles(List files) {
+ this.files = files;
+ }
+
+ public ScaRequestDataAttributes relations(
+ List relations) {
+ this.relations = relations;
+ for (ScaRequestDataAttributesRelationsItems item : relations) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ScaRequestDataAttributes addRelationsItem(
+ ScaRequestDataAttributesRelationsItems relationsItem) {
+ if (this.relations == null) {
+ this.relations = new ArrayList<>();
+ }
+ this.relations.add(relationsItem);
+ this.unparsed |= relationsItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The attributes
relations
.
+ *
+ * @return relations
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_RELATIONS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getRelations() {
+ return relations;
+ }
+
+ public void setRelations(List relations) {
+ this.relations = relations;
+ }
+
+ public ScaRequestDataAttributes repository(ScaRequestDataAttributesRepository repository) {
+ this.repository = repository;
+ this.unparsed |= repository.unparsed;
+ return this;
+ }
+
+ /**
+ * The definition of ScaRequestDataAttributesRepository
object.
+ *
+ * @return repository
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_REPOSITORY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributesRepository getRepository() {
+ return repository;
+ }
+
+ public void setRepository(ScaRequestDataAttributesRepository repository) {
+ this.repository = repository;
+ }
+
+ public ScaRequestDataAttributes service(String service) {
+ this.service = service;
+ return this;
+ }
+
+ /**
+ * The attributes
service
.
+ *
+ * @return service
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_SERVICE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getService() {
+ return service;
+ }
+
+ public void setService(String service) {
+ this.service = service;
+ }
+
+ public ScaRequestDataAttributes tags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ public ScaRequestDataAttributes putTagsItem(String key, String tagsItem) {
+ if (this.tags == null) {
+ this.tags = new HashMap<>();
+ }
+ this.tags.put(key, tagsItem);
+ return this;
+ }
+
+ /**
+ * The attributes
tags
.
+ *
+ * @return tags
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TAGS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Map getTags() {
+ return tags;
+ }
+
+ public void setTags(Map tags) {
+ this.tags = tags;
+ }
+
+ public ScaRequestDataAttributes vulnerabilities(
+ List vulnerabilities) {
+ this.vulnerabilities = vulnerabilities;
+ for (ScaRequestDataAttributesVulnerabilitiesItems item : vulnerabilities) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ScaRequestDataAttributes addVulnerabilitiesItem(
+ ScaRequestDataAttributesVulnerabilitiesItems vulnerabilitiesItem) {
+ if (this.vulnerabilities == null) {
+ this.vulnerabilities = new ArrayList<>();
+ }
+ this.vulnerabilities.add(vulnerabilitiesItem);
+ this.unparsed |= vulnerabilitiesItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The attributes
vulnerabilities
.
+ *
+ * @return vulnerabilities
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VULNERABILITIES)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getVulnerabilities() {
+ return vulnerabilities;
+ }
+
+ public void setVulnerabilities(
+ List vulnerabilities) {
+ this.vulnerabilities = vulnerabilities;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributes
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributes 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 ScaRequestDataAttributes object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributes scaRequestDataAttributes = (ScaRequestDataAttributes) o;
+ return Objects.equals(this.commit, scaRequestDataAttributes.commit)
+ && Objects.equals(this.dependencies, scaRequestDataAttributes.dependencies)
+ && Objects.equals(this.env, scaRequestDataAttributes.env)
+ && Objects.equals(this.files, scaRequestDataAttributes.files)
+ && Objects.equals(this.relations, scaRequestDataAttributes.relations)
+ && Objects.equals(this.repository, scaRequestDataAttributes.repository)
+ && Objects.equals(this.service, scaRequestDataAttributes.service)
+ && Objects.equals(this.tags, scaRequestDataAttributes.tags)
+ && Objects.equals(this.vulnerabilities, scaRequestDataAttributes.vulnerabilities)
+ && Objects.equals(this.additionalProperties, scaRequestDataAttributes.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ commit,
+ dependencies,
+ env,
+ files,
+ relations,
+ repository,
+ service,
+ tags,
+ vulnerabilities,
+ additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributes {\n");
+ sb.append(" commit: ").append(toIndentedString(commit)).append("\n");
+ sb.append(" dependencies: ").append(toIndentedString(dependencies)).append("\n");
+ sb.append(" env: ").append(toIndentedString(env)).append("\n");
+ sb.append(" files: ").append(toIndentedString(files)).append("\n");
+ sb.append(" relations: ").append(toIndentedString(relations)).append("\n");
+ sb.append(" repository: ").append(toIndentedString(repository)).append("\n");
+ sb.append(" service: ").append(toIndentedString(service)).append("\n");
+ sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
+ sb.append(" vulnerabilities: ").append(toIndentedString(vulnerabilities)).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/ScaRequestDataAttributesCommit.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesCommit.java
new file mode 100644
index 00000000000..a8af4b5af4e
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesCommit.java
@@ -0,0 +1,309 @@
+/*
+ * 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.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;
+
+/** The definition of ScaRequestDataAttributesCommit
object. */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesCommit.JSON_PROPERTY_AUTHOR_DATE,
+ ScaRequestDataAttributesCommit.JSON_PROPERTY_AUTHOR_EMAIL,
+ ScaRequestDataAttributesCommit.JSON_PROPERTY_AUTHOR_NAME,
+ ScaRequestDataAttributesCommit.JSON_PROPERTY_BRANCH,
+ ScaRequestDataAttributesCommit.JSON_PROPERTY_COMMITTER_EMAIL,
+ ScaRequestDataAttributesCommit.JSON_PROPERTY_COMMITTER_NAME,
+ ScaRequestDataAttributesCommit.JSON_PROPERTY_SHA
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesCommit {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_AUTHOR_DATE = "author_date";
+ private String authorDate;
+
+ public static final String JSON_PROPERTY_AUTHOR_EMAIL = "author_email";
+ private String authorEmail;
+
+ public static final String JSON_PROPERTY_AUTHOR_NAME = "author_name";
+ private String authorName;
+
+ public static final String JSON_PROPERTY_BRANCH = "branch";
+ private String branch;
+
+ public static final String JSON_PROPERTY_COMMITTER_EMAIL = "committer_email";
+ private String committerEmail;
+
+ public static final String JSON_PROPERTY_COMMITTER_NAME = "committer_name";
+ private String committerName;
+
+ public static final String JSON_PROPERTY_SHA = "sha";
+ private String sha;
+
+ public ScaRequestDataAttributesCommit authorDate(String authorDate) {
+ this.authorDate = authorDate;
+ return this;
+ }
+
+ /**
+ * The commit
author_date
.
+ *
+ * @return authorDate
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_AUTHOR_DATE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAuthorDate() {
+ return authorDate;
+ }
+
+ public void setAuthorDate(String authorDate) {
+ this.authorDate = authorDate;
+ }
+
+ public ScaRequestDataAttributesCommit authorEmail(String authorEmail) {
+ this.authorEmail = authorEmail;
+ return this;
+ }
+
+ /**
+ * The commit
author_email
.
+ *
+ * @return authorEmail
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_AUTHOR_EMAIL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAuthorEmail() {
+ return authorEmail;
+ }
+
+ public void setAuthorEmail(String authorEmail) {
+ this.authorEmail = authorEmail;
+ }
+
+ public ScaRequestDataAttributesCommit authorName(String authorName) {
+ this.authorName = authorName;
+ return this;
+ }
+
+ /**
+ * The commit
author_name
.
+ *
+ * @return authorName
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_AUTHOR_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAuthorName() {
+ return authorName;
+ }
+
+ public void setAuthorName(String authorName) {
+ this.authorName = authorName;
+ }
+
+ public ScaRequestDataAttributesCommit branch(String branch) {
+ this.branch = branch;
+ return this;
+ }
+
+ /**
+ * The commit
branch
.
+ *
+ * @return branch
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_BRANCH)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getBranch() {
+ return branch;
+ }
+
+ public void setBranch(String branch) {
+ this.branch = branch;
+ }
+
+ public ScaRequestDataAttributesCommit committerEmail(String committerEmail) {
+ this.committerEmail = committerEmail;
+ return this;
+ }
+
+ /**
+ * The commit
committer_email
.
+ *
+ * @return committerEmail
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_COMMITTER_EMAIL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getCommitterEmail() {
+ return committerEmail;
+ }
+
+ public void setCommitterEmail(String committerEmail) {
+ this.committerEmail = committerEmail;
+ }
+
+ public ScaRequestDataAttributesCommit committerName(String committerName) {
+ this.committerName = committerName;
+ return this;
+ }
+
+ /**
+ * The commit
committer_name
.
+ *
+ * @return committerName
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_COMMITTER_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getCommitterName() {
+ return committerName;
+ }
+
+ public void setCommitterName(String committerName) {
+ this.committerName = committerName;
+ }
+
+ public ScaRequestDataAttributesCommit sha(String sha) {
+ this.sha = sha;
+ return this;
+ }
+
+ /**
+ * The commit
sha
.
+ *
+ * @return sha
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_SHA)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getSha() {
+ return sha;
+ }
+
+ public void setSha(String sha) {
+ this.sha = sha;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesCommit
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesCommit 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 ScaRequestDataAttributesCommit object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesCommit scaRequestDataAttributesCommit =
+ (ScaRequestDataAttributesCommit) o;
+ return Objects.equals(this.authorDate, scaRequestDataAttributesCommit.authorDate)
+ && Objects.equals(this.authorEmail, scaRequestDataAttributesCommit.authorEmail)
+ && Objects.equals(this.authorName, scaRequestDataAttributesCommit.authorName)
+ && Objects.equals(this.branch, scaRequestDataAttributesCommit.branch)
+ && Objects.equals(this.committerEmail, scaRequestDataAttributesCommit.committerEmail)
+ && Objects.equals(this.committerName, scaRequestDataAttributesCommit.committerName)
+ && Objects.equals(this.sha, scaRequestDataAttributesCommit.sha)
+ && Objects.equals(
+ this.additionalProperties, scaRequestDataAttributesCommit.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ authorDate,
+ authorEmail,
+ authorName,
+ branch,
+ committerEmail,
+ committerName,
+ sha,
+ additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesCommit {\n");
+ sb.append(" authorDate: ").append(toIndentedString(authorDate)).append("\n");
+ sb.append(" authorEmail: ").append(toIndentedString(authorEmail)).append("\n");
+ sb.append(" authorName: ").append(toIndentedString(authorName)).append("\n");
+ sb.append(" branch: ").append(toIndentedString(branch)).append("\n");
+ sb.append(" committerEmail: ").append(toIndentedString(committerEmail)).append("\n");
+ sb.append(" committerName: ").append(toIndentedString(committerName)).append("\n");
+ sb.append(" sha: ").append(toIndentedString(sha)).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/ScaRequestDataAttributesDependenciesItems.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItems.java
new file mode 100644
index 00000000000..b16de56ed34
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItems.java
@@ -0,0 +1,474 @@
+/*
+ * 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.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;
+
+/** The definition of ScaRequestDataAttributesDependenciesItems
object. */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_EXCLUSIONS,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_GROUP,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_IS_DEV,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_IS_DIRECT,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_LANGUAGE,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_LOCATIONS,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_NAME,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_PACKAGE_MANAGER,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_PURL,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_REACHABLE_SYMBOL_PROPERTIES,
+ ScaRequestDataAttributesDependenciesItems.JSON_PROPERTY_VERSION
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesDependenciesItems {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_EXCLUSIONS = "exclusions";
+ private List exclusions = null;
+
+ public static final String JSON_PROPERTY_GROUP = "group";
+ private String group;
+
+ public static final String JSON_PROPERTY_IS_DEV = "is_dev";
+ private Boolean isDev;
+
+ public static final String JSON_PROPERTY_IS_DIRECT = "is_direct";
+ private Boolean isDirect;
+
+ public static final String JSON_PROPERTY_LANGUAGE = "language";
+ private String language;
+
+ public static final String JSON_PROPERTY_LOCATIONS = "locations";
+ private List locations = null;
+
+ public static final String JSON_PROPERTY_NAME = "name";
+ private String name;
+
+ public static final String JSON_PROPERTY_PACKAGE_MANAGER = "package_manager";
+ private String packageManager;
+
+ public static final String JSON_PROPERTY_PURL = "purl";
+ private String purl;
+
+ public static final String JSON_PROPERTY_REACHABLE_SYMBOL_PROPERTIES =
+ "reachable_symbol_properties";
+ private List
+ reachableSymbolProperties = null;
+
+ public static final String JSON_PROPERTY_VERSION = "version";
+ private String version;
+
+ public ScaRequestDataAttributesDependenciesItems exclusions(List exclusions) {
+ this.exclusions = exclusions;
+ return this;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems addExclusionsItem(String exclusionsItem) {
+ if (this.exclusions == null) {
+ this.exclusions = new ArrayList<>();
+ }
+ this.exclusions.add(exclusionsItem);
+ return this;
+ }
+
+ /**
+ * The items
exclusions
.
+ *
+ * @return exclusions
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_EXCLUSIONS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getExclusions() {
+ return exclusions;
+ }
+
+ public void setExclusions(List exclusions) {
+ this.exclusions = exclusions;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems group(String group) {
+ this.group = group;
+ return this;
+ }
+
+ /**
+ * The items
group
.
+ *
+ * @return group
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_GROUP)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getGroup() {
+ return group;
+ }
+
+ public void setGroup(String group) {
+ this.group = group;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems isDev(Boolean isDev) {
+ this.isDev = isDev;
+ return this;
+ }
+
+ /**
+ * The items
is_dev
.
+ *
+ * @return isDev
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_IS_DEV)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getIsDev() {
+ return isDev;
+ }
+
+ public void setIsDev(Boolean isDev) {
+ this.isDev = isDev;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems isDirect(Boolean isDirect) {
+ this.isDirect = isDirect;
+ return this;
+ }
+
+ /**
+ * The items
is_direct
.
+ *
+ * @return isDirect
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_IS_DIRECT)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Boolean getIsDirect() {
+ return isDirect;
+ }
+
+ public void setIsDirect(Boolean isDirect) {
+ this.isDirect = isDirect;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems language(String language) {
+ this.language = language;
+ return this;
+ }
+
+ /**
+ * The items
language
.
+ *
+ * @return language
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_LANGUAGE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getLanguage() {
+ return language;
+ }
+
+ public void setLanguage(String language) {
+ this.language = language;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems locations(
+ List locations) {
+ this.locations = locations;
+ for (ScaRequestDataAttributesDependenciesItemsLocationsItems item : locations) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems addLocationsItem(
+ ScaRequestDataAttributesDependenciesItemsLocationsItems locationsItem) {
+ if (this.locations == null) {
+ this.locations = new ArrayList<>();
+ }
+ this.locations.add(locationsItem);
+ this.unparsed |= locationsItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The items
locations
.
+ *
+ * @return locations
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_LOCATIONS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getLocations() {
+ return locations;
+ }
+
+ public void setLocations(
+ List locations) {
+ this.locations = locations;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * The items
name
.
+ *
+ * @return name
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems packageManager(String packageManager) {
+ this.packageManager = packageManager;
+ return this;
+ }
+
+ /**
+ * The items
package_manager
.
+ *
+ * @return packageManager
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PACKAGE_MANAGER)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPackageManager() {
+ return packageManager;
+ }
+
+ public void setPackageManager(String packageManager) {
+ this.packageManager = packageManager;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems purl(String purl) {
+ this.purl = purl;
+ return this;
+ }
+
+ /**
+ * The items
purl
.
+ *
+ * @return purl
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PURL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPurl() {
+ return purl;
+ }
+
+ public void setPurl(String purl) {
+ this.purl = purl;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems reachableSymbolProperties(
+ List
+ reachableSymbolProperties) {
+ this.reachableSymbolProperties = reachableSymbolProperties;
+ for (ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems item :
+ reachableSymbolProperties) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems addReachableSymbolPropertiesItem(
+ ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems
+ reachableSymbolPropertiesItem) {
+ if (this.reachableSymbolProperties == null) {
+ this.reachableSymbolProperties = new ArrayList<>();
+ }
+ this.reachableSymbolProperties.add(reachableSymbolPropertiesItem);
+ this.unparsed |= reachableSymbolPropertiesItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The items
reachable_symbol_properties
.
+ *
+ * @return reachableSymbolProperties
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_REACHABLE_SYMBOL_PROPERTIES)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List
+ getReachableSymbolProperties() {
+ return reachableSymbolProperties;
+ }
+
+ public void setReachableSymbolProperties(
+ List
+ reachableSymbolProperties) {
+ this.reachableSymbolProperties = reachableSymbolProperties;
+ }
+
+ public ScaRequestDataAttributesDependenciesItems version(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * The items
version
.
+ *
+ * @return version
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VERSION)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesDependenciesItems
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesDependenciesItems 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 ScaRequestDataAttributesDependenciesItems object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesDependenciesItems scaRequestDataAttributesDependenciesItems =
+ (ScaRequestDataAttributesDependenciesItems) o;
+ return Objects.equals(this.exclusions, scaRequestDataAttributesDependenciesItems.exclusions)
+ && Objects.equals(this.group, scaRequestDataAttributesDependenciesItems.group)
+ && Objects.equals(this.isDev, scaRequestDataAttributesDependenciesItems.isDev)
+ && Objects.equals(this.isDirect, scaRequestDataAttributesDependenciesItems.isDirect)
+ && Objects.equals(this.language, scaRequestDataAttributesDependenciesItems.language)
+ && Objects.equals(this.locations, scaRequestDataAttributesDependenciesItems.locations)
+ && Objects.equals(this.name, scaRequestDataAttributesDependenciesItems.name)
+ && Objects.equals(
+ this.packageManager, scaRequestDataAttributesDependenciesItems.packageManager)
+ && Objects.equals(this.purl, scaRequestDataAttributesDependenciesItems.purl)
+ && Objects.equals(
+ this.reachableSymbolProperties,
+ scaRequestDataAttributesDependenciesItems.reachableSymbolProperties)
+ && Objects.equals(this.version, scaRequestDataAttributesDependenciesItems.version)
+ && Objects.equals(
+ this.additionalProperties,
+ scaRequestDataAttributesDependenciesItems.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ exclusions,
+ group,
+ isDev,
+ isDirect,
+ language,
+ locations,
+ name,
+ packageManager,
+ purl,
+ reachableSymbolProperties,
+ version,
+ additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesDependenciesItems {\n");
+ sb.append(" exclusions: ").append(toIndentedString(exclusions)).append("\n");
+ sb.append(" group: ").append(toIndentedString(group)).append("\n");
+ sb.append(" isDev: ").append(toIndentedString(isDev)).append("\n");
+ sb.append(" isDirect: ").append(toIndentedString(isDirect)).append("\n");
+ sb.append(" language: ").append(toIndentedString(language)).append("\n");
+ sb.append(" locations: ").append(toIndentedString(locations)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" packageManager: ").append(toIndentedString(packageManager)).append("\n");
+ sb.append(" purl: ").append(toIndentedString(purl)).append("\n");
+ sb.append(" reachableSymbolProperties: ")
+ .append(toIndentedString(reachableSymbolProperties))
+ .append("\n");
+ sb.append(" version: ").append(toIndentedString(version)).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/ScaRequestDataAttributesDependenciesItemsLocationsItems.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItemsLocationsItems.java
new file mode 100644
index 00000000000..20b9651f805
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItemsLocationsItems.java
@@ -0,0 +1,240 @@
+/*
+ * 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.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;
+
+/**
+ * The definition of ScaRequestDataAttributesDependenciesItemsLocationsItems
object.
+ */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesDependenciesItemsLocationsItems.JSON_PROPERTY_BLOCK,
+ ScaRequestDataAttributesDependenciesItemsLocationsItems.JSON_PROPERTY_NAME,
+ ScaRequestDataAttributesDependenciesItemsLocationsItems.JSON_PROPERTY_NAMESPACE,
+ ScaRequestDataAttributesDependenciesItemsLocationsItems.JSON_PROPERTY_VERSION
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesDependenciesItemsLocationsItems {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_BLOCK = "block";
+ private ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition block;
+
+ public static final String JSON_PROPERTY_NAME = "name";
+ private ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition name;
+
+ public static final String JSON_PROPERTY_NAMESPACE = "namespace";
+ private ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition namespace;
+
+ public static final String JSON_PROPERTY_VERSION = "version";
+ private ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition version;
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItems block(
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition block) {
+ this.block = block;
+ this.unparsed |= block.unparsed;
+ return this;
+ }
+
+ /**
+ * A position in a file
+ *
+ * @return block
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_BLOCK)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition getBlock() {
+ return block;
+ }
+
+ public void setBlock(ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition block) {
+ this.block = block;
+ }
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItems name(
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition name) {
+ this.name = name;
+ this.unparsed |= name.unparsed;
+ return this;
+ }
+
+ /**
+ * A position in a file
+ *
+ * @return name
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition getName() {
+ return name;
+ }
+
+ public void setName(ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition name) {
+ this.name = name;
+ }
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItems namespace(
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition namespace) {
+ this.namespace = namespace;
+ this.unparsed |= namespace.unparsed;
+ return this;
+ }
+
+ /**
+ * A position in a file
+ *
+ * @return namespace
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_NAMESPACE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition getNamespace() {
+ return namespace;
+ }
+
+ public void setNamespace(
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition namespace) {
+ this.namespace = namespace;
+ }
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItems version(
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition version) {
+ this.version = version;
+ this.unparsed |= version.unparsed;
+ return this;
+ }
+
+ /**
+ * A position in a file
+ *
+ * @return version
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VERSION)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition getVersion() {
+ return version;
+ }
+
+ public void setVersion(
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition version) {
+ this.version = version;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesDependenciesItemsLocationsItems
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesDependenciesItemsLocationsItems 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 ScaRequestDataAttributesDependenciesItemsLocationsItems object is equal to
+ * o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesDependenciesItemsLocationsItems
+ scaRequestDataAttributesDependenciesItemsLocationsItems =
+ (ScaRequestDataAttributesDependenciesItemsLocationsItems) o;
+ return Objects.equals(this.block, scaRequestDataAttributesDependenciesItemsLocationsItems.block)
+ && Objects.equals(this.name, scaRequestDataAttributesDependenciesItemsLocationsItems.name)
+ && Objects.equals(
+ this.namespace, scaRequestDataAttributesDependenciesItemsLocationsItems.namespace)
+ && Objects.equals(
+ this.version, scaRequestDataAttributesDependenciesItemsLocationsItems.version)
+ && Objects.equals(
+ this.additionalProperties,
+ scaRequestDataAttributesDependenciesItemsLocationsItems.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(block, name, namespace, version, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesDependenciesItemsLocationsItems {\n");
+ sb.append(" block: ").append(toIndentedString(block)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n");
+ sb.append(" version: ").append(toIndentedString(version)).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/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.java
new file mode 100644
index 00000000000..e3bfeec7f16
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.java
@@ -0,0 +1,209 @@
+/*
+ * 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.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;
+
+/** A position in a file */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.JSON_PROPERTY_END,
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.JSON_PROPERTY_FILE_NAME,
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.JSON_PROPERTY_START
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_END = "end";
+ private ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition end;
+
+ public static final String JSON_PROPERTY_FILE_NAME = "file_name";
+ private String fileName;
+
+ public static final String JSON_PROPERTY_START = "start";
+ private ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition start;
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition end(
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition end) {
+ this.end = end;
+ this.unparsed |= end.unparsed;
+ return this;
+ }
+
+ /**
+ * A position
+ *
+ * @return end
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_END)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition getEnd() {
+ return end;
+ }
+
+ public void setEnd(ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition end) {
+ this.end = end;
+ }
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition fileName(
+ String fileName) {
+ this.fileName = fileName;
+ return this;
+ }
+
+ /**
+ * The file_name
.
+ *
+ * @return fileName
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_FILE_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getFileName() {
+ return fileName;
+ }
+
+ public void setFileName(String fileName) {
+ this.fileName = fileName;
+ }
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition start(
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition start) {
+ this.start = start;
+ this.unparsed |= start.unparsed;
+ return this;
+ }
+
+ /**
+ * A position
+ *
+ * @return start
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_START)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition getStart() {
+ return start;
+ }
+
+ public void setStart(ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition start) {
+ this.start = start;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition 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 ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition object
+ * is equal to o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
+ scaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition =
+ (ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition) o;
+ return Objects.equals(
+ this.end, scaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.end)
+ && Objects.equals(
+ this.fileName,
+ scaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.fileName)
+ && Objects.equals(
+ this.start, scaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.start)
+ && Objects.equals(
+ this.additionalProperties,
+ scaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition
+ .additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(end, fileName, start, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition {\n");
+ sb.append(" end: ").append(toIndentedString(end)).append("\n");
+ sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n");
+ sb.append(" start: ").append(toIndentedString(start)).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/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.java
new file mode 100644
index 00000000000..4ffcf32edc8
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.java
@@ -0,0 +1,174 @@
+/*
+ * 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.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;
+
+/** A position */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.JSON_PROPERTY_COL,
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.JSON_PROPERTY_LINE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_COL = "col";
+ private Integer col;
+
+ public static final String JSON_PROPERTY_LINE = "line";
+ private Integer line;
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition col(Integer col) {
+ this.col = col;
+ return this;
+ }
+
+ /**
+ * The col
. maximum: 2147483647
+ *
+ * @return col
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_COL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Integer getCol() {
+ return col;
+ }
+
+ public void setCol(Integer col) {
+ this.col = col;
+ }
+
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition line(Integer line) {
+ this.line = line;
+ return this;
+ }
+
+ /**
+ * The line
. maximum: 2147483647
+ *
+ * @return line
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_LINE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public Integer getLine() {
+ return line;
+ }
+
+ public void setLine(Integer line) {
+ this.line = line;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition 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 ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition object is
+ * equal to o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition
+ scaRequestDataAttributesDependenciesItemsLocationsItemsPosition =
+ (ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition) o;
+ return Objects.equals(
+ this.col, scaRequestDataAttributesDependenciesItemsLocationsItemsPosition.col)
+ && Objects.equals(
+ this.line, scaRequestDataAttributesDependenciesItemsLocationsItemsPosition.line)
+ && Objects.equals(
+ this.additionalProperties,
+ scaRequestDataAttributesDependenciesItemsLocationsItemsPosition.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(col, line, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition {\n");
+ sb.append(" col: ").append(toIndentedString(col)).append("\n");
+ sb.append(" line: ").append(toIndentedString(line)).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/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.java
new file mode 100644
index 00000000000..77cb0431fc2
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.java
@@ -0,0 +1,180 @@
+/*
+ * 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.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;
+
+/**
+ * The definition of ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems
+ *
object.
+ */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.JSON_PROPERTY_NAME,
+ ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.JSON_PROPERTY_VALUE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_NAME = "name";
+ private String name;
+
+ public static final String JSON_PROPERTY_VALUE = "value";
+ private String value;
+
+ public ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * The items
name
.
+ *
+ * @return name
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems value(
+ String value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * The items
value
.
+ *
+ * @return value
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_VALUE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems
+ 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 ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems
+ * object is equal to o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems
+ scaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems =
+ (ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems) o;
+ return Objects.equals(
+ this.name, scaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.name)
+ && Objects.equals(
+ this.value,
+ scaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.value)
+ && Objects.equals(
+ this.additionalProperties,
+ scaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems
+ .additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name, value, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems {\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" value: ").append(toIndentedString(value)).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/ScaRequestDataAttributesFilesItems.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesFilesItems.java
new file mode 100644
index 00000000000..c43dd39216d
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesFilesItems.java
@@ -0,0 +1,166 @@
+/*
+ * 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.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;
+
+/** The definition of ScaRequestDataAttributesFilesItems
object. */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesFilesItems.JSON_PROPERTY_NAME,
+ ScaRequestDataAttributesFilesItems.JSON_PROPERTY_PURL
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesFilesItems {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_NAME = "name";
+ private String name;
+
+ public static final String JSON_PROPERTY_PURL = "purl";
+ private String purl;
+
+ public ScaRequestDataAttributesFilesItems name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * The items
name
.
+ *
+ * @return name
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_NAME)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public ScaRequestDataAttributesFilesItems purl(String purl) {
+ this.purl = purl;
+ return this;
+ }
+
+ /**
+ * The items
purl
.
+ *
+ * @return purl
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PURL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPurl() {
+ return purl;
+ }
+
+ public void setPurl(String purl) {
+ this.purl = purl;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesFilesItems
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesFilesItems 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 ScaRequestDataAttributesFilesItems object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesFilesItems scaRequestDataAttributesFilesItems =
+ (ScaRequestDataAttributesFilesItems) o;
+ return Objects.equals(this.name, scaRequestDataAttributesFilesItems.name)
+ && Objects.equals(this.purl, scaRequestDataAttributesFilesItems.purl)
+ && Objects.equals(
+ this.additionalProperties, scaRequestDataAttributesFilesItems.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name, purl, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesFilesItems {\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" purl: ").append(toIndentedString(purl)).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/ScaRequestDataAttributesRelationsItems.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesRelationsItems.java
new file mode 100644
index 00000000000..a307b8f5e1b
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesRelationsItems.java
@@ -0,0 +1,176 @@
+/*
+ * 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.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;
+
+/** The definition of ScaRequestDataAttributesRelationsItems
object. */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesRelationsItems.JSON_PROPERTY_DEPENDS_ON,
+ ScaRequestDataAttributesRelationsItems.JSON_PROPERTY_REF
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesRelationsItems {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_DEPENDS_ON = "depends_on";
+ private List dependsOn = null;
+
+ public static final String JSON_PROPERTY_REF = "ref";
+ private String ref;
+
+ public ScaRequestDataAttributesRelationsItems dependsOn(List dependsOn) {
+ this.dependsOn = dependsOn;
+ return this;
+ }
+
+ public ScaRequestDataAttributesRelationsItems addDependsOnItem(String dependsOnItem) {
+ if (this.dependsOn == null) {
+ this.dependsOn = new ArrayList<>();
+ }
+ this.dependsOn.add(dependsOnItem);
+ return this;
+ }
+
+ /**
+ * The items
depends_on
.
+ *
+ * @return dependsOn
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_DEPENDS_ON)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getDependsOn() {
+ return dependsOn;
+ }
+
+ public void setDependsOn(List dependsOn) {
+ this.dependsOn = dependsOn;
+ }
+
+ public ScaRequestDataAttributesRelationsItems ref(String ref) {
+ this.ref = ref;
+ return this;
+ }
+
+ /**
+ * The items
ref
.
+ *
+ * @return ref
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_REF)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getRef() {
+ return ref;
+ }
+
+ public void setRef(String ref) {
+ this.ref = ref;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesRelationsItems
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesRelationsItems 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 ScaRequestDataAttributesRelationsItems object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesRelationsItems scaRequestDataAttributesRelationsItems =
+ (ScaRequestDataAttributesRelationsItems) o;
+ return Objects.equals(this.dependsOn, scaRequestDataAttributesRelationsItems.dependsOn)
+ && Objects.equals(this.ref, scaRequestDataAttributesRelationsItems.ref)
+ && Objects.equals(
+ this.additionalProperties, scaRequestDataAttributesRelationsItems.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(dependsOn, ref, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesRelationsItems {\n");
+ sb.append(" dependsOn: ").append(toIndentedString(dependsOn)).append("\n");
+ sb.append(" ref: ").append(toIndentedString(ref)).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/ScaRequestDataAttributesRepository.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesRepository.java
new file mode 100644
index 00000000000..cba7b672b05
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesRepository.java
@@ -0,0 +1,137 @@
+/*
+ * 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.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;
+
+/** The definition of ScaRequestDataAttributesRepository
object. */
+@JsonPropertyOrder({ScaRequestDataAttributesRepository.JSON_PROPERTY_URL})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesRepository {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_URL = "url";
+ private String url;
+
+ public ScaRequestDataAttributesRepository url(String url) {
+ this.url = url;
+ return this;
+ }
+
+ /**
+ * The repository
url
.
+ *
+ * @return url
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_URL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesRepository
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesRepository 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 ScaRequestDataAttributesRepository object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesRepository scaRequestDataAttributesRepository =
+ (ScaRequestDataAttributesRepository) o;
+ return Objects.equals(this.url, scaRequestDataAttributesRepository.url)
+ && Objects.equals(
+ this.additionalProperties, scaRequestDataAttributesRepository.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(url, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesRepository {\n");
+ sb.append(" url: ").append(toIndentedString(url)).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/ScaRequestDataAttributesVulnerabilitiesItems.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesVulnerabilitiesItems.java
new file mode 100644
index 00000000000..8af03fa6a6a
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesVulnerabilitiesItems.java
@@ -0,0 +1,211 @@
+/*
+ * 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.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;
+
+/** The definition of ScaRequestDataAttributesVulnerabilitiesItems
object. */
+@JsonPropertyOrder({
+ ScaRequestDataAttributesVulnerabilitiesItems.JSON_PROPERTY_AFFECTS,
+ ScaRequestDataAttributesVulnerabilitiesItems.JSON_PROPERTY_BOM_REF,
+ ScaRequestDataAttributesVulnerabilitiesItems.JSON_PROPERTY_ID
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesVulnerabilitiesItems {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_AFFECTS = "affects";
+ private List affects = null;
+
+ public static final String JSON_PROPERTY_BOM_REF = "bom_ref";
+ private String bomRef;
+
+ public static final String JSON_PROPERTY_ID = "id";
+ private String id;
+
+ public ScaRequestDataAttributesVulnerabilitiesItems affects(
+ List affects) {
+ this.affects = affects;
+ for (ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems item : affects) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public ScaRequestDataAttributesVulnerabilitiesItems addAffectsItem(
+ ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems affectsItem) {
+ if (this.affects == null) {
+ this.affects = new ArrayList<>();
+ }
+ this.affects.add(affectsItem);
+ this.unparsed |= affectsItem.unparsed;
+ return this;
+ }
+
+ /**
+ * The items
affects
.
+ *
+ * @return affects
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_AFFECTS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getAffects() {
+ return affects;
+ }
+
+ public void setAffects(List affects) {
+ this.affects = affects;
+ }
+
+ public ScaRequestDataAttributesVulnerabilitiesItems bomRef(String bomRef) {
+ this.bomRef = bomRef;
+ return this;
+ }
+
+ /**
+ * The items
bom_ref
.
+ *
+ * @return bomRef
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_BOM_REF)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getBomRef() {
+ return bomRef;
+ }
+
+ public void setBomRef(String bomRef) {
+ this.bomRef = bomRef;
+ }
+
+ public ScaRequestDataAttributesVulnerabilitiesItems id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * The items
id
.
+ *
+ * @return id
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ID)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesVulnerabilitiesItems
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesVulnerabilitiesItems 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 ScaRequestDataAttributesVulnerabilitiesItems object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesVulnerabilitiesItems scaRequestDataAttributesVulnerabilitiesItems =
+ (ScaRequestDataAttributesVulnerabilitiesItems) o;
+ return Objects.equals(this.affects, scaRequestDataAttributesVulnerabilitiesItems.affects)
+ && Objects.equals(this.bomRef, scaRequestDataAttributesVulnerabilitiesItems.bomRef)
+ && Objects.equals(this.id, scaRequestDataAttributesVulnerabilitiesItems.id)
+ && Objects.equals(
+ this.additionalProperties,
+ scaRequestDataAttributesVulnerabilitiesItems.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(affects, bomRef, id, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesVulnerabilitiesItems {\n");
+ sb.append(" affects: ").append(toIndentedString(affects)).append("\n");
+ sb.append(" bomRef: ").append(toIndentedString(bomRef)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).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/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems.java
new file mode 100644
index 00000000000..11ef8472a1f
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems.java
@@ -0,0 +1,145 @@
+/*
+ * 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.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;
+
+/**
+ * The definition of ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems
object.
+ */
+@JsonPropertyOrder({ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems.JSON_PROPERTY_REF})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_REF = "ref";
+ private String ref;
+
+ public ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems ref(String ref) {
+ this.ref = ref;
+ return this;
+ }
+
+ /**
+ * The items
ref
.
+ *
+ * @return ref
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_REF)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getRef() {
+ return ref;
+ }
+
+ public void setRef(String ref) {
+ this.ref = ref;
+ }
+
+ /**
+ * 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 ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems
+ */
+ @JsonAnySetter
+ public ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems 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 ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems object is equal to
+ * o.
+ */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems
+ scaRequestDataAttributesVulnerabilitiesItemsAffectsItems =
+ (ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems) o;
+ return Objects.equals(this.ref, scaRequestDataAttributesVulnerabilitiesItemsAffectsItems.ref)
+ && Objects.equals(
+ this.additionalProperties,
+ scaRequestDataAttributesVulnerabilitiesItemsAffectsItems.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(ref, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems {\n");
+ sb.append(" ref: ").append(toIndentedString(ref)).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/ScaRequestDataType.java b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataType.java
new file mode 100644
index 00000000000..327430914b3
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ScaRequestDataType.java
@@ -0,0 +1,54 @@
+/*
+ * 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.datadog.api.client.ModelEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/** Scarequests resource type. */
+@JsonSerialize(using = ScaRequestDataType.ScaRequestDataTypeSerializer.class)
+public class ScaRequestDataType extends ModelEnum {
+
+ private static final Set allowedValues =
+ new HashSet(Arrays.asList("scarequests"));
+
+ public static final ScaRequestDataType SCAREQUESTS = new ScaRequestDataType("scarequests");
+
+ ScaRequestDataType(String value) {
+ super(value, allowedValues);
+ }
+
+ public static class ScaRequestDataTypeSerializer extends StdSerializer {
+ public ScaRequestDataTypeSerializer(Class t) {
+ super(t);
+ }
+
+ public ScaRequestDataTypeSerializer() {
+ this(null);
+ }
+
+ @Override
+ public void serialize(ScaRequestDataType value, JsonGenerator jgen, SerializerProvider provider)
+ throws IOException, JsonProcessingException {
+ jgen.writeObject(value.value);
+ }
+ }
+
+ @JsonCreator
+ public static ScaRequestDataType fromValue(String value) {
+ return new ScaRequestDataType(value);
+ }
+}
diff --git a/src/test/resources/com/datadog/api/client/v1/api/logs_pipelines.feature b/src/test/resources/com/datadog/api/client/v1/api/logs_pipelines.feature
index 66305bbbaf2..cdb150dd6ed 100644
--- a/src/test/resources/com/datadog/api/client/v1/api/logs_pipelines.feature
+++ b/src/test/resources/com/datadog/api/client/v1/api/logs_pipelines.feature
@@ -24,14 +24,14 @@ Feature: Logs Pipelines
@generated @skip @team:DataDog/event-platform-experience
Scenario: Create a pipeline returns "Bad Request" response
Given new "CreateLogsPipeline" request
- And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
+ And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/event-platform-experience
Scenario: Create a pipeline returns "OK" response
Given new "CreateLogsPipeline" request
- And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
+ And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
When the request is sent
Then the response status is 200 OK
@@ -128,7 +128,7 @@ Feature: Logs Pipelines
Scenario: Update a pipeline returns "Bad Request" response
Given new "UpdateLogsPipeline" request
And request contains "pipeline_id" parameter from "REPLACE.ME"
- And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
+ And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
When the request is sent
Then the response status is 400 Bad Request
@@ -136,7 +136,7 @@ Feature: Logs Pipelines
Scenario: Update a pipeline returns "OK" response
Given new "UpdateLogsPipeline" request
And request contains "pipeline_id" parameter from "REPLACE.ME"
- And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar\n", "support_rules": "rule_name_1 foo\nrule_name_2 bar\n"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
+ And body with value {"filter": {"query": "source:python"}, "name": "", "processors": [{"grok": {"match_rules": "rule_name_1 foo\nrule_name_2 bar", "support_rules": "rule_name_1 foo\nrule_name_2 bar"}, "is_enabled": false, "samples": [], "source": "message", "type": "grok-parser"}], "tags": []}
When the request is sent
Then the response status is 200 OK
diff --git a/src/test/resources/com/datadog/api/client/v2/api/static_analysis.feature b/src/test/resources/com/datadog/api/client/v2/api/static_analysis.feature
new file mode 100644
index 00000000000..85bf4d83ae1
--- /dev/null
+++ b/src/test/resources/com/datadog/api/client/v2/api/static_analysis.feature
@@ -0,0 +1,24 @@
+@endpoint(static-analysis) @endpoint(static-analysis-v2)
+Feature: Static Analysis
+ API for static analysis
+
+ Background:
+ Given a valid "apiKeyAuth" key in the system
+ And a valid "appKeyAuth" key in the system
+ And an instance of "StaticAnalysis" API
+
+ @generated @skip @team:DataDog/k9-vm-sca
+ Scenario: POST request to resolve vulnerable symbols returns "OK" response
+ Given operation "CreateSCAResolveVulnerableSymbols" enabled
+ And new "CreateSCAResolveVulnerableSymbols" request
+ And body with value {"data": {"attributes": {"purls": []}, "type": "resolve-vulnerable-symbols-request"}}
+ When the request is sent
+ Then the response status is 200 OK
+
+ @generated @skip @team:DataDog/k9-vm-sca
+ Scenario: Post dependencies for analysis returns "OK" response
+ Given operation "CreateSCAResult" enabled
+ And new "CreateSCAResult" request
+ And body with value {"data": {"attributes": {"commit": {}, "dependencies": [{"exclusions": [], "locations": [{"block": {"end": {}, "start": {}}, "name": {"end": {}, "start": {}}, "namespace": {"end": {}, "start": {}}, "version": {"end": {}, "start": {}}}], "reachable_symbol_properties": [{}]}], "files": [{}], "relations": [{"depends_on": []}], "repository": {}, "vulnerabilities": [{"affects": [{}]}]}, "type": "scarequests"}}
+ When the request is sent
+ Then the response status is 200 OK
diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json
index c4c269d3cab..ad6dcc7086a 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/undo.json
+++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json
@@ -3780,6 +3780,18 @@
"type": "safe"
}
},
+ "CreateSCAResult": {
+ "tag": "Static Analysis",
+ "undo": {
+ "type": "safe"
+ }
+ },
+ "CreateSCAResolveVulnerableSymbols": {
+ "tag": "Static Analysis",
+ "undo": {
+ "type": "safe"
+ }
+ },
"GetOnDemandConcurrencyCap": {
"tag": "Synthetics",
"undo": {