Skip to content

Commit 2844a09

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 83bf2d1 of spec repo
1 parent cfeec7a commit 2844a09

9 files changed

Lines changed: 149 additions & 35 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67238,6 +67238,32 @@ components:
6723867238
type: string
6723967239
x-enum-varnames:
6724067240
- CLICKHOUSE
67241+
ObservabilityPipelineClientTls:
67242+
description: Configuration for enabling TLS encryption between the pipeline component and external services, with support for overriding the server name used for the TLS handshake.
67243+
properties:
67244+
ca_file:
67245+
description: Path to the Certificate Authority (CA) file used to validate the server’s TLS certificate.
67246+
type: string
67247+
crt_file:
67248+
description: Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services.
67249+
example: "/path/to/cert.crt"
67250+
type: string
67251+
key_file:
67252+
description: Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication.
67253+
type: string
67254+
key_pass_key:
67255+
description: Name of the environment variable or secret that holds the passphrase for the private key file.
67256+
example: TLS_KEY_PASSPHRASE
67257+
type: string
67258+
server_name:
67259+
description: Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name.
67260+
example: server.example.com
67261+
maxLength: 253
67262+
minLength: 1
67263+
type: string
67264+
required:
67265+
- crt_file
67266+
type: object
6724167267
ObservabilityPipelineCloudPremDestination:
6724267268
description: |-
6724367269
The `cloud_prem` destination sends logs to Datadog CloudPrem.
@@ -67262,7 +67288,7 @@ components:
6726267288
type: string
6726367289
type: array
6726467290
tls:
67265-
$ref: "#/components/schemas/ObservabilityPipelineTls"
67291+
$ref: "#/components/schemas/ObservabilityPipelineClientTls"
6726667292
description: Configuration for TLS encryption.
6726767293
type:
6726867294
$ref: "#/components/schemas/ObservabilityPipelineCloudPremDestinationType"
@@ -68977,7 +69003,7 @@ components:
6897769003
example: HTTP_AUTH_PASSWORD
6897869004
type: string
6897969005
tls:
68980-
$ref: "#/components/schemas/ObservabilityPipelineTls"
69006+
$ref: "#/components/schemas/ObservabilityPipelineClientTls"
6898169007
token_key:
6898269008
description: Name of the environment variable or secret that holds the bearer token (used when `auth_strategy` is `bearer`).
6898369009
example: HTTP_AUTH_TOKEN
@@ -69075,7 +69101,7 @@ components:
6907569101
format: int64
6907669102
type: integer
6907769103
tls:
69078-
$ref: "#/components/schemas/ObservabilityPipelineTls"
69104+
$ref: "#/components/schemas/ObservabilityPipelineClientTls"
6907969105
token_key:
6908069106
description: Name of the environment variable or secret that holds the bearer token (used when `auth_strategy` is `bearer`).
6908169107
example: HTTP_AUTH_TOKEN
@@ -71158,7 +71184,7 @@ components:
7115871184
mode:
7115971185
$ref: "#/components/schemas/ObservabilityPipelineSocketDestinationMode"
7116071186
tls:
71161-
$ref: "#/components/schemas/ObservabilityPipelineTls"
71187+
$ref: "#/components/schemas/ObservabilityPipelineClientTls"
7116271188
description: TLS configuration. Relevant only when `mode` is `tcp`.
7116371189
type:
7116471190
$ref: "#/components/schemas/ObservabilityPipelineSocketDestinationType"
@@ -71890,7 +71916,7 @@ components:
7189071916
minimum: 0
7189171917
type: integer
7189271918
tls:
71893-
$ref: "#/components/schemas/ObservabilityPipelineTls"
71919+
$ref: "#/components/schemas/ObservabilityPipelineClientTls"
7189471920
type:
7189571921
$ref: "#/components/schemas/ObservabilityPipelineSyslogNgDestinationType"
7189671922
required:

docs/datadog_api_client.v2.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27892,6 +27892,13 @@ datadog\_api\_client.v2.model.observability\_pipeline\_clickhouse\_destination\_
2789227892
:members:
2789327893
:show-inheritance:
2789427894

27895+
datadog\_api\_client.v2.model.observability\_pipeline\_client\_tls module
27896+
-------------------------------------------------------------------------
27897+
27898+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_client_tls
27899+
:members:
27900+
:show-inheritance:
27901+
2789527902
datadog\_api\_client.v2.model.observability\_pipeline\_cloud\_prem\_destination module
2789627903
--------------------------------------------------------------------------------------
2789727904

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class ObservabilityPipelineClientTls(ModelNormal):
17+
validations = {
18+
"server_name": {
19+
"max_length": 253,
20+
"min_length": 1,
21+
},
22+
}
23+
24+
@cached_property
25+
def openapi_types(_):
26+
return {
27+
"ca_file": (str,),
28+
"crt_file": (str,),
29+
"key_file": (str,),
30+
"key_pass_key": (str,),
31+
"server_name": (str,),
32+
}
33+
34+
attribute_map = {
35+
"ca_file": "ca_file",
36+
"crt_file": "crt_file",
37+
"key_file": "key_file",
38+
"key_pass_key": "key_pass_key",
39+
"server_name": "server_name",
40+
}
41+
42+
def __init__(
43+
self_,
44+
crt_file: str,
45+
ca_file: Union[str, UnsetType] = unset,
46+
key_file: Union[str, UnsetType] = unset,
47+
key_pass_key: Union[str, UnsetType] = unset,
48+
server_name: Union[str, UnsetType] = unset,
49+
**kwargs,
50+
):
51+
"""
52+
Configuration for enabling TLS encryption between the pipeline component and external services, with support for overriding the server name used for the TLS handshake.
53+
54+
:param ca_file: Path to the Certificate Authority (CA) file used to validate the server’s TLS certificate.
55+
:type ca_file: str, optional
56+
57+
:param crt_file: Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services.
58+
:type crt_file: str
59+
60+
:param key_file: Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication.
61+
:type key_file: str, optional
62+
63+
:param key_pass_key: Name of the environment variable or secret that holds the passphrase for the private key file.
64+
:type key_pass_key: str, optional
65+
66+
:param server_name: Server name to use for Server Name Indication (SNI) and to verify against the certificate presented by the remote host. Use this when the address you connect to doesn't match the certificate's Common Name or Subject Alternative Name.
67+
:type server_name: str, optional
68+
"""
69+
if ca_file is not unset:
70+
kwargs["ca_file"] = ca_file
71+
if key_file is not unset:
72+
kwargs["key_file"] = key_file
73+
if key_pass_key is not unset:
74+
kwargs["key_pass_key"] = key_pass_key
75+
if server_name is not unset:
76+
kwargs["server_name"] = server_name
77+
super().__init__(kwargs)
78+
79+
self_.crt_file = crt_file

src/datadog_api_client/v2/model/observability_pipeline_cloud_prem_destination.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
18-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
18+
from datadog_api_client.v2.model.observability_pipeline_client_tls import ObservabilityPipelineClientTls
1919
from datadog_api_client.v2.model.observability_pipeline_cloud_prem_destination_type import (
2020
ObservabilityPipelineCloudPremDestinationType,
2121
)
@@ -34,7 +34,7 @@ class ObservabilityPipelineCloudPremDestination(ModelNormal):
3434
@cached_property
3535
def openapi_types(_):
3636
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
37-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
37+
from datadog_api_client.v2.model.observability_pipeline_client_tls import ObservabilityPipelineClientTls
3838
from datadog_api_client.v2.model.observability_pipeline_cloud_prem_destination_type import (
3939
ObservabilityPipelineCloudPremDestinationType,
4040
)
@@ -44,7 +44,7 @@ def openapi_types(_):
4444
"endpoint_url_key": (str,),
4545
"id": (str,),
4646
"inputs": ([str],),
47-
"tls": (ObservabilityPipelineTls,),
47+
"tls": (ObservabilityPipelineClientTls,),
4848
"type": (ObservabilityPipelineCloudPremDestinationType,),
4949
}
5050

@@ -70,7 +70,7 @@ def __init__(
7070
UnsetType,
7171
] = unset,
7272
endpoint_url_key: Union[str, UnsetType] = unset,
73-
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
73+
tls: Union[ObservabilityPipelineClientTls, UnsetType] = unset,
7474
**kwargs,
7575
):
7676
"""
@@ -90,8 +90,8 @@ def __init__(
9090
:param inputs: A list of component IDs whose output is used as the ``input`` for this component.
9191
:type inputs: [str]
9292
93-
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
94-
:type tls: ObservabilityPipelineTls, optional
93+
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services, with support for overriding the server name used for the TLS handshake.
94+
:type tls: ObservabilityPipelineClientTls, optional
9595
9696
:param type: The destination type. The value should always be ``cloud_prem``.
9797
:type type: ObservabilityPipelineCloudPremDestinationType

src/datadog_api_client/v2/model/observability_pipeline_http_client_destination.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from datadog_api_client.v2.model.observability_pipeline_http_client_destination_encoding import (
2525
ObservabilityPipelineHttpClientDestinationEncoding,
2626
)
27-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
27+
from datadog_api_client.v2.model.observability_pipeline_client_tls import ObservabilityPipelineClientTls
2828
from datadog_api_client.v2.model.observability_pipeline_http_client_destination_type import (
2929
ObservabilityPipelineHttpClientDestinationType,
3030
)
@@ -52,7 +52,7 @@ def openapi_types(_):
5252
from datadog_api_client.v2.model.observability_pipeline_http_client_destination_encoding import (
5353
ObservabilityPipelineHttpClientDestinationEncoding,
5454
)
55-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
55+
from datadog_api_client.v2.model.observability_pipeline_client_tls import ObservabilityPipelineClientTls
5656
from datadog_api_client.v2.model.observability_pipeline_http_client_destination_type import (
5757
ObservabilityPipelineHttpClientDestinationType,
5858
)
@@ -66,7 +66,7 @@ def openapi_types(_):
6666
"id": (str,),
6767
"inputs": ([str],),
6868
"password_key": (str,),
69-
"tls": (ObservabilityPipelineTls,),
69+
"tls": (ObservabilityPipelineClientTls,),
7070
"token_key": (str,),
7171
"type": (ObservabilityPipelineHttpClientDestinationType,),
7272
"uri_key": (str,),
@@ -106,7 +106,7 @@ def __init__(
106106
compression: Union[ObservabilityPipelineHttpClientDestinationCompression, UnsetType] = unset,
107107
custom_key: Union[str, UnsetType] = unset,
108108
password_key: Union[str, UnsetType] = unset,
109-
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
109+
tls: Union[ObservabilityPipelineClientTls, UnsetType] = unset,
110110
token_key: Union[str, UnsetType] = unset,
111111
uri_key: Union[str, UnsetType] = unset,
112112
username_key: Union[str, UnsetType] = unset,
@@ -141,8 +141,8 @@ def __init__(
141141
:param password_key: Name of the environment variable or secret that holds the password (used when ``auth_strategy`` is ``basic`` ).
142142
:type password_key: str, optional
143143
144-
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
145-
:type tls: ObservabilityPipelineTls, optional
144+
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services, with support for overriding the server name used for the TLS handshake.
145+
:type tls: ObservabilityPipelineClientTls, optional
146146
147147
:param token_key: Name of the environment variable or secret that holds the bearer token (used when ``auth_strategy`` is ``bearer`` ).
148148
:type token_key: str, optional

src/datadog_api_client/v2/model/observability_pipeline_http_client_source.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ObservabilityPipelineHttpClientSourceAuthStrategy,
1919
)
2020
from datadog_api_client.v2.model.observability_pipeline_decoding import ObservabilityPipelineDecoding
21-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
21+
from datadog_api_client.v2.model.observability_pipeline_client_tls import ObservabilityPipelineClientTls
2222
from datadog_api_client.v2.model.observability_pipeline_http_client_source_type import (
2323
ObservabilityPipelineHttpClientSourceType,
2424
)
@@ -31,7 +31,7 @@ def openapi_types(_):
3131
ObservabilityPipelineHttpClientSourceAuthStrategy,
3232
)
3333
from datadog_api_client.v2.model.observability_pipeline_decoding import ObservabilityPipelineDecoding
34-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
34+
from datadog_api_client.v2.model.observability_pipeline_client_tls import ObservabilityPipelineClientTls
3535
from datadog_api_client.v2.model.observability_pipeline_http_client_source_type import (
3636
ObservabilityPipelineHttpClientSourceType,
3737
)
@@ -45,7 +45,7 @@ def openapi_types(_):
4545
"password_key": (str,),
4646
"scrape_interval_secs": (int,),
4747
"scrape_timeout_secs": (int,),
48-
"tls": (ObservabilityPipelineTls,),
48+
"tls": (ObservabilityPipelineClientTls,),
4949
"token_key": (str,),
5050
"type": (ObservabilityPipelineHttpClientSourceType,),
5151
"username_key": (str,),
@@ -77,7 +77,7 @@ def __init__(
7777
password_key: Union[str, UnsetType] = unset,
7878
scrape_interval_secs: Union[int, UnsetType] = unset,
7979
scrape_timeout_secs: Union[int, UnsetType] = unset,
80-
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
80+
tls: Union[ObservabilityPipelineClientTls, UnsetType] = unset,
8181
token_key: Union[str, UnsetType] = unset,
8282
username_key: Union[str, UnsetType] = unset,
8383
**kwargs,
@@ -111,8 +111,8 @@ def __init__(
111111
:param scrape_timeout_secs: The timeout (in seconds) for each scrape request.
112112
:type scrape_timeout_secs: int, optional
113113
114-
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
115-
:type tls: ObservabilityPipelineTls, optional
114+
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services, with support for overriding the server name used for the TLS handshake.
115+
:type tls: ObservabilityPipelineClientTls, optional
116116
117117
:param token_key: Name of the environment variable or secret that holds the bearer token (used when ``auth_strategy`` is ``bearer`` ).
118118
:type token_key: str, optional

src/datadog_api_client/v2/model/observability_pipeline_socket_destination.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from datadog_api_client.v2.model.observability_pipeline_socket_destination_mode import (
2525
ObservabilityPipelineSocketDestinationMode,
2626
)
27-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
27+
from datadog_api_client.v2.model.observability_pipeline_client_tls import ObservabilityPipelineClientTls
2828
from datadog_api_client.v2.model.observability_pipeline_socket_destination_type import (
2929
ObservabilityPipelineSocketDestinationType,
3030
)
@@ -61,7 +61,7 @@ def openapi_types(_):
6161
from datadog_api_client.v2.model.observability_pipeline_socket_destination_mode import (
6262
ObservabilityPipelineSocketDestinationMode,
6363
)
64-
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
64+
from datadog_api_client.v2.model.observability_pipeline_client_tls import ObservabilityPipelineClientTls
6565
from datadog_api_client.v2.model.observability_pipeline_socket_destination_type import (
6666
ObservabilityPipelineSocketDestinationType,
6767
)
@@ -74,7 +74,7 @@ def openapi_types(_):
7474
"id": (str,),
7575
"inputs": ([str],),
7676
"mode": (ObservabilityPipelineSocketDestinationMode,),
77-
"tls": (ObservabilityPipelineTls,),
77+
"tls": (ObservabilityPipelineClientTls,),
7878
"type": (ObservabilityPipelineSocketDestinationType,),
7979
}
8080

@@ -111,7 +111,7 @@ def __init__(
111111
ObservabilityPipelineMemoryBufferSizeOptions,
112112
UnsetType,
113113
] = unset,
114-
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
114+
tls: Union[ObservabilityPipelineClientTls, UnsetType] = unset,
115115
**kwargs,
116116
):
117117
"""
@@ -140,8 +140,8 @@ def __init__(
140140
:param mode: Protocol used to send logs.
141141
:type mode: ObservabilityPipelineSocketDestinationMode
142142
143-
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
144-
:type tls: ObservabilityPipelineTls, optional
143+
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services, with support for overriding the server name used for the TLS handshake.
144+
:type tls: ObservabilityPipelineClientTls, optional
145145
146146
:param type: The destination type. The value should always be ``socket``.
147147
:type type: ObservabilityPipelineSocketDestinationType

0 commit comments

Comments
 (0)