Skip to content

Commit 26d62aa

Browse files
feat: add validation rules (#345)
Co-authored-by: Vincent Germain <[email protected]>
1 parent 56014b4 commit 26d62aa

File tree

8 files changed

+428
-0
lines changed

8 files changed

+428
-0
lines changed

packages/clients/src/api/baremetal/v1/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ export { BaremetalV1UtilsAPI as API } from './api.utils'
22
export { BaremetalPrivateNetworkV1GenAPI as PrivateNetworkAPI } from './api.gen'
33
export * from './content.gen'
44
export * from './types.gen'
5+
export * as ValidationRules from './validation-rules.gen'
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
4+
export const CreateServerRequest = {
5+
description: {
6+
maxLength: 255,
7+
},
8+
name: {
9+
minLength: 1,
10+
},
11+
}
12+
13+
export const CreateServerRequestInstall = {
14+
hostname: {
15+
maxLength: 255,
16+
},
17+
password: {
18+
maxLength: 255,
19+
},
20+
servicePassword: {
21+
maxLength: 255,
22+
},
23+
serviceUser: {
24+
maxLength: 255,
25+
},
26+
user: {
27+
maxLength: 255,
28+
},
29+
}
30+
31+
export const InstallServerRequest = {
32+
hostname: {
33+
maxLength: 255,
34+
},
35+
password: {
36+
maxLength: 255,
37+
},
38+
servicePassword: {
39+
maxLength: 255,
40+
},
41+
serviceUser: {
42+
maxLength: 255,
43+
},
44+
user: {
45+
maxLength: 255,
46+
},
47+
}
48+
49+
export const ListOSRequest = {
50+
page: {
51+
greaterThan: 0,
52+
},
53+
pageSize: {
54+
greaterThan: 0,
55+
lessThanOrEqual: 100,
56+
},
57+
}
58+
59+
export const ListOffersRequest = {
60+
page: {
61+
greaterThan: 0,
62+
},
63+
pageSize: {
64+
greaterThan: 0,
65+
lessThanOrEqual: 100,
66+
},
67+
}
68+
69+
export const ListOptionsRequest = {
70+
page: {
71+
greaterThan: 0,
72+
},
73+
pageSize: {
74+
greaterThan: 0,
75+
lessThanOrEqual: 100,
76+
},
77+
}
78+
79+
export const ListServerEventsRequest = {
80+
page: {
81+
greaterThan: 0,
82+
},
83+
pageSize: {
84+
greaterThan: 0,
85+
lessThanOrEqual: 100,
86+
},
87+
}
88+
89+
export const ListServersRequest = {
90+
page: {
91+
greaterThan: 0,
92+
},
93+
pageSize: {
94+
greaterThan: 0,
95+
lessThanOrEqual: 100,
96+
},
97+
}
98+
99+
export const ListSettingsRequest = {
100+
page: {
101+
greaterThan: 0,
102+
},
103+
pageSize: {
104+
greaterThan: 0,
105+
lessThanOrEqual: 100,
106+
},
107+
}
108+
109+
export const UpdateServerRequest = {
110+
description: {
111+
maxLength: 255,
112+
},
113+
name: {
114+
maxLength: 255,
115+
},
116+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export { FlexibleipV1Alpha1GenAPI as API } from './api.gen'
22
export * from './content.gen'
33
export * from './types.gen'
4+
export * as ValidationRules from './validation-rules.gen'
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
4+
export const ListFlexibleIPsRequest = {
5+
page: {
6+
greaterThan: 0,
7+
},
8+
pageSize: {
9+
greaterThan: 0,
10+
lessThanOrEqual: 100,
11+
},
12+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { IamV1Alpha1GenAPI as API } from './api.gen'
22
export * from './types.gen'
3+
export * as ValidationRules from './validation-rules.gen'
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
4+
export const CreateAPIKeyRequest = {
5+
description: {
6+
ignoreEmpty: true,
7+
maxLength: 200,
8+
},
9+
}
10+
11+
export const CreateApplicationRequest = {
12+
description: {
13+
ignoreEmpty: true,
14+
maxLength: 200,
15+
},
16+
name: {
17+
maxLength: 64,
18+
minLength: 1,
19+
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
20+
},
21+
}
22+
23+
export const CreateGroupRequest = {
24+
description: {
25+
ignoreEmpty: true,
26+
maxLength: 200,
27+
},
28+
name: {
29+
maxLength: 64,
30+
minLength: 1,
31+
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
32+
},
33+
}
34+
35+
export const CreatePolicyRequest = {
36+
description: {
37+
ignoreEmpty: true,
38+
maxLength: 200,
39+
},
40+
name: {
41+
maxLength: 64,
42+
minLength: 1,
43+
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
44+
},
45+
}
46+
47+
export const CreateSSHKeyRequest = {
48+
name: {
49+
ignoreEmpty: true,
50+
maxLength: 1000,
51+
},
52+
publicKey: {
53+
maxLength: 65000,
54+
minLength: 1,
55+
},
56+
}
57+
58+
export const ListAPIKeysRequest = {
59+
page: {
60+
greaterThanOrEqual: 1,
61+
},
62+
pageSize: {
63+
greaterThanOrEqual: 1,
64+
lessThanOrEqual: 100,
65+
},
66+
}
67+
68+
export const ListApplicationsRequest = {
69+
name: {
70+
maxLength: 64,
71+
minLength: 1,
72+
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
73+
},
74+
page: {
75+
greaterThanOrEqual: 1,
76+
},
77+
pageSize: {
78+
greaterThanOrEqual: 1,
79+
lessThanOrEqual: 100,
80+
},
81+
}
82+
83+
export const ListGroupsRequest = {
84+
name: {
85+
minLength: 1,
86+
},
87+
page: {
88+
greaterThanOrEqual: 1,
89+
},
90+
pageSize: {
91+
greaterThanOrEqual: 1,
92+
lessThanOrEqual: 100,
93+
},
94+
}
95+
96+
export const ListPermissionSetsRequest = {
97+
page: {
98+
greaterThanOrEqual: 1,
99+
},
100+
pageSize: {
101+
greaterThanOrEqual: 1,
102+
lessThanOrEqual: 100,
103+
},
104+
}
105+
106+
export const ListPoliciesRequest = {
107+
page: {
108+
greaterThanOrEqual: 1,
109+
},
110+
pageSize: {
111+
greaterThanOrEqual: 1,
112+
lessThanOrEqual: 100,
113+
},
114+
policyName: {
115+
minLength: 1,
116+
},
117+
}
118+
119+
export const ListRulesRequest = {
120+
page: {
121+
greaterThanOrEqual: 1,
122+
},
123+
pageSize: {
124+
greaterThanOrEqual: 1,
125+
lessThanOrEqual: 100,
126+
},
127+
}
128+
129+
export const ListSSHKeysRequest = {
130+
name: {
131+
maxLength: 1000,
132+
minLength: 1,
133+
},
134+
page: {
135+
greaterThanOrEqual: 1,
136+
},
137+
pageSize: {
138+
greaterThanOrEqual: 1,
139+
lessThanOrEqual: 100,
140+
},
141+
}
142+
143+
export const ListUsersRequest = {
144+
page: {
145+
greaterThanOrEqual: 1,
146+
},
147+
pageSize: {
148+
greaterThanOrEqual: 1,
149+
lessThanOrEqual: 100,
150+
},
151+
}
152+
153+
export const UpdateAPIKeyRequest = {
154+
description: {
155+
maxLength: 200,
156+
},
157+
}
158+
159+
export const UpdateApplicationRequest = {
160+
description: {
161+
maxLength: 200,
162+
},
163+
name: {
164+
maxLength: 64,
165+
minLength: 1,
166+
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
167+
},
168+
}
169+
170+
export const UpdateGroupRequest = {
171+
description: {
172+
maxLength: 200,
173+
},
174+
name: {
175+
maxLength: 64,
176+
minLength: 1,
177+
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
178+
},
179+
}
180+
181+
export const UpdatePolicyRequest = {
182+
description: {
183+
maxLength: 200,
184+
},
185+
name: {
186+
maxLength: 64,
187+
minLength: 1,
188+
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
189+
},
190+
}
191+
192+
export const UpdateSSHKeyRequest = {
193+
name: {
194+
maxLength: 1000,
195+
},
196+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export { K8SV1GenAPI as API } from './api.gen'
22
export * from './content.gen'
33
export * from './types.gen'
4+
export * as ValidationRules from './validation-rules.gen'

0 commit comments

Comments
 (0)