diff --git a/packages/clients/src/api/lb/v1/marshalling.gen.ts b/packages/clients/src/api/lb/v1/marshalling.gen.ts index 6b97dff3a..943a1895c 100644 --- a/packages/clients/src/api/lb/v1/marshalling.gen.ts +++ b/packages/clients/src/api/lb/v1/marshalling.gen.ts @@ -431,6 +431,7 @@ export const unmarshalFrontend = (data: unknown): Frontend => { ? unmarshalCertificate(data.certificate) : undefined, certificateIds: data.certificate_ids, + connectionRateLimit: data.connection_rate_limit, createdAt: unmarshalDate(data.created_at), enableHttp3: data.enable_http3, id: data.id, @@ -1126,6 +1127,7 @@ export const marshalCreateFrontendRequest = ( backend_id: request.backendId, certificate_id: request.certificateId, certificate_ids: request.certificateIds, + connection_rate_limit: request.connectionRateLimit, enable_http3: request.enableHttp3, inbound_port: request.inboundPort, name: request.name || randomName('lbf'), @@ -1332,6 +1334,7 @@ export const marshalUpdateFrontendRequest = ( backend_id: request.backendId, certificate_id: request.certificateId, certificate_ids: request.certificateIds, + connection_rate_limit: request.connectionRateLimit, enable_http3: request.enableHttp3, inbound_port: request.inboundPort, name: request.name, @@ -1568,6 +1571,7 @@ export const marshalZonedApiCreateFrontendRequest = ( backend_id: request.backendId, certificate_id: request.certificateId, certificate_ids: request.certificateIds, + connection_rate_limit: request.connectionRateLimit, enable_http3: request.enableHttp3, inbound_port: request.inboundPort, name: request.name || randomName('lbf'), @@ -1771,6 +1775,7 @@ export const marshalZonedApiUpdateFrontendRequest = ( backend_id: request.backendId, certificate_id: request.certificateId, certificate_ids: request.certificateIds, + connection_rate_limit: request.connectionRateLimit, enable_http3: request.enableHttp3, inbound_port: request.inboundPort, name: request.name, diff --git a/packages/clients/src/api/lb/v1/types.gen.ts b/packages/clients/src/api/lb/v1/types.gen.ts index af6d71b98..85a5a0a80 100644 --- a/packages/clients/src/api/lb/v1/types.gen.ts +++ b/packages/clients/src/api/lb/v1/types.gen.ts @@ -563,6 +563,11 @@ export interface Frontend { updatedAt?: Date /** Defines whether to enable HTTP/3 protocol on the frontend. */ enableHttp3: boolean + /** + * Rate limit for new connections established on this frontend. Use 0 value to + * disable, else value is connections per second. + */ + connectionRateLimit?: number } export interface PrivateNetworkDHCPConfig { @@ -967,6 +972,11 @@ export type CreateFrontendRequest = { certificateIds?: string[] /** Defines whether to enable HTTP/3 protocol on the frontend. */ enableHttp3: boolean + /** + * Rate limit for new connections established on this frontend. Use 0 value to + * disable, else value is connections per second. + */ + connectionRateLimit?: number } export type CreateIpRequest = { @@ -1816,6 +1826,11 @@ export type UpdateFrontendRequest = { certificateIds?: string[] /** Defines whether to enable HTTP/3 protocol on the frontend. */ enableHttp3: boolean + /** + * Rate limit for new connections established on this frontend. Use 0 value to + * disable, else value is connections per second. + */ + connectionRateLimit?: number } export type UpdateHealthCheckRequest = { @@ -2189,6 +2204,11 @@ export type ZonedApiCreateFrontendRequest = { certificateIds?: string[] /** Defines whether to enable HTTP/3 protocol on the frontend. */ enableHttp3: boolean + /** + * Rate limit for new connections established on this frontend. Use 0 value to + * disable, else value is connections per second. + */ + connectionRateLimit?: number } export type ZonedApiCreateIpRequest = { @@ -2835,6 +2855,11 @@ export type ZonedApiUpdateFrontendRequest = { certificateIds?: string[] /** Defines whether to enable HTTP/3 protocol on the frontend. */ enableHttp3: boolean + /** + * Rate limit for new connections established on this frontend. Use 0 value to + * disable, else value is connections per second. + */ + connectionRateLimit?: number } export type ZonedApiUpdateHealthCheckRequest = {