-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 8f16f04b of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Oct 7, 2024
1 parent
55f1dd0
commit ca0c23b
Showing
7 changed files
with
113 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/datadog_api_client/v2/model/finding_vulnerability_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# 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 datadog_api_client.model_utils import ( | ||
ModelSimple, | ||
cached_property, | ||
) | ||
|
||
from typing import ClassVar | ||
|
||
|
||
class FindingVulnerabilityType(ModelSimple): | ||
""" | ||
The vulnerability type of the finding. | ||
:param value: Must be one of ["misconfiguration", "attack_path", "identity_risk", "api_security"]. | ||
:type value: str | ||
""" | ||
|
||
allowed_values = { | ||
"misconfiguration", | ||
"attack_path", | ||
"identity_risk", | ||
"api_security", | ||
} | ||
MISCONFIGURATION: ClassVar["FindingVulnerabilityType"] | ||
ATTACK_PATH: ClassVar["FindingVulnerabilityType"] | ||
IDENTITY_RISK: ClassVar["FindingVulnerabilityType"] | ||
API_SECURITY: ClassVar["FindingVulnerabilityType"] | ||
|
||
@cached_property | ||
def openapi_types(_): | ||
return { | ||
"value": (str,), | ||
} | ||
|
||
|
||
FindingVulnerabilityType.MISCONFIGURATION = FindingVulnerabilityType("misconfiguration") | ||
FindingVulnerabilityType.ATTACK_PATH = FindingVulnerabilityType("attack_path") | ||
FindingVulnerabilityType.IDENTITY_RISK = FindingVulnerabilityType("identity_risk") | ||
FindingVulnerabilityType.API_SECURITY = FindingVulnerabilityType("api_security") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters