Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add validation rules #345

Merged
merged 5 commits into from
Jan 5, 2023
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
1 change: 1 addition & 0 deletions packages/clients/src/api/baremetal/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { BaremetalV1UtilsAPI as API } from './api.utils'
export { BaremetalPrivateNetworkV1GenAPI as PrivateNetworkAPI } from './api.gen'
export * from './content.gen'
export * from './types.gen'
export * as ValidationRules from './validation-rules.gen'
116 changes: 116 additions & 0 deletions packages/clients/src/api/baremetal/v1/validation-rules.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.

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

export const CreateServerRequestInstall = {
hostname: {
maxLength: 255,
},
password: {
maxLength: 255,
},
servicePassword: {
maxLength: 255,
},
serviceUser: {
maxLength: 255,
},
user: {
maxLength: 255,
},
}

export const InstallServerRequest = {
hostname: {
maxLength: 255,
},
password: {
maxLength: 255,
},
servicePassword: {
maxLength: 255,
},
serviceUser: {
maxLength: 255,
},
user: {
maxLength: 255,
},
}

export const ListOSRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThan: 0,
lessThanOrEqual: 100,
},
}

export const ListOffersRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThan: 0,
lessThanOrEqual: 100,
},
}

export const ListOptionsRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThan: 0,
lessThanOrEqual: 100,
},
}

export const ListServerEventsRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThan: 0,
lessThanOrEqual: 100,
},
}

export const ListServersRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThan: 0,
lessThanOrEqual: 100,
},
}

export const ListSettingsRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThan: 0,
lessThanOrEqual: 100,
},
}

export const UpdateServerRequest = {
description: {
maxLength: 255,
},
name: {
maxLength: 255,
},
}
1 change: 1 addition & 0 deletions packages/clients/src/api/flexibleip/v1alpha1/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { FlexibleipV1Alpha1GenAPI as API } from './api.gen'
export * from './content.gen'
export * from './types.gen'
export * as ValidationRules from './validation-rules.gen'
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.

export const ListFlexibleIPsRequest = {
page: {
greaterThan: 0,
},
pageSize: {
greaterThan: 0,
lessThanOrEqual: 100,
},
}
1 change: 1 addition & 0 deletions packages/clients/src/api/iam/v1alpha1/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { IamV1Alpha1GenAPI as API } from './api.gen'
export * from './types.gen'
export * as ValidationRules from './validation-rules.gen'
196 changes: 196 additions & 0 deletions packages/clients/src/api/iam/v1alpha1/validation-rules.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.

export const CreateAPIKeyRequest = {
description: {
ignoreEmpty: true,
maxLength: 200,
},
}

export const CreateApplicationRequest = {
description: {
ignoreEmpty: true,
maxLength: 200,
},
name: {
maxLength: 64,
minLength: 1,
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
},
}

export const CreateGroupRequest = {
description: {
ignoreEmpty: true,
maxLength: 200,
},
name: {
maxLength: 64,
minLength: 1,
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
},
}

export const CreatePolicyRequest = {
description: {
ignoreEmpty: true,
maxLength: 200,
},
name: {
maxLength: 64,
minLength: 1,
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
},
}

export const CreateSSHKeyRequest = {
name: {
ignoreEmpty: true,
maxLength: 1000,
},
publicKey: {
maxLength: 65000,
minLength: 1,
},
}

export const ListAPIKeysRequest = {
page: {
greaterThanOrEqual: 1,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 100,
},
}

export const ListApplicationsRequest = {
name: {
maxLength: 64,
minLength: 1,
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
},
page: {
greaterThanOrEqual: 1,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 100,
},
}

export const ListGroupsRequest = {
name: {
minLength: 1,
},
page: {
greaterThanOrEqual: 1,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 100,
},
}

export const ListPermissionSetsRequest = {
page: {
greaterThanOrEqual: 1,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 100,
},
}

export const ListPoliciesRequest = {
page: {
greaterThanOrEqual: 1,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 100,
},
policyName: {
minLength: 1,
},
}

export const ListRulesRequest = {
page: {
greaterThanOrEqual: 1,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 100,
},
}

export const ListSSHKeysRequest = {
name: {
maxLength: 1000,
minLength: 1,
},
page: {
greaterThanOrEqual: 1,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 100,
},
}

export const ListUsersRequest = {
page: {
greaterThanOrEqual: 1,
},
pageSize: {
greaterThanOrEqual: 1,
lessThanOrEqual: 100,
},
}

export const UpdateAPIKeyRequest = {
description: {
maxLength: 200,
},
}

export const UpdateApplicationRequest = {
description: {
maxLength: 200,
},
name: {
maxLength: 64,
minLength: 1,
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
},
}

export const UpdateGroupRequest = {
description: {
maxLength: 200,
},
name: {
maxLength: 64,
minLength: 1,
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
},
}

export const UpdatePolicyRequest = {
description: {
maxLength: 200,
},
name: {
maxLength: 64,
minLength: 1,
pattern: /^[a-zA-Z0-9\(\)\._\- ]+$/,
},
}

export const UpdateSSHKeyRequest = {
name: {
maxLength: 1000,
},
}
1 change: 1 addition & 0 deletions packages/clients/src/api/k8s/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { K8SV1GenAPI as API } from './api.gen'
export * from './content.gen'
export * from './types.gen'
export * as ValidationRules from './validation-rules.gen'
Loading