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
9 changes: 5 additions & 4 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31064,6 +31064,11 @@ components:
InputSchemaParameters:
description: The definition of `InputSchemaParameters` object.
properties:
allowExtraValues:
description: The `InputSchemaParameters` `allowExtraValues`.
type: boolean
allowedValues:
description: The `InputSchemaParameters` `allowedValues`.
defaultValue:
description: The `InputSchemaParameters` `defaultValue`.
description:
Expand Down Expand Up @@ -40869,8 +40874,6 @@ components:
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineMemoryBufferSizeOptions:
description: Options for configuring a memory buffer by queue length.
Expand All @@ -40882,8 +40885,6 @@ components:
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineMetadataEntry:
description: A custom metadata entry.
Expand Down
27 changes: 27 additions & 0 deletions src/datadog_api_client/v2/model/input_schema_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ def openapi_types(_):
from datadog_api_client.v2.model.input_schema_parameters_type import InputSchemaParametersType

return {
"allow_extra_values": (bool,),
"allowed_values": (
bool,
date,
datetime,
dict,
float,
int,
list,
str,
UUID,
none_type,
),
"default_value": (
bool,
date,
Expand All @@ -46,6 +59,8 @@ def openapi_types(_):
}

attribute_map = {
"allow_extra_values": "allowExtraValues",
"allowed_values": "allowedValues",
"default_value": "defaultValue",
"description": "description",
"label": "label",
Expand All @@ -57,6 +72,8 @@ def __init__(
self_,
name: str,
type: InputSchemaParametersType,
allow_extra_values: Union[bool, UnsetType] = unset,
allowed_values: Union[Any, UnsetType] = unset,
default_value: Union[Any, UnsetType] = unset,
description: Union[str, UnsetType] = unset,
label: Union[str, UnsetType] = unset,
Expand All @@ -65,6 +82,12 @@ def __init__(
"""
The definition of ``InputSchemaParameters`` object.

:param allow_extra_values: The ``InputSchemaParameters`` ``allowExtraValues``.
:type allow_extra_values: bool, optional

:param allowed_values: The ``InputSchemaParameters`` ``allowedValues``.
:type allowed_values: bool, date, datetime, dict, float, int, list, str, UUID, none_type, optional

:param default_value: The ``InputSchemaParameters`` ``defaultValue``.
:type default_value: bool, date, datetime, dict, float, int, list, str, UUID, none_type, optional

Expand All @@ -80,6 +103,10 @@ def __init__(
:param type: The definition of ``InputSchemaParametersType`` object.
:type type: InputSchemaParametersType
"""
if allow_extra_values is not unset:
kwargs["allow_extra_values"] = allow_extra_values
if allowed_values is not unset:
kwargs["allowed_values"] = allowed_values
if default_value is not unset:
kwargs["default_value"] = default_value
if description is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
ObservabilityPipelineBufferOptionsMemoryType,
)
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
ObservabilityPipelineBufferOptionsWhenFull,
)


class ObservabilityPipelineMemoryBufferOptions(ModelNormal):
Expand All @@ -28,27 +25,21 @@ def openapi_types(_):
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
ObservabilityPipelineBufferOptionsMemoryType,
)
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
ObservabilityPipelineBufferOptionsWhenFull,
)

return {
"max_size": (int,),
"type": (ObservabilityPipelineBufferOptionsMemoryType,),
"when_full": (ObservabilityPipelineBufferOptionsWhenFull,),
}

attribute_map = {
"max_size": "max_size",
"type": "type",
"when_full": "when_full",
}

def __init__(
self_,
max_size: Union[int, UnsetType] = unset,
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -59,14 +50,9 @@ def __init__(

:param type: The type of the buffer that will be configured, a memory buffer.
:type type: ObservabilityPipelineBufferOptionsMemoryType, optional

:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
"""
if max_size is not unset:
kwargs["max_size"] = max_size
if type is not unset:
kwargs["type"] = type
if when_full is not unset:
kwargs["when_full"] = when_full
super().__init__(kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
ObservabilityPipelineBufferOptionsMemoryType,
)
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
ObservabilityPipelineBufferOptionsWhenFull,
)


class ObservabilityPipelineMemoryBufferSizeOptions(ModelNormal):
Expand All @@ -28,27 +25,21 @@ def openapi_types(_):
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
ObservabilityPipelineBufferOptionsMemoryType,
)
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
ObservabilityPipelineBufferOptionsWhenFull,
)

return {
"max_events": (int,),
"type": (ObservabilityPipelineBufferOptionsMemoryType,),
"when_full": (ObservabilityPipelineBufferOptionsWhenFull,),
}

attribute_map = {
"max_events": "max_events",
"type": "type",
"when_full": "when_full",
}

def __init__(
self_,
max_events: Union[int, UnsetType] = unset,
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -59,14 +50,9 @@ def __init__(

:param type: The type of the buffer that will be configured, a memory buffer.
:type type: ObservabilityPipelineBufferOptionsMemoryType, optional

:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
"""
if max_events is not unset:
kwargs["max_events"] = max_events
if type is not unset:
kwargs["type"] = type
if when_full is not unset:
kwargs["when_full"] = when_full
super().__init__(kwargs)
Loading