@@ -1577,9 +1577,9 @@ export class AxonOps {
15771577 * @returns {Promise<Axon[]> } An array of {@link Axon} instances.
15781578 */
15791579 async list ( params ?: AxonListParams , options ?: Core . RequestOptions ) : Promise < Axon [ ] > {
1580- const result = await this . client . axons . list ( params , options ) ;
1580+ const page = await this . client . axons . list ( params , options ) ;
15811581 const axons : Axon [ ] = [ ] ;
1582- for await ( const axon of result ) {
1582+ for ( const axon of page . getPaginatedItems ( ) ) {
15831583 axons . push ( Axon . fromId ( this . client , axon . id ) ) ;
15841584 }
15851585 return axons ;
@@ -1789,10 +1789,10 @@ export class NetworkPolicyOps {
17891789 * @returns {Promise<NetworkPolicy[]> } An array of {@link NetworkPolicy} instances.
17901790 */
17911791 async list ( params ?: NetworkPolicyListParams , options ?: Core . RequestOptions ) : Promise < NetworkPolicy [ ] > {
1792- const result = await this . client . networkPolicies . list ( params , options ) ;
1792+ const page = await this . client . networkPolicies . list ( params , options ) ;
17931793 const policies : NetworkPolicy [ ] = [ ] ;
17941794
1795- for await ( const policy of result ) {
1795+ for ( const policy of page . getPaginatedItems ( ) ) {
17961796 policies . push ( NetworkPolicy . fromId ( this . client , policy . id ) ) ;
17971797 }
17981798
@@ -1900,10 +1900,10 @@ export class GatewayConfigOps {
19001900 * @returns {Promise<GatewayConfig[]> } An array of {@link GatewayConfig} instances.
19011901 */
19021902 async list ( params ?: GatewayConfigListParams , options ?: Core . RequestOptions ) : Promise < GatewayConfig [ ] > {
1903- const result = await this . client . gatewayConfigs . list ( params , options ) ;
1903+ const page = await this . client . gatewayConfigs . list ( params , options ) ;
19041904 const configs : GatewayConfig [ ] = [ ] ;
19051905
1906- for await ( const config of result ) {
1906+ for ( const config of page . getPaginatedItems ( ) ) {
19071907 configs . push ( GatewayConfig . fromId ( this . client , config . id ) ) ;
19081908 }
19091909
@@ -2002,10 +2002,10 @@ export class McpConfigOps {
20022002 * @returns {Promise<McpConfig[]> } An array of {@link McpConfig} instances.
20032003 */
20042004 async list ( params ?: McpConfigListParams , options ?: Core . RequestOptions ) : Promise < McpConfig [ ] > {
2005- const result = await this . client . mcpConfigs . list ( params , options ) ;
2005+ const page = await this . client . mcpConfigs . list ( params , options ) ;
20062006 const configs : McpConfig [ ] = [ ] ;
20072007
2008- for await ( const config of result ) {
2008+ for ( const config of page . getPaginatedItems ( ) ) {
20092009 configs . push ( McpConfig . fromId ( this . client , config . id ) ) ;
20102010 }
20112011
0 commit comments