2424 async_to_streamed_response_wrapper ,
2525)
2626from ...._wrappers import ResultWrapper
27- from ....types .intel import ASN
27+ from ....types .intel import IntelASN
2828from ...._base_client import (
2929 make_request_options ,
3030)
3131
32- __all__ = ["ASNResource " , "AsyncASNResource " ]
32+ __all__ = ["ASN " , "AsyncASN " ]
3333
3434
35- class ASNResource (SyncAPIResource ):
35+ class ASN (SyncAPIResource ):
3636 @cached_property
3737 def subnets (self ) -> Subnets :
3838 return Subnets (self ._client )
3939
4040 @cached_property
41- def with_raw_response (self ) -> ASNResourceWithRawResponse :
42- return ASNResourceWithRawResponse (self )
41+ def with_raw_response (self ) -> ASNWithRawResponse :
42+ return ASNWithRawResponse (self )
4343
4444 @cached_property
45- def with_streaming_response (self ) -> ASNResourceWithStreamingResponse :
46- return ASNResourceWithStreamingResponse (self )
45+ def with_streaming_response (self ) -> ASNWithStreamingResponse :
46+ return ASNWithStreamingResponse (self )
4747
4848 def get (
4949 self ,
50- asn : ASN ,
50+ asn : IntelASN ,
5151 * ,
5252 account_id : str ,
5353 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -56,7 +56,7 @@ def get(
5656 extra_query : Query | None = None ,
5757 extra_body : Body | None = None ,
5858 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
59- ) -> ASN :
59+ ) -> IntelASN :
6060 """
6161 Get ASN Overview
6262
@@ -80,28 +80,28 @@ def get(
8080 extra_query = extra_query ,
8181 extra_body = extra_body ,
8282 timeout = timeout ,
83- post_parser = ResultWrapper [ASN ]._unwrapper ,
83+ post_parser = ResultWrapper [IntelASN ]._unwrapper ,
8484 ),
85- cast_to = cast (Type [ASN ], ResultWrapper [int ]),
85+ cast_to = cast (Type [IntelASN ], ResultWrapper [int ]),
8686 )
8787
8888
89- class AsyncASNResource (AsyncAPIResource ):
89+ class AsyncASN (AsyncAPIResource ):
9090 @cached_property
9191 def subnets (self ) -> AsyncSubnets :
9292 return AsyncSubnets (self ._client )
9393
9494 @cached_property
95- def with_raw_response (self ) -> AsyncASNResourceWithRawResponse :
96- return AsyncASNResourceWithRawResponse (self )
95+ def with_raw_response (self ) -> AsyncASNWithRawResponse :
96+ return AsyncASNWithRawResponse (self )
9797
9898 @cached_property
99- def with_streaming_response (self ) -> AsyncASNResourceWithStreamingResponse :
100- return AsyncASNResourceWithStreamingResponse (self )
99+ def with_streaming_response (self ) -> AsyncASNWithStreamingResponse :
100+ return AsyncASNWithStreamingResponse (self )
101101
102102 async def get (
103103 self ,
104- asn : ASN ,
104+ asn : IntelASN ,
105105 * ,
106106 account_id : str ,
107107 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -110,7 +110,7 @@ async def get(
110110 extra_query : Query | None = None ,
111111 extra_body : Body | None = None ,
112112 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
113- ) -> ASN :
113+ ) -> IntelASN :
114114 """
115115 Get ASN Overview
116116
@@ -134,14 +134,14 @@ async def get(
134134 extra_query = extra_query ,
135135 extra_body = extra_body ,
136136 timeout = timeout ,
137- post_parser = ResultWrapper [ASN ]._unwrapper ,
137+ post_parser = ResultWrapper [IntelASN ]._unwrapper ,
138138 ),
139- cast_to = cast (Type [ASN ], ResultWrapper [int ]),
139+ cast_to = cast (Type [IntelASN ], ResultWrapper [int ]),
140140 )
141141
142142
143- class ASNResourceWithRawResponse :
144- def __init__ (self , asn : ASNResource ) -> None :
143+ class ASNWithRawResponse :
144+ def __init__ (self , asn : ASN ) -> None :
145145 self ._asn = asn
146146
147147 self .get = to_raw_response_wrapper (
@@ -153,8 +153,8 @@ def subnets(self) -> SubnetsWithRawResponse:
153153 return SubnetsWithRawResponse (self ._asn .subnets )
154154
155155
156- class AsyncASNResourceWithRawResponse :
157- def __init__ (self , asn : AsyncASNResource ) -> None :
156+ class AsyncASNWithRawResponse :
157+ def __init__ (self , asn : AsyncASN ) -> None :
158158 self ._asn = asn
159159
160160 self .get = async_to_raw_response_wrapper (
@@ -166,8 +166,8 @@ def subnets(self) -> AsyncSubnetsWithRawResponse:
166166 return AsyncSubnetsWithRawResponse (self ._asn .subnets )
167167
168168
169- class ASNResourceWithStreamingResponse :
170- def __init__ (self , asn : ASNResource ) -> None :
169+ class ASNWithStreamingResponse :
170+ def __init__ (self , asn : ASN ) -> None :
171171 self ._asn = asn
172172
173173 self .get = to_streamed_response_wrapper (
@@ -179,8 +179,8 @@ def subnets(self) -> SubnetsWithStreamingResponse:
179179 return SubnetsWithStreamingResponse (self ._asn .subnets )
180180
181181
182- class AsyncASNResourceWithStreamingResponse :
183- def __init__ (self , asn : AsyncASNResource ) -> None :
182+ class AsyncASNWithStreamingResponse :
183+ def __init__ (self , asn : AsyncASN ) -> None :
184184 self ._asn = asn
185185
186186 self .get = async_to_streamed_response_wrapper (
0 commit comments