2828
2929
3030@dataclass
31- class IterablePage (Generic [T ]):
31+ class IterableOf (Generic [T ]):
3232 _get_iterator : Callable [[], Iterator [T ]] = field (repr = False , compare = False )
3333
3434 def __iter__ (self ) -> Iterator [T ]:
3535 return self ._get_iterator ()
3636
3737
3838@dataclass
39- class IterablePageAsync (Generic [T ]):
39+ class AsyncIterableOf (Generic [T ]):
4040 _get_async_iterator : Callable [[], AsyncIterator [T ]] = field (repr = False , compare = False )
4141
4242 def __aiter__ (self ) -> AsyncIterator [T ]:
@@ -74,17 +74,15 @@ class PageWithDesc(Generic[T]):
7474
7575
7676@dataclass
77- class PaginatedPage (PageWithItems [T ], PageWithTotal , PageWithLimit , PageWithCount , PageWithOffset , PageWithDesc ): ...
77+ class PageOfItems (PageWithItems [T ], PageWithTotal , PageWithLimit , PageWithCount , PageWithOffset , PageWithDesc ): ...
7878
7979
8080@dataclass
81- class PaginatedPageOnlyTotal ( PageWithItems [ T ], PageWithTotal ): ...
81+ class PageOfDatasetItems ( PageOfItems [ dict [ str , Any ]] ): ...
8282
8383
8484@dataclass
85- class PageOfDatasetItems (
86- PageWithItems [dict [str , Any ]], PageWithLimit , PageWithCount , PageWithOffset , PageWithTotal , PageWithDesc
87- ): ...
85+ class PageOfItemsOnlyTotal (PageWithItems [T ], PageWithTotal ): ...
8886
8987
9088@dataclass
@@ -103,17 +101,17 @@ class PageOfKeys(PageWithItems[KeyValueStoreKey], PageWithLimit, PageWithCount):
103101
104102@dataclass
105103class AwaitablePage (Generic [T ]):
106- _awaitable_first_page : Awaitable [PaginatedPage [T ]] = field (repr = False , compare = False )
104+ _awaitable_first_page : Awaitable [PageOfItems [T ]] = field (repr = False , compare = False )
107105
108- def __await__ (self ) -> Generator [Any , Any , PaginatedPage [T ]]:
106+ def __await__ (self ) -> Generator [Any , Any , PageOfItems [T ]]:
109107 return self ._awaitable_first_page .__await__ ()
110108
111109
112110@dataclass
113111class AwaitablePageOnlyTotal (Generic [T ]):
114- _awaitable_first_page : Awaitable [PaginatedPageOnlyTotal [T ]] = field (repr = False , compare = False )
112+ _awaitable_first_page : Awaitable [PageOfItemsOnlyTotal [T ]] = field (repr = False , compare = False )
115113
116- def __await__ (self ) -> Generator [Any , Any , PaginatedPageOnlyTotal [T ]]:
114+ def __await__ (self ) -> Generator [Any , Any , PageOfItemsOnlyTotal [T ]]:
117115 return self ._awaitable_first_page .__await__ ()
118116
119117
@@ -142,128 +140,128 @@ def __await__(self) -> Generator[Any, Any, PageOfKeys]:
142140
143141
144142@dataclass
145- class ListPageOfActors (PaginatedPage [ActorShort ], IterablePage [ActorShort ]): ...
143+ class ListPageOfActors (PageOfItems [ActorShort ], IterableOf [ActorShort ]): ...
146144
147145
148146@dataclass
149- class ListPageOfActorsAsync (IterablePageAsync [ActorShort ], AwaitablePage [ActorShort ]): ...
147+ class ListPageOfActorsAsync (AsyncIterableOf [ActorShort ], AwaitablePage [ActorShort ]): ...
150148
151149
152150@dataclass
153- class ListPageOfBuilds (PaginatedPage [BuildShort ], IterablePage [BuildShort ]): ...
151+ class ListPageOfBuilds (PageOfItems [BuildShort ], IterableOf [BuildShort ]): ...
154152
155153
156154@dataclass
157- class ListPageOfBuildsAsync (IterablePageAsync [BuildShort ], AwaitablePage [BuildShort ]): ...
155+ class ListPageOfBuildsAsync (AsyncIterableOf [BuildShort ], AwaitablePage [BuildShort ]): ...
158156
159157
160158@dataclass
161- class ListPageOfDatasets (PaginatedPage [DatasetListItem ], IterablePage [DatasetListItem ]): ...
159+ class ListPageOfDatasets (PageOfItems [DatasetListItem ], IterableOf [DatasetListItem ]): ...
162160
163161
164162@dataclass
165- class ListPageOfDatasetsAsync (IterablePageAsync [DatasetListItem ], AwaitablePage [DatasetListItem ]): ...
163+ class ListPageOfDatasetsAsync (AsyncIterableOf [DatasetListItem ], AwaitablePage [DatasetListItem ]): ...
166164
167165
168166@dataclass
169- class ListPageOfDatasetItems (PageOfDatasetItems , IterablePage [dict [str , Any ]]): ...
167+ class ListPageOfDatasetItems (PageOfDatasetItems , IterableOf [dict [str , Any ]]): ...
170168
171169
172170@dataclass
173- class ListPageOfDatasetItemsAsync (IterablePageAsync [dict [str , Any ]], AwaitablePageOfDatasetItems ): ...
171+ class ListPageOfDatasetItemsAsync (AsyncIterableOf [dict [str , Any ]], AwaitablePageOfDatasetItems ): ...
174172
175173
176174@dataclass
177- class ListPageOfKeyValueStores (PaginatedPage [KeyValueStore ], IterablePage [KeyValueStore ]): ...
175+ class ListPageOfKeyValueStores (PageOfItems [KeyValueStore ], IterableOf [KeyValueStore ]): ...
178176
179177
180178@dataclass
181- class ListPageOfKeyValueStoresAsync (IterablePageAsync [KeyValueStore ], AwaitablePage [KeyValueStore ]): ...
179+ class ListPageOfKeyValueStoresAsync (AsyncIterableOf [KeyValueStore ], AwaitablePage [KeyValueStore ]): ...
182180
183181
184182@dataclass
185- class ListPageOfRequestQueues (PaginatedPage [RequestQueueShort ], IterablePage [RequestQueueShort ]): ...
183+ class ListPageOfRequestQueues (PageOfItems [RequestQueueShort ], IterableOf [RequestQueueShort ]): ...
186184
187185
188186@dataclass
189- class ListPageOfRequestQueuesAsync (IterablePageAsync [RequestQueueShort ], AwaitablePage [RequestQueueShort ]): ...
187+ class ListPageOfRequestQueuesAsync (AsyncIterableOf [RequestQueueShort ], AwaitablePage [RequestQueueShort ]): ...
190188
191189
192190@dataclass
193- class ListPageOfRuns (PaginatedPage [RunShort ], IterablePage [RunShort ]): ...
191+ class ListPageOfRuns (PageOfItems [RunShort ], IterableOf [RunShort ]): ...
194192
195193
196194@dataclass
197- class ListPageOfRunsAsync (IterablePageAsync [RunShort ], AwaitablePage [RunShort ]): ...
195+ class ListPageOfRunsAsync (AsyncIterableOf [RunShort ], AwaitablePage [RunShort ]): ...
198196
199197
200198@dataclass
201- class ListPageOfSchedules (PaginatedPage [ScheduleShort ], IterablePage [ScheduleShort ]): ...
199+ class ListPageOfSchedules (PageOfItems [ScheduleShort ], IterableOf [ScheduleShort ]): ...
202200
203201
204202@dataclass
205- class ListPageOfSchedulesAsync (IterablePageAsync [ScheduleShort ], AwaitablePage [ScheduleShort ]): ...
203+ class ListPageOfSchedulesAsync (AsyncIterableOf [ScheduleShort ], AwaitablePage [ScheduleShort ]): ...
206204
207205
208206@dataclass
209- class ListPageOfStoreActors (PaginatedPage [StoreListActor ], IterablePage [StoreListActor ]): ...
207+ class ListPageOfStoreActors (PageOfItems [StoreListActor ], IterableOf [StoreListActor ]): ...
210208
211209
212210@dataclass
213- class ListPageOfStoreActorsAsync (IterablePageAsync [StoreListActor ], AwaitablePage [StoreListActor ]): ...
211+ class ListPageOfStoreActorsAsync (AsyncIterableOf [StoreListActor ], AwaitablePage [StoreListActor ]): ...
214212
215213
216214@dataclass
217- class ListPageOfTasks (PaginatedPage [TaskShort ], IterablePage [TaskShort ]): ...
215+ class ListPageOfTasks (PageOfItems [TaskShort ], IterableOf [TaskShort ]): ...
218216
219217
220218@dataclass
221- class ListPageOfTasksAsync (IterablePageAsync [TaskShort ], AwaitablePage [TaskShort ]): ...
219+ class ListPageOfTasksAsync (AsyncIterableOf [TaskShort ], AwaitablePage [TaskShort ]): ...
222220
223221
224222@dataclass
225- class ListPageOfWebhookDispatches (PaginatedPage [WebhookDispatch ], IterablePage [WebhookDispatch ]): ...
223+ class ListPageOfWebhookDispatches (PageOfItems [WebhookDispatch ], IterableOf [WebhookDispatch ]): ...
226224
227225
228226@dataclass
229- class ListPageOfWebhookDispatchesAsync (IterablePageAsync [WebhookDispatch ], AwaitablePage [WebhookDispatch ]): ...
227+ class ListPageOfWebhookDispatchesAsync (AsyncIterableOf [WebhookDispatch ], AwaitablePage [WebhookDispatch ]): ...
230228
231229
232230@dataclass
233- class ListPageOfWebhooks (PaginatedPage [WebhookShort ], IterablePage [WebhookShort ]): ...
231+ class ListPageOfWebhooks (PageOfItems [WebhookShort ], IterableOf [WebhookShort ]): ...
234232
235233
236234@dataclass
237- class ListPageOfWebhooksAsync (IterablePageAsync [WebhookShort ], AwaitablePage [WebhookShort ]): ...
235+ class ListPageOfWebhooksAsync (AsyncIterableOf [WebhookShort ], AwaitablePage [WebhookShort ]): ...
238236
239237
240238@dataclass
241- class ListPageOfEnvVars (IterablePage [EnvVar ], PaginatedPageOnlyTotal ): ...
239+ class ListPageOfEnvVars (IterableOf [EnvVar ], PageOfItemsOnlyTotal ): ...
242240
243241
244242@dataclass
245- class ListPageOfEnvVarsAsync (IterablePageAsync [EnvVar ], AwaitablePageOnlyTotal [EnvVar ]): ...
243+ class ListPageOfEnvVarsAsync (AsyncIterableOf [EnvVar ], AwaitablePageOnlyTotal [EnvVar ]): ...
246244
247245
248246@dataclass
249- class ListPageOfVersions (IterablePage [Version ], PaginatedPageOnlyTotal ): ...
247+ class ListPageOfVersions (IterableOf [Version ], PageOfItemsOnlyTotal ): ...
250248
251249
252250@dataclass
253- class ListPageOfVersionsAsync (IterablePageAsync [Version ], AwaitablePageOnlyTotal [Version ]): ...
251+ class ListPageOfVersionsAsync (AsyncIterableOf [Version ], AwaitablePageOnlyTotal [Version ]): ...
254252
255253
256254@dataclass
257- class ListPageOfRequests (PageOfRequests , IterablePage [Request ]): ...
255+ class ListPageOfRequests (PageOfRequests , IterableOf [Request ]): ...
258256
259257
260258@dataclass
261- class ListPageOfRequestsAsync (IterablePageAsync [Request ], AwaitablePageOfRequests ): ...
259+ class ListPageOfRequestsAsync (AsyncIterableOf [Request ], AwaitablePageOfRequests ): ...
262260
263261
264262@dataclass
265- class ListPageOfKeys (PageOfKeys , IterablePage [KeyValueStoreKey ]): ...
263+ class ListPageOfKeys (PageOfKeys , IterableOf [KeyValueStoreKey ]): ...
266264
267265
268266@dataclass
269- class ListPageOfKeysAsync (IterablePageAsync [KeyValueStoreKey ], AwaitablePageOfKeys ): ...
267+ class ListPageOfKeysAsync (AsyncIterableOf [KeyValueStoreKey ], AwaitablePageOfKeys ): ...
0 commit comments