diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 17509b56882d..09edf2f7e318 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.ts b/examples/v1/logs-pipelines/CreateLogsPipeline.ts index f61a47f79a1b..ccfd0c27dbe5 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline.ts +++ b/examples/v1/logs-pipelines/CreateLogsPipeline.ts @@ -16,8 +16,8 @@ const params: v1.LogsPipelinesApiCreateLogsPipelineRequest = { processors: [ { grok: { - matchRules: "rule_name_1 foo\nrule_name_2 bar\n", - supportRules: "rule_name_1 foo\nrule_name_2 bar\n", + matchRules: "rule_name_1 foo\nrule_name_2 bar", + supportRules: "rule_name_1 foo\nrule_name_2 bar", }, isEnabled: false, samples: [], diff --git a/examples/v1/logs-pipelines/UpdateLogsPipeline.ts b/examples/v1/logs-pipelines/UpdateLogsPipeline.ts index 3605ecd66513..186e95e357c6 100644 --- a/examples/v1/logs-pipelines/UpdateLogsPipeline.ts +++ b/examples/v1/logs-pipelines/UpdateLogsPipeline.ts @@ -16,8 +16,8 @@ const params: v1.LogsPipelinesApiUpdateLogsPipelineRequest = { processors: [ { grok: { - matchRules: "rule_name_1 foo\nrule_name_2 bar\n", - supportRules: "rule_name_1 foo\nrule_name_2 bar\n", + matchRules: "rule_name_1 foo\nrule_name_2 bar", + supportRules: "rule_name_1 foo\nrule_name_2 bar", }, isEnabled: false, samples: [], diff --git a/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.ts b/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.ts new file mode 100644 index 000000000000..858d5d4f7737 --- /dev/null +++ b/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.ts @@ -0,0 +1,29 @@ +/** + * POST request to resolve vulnerable symbols returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.createSCAResolveVulnerableSymbols"] = true; +const apiInstance = new v2.StaticAnalysisApi(configuration); + +const params: v2.StaticAnalysisApiCreateSCAResolveVulnerableSymbolsRequest = { + body: { + data: { + attributes: { + purls: [], + }, + type: "resolve-vulnerable-symbols-request", + }, + }, +}; + +apiInstance + .createSCAResolveVulnerableSymbols(params) + .then((data: v2.ResolveVulnerableSymbolsResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/static-analysis/CreateSCAResult.ts b/examples/v2/static-analysis/CreateSCAResult.ts new file mode 100644 index 000000000000..a07c78b564a2 --- /dev/null +++ b/examples/v2/static-analysis/CreateSCAResult.ts @@ -0,0 +1,67 @@ +/** + * Post dependencies for analysis returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +configuration.unstableOperations["v2.createSCAResult"] = true; +const apiInstance = new v2.StaticAnalysisApi(configuration); + +const params: v2.StaticAnalysisApiCreateSCAResultRequest = { + body: { + data: { + attributes: { + commit: {}, + dependencies: [ + { + exclusions: [], + locations: [ + { + block: { + end: {}, + start: {}, + }, + name: { + end: {}, + start: {}, + }, + namespace: { + end: {}, + start: {}, + }, + version: { + end: {}, + start: {}, + }, + }, + ], + reachableSymbolProperties: [{}], + }, + ], + files: [{}], + relations: [ + { + dependsOn: [], + }, + ], + repository: {}, + vulnerabilities: [ + { + affects: [{}], + }, + ], + }, + type: "scarequests", + }, + }, +}; + +apiInstance + .createSCAResult(params) + .then((data: any) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index 76bdc128c1dd..81f47bb18a71 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -8141,6 +8141,20 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "SpansListResponse", }, + "v2.CreateSCAResult": { + "body": { + "type": "ScaRequest", + "format": "", + }, + "operationResponseType": "{}", + }, + "v2.CreateSCAResolveVulnerableSymbols": { + "body": { + "type": "ResolveVulnerableSymbolsRequest", + "format": "", + }, + "operationResponseType": "ResolveVulnerableSymbolsResponse", + }, "v2.GetOnDemandConcurrencyCap": { "operationResponseType": "OnDemandConcurrencyCapResponse", }, diff --git a/features/v1/logs_pipelines.feature b/features/v1/logs_pipelines.feature index 66305bbbaf2c..cdb150dd6edf 100644 --- a/features/v1/logs_pipelines.feature +++ b/features/v1/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/features/v2/static_analysis.feature b/features/v2/static_analysis.feature new file mode 100644 index 000000000000..85bf4d83ae13 --- /dev/null +++ b/features/v2/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/features/v2/undo.json b/features/v2/undo.json index c4c269d3cab9..ad6dcc7086aa 100644 --- a/features/v2/undo.json +++ b/features/v2/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": { diff --git a/packages/datadog-api-client-common/configuration.ts b/packages/datadog-api-client-common/configuration.ts index d62e1f17a4dd..6f89a825a374 100644 --- a/packages/datadog-api-client-common/configuration.ts +++ b/packages/datadog-api-client-common/configuration.ts @@ -319,6 +319,8 @@ export function createConfiguration( "v2.getSLOReport": false, "v2.getSLOReportJobStatus": false, "v2.getSPARecommendations": false, + "v2.createSCAResolveVulnerableSymbols": false, + "v2.createSCAResult": false, "v2.addMemberTeam": false, "v2.listMemberTeams": false, "v2.removeMemberTeam": false, diff --git a/packages/datadog-api-client-v2/apis/StaticAnalysisApi.ts b/packages/datadog-api-client-v2/apis/StaticAnalysisApi.ts new file mode 100644 index 000000000000..30f6e2c7d35c --- /dev/null +++ b/packages/datadog-api-client-v2/apis/StaticAnalysisApi.ts @@ -0,0 +1,307 @@ +import { + BaseAPIRequestFactory, + RequiredError, +} from "../../datadog-api-client-common/baseapi"; +import { + Configuration, + applySecurityAuthentication, +} from "../../datadog-api-client-common/configuration"; +import { + RequestContext, + HttpMethod, + ResponseContext, +} from "../../datadog-api-client-common/http/http"; + +import { logger } from "../../../logger"; +import { ObjectSerializer } from "../models/ObjectSerializer"; +import { ApiException } from "../../datadog-api-client-common/exception"; + +import { APIErrorResponse } from "../models/APIErrorResponse"; +import { ResolveVulnerableSymbolsRequest } from "../models/ResolveVulnerableSymbolsRequest"; +import { ResolveVulnerableSymbolsResponse } from "../models/ResolveVulnerableSymbolsResponse"; +import { ScaRequest } from "../models/ScaRequest"; + +export class StaticAnalysisApiRequestFactory extends BaseAPIRequestFactory { + public async createSCAResolveVulnerableSymbols( + body: ResolveVulnerableSymbolsRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'createSCAResolveVulnerableSymbols'"); + if (!_config.unstableOperations["v2.createSCAResolveVulnerableSymbols"]) { + throw new Error( + "Unstable operation 'createSCAResolveVulnerableSymbols' is disabled" + ); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "createSCAResolveVulnerableSymbols"); + } + + // Path Params + const localVarPath = + "/api/v2/static-analysis-sca/vulnerabilities/resolve-vulnerable-symbols"; + + // Make Request Context + const requestContext = _config + .getServer("v2.StaticAnalysisApi.createSCAResolveVulnerableSymbols") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResolveVulnerableSymbolsRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } + + public async createSCAResult( + body: ScaRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + logger.warn("Using unstable operation 'createSCAResult'"); + if (!_config.unstableOperations["v2.createSCAResult"]) { + throw new Error("Unstable operation 'createSCAResult' is disabled"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "createSCAResult"); + } + + // Path Params + const localVarPath = "/api/v2/static-analysis-sca/dependencies"; + + // Make Request Context + const requestContext = _config + .getServer("v2.StaticAnalysisApi.createSCAResult") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ScaRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } +} + +export class StaticAnalysisApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSCAResolveVulnerableSymbols + * @throws ApiException if the response code was not in [200, 299] + */ + public async createSCAResolveVulnerableSymbols( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: ResolveVulnerableSymbolsResponse = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResolveVulnerableSymbolsResponse" + ) as ResolveVulnerableSymbolsResponse; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResolveVulnerableSymbolsResponse = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResolveVulnerableSymbolsResponse", + "" + ) as ResolveVulnerableSymbolsResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createSCAResult + * @throws ApiException if the response code was not in [200, 299] + */ + public async createSCAResult(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + return; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + return; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } +} + +export interface StaticAnalysisApiCreateSCAResolveVulnerableSymbolsRequest { + /** + * @type ResolveVulnerableSymbolsRequest + */ + body: ResolveVulnerableSymbolsRequest; +} + +export interface StaticAnalysisApiCreateSCAResultRequest { + /** + * @type ScaRequest + */ + body: ScaRequest; +} + +export class StaticAnalysisApi { + private requestFactory: StaticAnalysisApiRequestFactory; + private responseProcessor: StaticAnalysisApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: StaticAnalysisApiRequestFactory, + responseProcessor?: StaticAnalysisApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new StaticAnalysisApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new StaticAnalysisApiResponseProcessor(); + } + + /** + * Post vulnerable symbols + * @param param The request object + */ + public createSCAResolveVulnerableSymbols( + param: StaticAnalysisApiCreateSCAResolveVulnerableSymbolsRequest, + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.createSCAResolveVulnerableSymbols( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSCAResolveVulnerableSymbols( + responseContext + ); + }); + }); + } + + /** + * Post dependencies for analysis + * @param param The request object + */ + public createSCAResult( + param: StaticAnalysisApiCreateSCAResultRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.createSCAResult( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createSCAResult(responseContext); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index e52d5d78768c..7c5726cbb069 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -770,6 +770,12 @@ export { SpansMetricsApi, } from "./apis/SpansMetricsApi"; +export { + StaticAnalysisApiCreateSCAResolveVulnerableSymbolsRequest, + StaticAnalysisApiCreateSCAResultRequest, + StaticAnalysisApi, +} from "./apis/StaticAnalysisApi"; + export { SyntheticsApiSetOnDemandConcurrencyCapRequest, SyntheticsApi, @@ -3163,6 +3169,17 @@ export { ReorderRuleResourceDataType } from "./models/ReorderRuleResourceDataTyp export { ReorderRulesetResourceArray } from "./models/ReorderRulesetResourceArray"; export { ReorderRulesetResourceData } from "./models/ReorderRulesetResourceData"; export { ReorderRulesetResourceDataType } from "./models/ReorderRulesetResourceDataType"; +export { ResolveVulnerableSymbolsRequest } from "./models/ResolveVulnerableSymbolsRequest"; +export { ResolveVulnerableSymbolsRequestData } from "./models/ResolveVulnerableSymbolsRequestData"; +export { ResolveVulnerableSymbolsRequestDataAttributes } from "./models/ResolveVulnerableSymbolsRequestDataAttributes"; +export { ResolveVulnerableSymbolsRequestDataType } from "./models/ResolveVulnerableSymbolsRequestDataType"; +export { ResolveVulnerableSymbolsResponse } from "./models/ResolveVulnerableSymbolsResponse"; +export { ResolveVulnerableSymbolsResponseData } from "./models/ResolveVulnerableSymbolsResponseData"; +export { ResolveVulnerableSymbolsResponseDataAttributes } from "./models/ResolveVulnerableSymbolsResponseDataAttributes"; +export { ResolveVulnerableSymbolsResponseDataType } from "./models/ResolveVulnerableSymbolsResponseDataType"; +export { ResolveVulnerableSymbolsResponseResults } from "./models/ResolveVulnerableSymbolsResponseResults"; +export { ResolveVulnerableSymbolsResponseResultsVulnerableSymbols } from "./models/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols"; +export { ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols } from "./models/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols"; export { ResourceFilterAttributes } from "./models/ResourceFilterAttributes"; export { ResourceFilterRequestType } from "./models/ResourceFilterRequestType"; export { ResponseMetaAttributes } from "./models/ResponseMetaAttributes"; @@ -3378,6 +3395,21 @@ export { ScalarFormulaResponseType } from "./models/ScalarFormulaResponseType"; export { ScalarMeta } from "./models/ScalarMeta"; export { ScalarQuery } from "./models/ScalarQuery"; export { ScalarResponse } from "./models/ScalarResponse"; +export { ScaRequest } from "./models/ScaRequest"; +export { ScaRequestData } from "./models/ScaRequestData"; +export { ScaRequestDataAttributes } from "./models/ScaRequestDataAttributes"; +export { ScaRequestDataAttributesCommit } from "./models/ScaRequestDataAttributesCommit"; +export { ScaRequestDataAttributesDependenciesItems } from "./models/ScaRequestDataAttributesDependenciesItems"; +export { ScaRequestDataAttributesDependenciesItemsLocationsItems } from "./models/ScaRequestDataAttributesDependenciesItemsLocationsItems"; +export { ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition } from "./models/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition"; +export { ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition } from "./models/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition"; +export { ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems } from "./models/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems"; +export { ScaRequestDataAttributesFilesItems } from "./models/ScaRequestDataAttributesFilesItems"; +export { ScaRequestDataAttributesRelationsItems } from "./models/ScaRequestDataAttributesRelationsItems"; +export { ScaRequestDataAttributesRepository } from "./models/ScaRequestDataAttributesRepository"; +export { ScaRequestDataAttributesVulnerabilitiesItems } from "./models/ScaRequestDataAttributesVulnerabilitiesItems"; +export { ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems } from "./models/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems"; +export { ScaRequestDataType } from "./models/ScaRequestDataType"; export { Schedule } from "./models/Schedule"; export { ScheduleCreateRequest } from "./models/ScheduleCreateRequest"; export { ScheduleCreateRequestData } from "./models/ScheduleCreateRequestData"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index a8e40bc9aa72..21aa563128c1 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -1745,6 +1745,15 @@ import { ReorderRuleResourceArray } from "./ReorderRuleResourceArray"; import { ReorderRuleResourceData } from "./ReorderRuleResourceData"; import { ReorderRulesetResourceArray } from "./ReorderRulesetResourceArray"; import { ReorderRulesetResourceData } from "./ReorderRulesetResourceData"; +import { ResolveVulnerableSymbolsRequest } from "./ResolveVulnerableSymbolsRequest"; +import { ResolveVulnerableSymbolsRequestData } from "./ResolveVulnerableSymbolsRequestData"; +import { ResolveVulnerableSymbolsRequestDataAttributes } from "./ResolveVulnerableSymbolsRequestDataAttributes"; +import { ResolveVulnerableSymbolsResponse } from "./ResolveVulnerableSymbolsResponse"; +import { ResolveVulnerableSymbolsResponseData } from "./ResolveVulnerableSymbolsResponseData"; +import { ResolveVulnerableSymbolsResponseDataAttributes } from "./ResolveVulnerableSymbolsResponseDataAttributes"; +import { ResolveVulnerableSymbolsResponseResults } from "./ResolveVulnerableSymbolsResponseResults"; +import { ResolveVulnerableSymbolsResponseResultsVulnerableSymbols } from "./ResolveVulnerableSymbolsResponseResultsVulnerableSymbols"; +import { ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols } from "./ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols"; import { ResourceFilterAttributes } from "./ResourceFilterAttributes"; import { ResponseMetaAttributes } from "./ResponseMetaAttributes"; import { RestrictionPolicy } from "./RestrictionPolicy"; @@ -1872,6 +1881,20 @@ import { SLOReportPostResponseData } from "./SLOReportPostResponseData"; import { SLOReportStatusGetResponse } from "./SLOReportStatusGetResponse"; import { SLOReportStatusGetResponseAttributes } from "./SLOReportStatusGetResponseAttributes"; import { SLOReportStatusGetResponseData } from "./SLOReportStatusGetResponseData"; +import { ScaRequest } from "./ScaRequest"; +import { ScaRequestData } from "./ScaRequestData"; +import { ScaRequestDataAttributes } from "./ScaRequestDataAttributes"; +import { ScaRequestDataAttributesCommit } from "./ScaRequestDataAttributesCommit"; +import { ScaRequestDataAttributesDependenciesItems } from "./ScaRequestDataAttributesDependenciesItems"; +import { ScaRequestDataAttributesDependenciesItemsLocationsItems } from "./ScaRequestDataAttributesDependenciesItemsLocationsItems"; +import { ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition } from "./ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition"; +import { ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition } from "./ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition"; +import { ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems } from "./ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems"; +import { ScaRequestDataAttributesFilesItems } from "./ScaRequestDataAttributesFilesItems"; +import { ScaRequestDataAttributesRelationsItems } from "./ScaRequestDataAttributesRelationsItems"; +import { ScaRequestDataAttributesRepository } from "./ScaRequestDataAttributesRepository"; +import { ScaRequestDataAttributesVulnerabilitiesItems } from "./ScaRequestDataAttributesVulnerabilitiesItems"; +import { ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems } from "./ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems"; import { ScalarFormulaQueryRequest } from "./ScalarFormulaQueryRequest"; import { ScalarFormulaQueryResponse } from "./ScalarFormulaQueryResponse"; import { ScalarFormulaRequest } from "./ScalarFormulaRequest"; @@ -3439,6 +3462,12 @@ const enumsMap: { [key: string]: any[] } = { ], ReorderRuleResourceDataType: ["arbitrary_rule"], ReorderRulesetResourceDataType: ["ruleset"], + ResolveVulnerableSymbolsRequestDataType: [ + "resolve-vulnerable-symbols-request", + ], + ResolveVulnerableSymbolsResponseDataType: [ + "resolve-vulnerable-symbols-response", + ], ResourceFilterRequestType: ["csm_resource_filter"], RestrictionPolicyType: ["restriction_policy"], RetentionFilterAllType: [ @@ -3539,6 +3568,7 @@ const enumsMap: { [key: string]: any[] } = { "completed_with_errors", "failed", ], + ScaRequestDataType: ["scarequests"], ScalarColumnTypeGroup: ["group"], ScalarColumnTypeNumber: ["number"], ScalarFormulaRequestType: ["scalar_request"], @@ -5967,6 +5997,20 @@ const typeMap: { [index: string]: any } = { ReorderRuleResourceData: ReorderRuleResourceData, ReorderRulesetResourceArray: ReorderRulesetResourceArray, ReorderRulesetResourceData: ReorderRulesetResourceData, + ResolveVulnerableSymbolsRequest: ResolveVulnerableSymbolsRequest, + ResolveVulnerableSymbolsRequestData: ResolveVulnerableSymbolsRequestData, + ResolveVulnerableSymbolsRequestDataAttributes: + ResolveVulnerableSymbolsRequestDataAttributes, + ResolveVulnerableSymbolsResponse: ResolveVulnerableSymbolsResponse, + ResolveVulnerableSymbolsResponseData: ResolveVulnerableSymbolsResponseData, + ResolveVulnerableSymbolsResponseDataAttributes: + ResolveVulnerableSymbolsResponseDataAttributes, + ResolveVulnerableSymbolsResponseResults: + ResolveVulnerableSymbolsResponseResults, + ResolveVulnerableSymbolsResponseResultsVulnerableSymbols: + ResolveVulnerableSymbolsResponseResultsVulnerableSymbols, + ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols: + ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols, ResourceFilterAttributes: ResourceFilterAttributes, ResponseMetaAttributes: ResponseMetaAttributes, RestrictionPolicy: RestrictionPolicy, @@ -6101,6 +6145,28 @@ const typeMap: { [index: string]: any } = { SLOReportStatusGetResponse: SLOReportStatusGetResponse, SLOReportStatusGetResponseAttributes: SLOReportStatusGetResponseAttributes, SLOReportStatusGetResponseData: SLOReportStatusGetResponseData, + ScaRequest: ScaRequest, + ScaRequestData: ScaRequestData, + ScaRequestDataAttributes: ScaRequestDataAttributes, + ScaRequestDataAttributesCommit: ScaRequestDataAttributesCommit, + ScaRequestDataAttributesDependenciesItems: + ScaRequestDataAttributesDependenciesItems, + ScaRequestDataAttributesDependenciesItemsLocationsItems: + ScaRequestDataAttributesDependenciesItemsLocationsItems, + ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition: + ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, + ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition: + ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, + ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems: + ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems, + ScaRequestDataAttributesFilesItems: ScaRequestDataAttributesFilesItems, + ScaRequestDataAttributesRelationsItems: + ScaRequestDataAttributesRelationsItems, + ScaRequestDataAttributesRepository: ScaRequestDataAttributesRepository, + ScaRequestDataAttributesVulnerabilitiesItems: + ScaRequestDataAttributesVulnerabilitiesItems, + ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems: + ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems, ScalarFormulaQueryRequest: ScalarFormulaQueryRequest, ScalarFormulaQueryResponse: ScalarFormulaQueryResponse, ScalarFormulaRequest: ScalarFormulaRequest, diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequest.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequest.ts new file mode 100644 index 000000000000..f6c832864a7a --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequest.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ResolveVulnerableSymbolsRequestData } from "./ResolveVulnerableSymbolsRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsRequest` object. + */ +export class ResolveVulnerableSymbolsRequest { + /** + * The definition of `ResolveVulnerableSymbolsRequestData` object. + */ + "data"?: ResolveVulnerableSymbolsRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "ResolveVulnerableSymbolsRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestData.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestData.ts new file mode 100644 index 000000000000..f659cfddd6cc --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestData.ts @@ -0,0 +1,71 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ResolveVulnerableSymbolsRequestDataAttributes } from "./ResolveVulnerableSymbolsRequestDataAttributes"; +import { ResolveVulnerableSymbolsRequestDataType } from "./ResolveVulnerableSymbolsRequestDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsRequestData` object. + */ +export class ResolveVulnerableSymbolsRequestData { + /** + * The definition of `ResolveVulnerableSymbolsRequestDataAttributes` object. + */ + "attributes"?: ResolveVulnerableSymbolsRequestDataAttributes; + /** + * The `ResolveVulnerableSymbolsRequestData` `id`. + */ + "id"?: string; + /** + * Resolve vulnerable symbols request resource type. + */ + "type": ResolveVulnerableSymbolsRequestDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ResolveVulnerableSymbolsRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "ResolveVulnerableSymbolsRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestDataAttributes.ts new file mode 100644 index 000000000000..9d6568502856 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestDataAttributes.ts @@ -0,0 +1,52 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsRequestDataAttributes` object. + */ +export class ResolveVulnerableSymbolsRequestDataAttributes { + /** + * The `attributes` `purls`. + */ + "purls"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + purls: { + baseName: "purls", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestDataType.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestDataType.ts new file mode 100644 index 000000000000..8c6ff4ec2e1d --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsRequestDataType.ts @@ -0,0 +1,17 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Resolve vulnerable symbols request resource type. + */ + +export type ResolveVulnerableSymbolsRequestDataType = + | typeof RESOLVE_VULNERABLE_SYMBOLS_REQUEST + | UnparsedObject; +export const RESOLVE_VULNERABLE_SYMBOLS_REQUEST = + "resolve-vulnerable-symbols-request"; diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponse.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponse.ts new file mode 100644 index 000000000000..46e5b3281030 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponse.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ResolveVulnerableSymbolsResponseData } from "./ResolveVulnerableSymbolsResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsResponse` object. + */ +export class ResolveVulnerableSymbolsResponse { + /** + * The definition of `ResolveVulnerableSymbolsResponseData` object. + */ + "data"?: ResolveVulnerableSymbolsResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "ResolveVulnerableSymbolsResponseData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseData.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseData.ts new file mode 100644 index 000000000000..48dc43816177 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseData.ts @@ -0,0 +1,71 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ResolveVulnerableSymbolsResponseDataAttributes } from "./ResolveVulnerableSymbolsResponseDataAttributes"; +import { ResolveVulnerableSymbolsResponseDataType } from "./ResolveVulnerableSymbolsResponseDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsResponseData` object. + */ +export class ResolveVulnerableSymbolsResponseData { + /** + * The definition of `ResolveVulnerableSymbolsResponseDataAttributes` object. + */ + "attributes"?: ResolveVulnerableSymbolsResponseDataAttributes; + /** + * The `ResolveVulnerableSymbolsResponseData` `id`. + */ + "id"?: string; + /** + * Resolve vulnerable symbols response resource type. + */ + "type": ResolveVulnerableSymbolsResponseDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ResolveVulnerableSymbolsResponseDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "ResolveVulnerableSymbolsResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseDataAttributes.ts new file mode 100644 index 000000000000..a2cdcec6857c --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseDataAttributes.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ResolveVulnerableSymbolsResponseResults } from "./ResolveVulnerableSymbolsResponseResults"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsResponseDataAttributes` object. + */ +export class ResolveVulnerableSymbolsResponseDataAttributes { + /** + * The `attributes` `results`. + */ + "results"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + results: { + baseName: "results", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseDataType.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseDataType.ts new file mode 100644 index 000000000000..de167bded1f4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseDataType.ts @@ -0,0 +1,17 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Resolve vulnerable symbols response resource type. + */ + +export type ResolveVulnerableSymbolsResponseDataType = + | typeof RESOLVE_VULNERABLE_SYMBOLS_RESPONSE + | UnparsedObject; +export const RESOLVE_VULNERABLE_SYMBOLS_RESPONSE = + "resolve-vulnerable-symbols-response"; diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResults.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResults.ts new file mode 100644 index 000000000000..1a9a34a45723 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResults.ts @@ -0,0 +1,61 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ResolveVulnerableSymbolsResponseResultsVulnerableSymbols } from "./ResolveVulnerableSymbolsResponseResultsVulnerableSymbols"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsResponseResults` object. + */ +export class ResolveVulnerableSymbolsResponseResults { + /** + * The `items` `purl`. + */ + "purl"?: string; + /** + * The `items` `vulnerable_symbols`. + */ + "vulnerableSymbols"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + purl: { + baseName: "purl", + type: "string", + }, + vulnerableSymbols: { + baseName: "vulnerable_symbols", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsResponseResults.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.ts new file mode 100644 index 000000000000..684505df168f --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.ts @@ -0,0 +1,61 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols } from "./ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsResponseResultsVulnerableSymbols` object. + */ +export class ResolveVulnerableSymbolsResponseResultsVulnerableSymbols { + /** + * The `items` `advisory_id`. + */ + "advisoryId"?: string; + /** + * The `items` `symbols`. + */ + "symbols"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + advisoryId: { + baseName: "advisory_id", + type: "string", + }, + symbols: { + baseName: "symbols", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsResponseResultsVulnerableSymbols.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.ts b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.ts new file mode 100644 index 000000000000..432708cda344 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.ts @@ -0,0 +1,68 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols` object. + */ +export class ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols { + /** + * The `items` `name`. + */ + "name"?: string; + /** + * The `items` `type`. + */ + "type"?: string; + /** + * The `items` `value`. + */ + "value"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + type: { + baseName: "type", + type: "string", + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequest.ts b/packages/datadog-api-client-v2/models/ScaRequest.ts new file mode 100644 index 000000000000..1a5406e836c4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequest.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ScaRequestData } from "./ScaRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequest` object. + */ +export class ScaRequest { + /** + * The definition of `ScaRequestData` object. + */ + "data"?: ScaRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "ScaRequestData", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestData.ts b/packages/datadog-api-client-v2/models/ScaRequestData.ts new file mode 100644 index 000000000000..e234e719cdea --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestData.ts @@ -0,0 +1,71 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ScaRequestDataAttributes } from "./ScaRequestDataAttributes"; +import { ScaRequestDataType } from "./ScaRequestDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestData` object. + */ +export class ScaRequestData { + /** + * The definition of `ScaRequestDataAttributes` object. + */ + "attributes"?: ScaRequestDataAttributes; + /** + * The `ScaRequestData` `id`. + */ + "id"?: string; + /** + * Scarequests resource type. + */ + "type": ScaRequestDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ScaRequestDataAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "ScaRequestDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributes.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributes.ts new file mode 100644 index 000000000000..0c36b52094c2 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributes.ts @@ -0,0 +1,122 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ScaRequestDataAttributesCommit } from "./ScaRequestDataAttributesCommit"; +import { ScaRequestDataAttributesDependenciesItems } from "./ScaRequestDataAttributesDependenciesItems"; +import { ScaRequestDataAttributesFilesItems } from "./ScaRequestDataAttributesFilesItems"; +import { ScaRequestDataAttributesRelationsItems } from "./ScaRequestDataAttributesRelationsItems"; +import { ScaRequestDataAttributesRepository } from "./ScaRequestDataAttributesRepository"; +import { ScaRequestDataAttributesVulnerabilitiesItems } from "./ScaRequestDataAttributesVulnerabilitiesItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributes` object. + */ +export class ScaRequestDataAttributes { + /** + * The definition of `ScaRequestDataAttributesCommit` object. + */ + "commit"?: ScaRequestDataAttributesCommit; + /** + * The `attributes` `dependencies`. + */ + "dependencies"?: Array; + /** + * The `attributes` `env`. + */ + "env"?: string; + /** + * The `attributes` `files`. + */ + "files"?: Array; + /** + * The `attributes` `relations`. + */ + "relations"?: Array; + /** + * The definition of `ScaRequestDataAttributesRepository` object. + */ + "repository"?: ScaRequestDataAttributesRepository; + /** + * The `attributes` `service`. + */ + "service"?: string; + /** + * The `attributes` `tags`. + */ + "tags"?: { [key: string]: string }; + /** + * The `attributes` `vulnerabilities`. + */ + "vulnerabilities"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + commit: { + baseName: "commit", + type: "ScaRequestDataAttributesCommit", + }, + dependencies: { + baseName: "dependencies", + type: "Array", + }, + env: { + baseName: "env", + type: "string", + }, + files: { + baseName: "files", + type: "Array", + }, + relations: { + baseName: "relations", + type: "Array", + }, + repository: { + baseName: "repository", + type: "ScaRequestDataAttributesRepository", + }, + service: { + baseName: "service", + type: "string", + }, + tags: { + baseName: "tags", + type: "{ [key: string]: string; }", + }, + vulnerabilities: { + baseName: "vulnerabilities", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesCommit.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesCommit.ts new file mode 100644 index 000000000000..4c907b3de912 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesCommit.ts @@ -0,0 +1,100 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesCommit` object. + */ +export class ScaRequestDataAttributesCommit { + /** + * The `commit` `author_date`. + */ + "authorDate"?: string; + /** + * The `commit` `author_email`. + */ + "authorEmail"?: string; + /** + * The `commit` `author_name`. + */ + "authorName"?: string; + /** + * The `commit` `branch`. + */ + "branch"?: string; + /** + * The `commit` `committer_email`. + */ + "committerEmail"?: string; + /** + * The `commit` `committer_name`. + */ + "committerName"?: string; + /** + * The `commit` `sha`. + */ + "sha"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + authorDate: { + baseName: "author_date", + type: "string", + }, + authorEmail: { + baseName: "author_email", + type: "string", + }, + authorName: { + baseName: "author_name", + type: "string", + }, + branch: { + baseName: "branch", + type: "string", + }, + committerEmail: { + baseName: "committer_email", + type: "string", + }, + committerName: { + baseName: "committer_name", + type: "string", + }, + sha: { + baseName: "sha", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesCommit.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItems.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItems.ts new file mode 100644 index 000000000000..09a318f3d96e --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItems.ts @@ -0,0 +1,134 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ScaRequestDataAttributesDependenciesItemsLocationsItems } from "./ScaRequestDataAttributesDependenciesItemsLocationsItems"; +import { ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems } from "./ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesDependenciesItems` object. + */ +export class ScaRequestDataAttributesDependenciesItems { + /** + * The `items` `exclusions`. + */ + "exclusions"?: Array; + /** + * The `items` `group`. + */ + "group"?: string; + /** + * The `items` `is_dev`. + */ + "isDev"?: boolean; + /** + * The `items` `is_direct`. + */ + "isDirect"?: boolean; + /** + * The `items` `language`. + */ + "language"?: string; + /** + * The `items` `locations`. + */ + "locations"?: Array; + /** + * The `items` `name`. + */ + "name"?: string; + /** + * The `items` `package_manager`. + */ + "packageManager"?: string; + /** + * The `items` `purl`. + */ + "purl"?: string; + /** + * The `items` `reachable_symbol_properties`. + */ + "reachableSymbolProperties"?: Array; + /** + * The `items` `version`. + */ + "version"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + exclusions: { + baseName: "exclusions", + type: "Array", + }, + group: { + baseName: "group", + type: "string", + }, + isDev: { + baseName: "is_dev", + type: "boolean", + }, + isDirect: { + baseName: "is_direct", + type: "boolean", + }, + language: { + baseName: "language", + type: "string", + }, + locations: { + baseName: "locations", + type: "Array", + }, + name: { + baseName: "name", + type: "string", + }, + packageManager: { + baseName: "package_manager", + type: "string", + }, + purl: { + baseName: "purl", + type: "string", + }, + reachableSymbolProperties: { + baseName: "reachable_symbol_properties", + type: "Array", + }, + version: { + baseName: "version", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesDependenciesItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItems.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItems.ts new file mode 100644 index 000000000000..d8379ed09947 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItems.ts @@ -0,0 +1,77 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition } from "./ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesDependenciesItemsLocationsItems` object. + */ +export class ScaRequestDataAttributesDependenciesItemsLocationsItems { + /** + * A position in a file + */ + "block"?: ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition; + /** + * A position in a file + */ + "name"?: ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition; + /** + * A position in a file + */ + "namespace"?: ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition; + /** + * A position in a file + */ + "version"?: ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + block: { + baseName: "block", + type: "ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition", + }, + name: { + baseName: "name", + type: "ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition", + }, + namespace: { + baseName: "namespace", + type: "ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition", + }, + version: { + baseName: "version", + type: "ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesDependenciesItemsLocationsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.ts new file mode 100644 index 000000000000..cf3fb24ff1d6 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.ts @@ -0,0 +1,69 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition } from "./ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * A position in a file + */ +export class ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition { + /** + * A position + */ + "end"?: ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition; + /** + * The `file_name`. + */ + "fileName"?: string; + /** + * A position + */ + "start"?: ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + end: { + baseName: "end", + type: "ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition", + }, + fileName: { + baseName: "file_name", + type: "string", + }, + start: { + baseName: "start", + type: "ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.ts new file mode 100644 index 000000000000..8c7cc35a817e --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.ts @@ -0,0 +1,62 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * A position + */ +export class ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition { + /** + * The `col`. + */ + "col"?: number; + /** + * The `line`. + */ + "line"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + col: { + baseName: "col", + type: "number", + format: "int32", + }, + line: { + baseName: "line", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.ts new file mode 100644 index 000000000000..603ff0596154 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.ts @@ -0,0 +1,60 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems` object. + */ +export class ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems { + /** + * The `items` `name`. + */ + "name"?: string; + /** + * The `items` `value`. + */ + "value"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + value: { + baseName: "value", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesFilesItems.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesFilesItems.ts new file mode 100644 index 000000000000..156d396aa14c --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesFilesItems.ts @@ -0,0 +1,60 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesFilesItems` object. + */ +export class ScaRequestDataAttributesFilesItems { + /** + * The `items` `name`. + */ + "name"?: string; + /** + * The `items` `purl`. + */ + "purl"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + purl: { + baseName: "purl", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesFilesItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesRelationsItems.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesRelationsItems.ts new file mode 100644 index 000000000000..920f4271f02b --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesRelationsItems.ts @@ -0,0 +1,60 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesRelationsItems` object. + */ +export class ScaRequestDataAttributesRelationsItems { + /** + * The `items` `depends_on`. + */ + "dependsOn"?: Array; + /** + * The `items` `ref`. + */ + "ref"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + dependsOn: { + baseName: "depends_on", + type: "Array", + }, + ref: { + baseName: "ref", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesRelationsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesRepository.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesRepository.ts new file mode 100644 index 000000000000..dd8a4844644d --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesRepository.ts @@ -0,0 +1,52 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesRepository` object. + */ +export class ScaRequestDataAttributesRepository { + /** + * The `repository` `url`. + */ + "url"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + url: { + baseName: "url", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesRepository.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesVulnerabilitiesItems.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesVulnerabilitiesItems.ts new file mode 100644 index 000000000000..ea64134e81b8 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesVulnerabilitiesItems.ts @@ -0,0 +1,69 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems } from "./ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesVulnerabilitiesItems` object. + */ +export class ScaRequestDataAttributesVulnerabilitiesItems { + /** + * The `items` `affects`. + */ + "affects"?: Array; + /** + * The `items` `bom_ref`. + */ + "bomRef"?: string; + /** + * The `items` `id`. + */ + "id"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + affects: { + baseName: "affects", + type: "Array", + }, + bomRef: { + baseName: "bom_ref", + type: "string", + }, + id: { + baseName: "id", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesVulnerabilitiesItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems.ts b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems.ts new file mode 100644 index 000000000000..b2cd3da2de8c --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems.ts @@ -0,0 +1,52 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems` object. + */ +export class ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems { + /** + * The `items` `ref`. + */ + "ref"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + ref: { + baseName: "ref", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ScaRequestDataType.ts b/packages/datadog-api-client-v2/models/ScaRequestDataType.ts new file mode 100644 index 000000000000..14241f8d4934 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ScaRequestDataType.ts @@ -0,0 +1,14 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Scarequests resource type. + */ + +export type ScaRequestDataType = typeof SCAREQUESTS | UnparsedObject; +export const SCAREQUESTS = "scarequests";