diff --git a/packages/clients/src/api/instance/v1/marshalling.gen.ts b/packages/clients/src/api/instance/v1/marshalling.gen.ts index ac963ce9e..8c8fb92c4 100644 --- a/packages/clients/src/api/instance/v1/marshalling.gen.ts +++ b/packages/clients/src/api/instance/v1/marshalling.gen.ts @@ -989,6 +989,7 @@ export const unmarshalGetServerTypesAvailabilityResponse = (data: unknown) => { data.servers, unmarshalGetServerTypesAvailabilityResponseAvailability, ), + totalCount: data.total_count, } as GetServerTypesAvailabilityResponse } diff --git a/packages/clients/src/api/instance/v1/types.gen.ts b/packages/clients/src/api/instance/v1/types.gen.ts index a19ba9696..3c559e607 100644 --- a/packages/clients/src/api/instance/v1/types.gen.ts +++ b/packages/clients/src/api/instance/v1/types.gen.ts @@ -221,8 +221,11 @@ export interface GetServerResponse { server?: Server } +/** Get server types availability response. */ export interface GetServerTypesAvailabilityResponse { + /** Map of server types. */ servers: Record + totalCount: number } export interface GetServerTypesAvailabilityResponseAvailability { @@ -923,7 +926,12 @@ export interface VolumeTypeConstraints { export type GetServerTypesAvailabilityRequest = { /** Zone to target. If none is passed will use default zone from the config. */ zone?: Zone + /** + * A positive integer lower or equal to 100 to select the number of items to + * return. + */ perPage?: number + /** A positive integer to choose the page to return. */ page?: number }