-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(infrastructure_targets): add bulk endpoints (#2246)
- Loading branch information
1 parent
c12dfc0
commit e2f5e1b
Showing
7 changed files
with
508 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 1448 | ||
configured_endpoints: 1450 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0530d6510c5b139af850d24a4f932d5139c8d321a955ffa101b0debafbd75465.yml |
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
58 changes: 58 additions & 0 deletions
58
src/cloudflare/types/zero_trust/access/infrastructure/target_bulk_update_params.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,58 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Iterable | ||
from typing_extensions import Required, TypedDict | ||
|
||
__all__ = ["TargetBulkUpdateParams", "Body", "BodyIP", "BodyIPIPV4", "BodyIPIPV6"] | ||
|
||
|
||
class TargetBulkUpdateParams(TypedDict, total=False): | ||
account_id: Required[str] | ||
"""Account identifier""" | ||
|
||
body: Required[Iterable[Body]] | ||
|
||
|
||
class BodyIPIPV4(TypedDict, total=False): | ||
ip_addr: str | ||
"""IP address of the target""" | ||
|
||
virtual_network_id: str | ||
"""(optional) Private virtual network identifier for the target. | ||
If omitted, the default virtual network ID will be used. | ||
""" | ||
|
||
|
||
class BodyIPIPV6(TypedDict, total=False): | ||
ip_addr: str | ||
"""IP address of the target""" | ||
|
||
virtual_network_id: str | ||
"""(optional) Private virtual network identifier for the target. | ||
If omitted, the default virtual network ID will be used. | ||
""" | ||
|
||
|
||
class BodyIP(TypedDict, total=False): | ||
ipv4: BodyIPIPV4 | ||
"""The target's IPv4 address""" | ||
|
||
ipv6: BodyIPIPV6 | ||
"""The target's IPv6 address""" | ||
|
||
|
||
class Body(TypedDict, total=False): | ||
hostname: Required[str] | ||
"""A non-unique field that refers to a target. | ||
Case insensitive, maximum length of 255 characters, supports the use of special | ||
characters dash and period, does not support spaces, and must start and end with | ||
an alphanumeric character. | ||
""" | ||
|
||
ip: Required[BodyIP] | ||
"""The IPv4/IPv6 address that identifies where to reach a target""" |
65 changes: 65 additions & 0 deletions
65
src/cloudflare/types/zero_trust/access/infrastructure/target_bulk_update_response.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,65 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Optional | ||
from datetime import datetime | ||
from typing_extensions import TypeAlias | ||
|
||
from ....._models import BaseModel | ||
|
||
__all__ = [ | ||
"TargetBulkUpdateResponse", | ||
"TargetBulkUpdateResponseItem", | ||
"TargetBulkUpdateResponseItemIP", | ||
"TargetBulkUpdateResponseItemIPIPV4", | ||
"TargetBulkUpdateResponseItemIPIPV6", | ||
] | ||
|
||
|
||
class TargetBulkUpdateResponseItemIPIPV4(BaseModel): | ||
ip_addr: Optional[str] = None | ||
"""IP address of the target""" | ||
|
||
virtual_network_id: Optional[str] = None | ||
"""(optional) Private virtual network identifier for the target. | ||
If omitted, the default virtual network ID will be used. | ||
""" | ||
|
||
|
||
class TargetBulkUpdateResponseItemIPIPV6(BaseModel): | ||
ip_addr: Optional[str] = None | ||
"""IP address of the target""" | ||
|
||
virtual_network_id: Optional[str] = None | ||
"""(optional) Private virtual network identifier for the target. | ||
If omitted, the default virtual network ID will be used. | ||
""" | ||
|
||
|
||
class TargetBulkUpdateResponseItemIP(BaseModel): | ||
ipv4: Optional[TargetBulkUpdateResponseItemIPIPV4] = None | ||
"""The target's IPv4 address""" | ||
|
||
ipv6: Optional[TargetBulkUpdateResponseItemIPIPV6] = None | ||
"""The target's IPv6 address""" | ||
|
||
|
||
class TargetBulkUpdateResponseItem(BaseModel): | ||
id: str | ||
"""Target identifier""" | ||
|
||
created_at: datetime | ||
"""Date and time at which the target was created""" | ||
|
||
hostname: str | ||
"""A non-unique field that refers to a target""" | ||
|
||
ip: TargetBulkUpdateResponseItemIP | ||
"""The IPv4/IPv6 address that identifies where to reach a target""" | ||
|
||
modified_at: datetime | ||
"""Date and time at which the target was modified""" | ||
|
||
|
||
TargetBulkUpdateResponse: TypeAlias = List[TargetBulkUpdateResponseItem] |
Oops, something went wrong.