From b0aafe41fd978107f9d4e42e8e5ae712e0f737e8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 24 Aug 2026 20:14:57 +0000 Subject: [PATCH] Regenerate client from commit e8c86c1 of spec repo --- .generator/schemas/v2/openapi.yaml | 171 ++++++++++++++---- docs/datadog_api_client.v2.model.rst | 35 ++++ .../v2/static-analysis/CreateSCAResult.py | 27 ++- .../v2/model/sca_request_data_attributes.py | 27 ++- ...uest_data_attributes_dependencies_items.py | 63 +++++-- ...utes_dependencies_items_locations_items.py | 37 ++-- ...ies_items_locations_items_file_position.py | 8 + ..._locations_items_nullable_file_position.py | 76 ++++++++ ...st_data_attributes_scan_start_timestamp.py | 56 ++++++ .../model/sca_request_data_attributes_tags.py | 46 +++++ .../sca_request_data_attributes_tags_tool.py | 50 +++++ ...est_data_attributes_tags_tool_generator.py | 47 +++++ src/datadog_api_client/v2/models/__init__.py | 16 ++ tests/v2/features/static_analysis.feature | 2 +- 14 files changed, 596 insertions(+), 65 deletions(-) create mode 100644 src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position.py create mode 100644 src/datadog_api_client/v2/model/sca_request_data_attributes_scan_start_timestamp.py create mode 100644 src/datadog_api_client/v2/model/sca_request_data_attributes_tags.py create mode 100644 src/datadog_api_client/v2/model/sca_request_data_attributes_tags_tool.py create mode 100644 src/datadog_api_client/v2/model/sca_request_data_attributes_tags_tool_generator.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d26aead775..2f09c3944e 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -62339,7 +62339,8 @@ components: - name type: object LicensesListResponse: - description: The top-level response object returned by the licenses list endpoint, containing the array of supported SPDX licenses. + description: >- + The top-level response object returned by the licenses list endpoint, containing the array of supported SPDX licenses. properties: data: $ref: "#/components/schemas/LicensesListResponseData" @@ -65756,7 +65757,8 @@ components: - attributes type: object McpScanRequestResponseDataAttributes: - description: The attributes returned when a scan request has been accepted, containing the job identifier used to poll for results. + description: >- + The attributes returned when a scan request has been accepted, containing the job identifier used to poll for results. properties: job_id: description: The job identifier assigned to the scan, used to retrieve the scan result. @@ -89639,7 +89641,8 @@ components: $ref: "#/components/schemas/ResolveVulnerableSymbolsRequestData" type: object ResolveVulnerableSymbolsRequestData: - description: The data object in a request to resolve vulnerable symbols, containing the package PURLs and request type. + description: >- + The data object in a request to resolve vulnerable symbols, containing the package PURLs and request type. properties: attributes: $ref: "#/components/schemas/ResolveVulnerableSymbolsRequestDataAttributes" @@ -89652,7 +89655,8 @@ components: - type type: object ResolveVulnerableSymbolsRequestDataAttributes: - description: The attributes of a request to resolve vulnerable symbols, containing the list of package PURLs to check. + description: >- + The attributes of a request to resolve vulnerable symbols, containing the list of package PURLs to check. properties: purls: description: The list of Package URLs (PURLs) for which to resolve vulnerable symbols. @@ -89677,7 +89681,8 @@ components: $ref: "#/components/schemas/ResolveVulnerableSymbolsResponseData" type: object ResolveVulnerableSymbolsResponseData: - description: The data object in a response for resolving vulnerable symbols, containing the result attributes and response type. + description: >- + The data object in a response for resolving vulnerable symbols, containing the result attributes and response type. properties: attributes: $ref: "#/components/schemas/ResolveVulnerableSymbolsResponseDataAttributes" @@ -89711,7 +89716,8 @@ components: description: The result of resolving vulnerable symbols for a specific package, identified by its PURL. properties: purl: - description: The Package URL (PURL) uniquely identifying the package for which vulnerable symbols are resolved. + description: >- + The Package URL (PURL) uniquely identifying the package for which vulnerable symbols are resolved. type: string vulnerable_symbols: description: The list of vulnerable symbol groups found in this package, organized by advisory. @@ -94283,7 +94289,8 @@ components: - type type: object ScaRequestDataAttributes: - description: The attributes of an SCA request, containing dependency graph data, vulnerability information, and repository context. + description: >- + The attributes of an SCA request, containing dependency graph data, vulnerability information, and repository context. properties: commit: $ref: "#/components/schemas/ScaRequestDataAttributesCommit" @@ -94307,14 +94314,13 @@ components: type: array repository: $ref: "#/components/schemas/ScaRequestDataAttributesRepository" + scan_start_timestamp: + $ref: "#/components/schemas/ScaRequestDataAttributesScanStartTimestamp" service: description: The name of the service or application being analyzed. type: string tags: - additionalProperties: - type: string - description: A map of key-value tags providing additional metadata for the SCA scan. - type: object + $ref: "#/components/schemas/ScaRequestDataAttributesTags" vulnerabilities: description: The list of vulnerabilities identified in the dependency graph. items: @@ -94322,7 +94328,8 @@ components: type: array type: object ScaRequestDataAttributesCommit: - description: Metadata about the commit associated with the SCA scan, including author, committer, and branch information. + description: >- + Metadata about the commit associated with the SCA scan, including author, committer, and branch information. properties: author_date: description: The date when the commit was authored. @@ -94357,24 +94364,26 @@ components: type: array group: description: The group or organization namespace of the dependency (e.g., Maven group ID). + nullable: true type: string is_dev: description: Indicates whether this is a development-only dependency not used in production. type: boolean is_direct: description: Indicates whether this is a direct dependency (as opposed to a transitive one). + nullable: true type: boolean language: description: The programming language ecosystem of this dependency (e.g., java, python, javascript). type: string locations: - description: The list of source file locations where this dependency is declared. - items: - $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItems" - type: array + $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocations" name: description: The name of the dependency package. type: string + opaque: + description: Indicates whether dependency details are intentionally opaque. + type: boolean package_manager: description: The package manager responsible for this dependency (e.g., maven, pip, npm). type: string @@ -94386,21 +94395,44 @@ components: items: $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems" type: array + requires_transitive_enrichment: + description: Indicates whether this dependency requires transitive dependency enrichment. + type: boolean + target_frameworks: + description: The target framework identifiers associated with this dependency. + items: + description: A target framework identifier. + type: string + type: array version: description: The version of the dependency. + nullable: true + type: string + version_constraint: + description: Indicates whether the version value represents a version constraint. + type: boolean + version_range: + description: The version range associated with this dependency when a manifest declares a range. type: string type: object + ScaRequestDataAttributesDependenciesItemsLocations: + description: The list of source file locations where this dependency is declared. + items: + $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItems" + nullable: true + type: array ScaRequestDataAttributesDependenciesItemsLocationsItems: - description: The source code location where a dependency is declared, including block, name, namespace, and version positions within the file. + description: >- + The source code location where a dependency is declared, including block, name, namespace, and version positions within the file. properties: block: $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition" name: - $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition" + $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition" namespace: - $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition" + $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition" version: - $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition" + $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition" type: object ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition: description: A range within a file defined by a start and end position, along with the file name. @@ -94410,6 +94442,24 @@ components: file_name: description: The name or path of the file containing this location. type: string + role: + description: The semantic role associated with this file location. + type: string + start: + $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition" + type: object + ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition: + description: A nullable range within a file defined by a start and end position, along with the file name. + nullable: true + properties: + end: + $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition" + file_name: + description: The name or path of the file containing this location. + type: string + role: + description: The semantic role associated with this file location. + type: string start: $ref: "#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition" type: object @@ -94467,8 +94517,51 @@ components: description: The URL of the repository. type: string type: object + ScaRequestDataAttributesScanStartTimestamp: + additionalProperties: false + description: The time when the SCA scan started. + nullable: true + properties: + nanos: + description: Non-negative fractions of a second at nanosecond resolution. + format: int32 + maximum: 999999999 + minimum: 0 + type: integer + seconds: + description: Seconds of UTC time since Unix epoch. + format: int64 + type: integer + type: object + ScaRequestDataAttributesTags: + additionalProperties: + type: string + description: A map of tags providing additional metadata for the SCA scan. + properties: + tool: + $ref: "#/components/schemas/ScaRequestDataAttributesTagsTool" + type: object + ScaRequestDataAttributesTagsTool: + additionalProperties: false + description: Tool metadata included in SCA tags. + properties: + generator: + $ref: "#/components/schemas/ScaRequestDataAttributesTagsToolGenerator" + type: object + ScaRequestDataAttributesTagsToolGenerator: + additionalProperties: false + description: Metadata about the tool that generated the SCA tags. + properties: + name: + description: The name of the tag generator. + type: string + version: + description: The version of the tag generator. + type: string + type: object ScaRequestDataAttributesVulnerabilitiesItems: - description: A vulnerability entry from the Software Bill of Materials (SBOM), describing a known security issue and the components it affects. + description: >- + A vulnerability entry from the Software Bill of Materials (SBOM), describing a known security issue and the components it affects. properties: affects: description: The list of components affected by this vulnerability. @@ -123100,7 +123193,8 @@ components: apm_api_catalog_write: Add, modify, and delete API catalog definitions. apm_read: Read and query APM and Trace Analytics. apm_service_catalog_read: View service catalog and service definitions. - apm_service_catalog_write: Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog. + apm_service_catalog_write: >- + Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog. appsec_vm_read: View infrastructure, application code, and library vulnerability findings. aws_configurations_manage: Manage AWS integration account configurations and related integration settings. billing_edit: Edit your organization's billing information. @@ -123112,8 +123206,10 @@ components: cases_write: Create and update cases. ci_visibility_pipelines_write: Create CI Visibility pipeline spans using the API. ci_visibility_read: View CI Visibility. - cloud_cost_management_read: View Cloud Cost pages and the cloud cost data source in dashboards and notebooks. For more details, see the Cloud Cost Management docs. - cloud_cost_management_write: Configure cloud cost accounts and global customizations. For more details, see the Cloud Cost Management docs. + cloud_cost_management_read: >- + View Cloud Cost pages and the cloud cost data source in dashboards and notebooks. For more details, see the Cloud Cost Management docs. + cloud_cost_management_write: >- + Configure cloud cost accounts and global customizations. For more details, see the Cloud Cost Management docs. code_analysis_read: View Code Analysis. code_coverage_read: View Code Coverage. continuous_profiler_pgo_read: Read and query Continuous Profiler data for Profile-Guided Optimization (PGO). @@ -123122,7 +123218,8 @@ components: create_webhooks: Create webhooks integrations. dashboards_embed_share: Create, modify, and delete shared dashboards with share type 'embed'. dashboards_invite_share: Create, modify, and delete shared dashboards with share type 'invite'. - dashboards_public_share: Generate public and authenticated links to share dashboards or embeddable graphs externally. + dashboards_public_share: >- + Generate public and authenticated links to share dashboards or embeddable graphs externally. dashboards_read: View dashboards. dashboards_write: Create and change dashboards. data_scanner_read: View Data Scanner configurations. @@ -123146,19 +123243,22 @@ components: logs_read_index_data: Read indexed log data. manage_integrations: Install, uninstall, and configure integrations. metrics_read: View custom metrics. - monitors_downtime: Set downtimes to suppress alerts from any monitor in an organization. Mute and unmute monitors. The ability to write monitors is not required to set downtimes. + monitors_downtime: >- + Set downtimes to suppress alerts from any monitor in an organization. Mute and unmute monitors. The ability to write monitors is not required to set downtimes. monitors_read: View monitors. monitors_write: Edit, delete, and resolve individual monitors. network_connections_read: Read cloud network connections. org_connections_read: Read cross organization connections. org_connections_write: Create, edit, and delete cross organization connections. - org_management: Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace, and enabling & disabling Remote Configuration for the entire organization. + org_management: >- + Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace, and enabling & disabling Remote Configuration for the entire organization. security_comments_read: Read comments of vulnerabilities. security_monitoring_critical_assets_read: Read Critical Assets. security_monitoring_critical_assets_write: Write Critical Assets. security_monitoring_filters_read: Read Security Filters. security_monitoring_filters_write: Create, edit, and delete Security Filters. - security_monitoring_findings_read: View a list of findings that include both misconfigurations and identity risks. + security_monitoring_findings_read: >- + View a list of findings that include both misconfigurations and identity risks. security_monitoring_rules_read: Read Detection Rules. security_monitoring_rules_write: Create and edit Detection Rules. security_monitoring_signals_read: View Security Signals. @@ -123167,24 +123267,29 @@ components: security_pipelines_read: View Security Pipelines. security_pipelines_write: Create, edit, and delete CSM Security Pipelines. siem_entities_read: View Cloud SIEM entities. - slos_corrections: Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs. + slos_corrections: >- + Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs. slos_read: View SLOs and status corrections. slos_write: Create, edit, and delete SLOs. synthetics_global_variable_read: View, search, and use Synthetics global variables. synthetics_global_variable_write: Create, edit, and delete global variables for Synthetics. synthetics_private_location_read: View, search, and use Synthetics private locations. - synthetics_private_location_write: Create and delete private locations in addition to having access to the associated installation guidelines. + synthetics_private_location_write: >- + Create and delete private locations in addition to having access to the associated installation guidelines. synthetics_read: List and view configured Synthetic tests and test results. synthetics_write: Create, edit, and delete Synthetic tests. - teams_manage: Manage Teams. Create, delete, rename, and edit metadata of all Teams. To control Team membership across all Teams, use the User Access Manage permission. - teams_read: Read Teams data. A User with this permission can view Team names, metadata, and which Users are on each Team. + teams_manage: >- + Manage Teams. Create, delete, rename, and edit metadata of all Teams. To control Team membership across all Teams, use the User Access Manage permission. + teams_read: >- + Read Teams data. A User with this permission can view Team names, metadata, and which Users are on each Team. test_optimization_read: View Test Optimization. test_optimization_settings_write: Update service settings in Test Optimization. test_optimization_write: Update flaky tests from Flaky Tests Management of Test Optimization. timeseries_query: Query Timeseries data. usage_read: View your organization's usage and usage attribution. user_access_invite: Invite other users to your organization. - user_access_manage: Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries. + user_access_manage: >- + Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries. user_access_read: View users and their roles and settings. workflows_read: View workflows. workflows_run: Run workflows. diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index fcad395749..59dd73aba3 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -40450,6 +40450,13 @@ datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_dependencies\_item :members: :show-inheritance: +datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_dependencies\_items\_locations\_items\_nullable\_file\_position module +------------------------------------------------------------------------------------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position + :members: + :show-inheritance: + datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_dependencies\_items\_locations\_items\_position module -------------------------------------------------------------------------------------------------------------------- @@ -40485,6 +40492,34 @@ datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_repository module :members: :show-inheritance: +datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_scan\_start\_timestamp module +------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.sca_request_data_attributes_scan_start_timestamp + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_tags module +------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.sca_request_data_attributes_tags + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_tags\_tool module +------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.sca_request_data_attributes_tags_tool + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_tags\_tool\_generator module +------------------------------------------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.sca_request_data_attributes_tags_tool_generator + :members: + :show-inheritance: + datadog\_api\_client.v2.model.sca\_request\_data\_attributes\_vulnerabilities\_items module ------------------------------------------------------------------------------------------- diff --git a/examples/v2/static-analysis/CreateSCAResult.py b/examples/v2/static-analysis/CreateSCAResult.py index 335cc60222..bed0e2e477 100644 --- a/examples/v2/static-analysis/CreateSCAResult.py +++ b/examples/v2/static-analysis/CreateSCAResult.py @@ -17,6 +17,9 @@ from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_file_position import ( ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, ) +from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position import ( + ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, +) from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_position import ( ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, ) @@ -28,6 +31,14 @@ ScaRequestDataAttributesRelationsItems, ) from datadog_api_client.v2.model.sca_request_data_attributes_repository import ScaRequestDataAttributesRepository +from datadog_api_client.v2.model.sca_request_data_attributes_scan_start_timestamp import ( + ScaRequestDataAttributesScanStartTimestamp, +) +from datadog_api_client.v2.model.sca_request_data_attributes_tags import ScaRequestDataAttributesTags +from datadog_api_client.v2.model.sca_request_data_attributes_tags_tool import ScaRequestDataAttributesTagsTool +from datadog_api_client.v2.model.sca_request_data_attributes_tags_tool_generator import ( + ScaRequestDataAttributesTagsToolGenerator, +) from datadog_api_client.v2.model.sca_request_data_attributes_vulnerabilities_items import ( ScaRequestDataAttributesVulnerabilitiesItems, ) @@ -43,21 +54,23 @@ dependencies=[ ScaRequestDataAttributesDependenciesItems( exclusions=[], + group=None, + is_direct=None, locations=[ ScaRequestDataAttributesDependenciesItemsLocationsItems( block=ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition( end=ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition(), start=ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition(), ), - name=ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition( + name=ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition( end=ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition(), start=ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition(), ), - namespace=ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition( + namespace=ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition( end=ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition(), start=ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition(), ), - version=ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition( + version=ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition( end=ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition(), start=ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition(), ), @@ -66,6 +79,8 @@ reachable_symbol_properties=[ ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems(), ], + target_frameworks=[], + version=None, ), ], files=[ @@ -77,6 +92,12 @@ ), ], repository=ScaRequestDataAttributesRepository(), + scan_start_timestamp=ScaRequestDataAttributesScanStartTimestamp(), + tags=ScaRequestDataAttributesTags( + tool=ScaRequestDataAttributesTagsTool( + generator=ScaRequestDataAttributesTagsToolGenerator(), + ), + ), vulnerabilities=[ ScaRequestDataAttributesVulnerabilitiesItems( affects=[ diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes.py b/src/datadog_api_client/v2/model/sca_request_data_attributes.py index 0d8d420480..b1b82d8c78 100644 --- a/src/datadog_api_client/v2/model/sca_request_data_attributes.py +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes.py @@ -3,11 +3,12 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Dict, List, Union, TYPE_CHECKING +from typing import List, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, + none_type, unset, UnsetType, ) @@ -23,6 +24,10 @@ ScaRequestDataAttributesRelationsItems, ) from datadog_api_client.v2.model.sca_request_data_attributes_repository import ScaRequestDataAttributesRepository + from datadog_api_client.v2.model.sca_request_data_attributes_scan_start_timestamp import ( + ScaRequestDataAttributesScanStartTimestamp, + ) + from datadog_api_client.v2.model.sca_request_data_attributes_tags import ScaRequestDataAttributesTags from datadog_api_client.v2.model.sca_request_data_attributes_vulnerabilities_items import ( ScaRequestDataAttributesVulnerabilitiesItems, ) @@ -44,6 +49,10 @@ def openapi_types(_): from datadog_api_client.v2.model.sca_request_data_attributes_repository import ( ScaRequestDataAttributesRepository, ) + from datadog_api_client.v2.model.sca_request_data_attributes_scan_start_timestamp import ( + ScaRequestDataAttributesScanStartTimestamp, + ) + from datadog_api_client.v2.model.sca_request_data_attributes_tags import ScaRequestDataAttributesTags from datadog_api_client.v2.model.sca_request_data_attributes_vulnerabilities_items import ( ScaRequestDataAttributesVulnerabilitiesItems, ) @@ -55,8 +64,9 @@ def openapi_types(_): "files": ([ScaRequestDataAttributesFilesItems],), "relations": ([ScaRequestDataAttributesRelationsItems],), "repository": (ScaRequestDataAttributesRepository,), + "scan_start_timestamp": (ScaRequestDataAttributesScanStartTimestamp,), "service": (str,), - "tags": ({str: (str,)},), + "tags": (ScaRequestDataAttributesTags,), "vulnerabilities": ([ScaRequestDataAttributesVulnerabilitiesItems],), } @@ -67,6 +77,7 @@ def openapi_types(_): "files": "files", "relations": "relations", "repository": "repository", + "scan_start_timestamp": "scan_start_timestamp", "service": "service", "tags": "tags", "vulnerabilities": "vulnerabilities", @@ -80,8 +91,9 @@ def __init__( files: Union[List[ScaRequestDataAttributesFilesItems], UnsetType] = unset, relations: Union[List[ScaRequestDataAttributesRelationsItems], UnsetType] = unset, repository: Union[ScaRequestDataAttributesRepository, UnsetType] = unset, + scan_start_timestamp: Union[ScaRequestDataAttributesScanStartTimestamp, none_type, UnsetType] = unset, service: Union[str, UnsetType] = unset, - tags: Union[Dict[str, str], UnsetType] = unset, + tags: Union[ScaRequestDataAttributesTags, UnsetType] = unset, vulnerabilities: Union[List[ScaRequestDataAttributesVulnerabilitiesItems], UnsetType] = unset, **kwargs, ): @@ -106,11 +118,14 @@ def __init__( :param repository: Information about the source code repository being analyzed. :type repository: ScaRequestDataAttributesRepository, optional + :param scan_start_timestamp: The time when the SCA scan started. + :type scan_start_timestamp: ScaRequestDataAttributesScanStartTimestamp, none_type, optional + :param service: The name of the service or application being analyzed. :type service: str, optional - :param tags: A map of key-value tags providing additional metadata for the SCA scan. - :type tags: {str: (str,)}, optional + :param tags: A map of tags providing additional metadata for the SCA scan. + :type tags: ScaRequestDataAttributesTags, optional :param vulnerabilities: The list of vulnerabilities identified in the dependency graph. :type vulnerabilities: [ScaRequestDataAttributesVulnerabilitiesItems], optional @@ -127,6 +142,8 @@ def __init__( kwargs["relations"] = relations if repository is not unset: kwargs["repository"] = repository + if scan_start_timestamp is not unset: + kwargs["scan_start_timestamp"] = scan_start_timestamp if service is not unset: kwargs["service"] = service if tags is not unset: diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items.py b/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items.py index 964dfc00f7..beb325d15f 100644 --- a/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items.py +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items.py @@ -8,6 +8,7 @@ from datadog_api_client.model_utils import ( ModelNormal, cached_property, + none_type, unset, UnsetType, ) @@ -34,16 +35,21 @@ def openapi_types(_): return { "exclusions": ([str],), - "group": (str,), + "group": (str, none_type), "is_dev": (bool,), - "is_direct": (bool,), + "is_direct": (bool, none_type), "language": (str,), "locations": ([ScaRequestDataAttributesDependenciesItemsLocationsItems],), "name": (str,), + "opaque": (bool,), "package_manager": (str,), "purl": (str,), "reachable_symbol_properties": ([ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems],), - "version": (str,), + "requires_transitive_enrichment": (bool,), + "target_frameworks": ([str],), + "version": (str, none_type), + "version_constraint": (bool,), + "version_range": (str,), } attribute_map = { @@ -54,27 +60,37 @@ def openapi_types(_): "language": "language", "locations": "locations", "name": "name", + "opaque": "opaque", "package_manager": "package_manager", "purl": "purl", "reachable_symbol_properties": "reachable_symbol_properties", + "requires_transitive_enrichment": "requires_transitive_enrichment", + "target_frameworks": "target_frameworks", "version": "version", + "version_constraint": "version_constraint", + "version_range": "version_range", } def __init__( self_, exclusions: Union[List[str], UnsetType] = unset, - group: Union[str, UnsetType] = unset, + group: Union[str, none_type, UnsetType] = unset, is_dev: Union[bool, UnsetType] = unset, - is_direct: Union[bool, UnsetType] = unset, + is_direct: Union[bool, none_type, UnsetType] = unset, language: Union[str, UnsetType] = unset, - locations: Union[List[ScaRequestDataAttributesDependenciesItemsLocationsItems], UnsetType] = unset, + locations: Union[List[ScaRequestDataAttributesDependenciesItemsLocationsItems], none_type, UnsetType] = unset, name: Union[str, UnsetType] = unset, + opaque: Union[bool, UnsetType] = unset, package_manager: Union[str, UnsetType] = unset, purl: Union[str, UnsetType] = unset, reachable_symbol_properties: Union[ List[ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems], UnsetType ] = unset, - version: Union[str, UnsetType] = unset, + requires_transitive_enrichment: Union[bool, UnsetType] = unset, + target_frameworks: Union[List[str], UnsetType] = unset, + version: Union[str, none_type, UnsetType] = unset, + version_constraint: Union[bool, UnsetType] = unset, + version_range: Union[str, UnsetType] = unset, **kwargs, ): """ @@ -84,23 +100,26 @@ def __init__( :type exclusions: [str], optional :param group: The group or organization namespace of the dependency (e.g., Maven group ID). - :type group: str, optional + :type group: str, none_type, optional :param is_dev: Indicates whether this is a development-only dependency not used in production. :type is_dev: bool, optional :param is_direct: Indicates whether this is a direct dependency (as opposed to a transitive one). - :type is_direct: bool, optional + :type is_direct: bool, none_type, optional :param language: The programming language ecosystem of this dependency (e.g., java, python, javascript). :type language: str, optional :param locations: The list of source file locations where this dependency is declared. - :type locations: [ScaRequestDataAttributesDependenciesItemsLocationsItems], optional + :type locations: [ScaRequestDataAttributesDependenciesItemsLocationsItems], none_type, optional :param name: The name of the dependency package. :type name: str, optional + :param opaque: Indicates whether dependency details are intentionally opaque. + :type opaque: bool, optional + :param package_manager: The package manager responsible for this dependency (e.g., maven, pip, npm). :type package_manager: str, optional @@ -110,8 +129,20 @@ def __init__( :param reachable_symbol_properties: Properties describing symbols from this dependency that are reachable in the application code. :type reachable_symbol_properties: [ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems], optional + :param requires_transitive_enrichment: Indicates whether this dependency requires transitive dependency enrichment. + :type requires_transitive_enrichment: bool, optional + + :param target_frameworks: The target framework identifiers associated with this dependency. + :type target_frameworks: [str], optional + :param version: The version of the dependency. - :type version: str, optional + :type version: str, none_type, optional + + :param version_constraint: Indicates whether the version value represents a version constraint. + :type version_constraint: bool, optional + + :param version_range: The version range associated with this dependency when a manifest declares a range. + :type version_range: str, optional """ if exclusions is not unset: kwargs["exclusions"] = exclusions @@ -127,12 +158,22 @@ def __init__( kwargs["locations"] = locations if name is not unset: kwargs["name"] = name + if opaque is not unset: + kwargs["opaque"] = opaque if package_manager is not unset: kwargs["package_manager"] = package_manager if purl is not unset: kwargs["purl"] = purl if reachable_symbol_properties is not unset: kwargs["reachable_symbol_properties"] = reachable_symbol_properties + if requires_transitive_enrichment is not unset: + kwargs["requires_transitive_enrichment"] = requires_transitive_enrichment + if target_frameworks is not unset: + kwargs["target_frameworks"] = target_frameworks if version is not unset: kwargs["version"] = version + if version_constraint is not unset: + kwargs["version_constraint"] = version_constraint + if version_range is not unset: + kwargs["version_range"] = version_range super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items.py b/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items.py index 70a7d4d568..a1a45089ba 100644 --- a/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items.py +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items.py @@ -8,6 +8,7 @@ from datadog_api_client.model_utils import ( ModelNormal, cached_property, + none_type, unset, UnsetType, ) @@ -17,6 +18,9 @@ from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_file_position import ( ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, ) + from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position import ( + ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, + ) class ScaRequestDataAttributesDependenciesItemsLocationsItems(ModelNormal): @@ -25,12 +29,15 @@ def openapi_types(_): from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_file_position import ( ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, ) + from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position import ( + ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, + ) return { "block": (ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition,), - "name": (ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition,), - "namespace": (ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition,), - "version": (ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition,), + "name": (ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition,), + "namespace": (ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition,), + "version": (ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition,), } attribute_map = { @@ -43,9 +50,15 @@ def openapi_types(_): def __init__( self_, block: Union[ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, UnsetType] = unset, - name: Union[ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, UnsetType] = unset, - namespace: Union[ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, UnsetType] = unset, - version: Union[ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, UnsetType] = unset, + name: Union[ + ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, none_type, UnsetType + ] = unset, + namespace: Union[ + ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, none_type, UnsetType + ] = unset, + version: Union[ + ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, none_type, UnsetType + ] = unset, **kwargs, ): """ @@ -54,14 +67,14 @@ def __init__( :param block: A range within a file defined by a start and end position, along with the file name. :type block: ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, optional - :param name: A range within a file defined by a start and end position, along with the file name. - :type name: ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, optional + :param name: A nullable range within a file defined by a start and end position, along with the file name. + :type name: ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, none_type, optional - :param namespace: A range within a file defined by a start and end position, along with the file name. - :type namespace: ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, optional + :param namespace: A nullable range within a file defined by a start and end position, along with the file name. + :type namespace: ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, none_type, optional - :param version: A range within a file defined by a start and end position, along with the file name. - :type version: ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, optional + :param version: A nullable range within a file defined by a start and end position, along with the file name. + :type version: ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, none_type, optional """ if block is not unset: kwargs["block"] = block diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items_file_position.py b/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items_file_position.py index 702d0569fb..3a1d83a946 100644 --- a/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items_file_position.py +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items_file_position.py @@ -29,12 +29,14 @@ def openapi_types(_): return { "end": (ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition,), "file_name": (str,), + "role": (str,), "start": (ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition,), } attribute_map = { "end": "end", "file_name": "file_name", + "role": "role", "start": "start", } @@ -42,6 +44,7 @@ def __init__( self_, end: Union[ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, UnsetType] = unset, file_name: Union[str, UnsetType] = unset, + role: Union[str, UnsetType] = unset, start: Union[ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, UnsetType] = unset, **kwargs, ): @@ -54,6 +57,9 @@ def __init__( :param file_name: The name or path of the file containing this location. :type file_name: str, optional + :param role: The semantic role associated with this file location. + :type role: str, optional + :param start: A specific position (line and column) within a source file. :type start: ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, optional """ @@ -61,6 +67,8 @@ def __init__( kwargs["end"] = end if file_name is not unset: kwargs["file_name"] = file_name + if role is not unset: + kwargs["role"] = role if start is not unset: kwargs["start"] = start super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position.py b/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position.py new file mode 100644 index 0000000000..2d955d1677 --- /dev/null +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position.py @@ -0,0 +1,76 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_position import ( + ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, + ) + + +class ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition(ModelNormal): + _nullable = True + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_position import ( + ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, + ) + + return { + "end": (ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition,), + "file_name": (str,), + "role": (str,), + "start": (ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition,), + } + + attribute_map = { + "end": "end", + "file_name": "file_name", + "role": "role", + "start": "start", + } + + def __init__( + self_, + end: Union[ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, UnsetType] = unset, + file_name: Union[str, UnsetType] = unset, + role: Union[str, UnsetType] = unset, + start: Union[ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, UnsetType] = unset, + **kwargs, + ): + """ + A nullable range within a file defined by a start and end position, along with the file name. + + :param end: A specific position (line and column) within a source file. + :type end: ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, optional + + :param file_name: The name or path of the file containing this location. + :type file_name: str, optional + + :param role: The semantic role associated with this file location. + :type role: str, optional + + :param start: A specific position (line and column) within a source file. + :type start: ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, optional + """ + if end is not unset: + kwargs["end"] = end + if file_name is not unset: + kwargs["file_name"] = file_name + if role is not unset: + kwargs["role"] = role + if start is not unset: + kwargs["start"] = start + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes_scan_start_timestamp.py b/src/datadog_api_client/v2/model/sca_request_data_attributes_scan_start_timestamp.py new file mode 100644 index 0000000000..f5f22217dd --- /dev/null +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes_scan_start_timestamp.py @@ -0,0 +1,56 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class ScaRequestDataAttributesScanStartTimestamp(ModelNormal): + validations = { + "nanos": { + "inclusive_maximum": 999999999, + "inclusive_minimum": 0, + }, + } + + @cached_property + def additional_properties_type(_): + return None + + _nullable = True + + @cached_property + def openapi_types(_): + return { + "nanos": (int,), + "seconds": (int,), + } + + attribute_map = { + "nanos": "nanos", + "seconds": "seconds", + } + + def __init__(self_, nanos: Union[int, UnsetType] = unset, seconds: Union[int, UnsetType] = unset, **kwargs): + """ + The time when the SCA scan started. + + :param nanos: Non-negative fractions of a second at nanosecond resolution. + :type nanos: int, optional + + :param seconds: Seconds of UTC time since Unix epoch. + :type seconds: int, optional + """ + if nanos is not unset: + kwargs["nanos"] = nanos + if seconds is not unset: + kwargs["seconds"] = seconds + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes_tags.py b/src/datadog_api_client/v2/model/sca_request_data_attributes_tags.py new file mode 100644 index 0000000000..ca42df4b16 --- /dev/null +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes_tags.py @@ -0,0 +1,46 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.sca_request_data_attributes_tags_tool import ScaRequestDataAttributesTagsTool + + +class ScaRequestDataAttributesTags(ModelNormal): + @cached_property + def additional_properties_type(_): + return (str,) + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.sca_request_data_attributes_tags_tool import ScaRequestDataAttributesTagsTool + + return { + "tool": (ScaRequestDataAttributesTagsTool,), + } + + attribute_map = { + "tool": "tool", + } + + def __init__(self_, tool: Union[ScaRequestDataAttributesTagsTool, UnsetType] = unset, **kwargs): + """ + A map of tags providing additional metadata for the SCA scan. + + :param tool: Tool metadata included in SCA tags. + :type tool: ScaRequestDataAttributesTagsTool, optional + """ + if tool is not unset: + kwargs["tool"] = tool + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes_tags_tool.py b/src/datadog_api_client/v2/model/sca_request_data_attributes_tags_tool.py new file mode 100644 index 0000000000..26cf6759cf --- /dev/null +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes_tags_tool.py @@ -0,0 +1,50 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.sca_request_data_attributes_tags_tool_generator import ( + ScaRequestDataAttributesTagsToolGenerator, + ) + + +class ScaRequestDataAttributesTagsTool(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.sca_request_data_attributes_tags_tool_generator import ( + ScaRequestDataAttributesTagsToolGenerator, + ) + + return { + "generator": (ScaRequestDataAttributesTagsToolGenerator,), + } + + attribute_map = { + "generator": "generator", + } + + def __init__(self_, generator: Union[ScaRequestDataAttributesTagsToolGenerator, UnsetType] = unset, **kwargs): + """ + Tool metadata included in SCA tags. + + :param generator: Metadata about the tool that generated the SCA tags. + :type generator: ScaRequestDataAttributesTagsToolGenerator, optional + """ + if generator is not unset: + kwargs["generator"] = generator + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/sca_request_data_attributes_tags_tool_generator.py b/src/datadog_api_client/v2/model/sca_request_data_attributes_tags_tool_generator.py new file mode 100644 index 0000000000..0fc3170570 --- /dev/null +++ b/src/datadog_api_client/v2/model/sca_request_data_attributes_tags_tool_generator.py @@ -0,0 +1,47 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class ScaRequestDataAttributesTagsToolGenerator(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "name": (str,), + "version": (str,), + } + + attribute_map = { + "name": "name", + "version": "version", + } + + def __init__(self_, name: Union[str, UnsetType] = unset, version: Union[str, UnsetType] = unset, **kwargs): + """ + Metadata about the tool that generated the SCA tags. + + :param name: The name of the tag generator. + :type name: str, optional + + :param version: The version of the tag generator. + :type version: str, optional + """ + if name is not unset: + kwargs["name"] = name + if version is not unset: + kwargs["version"] = version + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 071b7823f6..fcacd04fac 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -8247,6 +8247,9 @@ from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_file_position import ( ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition, ) +from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_nullable_file_position import ( + ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition, +) from datadog_api_client.v2.model.sca_request_data_attributes_dependencies_items_locations_items_position import ( ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition, ) @@ -8258,6 +8261,14 @@ ScaRequestDataAttributesRelationsItems, ) from datadog_api_client.v2.model.sca_request_data_attributes_repository import ScaRequestDataAttributesRepository +from datadog_api_client.v2.model.sca_request_data_attributes_scan_start_timestamp import ( + ScaRequestDataAttributesScanStartTimestamp, +) +from datadog_api_client.v2.model.sca_request_data_attributes_tags import ScaRequestDataAttributesTags +from datadog_api_client.v2.model.sca_request_data_attributes_tags_tool import ScaRequestDataAttributesTagsTool +from datadog_api_client.v2.model.sca_request_data_attributes_tags_tool_generator import ( + ScaRequestDataAttributesTagsToolGenerator, +) from datadog_api_client.v2.model.sca_request_data_attributes_vulnerabilities_items import ( ScaRequestDataAttributesVulnerabilitiesItems, ) @@ -16782,11 +16793,16 @@ "ScaRequestDataAttributesDependenciesItems", "ScaRequestDataAttributesDependenciesItemsLocationsItems", "ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition", + "ScaRequestDataAttributesDependenciesItemsLocationsItemsNullableFilePosition", "ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition", "ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems", "ScaRequestDataAttributesFilesItems", "ScaRequestDataAttributesRelationsItems", "ScaRequestDataAttributesRepository", + "ScaRequestDataAttributesScanStartTimestamp", + "ScaRequestDataAttributesTags", + "ScaRequestDataAttributesTagsTool", + "ScaRequestDataAttributesTagsToolGenerator", "ScaRequestDataAttributesVulnerabilitiesItems", "ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems", "ScaRequestDataType", diff --git a/tests/v2/features/static_analysis.feature b/tests/v2/features/static_analysis.feature index 5a662bc9c3..2ecb0c9668 100644 --- a/tests/v2/features/static_analysis.feature +++ b/tests/v2/features/static_analysis.feature @@ -581,7 +581,7 @@ Feature: Static Analysis 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"}} + And body with value {"data": {"attributes": {"commit": {}, "dependencies": [{"exclusions": [], "group": null, "is_direct": null, "locations": [{"block": {"end": {}, "start": {}}, "name": {"end": {}, "start": {}}, "namespace": {"end": {}, "start": {}}, "version": {"end": {}, "start": {}}}], "reachable_symbol_properties": [{}], "target_frameworks": [], "version": null}], "files": [{}], "relations": [{"depends_on": []}], "repository": {}, "scan_start_timestamp": {}, "tags": {"tool": {"generator": {}}}, "vulnerabilities": [{"affects": [{}]}]}, "type": "scarequests"}} When the request is sent Then the response status is 200 OK