Skip to content

Commit

Permalink
feat(serverless): validate trigger queries (scaleway#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Oct 19, 2023
1 parent cbc69a3 commit aa54478
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/clients/src/api/container/v1beta1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ export type {
UpdateTriggerRequest,
UpdateTriggerRequestSqsClientConfig,
} from './types.gen'
export * as ValidationRules from './validation-rules.gen'
45 changes: 45 additions & 0 deletions packages/clients/src/api/container/v1beta1/validation-rules.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.

export const CreateTriggerRequest = {
description: {
maxLength: 255,
},
name: {
maxLength: 50,
minLength: 1,
},
}

export const CreateTriggerRequestMnqNatsClientConfig = {
mnqRegion: {
maxLength: 20,
minLength: 1,
},
subject: {
maxLength: 100,
minLength: 1,
pattern: /^[^\s]+$/,
},
}

export const CreateTriggerRequestMnqSqsClientConfig = {
mnqRegion: {
maxLength: 20,
minLength: 1,
},
queue: {
maxLength: 100,
minLength: 1,
},
}

export const UpdateTriggerRequest = {
description: {
maxLength: 255,
},
name: {
maxLength: 50,
minLength: 1,
},
}
1 change: 1 addition & 0 deletions packages/clients/src/api/function/v1beta1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ export type {
UpdateTriggerRequestSqsClientConfig,
UploadURL,
} from './types.gen'
export * as ValidationRules from './validation-rules.gen'
45 changes: 45 additions & 0 deletions packages/clients/src/api/function/v1beta1/validation-rules.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.

export const CreateTriggerRequest = {
description: {
maxLength: 255,
},
name: {
maxLength: 50,
minLength: 1,
},
}

export const CreateTriggerRequestMnqNatsClientConfig = {
mnqRegion: {
maxLength: 20,
minLength: 1,
},
subject: {
maxLength: 100,
minLength: 1,
pattern: /^[^\s]+$/,
},
}

export const CreateTriggerRequestMnqSqsClientConfig = {
mnqRegion: {
maxLength: 20,
minLength: 1,
},
queue: {
maxLength: 100,
minLength: 1,
},
}

export const UpdateTriggerRequest = {
description: {
maxLength: 255,
},
name: {
maxLength: 50,
minLength: 1,
},
}

0 comments on commit aa54478

Please sign in to comment.