(opts: ListPageOptions & { fleetId?: string } = {})
| 14 | |
| 15 | export class KeysResource extends BaseResource { |
| 16 | async list(opts: ListPageOptions & { fleetId?: string } = {}): Promise<ApiKeyList> { |
| 17 | const fid = this.fleet(opts.fleetId); |
| 18 | const env = await this.unary( |
| 19 | this.req({ |
| 20 | case: "listKeysReq", |
| 21 | value: { fleetId: fid, page: this.offsetPage(opts.page, opts.perPage) }, |
| 22 | }), |
| 23 | ); |
| 24 | return env.payload.value as ApiKeyList; |
| 25 | } |
| 26 | |
| 27 | iter(opts: KeysListOptions = {}): AsyncGenerator<ApiKeySummary> { |
| 28 | return this.paginateOffset((page) => |
no outgoing calls
no test coverage detected