Skip to content
Merged
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
89 changes: 36 additions & 53 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120812,15 +120812,15 @@ components:
data:
$ref: "#/components/schemas/SensitiveDataScannerGroupResponse"
meta:
$ref: "#/components/schemas/SensitiveDataScannerMetaVersionOnly"
$ref: "#/components/schemas/SensitiveDataScannerMeta"
type: object
SensitiveDataScannerCreateRuleResponse:
description: Create rule response.
properties:
data:
$ref: "#/components/schemas/SensitiveDataScannerRuleResponse"
meta:
$ref: "#/components/schemas/SensitiveDataScannerMetaVersionOnly"
$ref: "#/components/schemas/SensitiveDataScannerMeta"
type: object
SensitiveDataScannerFilter:
description: Filter for the Scanning Group.
Expand Down Expand Up @@ -120936,8 +120936,13 @@ components:
SensitiveDataScannerGroupDeleteResponse:
description: Delete group response.
properties:
data:
additionalProperties: {}
description: Always `null`.
nullable: true
type: object
meta:
$ref: "#/components/schemas/SensitiveDataScannerMetaVersionOnly"
$ref: "#/components/schemas/SensitiveDataScannerMeta"
type: object
SensitiveDataScannerGroupIncludedItem:
description: A Scanning Group included item.
Expand Down Expand Up @@ -121027,8 +121032,13 @@ components:
SensitiveDataScannerGroupUpdateResponse:
description: Update group response.
properties:
data:
additionalProperties: {}
description: Always `null`.
nullable: true
type: object
meta:
$ref: "#/components/schemas/SensitiveDataScannerMetaVersionOnly"
$ref: "#/components/schemas/SensitiveDataScannerMeta"
type: object
SensitiveDataScannerIncludedKeywordConfiguration:
description: |-
Expand Down Expand Up @@ -121066,34 +121076,7 @@ components:
type: object
SensitiveDataScannerMeta:
additionalProperties: {}
description: Meta response containing information about the API.
properties:
count_limit:
description: Maximum number of scanning rules allowed for the org.
format: int64
type: integer
group_count_limit:
description: Maximum number of scanning groups allowed for the org.
format: int64
type: integer
has_highlight_enabled:
default: true
deprecated: true
description: (Deprecated) Whether or not scanned events are highlighted in Logs or RUM for the org.
type: boolean
has_multi_pass_enabled:
deprecated: true
description: (Deprecated) Whether or not scanned events have multi-pass enabled.
type: boolean
is_pci_compliant:
description: Whether or not the org is compliant to the payment card industry standard.
type: boolean
version:
description: Version of the API.
example: 0
format: int64
minimum: 0
type: integer
description: Meta response. Always an empty object.
type: object
SensitiveDataScannerMetaVersionOnly:
description: Meta payload containing information about the API.
Expand Down Expand Up @@ -121240,8 +121223,13 @@ components:
SensitiveDataScannerRuleDeleteResponse:
description: Delete rule response.
properties:
data:
additionalProperties: {}
description: Always `null`.
nullable: true
type: object
meta:
$ref: "#/components/schemas/SensitiveDataScannerMetaVersionOnly"
$ref: "#/components/schemas/SensitiveDataScannerMeta"
type: object
SensitiveDataScannerRuleIncludedItem:
description: A Scanning Rule included item.
Expand Down Expand Up @@ -121313,8 +121301,13 @@ components:
SensitiveDataScannerRuleUpdateResponse:
description: Update rule response.
properties:
data:
additionalProperties: {}
description: Always `null`.
nullable: true
type: object
meta:
$ref: "#/components/schemas/SensitiveDataScannerMetaVersionOnly"
$ref: "#/components/schemas/SensitiveDataScannerMeta"
type: object
SensitiveDataScannerSamplings:
description: Sampling configurations for the Scanning Group.
Expand Down Expand Up @@ -238304,11 +238297,7 @@ paths:
id: group-abc-123
type: sensitive_data_scanner_group
type: sensitive_data_scanner_rule
meta:
count_limit: 500
group_count_limit: 20
is_pci_compliant: false
version: 1
meta: {}
schema:
$ref: "#/components/schemas/SensitiveDataScannerGetConfigResponse"
description: OK
Expand Down Expand Up @@ -238361,8 +238350,7 @@ paths:
examples:
default:
value:
meta:
version: 1
meta: {}
schema:
$ref: "#/components/schemas/SensitiveDataScannerReorderGroupsResponse"
description: OK
Expand Down Expand Up @@ -238451,8 +238439,7 @@ paths:
rules:
data: []
type: sensitive_data_scanner_group
meta:
version: 1
meta: {}
schema:
$ref: "#/components/schemas/SensitiveDataScannerCreateGroupResponse"
description: OK
Expand Down Expand Up @@ -238502,8 +238489,8 @@ paths:
examples:
default:
value:
meta:
version: 1
data:
meta: {}
schema:
$ref: "#/components/schemas/SensitiveDataScannerGroupDeleteResponse"
description: OK
Expand Down Expand Up @@ -238573,8 +238560,7 @@ paths:
examples:
default:
value:
meta:
version: 1
meta: {}
schema:
$ref: "#/components/schemas/SensitiveDataScannerGroupUpdateResponse"
description: OK
Expand Down Expand Up @@ -238689,8 +238675,7 @@ paths:
id: group-abc-123
type: sensitive_data_scanner_group
type: sensitive_data_scanner_rule
meta:
version: 1
meta: {}
schema:
$ref: "#/components/schemas/SensitiveDataScannerCreateRuleResponse"
description: OK
Expand Down Expand Up @@ -238740,8 +238725,7 @@ paths:
examples:
default:
value:
meta:
version: 1
meta: {}
schema:
$ref: "#/components/schemas/SensitiveDataScannerRuleDeleteResponse"
description: OK
Expand Down Expand Up @@ -238831,8 +238815,7 @@ paths:
examples:
default:
value:
meta:
version: 1
meta: {}
schema:
$ref: "#/components/schemas/SensitiveDataScannerRuleUpdateResponse"
description: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,18 @@

if TYPE_CHECKING:
from datadog_api_client.v2.model.sensitive_data_scanner_group_response import SensitiveDataScannerGroupResponse
from datadog_api_client.v2.model.sensitive_data_scanner_meta_version_only import SensitiveDataScannerMetaVersionOnly
from datadog_api_client.v2.model.sensitive_data_scanner_meta import SensitiveDataScannerMeta


class SensitiveDataScannerCreateGroupResponse(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.sensitive_data_scanner_group_response import SensitiveDataScannerGroupResponse
from datadog_api_client.v2.model.sensitive_data_scanner_meta_version_only import (
SensitiveDataScannerMetaVersionOnly,
)
from datadog_api_client.v2.model.sensitive_data_scanner_meta import SensitiveDataScannerMeta

return {
"data": (SensitiveDataScannerGroupResponse,),
"meta": (SensitiveDataScannerMetaVersionOnly,),
"meta": (SensitiveDataScannerMeta,),
}

attribute_map = {
Expand All @@ -39,7 +37,7 @@ def openapi_types(_):
def __init__(
self_,
data: Union[SensitiveDataScannerGroupResponse, UnsetType] = unset,
meta: Union[SensitiveDataScannerMetaVersionOnly, UnsetType] = unset,
meta: Union[SensitiveDataScannerMeta, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -48,8 +46,8 @@ def __init__(
:param data: Response data related to the creation of a group.
:type data: SensitiveDataScannerGroupResponse, optional

:param meta: Meta payload containing information about the API.
:type meta: SensitiveDataScannerMetaVersionOnly, optional
:param meta: Meta response. Always an empty object.
:type meta: SensitiveDataScannerMeta, optional
"""
if data is not unset:
kwargs["data"] = data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,18 @@

if TYPE_CHECKING:
from datadog_api_client.v2.model.sensitive_data_scanner_rule_response import SensitiveDataScannerRuleResponse
from datadog_api_client.v2.model.sensitive_data_scanner_meta_version_only import SensitiveDataScannerMetaVersionOnly
from datadog_api_client.v2.model.sensitive_data_scanner_meta import SensitiveDataScannerMeta


class SensitiveDataScannerCreateRuleResponse(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.sensitive_data_scanner_rule_response import SensitiveDataScannerRuleResponse
from datadog_api_client.v2.model.sensitive_data_scanner_meta_version_only import (
SensitiveDataScannerMetaVersionOnly,
)
from datadog_api_client.v2.model.sensitive_data_scanner_meta import SensitiveDataScannerMeta

return {
"data": (SensitiveDataScannerRuleResponse,),
"meta": (SensitiveDataScannerMetaVersionOnly,),
"meta": (SensitiveDataScannerMeta,),
}

attribute_map = {
Expand All @@ -39,7 +37,7 @@ def openapi_types(_):
def __init__(
self_,
data: Union[SensitiveDataScannerRuleResponse, UnsetType] = unset,
meta: Union[SensitiveDataScannerMetaVersionOnly, UnsetType] = unset,
meta: Union[SensitiveDataScannerMeta, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -48,8 +46,8 @@ def __init__(
:param data: Response data related to the creation of a rule.
:type data: SensitiveDataScannerRuleResponse, optional

:param meta: Meta payload containing information about the API.
:type meta: SensitiveDataScannerMetaVersionOnly, optional
:param meta: Meta response. Always an empty object.
:type meta: SensitiveDataScannerMeta, optional
"""
if data is not unset:
kwargs["data"] = data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
:param included: Included objects from relationships.
:type included: SensitiveDataScannerGetConfigIncludedArray, optional

:param meta: Meta response containing information about the API.
:param meta: Meta response. Always an empty object.
:type meta: SensitiveDataScannerMeta, optional
"""
if data is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,72 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union, TYPE_CHECKING
from typing import Any, Dict, Union, TYPE_CHECKING

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
date,
datetime,
none_type,
unset,
UnsetType,
UUID,
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.sensitive_data_scanner_meta_version_only import SensitiveDataScannerMetaVersionOnly
from datadog_api_client.v2.model.sensitive_data_scanner_meta import SensitiveDataScannerMeta


class SensitiveDataScannerGroupDeleteResponse(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.sensitive_data_scanner_meta_version_only import (
SensitiveDataScannerMetaVersionOnly,
)
from datadog_api_client.v2.model.sensitive_data_scanner_meta import SensitiveDataScannerMeta

return {
"meta": (SensitiveDataScannerMetaVersionOnly,),
"data": (
{
str: (
bool,
date,
datetime,
dict,
float,
int,
list,
str,
UUID,
none_type,
)
},
none_type,
),
"meta": (SensitiveDataScannerMeta,),
}

attribute_map = {
"data": "data",
"meta": "meta",
}

def __init__(self_, meta: Union[SensitiveDataScannerMetaVersionOnly, UnsetType] = unset, **kwargs):
def __init__(
self_,
data: Union[Dict[str, Any], none_type, UnsetType] = unset,
meta: Union[SensitiveDataScannerMeta, UnsetType] = unset,
**kwargs,
):
"""
Delete group response.

:param meta: Meta payload containing information about the API.
:type meta: SensitiveDataScannerMetaVersionOnly, optional
:param data: Always ``null``.
:type data: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}, none_type, optional

:param meta: Meta response. Always an empty object.
:type meta: SensitiveDataScannerMeta, optional
"""
if data is not unset:
kwargs["data"] = data
if meta is not unset:
kwargs["meta"] = meta
super().__init__(kwargs)
Loading
Loading