Skip to content

Commit a45c916

Browse files
feat(api): manual updates
1 parent 1a62c7e commit a45c916

17 files changed

Lines changed: 366 additions & 393 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1037
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-bc301ae9d9a54da581b45b34cc4a0dbb919dea7aa71b2766b4e376cf8af44e1e.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-02df26ca9f5cdb43b588930e91e19993812754fd3386b249a5f617e712cc6864.yml
33
openapi_spec_hash: e56bd6251f837dcad93467c9b2ddb72f
4-
config_hash: 7b0f9cfb41877e8d6bdd311f7ae34263
4+
config_hash: bbc017056099f5034d8ea1bcafbb34f0

src/telnyx/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@
152152
from .fax_create_params import FaxCreateParams as FaxCreateParams
153153
from .media_list_params import MediaListParams as MediaListParams
154154
from .messaging_profile import MessagingProfile as MessagingProfile
155-
from .network_interface import NetworkInterface as NetworkInterface
156155
from .outbound_ip_param import OutboundIPParam as OutboundIPParam
157156
from .queue_list_params import QueueListParams as QueueListParams
158157
from .rcs_agent_message import RcsAgentMessage as RcsAgentMessage

src/telnyx/types/network_interface.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/telnyx/types/network_list_interfaces_response.py

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
from typing import Optional
44

5-
from .record import Record
65
from .._models import BaseModel
7-
from .network_interface import NetworkInterface
6+
from .interface_status import InterfaceStatus
87

9-
__all__ = ["NetworkListInterfacesResponse", "NetworkListInterfacesResponseRegion"]
8+
__all__ = ["NetworkListInterfacesResponse", "Region"]
109

1110

12-
class NetworkListInterfacesResponseRegion(BaseModel):
11+
class Region(BaseModel):
1312
code: Optional[str] = None
1413
"""Region code of the interface."""
1514

@@ -20,14 +19,32 @@ class NetworkListInterfacesResponseRegion(BaseModel):
2019
"""Identifies the type of the resource."""
2120

2221

23-
class NetworkListInterfacesResponse(Record, NetworkInterface):
24-
record_type: Optional[str] = None # type: ignore
22+
class NetworkListInterfacesResponse(BaseModel):
23+
id: Optional[str] = None
24+
"""Identifies the resource."""
25+
26+
created_at: Optional[str] = None
27+
"""ISO 8601 formatted date-time indicating when the resource was created."""
28+
29+
name: Optional[str] = None
30+
"""A user specified name for the interface."""
31+
32+
network_id: Optional[str] = None
33+
"""The id of the network associated with the interface."""
34+
35+
record_type: Optional[str] = None
2536
"""Identifies the type of the resource."""
2637

27-
region: Optional[NetworkListInterfacesResponseRegion] = None
38+
region: Optional[Region] = None
2839

2940
region_code: Optional[str] = None
3041
"""The region interface is deployed to."""
3142

43+
status: Optional[InterfaceStatus] = None
44+
"""The current status of the interface deployment."""
45+
3246
type: Optional[str] = None
3347
"""Identifies the type of the interface."""
48+
49+
updated_at: Optional[str] = None
50+
"""ISO 8601 formatted date-time indicating when the resource was updated."""

src/telnyx/types/public_internet_gateway_create_response.py

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,40 @@
22

33
from typing import Optional
44

5-
from .record import Record
65
from .._models import BaseModel
7-
from .network_interface import NetworkInterface
6+
from .interface_status import InterfaceStatus
87

98
__all__ = ["PublicInternetGatewayCreateResponse", "Data"]
109

1110

12-
class Data(Record, NetworkInterface):
11+
class Data(BaseModel):
12+
id: Optional[str] = None
13+
"""Identifies the resource."""
14+
15+
created_at: Optional[str] = None
16+
"""ISO 8601 formatted date-time indicating when the resource was created."""
17+
18+
name: Optional[str] = None
19+
"""A user specified name for the interface."""
20+
21+
network_id: Optional[str] = None
22+
"""The id of the network associated with the interface."""
23+
1324
public_ip: Optional[str] = None
1425
"""The publically accessible ip for this interface."""
1526

27+
record_type: Optional[str] = None
28+
"""Identifies the type of the resource."""
29+
1630
region_code: Optional[str] = None
1731
"""The region interface is deployed to."""
1832

33+
status: Optional[InterfaceStatus] = None
34+
"""The current status of the interface deployment."""
35+
36+
updated_at: Optional[str] = None
37+
"""ISO 8601 formatted date-time indicating when the resource was updated."""
38+
1939

2040
class PublicInternetGatewayCreateResponse(BaseModel):
2141
data: Optional[Data] = None

src/telnyx/types/public_internet_gateway_delete_response.py

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,40 @@
22

33
from typing import Optional
44

5-
from .record import Record
65
from .._models import BaseModel
7-
from .network_interface import NetworkInterface
6+
from .interface_status import InterfaceStatus
87

98
__all__ = ["PublicInternetGatewayDeleteResponse", "Data"]
109

1110

12-
class Data(Record, NetworkInterface):
11+
class Data(BaseModel):
12+
id: Optional[str] = None
13+
"""Identifies the resource."""
14+
15+
created_at: Optional[str] = None
16+
"""ISO 8601 formatted date-time indicating when the resource was created."""
17+
18+
name: Optional[str] = None
19+
"""A user specified name for the interface."""
20+
21+
network_id: Optional[str] = None
22+
"""The id of the network associated with the interface."""
23+
1324
public_ip: Optional[str] = None
1425
"""The publically accessible ip for this interface."""
1526

27+
record_type: Optional[str] = None
28+
"""Identifies the type of the resource."""
29+
1630
region_code: Optional[str] = None
1731
"""The region interface is deployed to."""
1832

33+
status: Optional[InterfaceStatus] = None
34+
"""The current status of the interface deployment."""
35+
36+
updated_at: Optional[str] = None
37+
"""ISO 8601 formatted date-time indicating when the resource was updated."""
38+
1939

2040
class PublicInternetGatewayDeleteResponse(BaseModel):
2141
data: Optional[Data] = None

src/telnyx/types/public_internet_gateway_list_response.py

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,36 @@
22

33
from typing import Optional
44

5-
from .record import Record
6-
from .network_interface import NetworkInterface
5+
from .._models import BaseModel
6+
from .interface_status import InterfaceStatus
77

88
__all__ = ["PublicInternetGatewayListResponse"]
99

1010

11-
class PublicInternetGatewayListResponse(Record, NetworkInterface):
11+
class PublicInternetGatewayListResponse(BaseModel):
12+
id: Optional[str] = None
13+
"""Identifies the resource."""
14+
15+
created_at: Optional[str] = None
16+
"""ISO 8601 formatted date-time indicating when the resource was created."""
17+
18+
name: Optional[str] = None
19+
"""A user specified name for the interface."""
20+
21+
network_id: Optional[str] = None
22+
"""The id of the network associated with the interface."""
23+
1224
public_ip: Optional[str] = None
1325
"""The publically accessible ip for this interface."""
1426

27+
record_type: Optional[str] = None
28+
"""Identifies the type of the resource."""
29+
1530
region_code: Optional[str] = None
1631
"""The region interface is deployed to."""
32+
33+
status: Optional[InterfaceStatus] = None
34+
"""The current status of the interface deployment."""
35+
36+
updated_at: Optional[str] = None
37+
"""ISO 8601 formatted date-time indicating when the resource was updated."""

src/telnyx/types/public_internet_gateway_retrieve_response.py

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,40 @@
22

33
from typing import Optional
44

5-
from .record import Record
65
from .._models import BaseModel
7-
from .network_interface import NetworkInterface
6+
from .interface_status import InterfaceStatus
87

98
__all__ = ["PublicInternetGatewayRetrieveResponse", "Data"]
109

1110

12-
class Data(Record, NetworkInterface):
11+
class Data(BaseModel):
12+
id: Optional[str] = None
13+
"""Identifies the resource."""
14+
15+
created_at: Optional[str] = None
16+
"""ISO 8601 formatted date-time indicating when the resource was created."""
17+
18+
name: Optional[str] = None
19+
"""A user specified name for the interface."""
20+
21+
network_id: Optional[str] = None
22+
"""The id of the network associated with the interface."""
23+
1324
public_ip: Optional[str] = None
1425
"""The publically accessible ip for this interface."""
1526

27+
record_type: Optional[str] = None
28+
"""Identifies the type of the resource."""
29+
1630
region_code: Optional[str] = None
1731
"""The region interface is deployed to."""
1832

33+
status: Optional[InterfaceStatus] = None
34+
"""The current status of the interface deployment."""
35+
36+
updated_at: Optional[str] = None
37+
"""ISO 8601 formatted date-time indicating when the resource was updated."""
38+
1939

2040
class PublicInternetGatewayRetrieveResponse(BaseModel):
2141
data: Optional[Data] = None

0 commit comments

Comments
 (0)