-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 062e75ae of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Feb 10, 2023
1 parent
a71e0ed
commit 713d69c
Showing
6 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/datadog_api_client/v1/model/ip_prefixes_orchestrator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters