Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add orchestrator section in IP ranges #1331

Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-08 16:22:55.326401",
"spec_repo_commit": "c826f5c2"
"regenerated": "2023-02-10 07:57:50.934825",
"spec_repo_commit": "062e75ae"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-08 16:22:55.343166",
"spec_repo_commit": "c826f5c2"
"regenerated": "2023-02-10 07:57:50.945941",
"spec_repo_commit": "062e75ae"
}
}
}
18 changes: 18 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3791,6 +3791,22 @@ components:
type: string
type: array
type: object
IPPrefixesOrchestrator:
description: Available prefix information for the Orchestrator endpoints.
properties:
prefixes_ipv4:
description: List of IPv4 prefixes.
items:
description: IPv4 prefix
type: string
type: array
prefixes_ipv6:
description: List of IPv6 prefixes.
items:
description: IPv6 prefix
type: string
type: array
type: object
IPPrefixesProcess:
description: Available prefix information for the Process endpoints.
properties:
Expand Down Expand Up @@ -3889,6 +3905,8 @@ components:
description: Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`.
example: 2019-10-31-20-00-00
type: string
orchestrator:
$ref: '#/components/schemas/IPPrefixesOrchestrator'
process:
$ref: '#/components/schemas/IPPrefixesProcess'
synthetics:
Expand Down
7 changes: 7 additions & 0 deletions docs/datadog_api_client.v1.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,13 @@ ip\_prefixes\_logs
:members:
:show-inheritance:

ip\_prefixes\_orchestrator
--------------------------

.. automodule:: datadog_api_client.v1.model.ip_prefixes_orchestrator
:members:
:show-inheritance:

ip\_prefixes\_process
---------------------

Expand Down
48 changes: 48 additions & 0 deletions src/datadog_api_client/v1/model/ip_prefixes_orchestrator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 typing import List, Union

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)


class IPPrefixesOrchestrator(ModelNormal):
@cached_property
def openapi_types(_):
return {
"prefixes_ipv4": ([str],),
"prefixes_ipv6": ([str],),
}

attribute_map = {
"prefixes_ipv4": "prefixes_ipv4",
"prefixes_ipv6": "prefixes_ipv6",
}

def __init__(
self_,
prefixes_ipv4: Union[List[str], UnsetType] = unset,
prefixes_ipv6: Union[List[str], UnsetType] = unset,
**kwargs,
):
"""
Available prefix information for the Orchestrator endpoints.

:param prefixes_ipv4: List of IPv4 prefixes.
:type prefixes_ipv4: [str], optional

:param prefixes_ipv6: List of IPv6 prefixes.
:type prefixes_ipv6: [str], optional
"""
if prefixes_ipv4 is not unset:
kwargs["prefixes_ipv4"] = prefixes_ipv4
if prefixes_ipv6 is not unset:
kwargs["prefixes_ipv6"] = prefixes_ipv6
super().__init__(kwargs)
10 changes: 10 additions & 0 deletions src/datadog_api_client/v1/model/ip_ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from datadog_api_client.v1.model.ip_prefixes_api import IPPrefixesAPI
from datadog_api_client.v1.model.ip_prefixes_apm import IPPrefixesAPM
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import (
Expand All @@ -33,6 +34,7 @@ def openapi_types(_):
from datadog_api_client.v1.model.ip_prefixes_api import IPPrefixesAPI
from datadog_api_client.v1.model.ip_prefixes_apm import IPPrefixesAPM
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import (
Expand All @@ -46,6 +48,7 @@ def openapi_types(_):
"apm": (IPPrefixesAPM,),
"logs": (IPPrefixesLogs,),
"modified": (str,),
"orchestrator": (IPPrefixesOrchestrator,),
"process": (IPPrefixesProcess,),
"synthetics": (IPPrefixesSynthetics,),
"synthetics_private_locations": (IPPrefixesSyntheticsPrivateLocations,),
Expand All @@ -59,6 +62,7 @@ def openapi_types(_):
"apm": "apm",
"logs": "logs",
"modified": "modified",
"orchestrator": "orchestrator",
"process": "process",
"synthetics": "synthetics",
"synthetics_private_locations": "synthetics-private-locations",
Expand All @@ -73,6 +77,7 @@ def __init__(
apm: Union[IPPrefixesAPM, UnsetType] = unset,
logs: Union[IPPrefixesLogs, UnsetType] = unset,
modified: Union[str, UnsetType] = unset,
orchestrator: Union[IPPrefixesOrchestrator, UnsetType] = unset,
process: Union[IPPrefixesProcess, UnsetType] = unset,
synthetics: Union[IPPrefixesSynthetics, UnsetType] = unset,
synthetics_private_locations: Union[IPPrefixesSyntheticsPrivateLocations, UnsetType] = unset,
Expand All @@ -98,6 +103,9 @@ def __init__(
:param modified: Date when last updated, in the form ``YYYY-MM-DD-hh-mm-ss``.
:type modified: str, optional

:param orchestrator: Available prefix information for the Orchestrator endpoints.
:type orchestrator: IPPrefixesOrchestrator, optional

:param process: Available prefix information for the Process endpoints.
:type process: IPPrefixesProcess, optional

Expand All @@ -123,6 +131,8 @@ def __init__(
kwargs["logs"] = logs
if modified is not unset:
kwargs["modified"] = modified
if orchestrator is not unset:
kwargs["orchestrator"] = orchestrator
if process is not unset:
kwargs["process"] = process
if synthetics is not unset:
Expand Down
1 change: 1 addition & 0 deletions src/datadog_api_client/v1/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
from datadog_api_client.v1.model.ip_prefixes_apm import IPPrefixesAPM
from datadog_api_client.v1.model.ip_prefixes_agents import IPPrefixesAgents
from datadog_api_client.v1.model.ip_prefixes_logs import IPPrefixesLogs
from datadog_api_client.v1.model.ip_prefixes_orchestrator import IPPrefixesOrchestrator
from datadog_api_client.v1.model.ip_prefixes_process import IPPrefixesProcess
from datadog_api_client.v1.model.ip_prefixes_synthetics import IPPrefixesSynthetics
from datadog_api_client.v1.model.ip_prefixes_synthetics_private_locations import IPPrefixesSyntheticsPrivateLocations
Expand Down