Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/clients/src/api/lb/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const unmarshalHealthCheckHttpConfig = (data: unknown) => {

return {
code: data.code,
hostHeader: data.host_header,
method: data.method,
uri: data.uri,
} as HealthCheckHttpConfig
Expand All @@ -144,7 +145,9 @@ const unmarshalHealthCheckHttpsConfig = (data: unknown) => {

return {
code: data.code,
hostHeader: data.host_header,
method: data.method,
sni: data.sni,
uri: data.uri,
} as HealthCheckHttpsConfig
}
Expand Down Expand Up @@ -423,6 +426,7 @@ export const unmarshalFrontend = (data: unknown) => {
: undefined,
certificateIds: data.certificate_ids,
createdAt: unmarshalDate(data.created_at),
enableHttp3: data.enable_http3,
id: data.id,
inboundPort: data.inbound_port,
lb: data.lb ? unmarshalLb(data.lb) : undefined,
Expand Down Expand Up @@ -756,6 +760,7 @@ const marshalHealthCheckHttpConfig = (
defaults: DefaultValues,
): Record<string, unknown> => ({
code: request.code,
host_header: request.hostHeader,
method: request.method,
uri: request.uri,
})
Expand All @@ -765,7 +770,9 @@ const marshalHealthCheckHttpsConfig = (
defaults: DefaultValues,
): Record<string, unknown> => ({
code: request.code,
host_header: request.hostHeader,
method: request.method,
sni: request.sni,
uri: request.uri,
})

Expand Down Expand Up @@ -1008,6 +1015,7 @@ export const marshalCreateFrontendRequest = (
backend_id: request.backendId,
certificate_id: request.certificateId,
certificate_ids: request.certificateIds,
enable_http3: request.enableHttp3,
inbound_port: request.inboundPort,
name: request.name || randomName('lbf'),
timeout_client: request.timeoutClient,
Expand Down Expand Up @@ -1171,6 +1179,7 @@ export const marshalUpdateFrontendRequest = (
backend_id: request.backendId,
certificate_id: request.certificateId,
certificate_ids: request.certificateIds,
enable_http3: request.enableHttp3,
inbound_port: request.inboundPort,
name: request.name,
timeout_client: request.timeoutClient,
Expand Down Expand Up @@ -1374,6 +1383,7 @@ export const marshalZonedApiCreateFrontendRequest = (
backend_id: request.backendId,
certificate_id: request.certificateId,
certificate_ids: request.certificateIds,
enable_http3: request.enableHttp3,
inbound_port: request.inboundPort,
name: request.name || randomName('lbf'),
timeout_client: request.timeoutClient,
Expand Down Expand Up @@ -1544,6 +1554,7 @@ export const marshalZonedApiUpdateFrontendRequest = (
backend_id: request.backendId,
certificate_id: request.certificateId,
certificate_ids: request.certificateIds,
enable_http3: request.enableHttp3,
inbound_port: request.inboundPort,
name: request.name,
timeout_client: request.timeoutClient,
Expand Down
29 changes: 29 additions & 0 deletions packages/clients/src/api/lb/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ export interface Frontend {
certificateIds: Array<string>
createdAt?: Date
updatedAt?: Date
enableHttp3: boolean
}

/** Health check */
Expand Down Expand Up @@ -378,16 +379,36 @@ export interface HealthCheck {
checkSendProxy: boolean
}

/** Health check. http config */
export interface HealthCheckHttpConfig {
/** HTTP uri used with the request */
uri: string
/** HTTP method used with the request */
method: string
/**
* A health check response will be considered as valid if the response's
* status code match
*/
code?: number
/** HTTP host header used with the request */
hostHeader: string
}

/** Health check. https config */
export interface HealthCheckHttpsConfig {
/** HTTP uri used with the request */
uri: string
/** HTTP method used with the request */
method: string
/**
* A health check response will be considered as valid if the response's
* status code match
*/
code?: number
/** HTTP host header used with the request */
hostHeader: string
/** Specifies the SNI to use to do health checks over SSL */
sni: string
}

export interface HealthCheckLdapConfig {}
Expand Down Expand Up @@ -1085,6 +1106,8 @@ export type CreateFrontendRequest = {
certificateId?: string
/** List of certificate IDs to bind on the frontend */
certificateIds?: Array<string>
/** Activate HTTP 3 protocol (beta) */
enableHttp3: boolean
}

export type GetFrontendRequest = {
Expand All @@ -1111,6 +1134,8 @@ export type UpdateFrontendRequest = {
certificateId?: string
/** List of certificate IDs to bind on the frontend */
certificateIds?: Array<string>
/** Activate HTTP 3 protocol (beta) */
enableHttp3: boolean
}

export type DeleteFrontendRequest = {
Expand Down Expand Up @@ -1906,6 +1931,8 @@ export type ZonedApiCreateFrontendRequest = {
certificateId?: string
/** List of certificate IDs to bind on the frontend */
certificateIds?: Array<string>
/** Activate HTTP 3 protocol (beta) */
enableHttp3: boolean
}

export type ZonedApiGetFrontendRequest = {
Expand All @@ -1932,6 +1959,8 @@ export type ZonedApiUpdateFrontendRequest = {
certificateId?: string
/** List of certificate IDs to bind on the frontend */
certificateIds?: Array<string>
/** Activate HTTP 3 protocol (beta) */
enableHttp3: boolean
}

export type ZonedApiDeleteFrontendRequest = {
Expand Down