Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 65 additions & 7 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94280,6 +94280,8 @@ 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
Expand Down Expand Up @@ -94330,24 +94332,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
Expand All @@ -94359,21 +94363,43 @@ 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.
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.
Expand All @@ -94383,6 +94409,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
Expand Down Expand Up @@ -94440,6 +94484,20 @@ components:
description: The URL of the repository.
type: string
type: object
ScaRequestDataAttributesScanStartTimestamp:
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: 2147483647
type: integer
seconds:
description: Seconds of UTC time since Unix epoch.
format: int64
type: integer
type: object
ScaRequestDataAttributesVulnerabilitiesItems:
description: A vulnerability entry from the Software Bill of Materials (SBOM), describing a known security issue and the components it affects.
properties:
Expand Down
14 changes: 14 additions & 0 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40457,6 +40457,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
--------------------------------------------------------------------------------------------------------------------

Expand Down Expand Up @@ -40492,6 +40499,13 @@ 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\_vulnerabilities\_items module
-------------------------------------------------------------------------------------------

Expand Down
17 changes: 14 additions & 3 deletions examples/v2/static-analysis/CreateSCAResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -28,6 +31,9 @@
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_vulnerabilities_items import (
ScaRequestDataAttributesVulnerabilitiesItems,
)
Expand All @@ -43,21 +49,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(),
),
Expand All @@ -66,6 +74,8 @@
reachable_symbol_properties=[
ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems(),
],
target_frameworks=[],
version=None,
),
],
files=[
Expand All @@ -77,6 +87,7 @@
),
],
repository=ScaRequestDataAttributesRepository(),
scan_start_timestamp=ScaRequestDataAttributesScanStartTimestamp(),
vulnerabilities=[
ScaRequestDataAttributesVulnerabilitiesItems(
affects=[
Expand Down
15 changes: 15 additions & 0 deletions src/datadog_api_client/v2/model/sca_request_data_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
none_type,
unset,
UnsetType,
)
Expand All @@ -23,6 +24,9 @@
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_vulnerabilities_items import (
ScaRequestDataAttributesVulnerabilitiesItems,
)
Expand All @@ -44,6 +48,9 @@ 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_vulnerabilities_items import (
ScaRequestDataAttributesVulnerabilitiesItems,
)
Expand All @@ -55,6 +62,7 @@ def openapi_types(_):
"files": ([ScaRequestDataAttributesFilesItems],),
"relations": ([ScaRequestDataAttributesRelationsItems],),
"repository": (ScaRequestDataAttributesRepository,),
"scan_start_timestamp": (ScaRequestDataAttributesScanStartTimestamp,),
"service": (str,),
"tags": ({str: (str,)},),
"vulnerabilities": ([ScaRequestDataAttributesVulnerabilitiesItems],),
Expand All @@ -67,6 +75,7 @@ def openapi_types(_):
"files": "files",
"relations": "relations",
"repository": "repository",
"scan_start_timestamp": "scan_start_timestamp",
"service": "service",
"tags": "tags",
"vulnerabilities": "vulnerabilities",
Expand All @@ -80,6 +89,7 @@ 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,
vulnerabilities: Union[List[ScaRequestDataAttributesVulnerabilitiesItems], UnsetType] = unset,
Expand All @@ -106,6 +116,9 @@ 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

Expand All @@ -127,6 +140,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:
Expand Down
Loading
Loading