Skip to content

Commit 5a84ee2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update IP ranges with remote configuration section (#1583)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 48fea5a commit 5a84ee2

File tree

6 files changed

+89
-4
lines changed

6 files changed

+89
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.5",
7-
"regenerated": "2023-07-18 13:52:26.677874",
8-
"spec_repo_commit": "cbddd387"
7+
"regenerated": "2023-07-18 19:28:45.058432",
8+
"spec_repo_commit": "0259ae38"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-18 13:52:26.691054",
13-
"spec_repo_commit": "cbddd387"
12+
"regenerated": "2023-07-18 19:28:45.071466",
13+
"spec_repo_commit": "0259ae38"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4049,6 +4049,22 @@ components:
40494049
type: string
40504050
type: array
40514051
type: object
4052+
IPPrefixesRemoteConfiguration:
4053+
description: Available prefix information for the Remote Configuration endpoints.
4054+
properties:
4055+
prefixes_ipv4:
4056+
description: List of IPv4 prefixes.
4057+
items:
4058+
description: IPv4 prefix
4059+
type: string
4060+
type: array
4061+
prefixes_ipv6:
4062+
description: List of IPv6 prefixes.
4063+
items:
4064+
description: IPv6 prefix
4065+
type: string
4066+
type: array
4067+
type: object
40524068
IPPrefixesSynthetics:
40534069
description: Available prefix information for the Synthetics endpoints.
40544070
properties:
@@ -4135,6 +4151,8 @@ components:
41354151
$ref: '#/components/schemas/IPPrefixesOrchestrator'
41364152
process:
41374153
$ref: '#/components/schemas/IPPrefixesProcess'
4154+
remote-configuration:
4155+
$ref: '#/components/schemas/IPPrefixesRemoteConfiguration'
41384156
synthetics:
41394157
$ref: '#/components/schemas/IPPrefixesSynthetics'
41404158
synthetics-private-locations:

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,13 @@ ip\_prefixes\_process
12961296
:members:
12971297
:show-inheritance:
12981298

1299+
ip\_prefixes\_remote\_configuration
1300+
-----------------------------------
1301+
1302+
.. automodule:: datadog_api_client.v1.model.ip_prefixes_remote_configuration
1303+
:members:
1304+
:show-inheritance:
1305+
12991306
ip\_prefixes\_synthetics
13001307
------------------------
13011308

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 List, Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class IPPrefixesRemoteConfiguration(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"prefixes_ipv4": ([str],),
21+
"prefixes_ipv6": ([str],),
22+
}
23+
24+
attribute_map = {
25+
"prefixes_ipv4": "prefixes_ipv4",
26+
"prefixes_ipv6": "prefixes_ipv6",
27+
}
28+
29+
def __init__(
30+
self_,
31+
prefixes_ipv4: Union[List[str], UnsetType] = unset,
32+
prefixes_ipv6: Union[List[str], UnsetType] = unset,
33+
**kwargs,
34+
):
35+
"""
36+
Available prefix information for the Remote Configuration endpoints.
37+
38+
:param prefixes_ipv4: List of IPv4 prefixes.
39+
:type prefixes_ipv4: [str], optional
40+
41+
:param prefixes_ipv6: List of IPv6 prefixes.
42+
:type prefixes_ipv6: [str], optional
43+
"""
44+
if prefixes_ipv4 is not unset:
45+
kwargs["prefixes_ipv4"] = prefixes_ipv4
46+
if prefixes_ipv6 is not unset:
47+
kwargs["prefixes_ipv6"] = prefixes_ipv6
48+
super().__init__(kwargs)

src/datadog_api_client/v1/model/ip_ranges.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
2121
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
2222
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
23+
from datadog_api_client.v1.model.ip_prefixes_remote_configuration import IPPrefixesRemoteConfiguration
2324
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
2425
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import (
2526
IPPrefixesSyntheticsPrivateLocations,
@@ -36,6 +37,7 @@ def openapi_types(_):
3637
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
3738
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
3839
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
40+
from datadog_api_client.v1.model.ip_prefixes_remote_configuration import IPPrefixesRemoteConfiguration
3941
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
4042
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import (
4143
IPPrefixesSyntheticsPrivateLocations,
@@ -50,6 +52,7 @@ def openapi_types(_):
5052
"modified": (str,),
5153
"orchestrator": (IPPrefixesOrchestrator,),
5254
"process": (IPPrefixesProcess,),
55+
"remote_configuration": (IPPrefixesRemoteConfiguration,),
5356
"synthetics": (IPPrefixesSynthetics,),
5457
"synthetics_private_locations": (IPPrefixesSyntheticsPrivateLocations,),
5558
"version": (int,),
@@ -64,6 +67,7 @@ def openapi_types(_):
6467
"modified": "modified",
6568
"orchestrator": "orchestrator",
6669
"process": "process",
70+
"remote_configuration": "remote-configuration",
6771
"synthetics": "synthetics",
6872
"synthetics_private_locations": "synthetics-private-locations",
6973
"version": "version",
@@ -79,6 +83,7 @@ def __init__(
7983
modified: Union[str, UnsetType] = unset,
8084
orchestrator: Union[IPPrefixesOrchestrator, UnsetType] = unset,
8185
process: Union[IPPrefixesProcess, UnsetType] = unset,
86+
remote_configuration: Union[IPPrefixesRemoteConfiguration, UnsetType] = unset,
8287
synthetics: Union[IPPrefixesSynthetics, UnsetType] = unset,
8388
synthetics_private_locations: Union[IPPrefixesSyntheticsPrivateLocations, UnsetType] = unset,
8489
version: Union[int, UnsetType] = unset,
@@ -109,6 +114,9 @@ def __init__(
109114
:param process: Available prefix information for the Process endpoints.
110115
:type process: IPPrefixesProcess, optional
111116
117+
:param remote_configuration: Available prefix information for the Remote Configuration endpoints.
118+
:type remote_configuration: IPPrefixesRemoteConfiguration, optional
119+
112120
:param synthetics: Available prefix information for the Synthetics endpoints.
113121
:type synthetics: IPPrefixesSynthetics, optional
114122
@@ -135,6 +143,8 @@ def __init__(
135143
kwargs["orchestrator"] = orchestrator
136144
if process is not unset:
137145
kwargs["process"] = process
146+
if remote_configuration is not unset:
147+
kwargs["remote_configuration"] = remote_configuration
138148
if synthetics is not unset:
139149
kwargs["synthetics"] = synthetics
140150
if synthetics_private_locations is not unset:

src/datadog_api_client/v1/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@
212212
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
213213
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
214214
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
215+
from datadog_api_client.v1.model.ip_prefixes_remote_configuration import IPPrefixesRemoteConfiguration
215216
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
216217
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import IPPrefixesSyntheticsPrivateLocations
217218
from datadog_api_client.v1.model.ip_prefixes_webhooks import IPPrefixesWebhooks
@@ -1098,6 +1099,7 @@
10981099
"IPPrefixesLogs",
10991100
"IPPrefixesOrchestrator",
11001101
"IPPrefixesProcess",
1102+
"IPPrefixesRemoteConfiguration",
11011103
"IPPrefixesSynthetics",
11021104
"IPPrefixesSyntheticsPrivateLocations",
11031105
"IPPrefixesWebhooks",

0 commit comments

Comments
 (0)