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
1 change: 1 addition & 0 deletions packages/clients/src/api/instance/v1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,4 @@ export type {
VolumeTypeConstraints,
VolumeVolumeType,
} from './types.gen'
export * as ValidationRules from './validation-rules.gen'
18 changes: 10 additions & 8 deletions packages/clients/src/api/instance/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If you have any remark or suggestion do not hesitate to open an issue.
import type { Zone } from '../../../bridge'

export type Arch = 'x86_64' | 'arm' | 'arm64'
export type Arch = 'unknown_arch' | 'x86_64' | 'arm' | 'arm64'

export type AttachServerVolumeRequestVolumeType =
| 'unknown_volume_type'
Expand Down Expand Up @@ -51,11 +51,7 @@ export type SecurityGroupRuleProtocol =
| 'ICMP'
| 'ANY'

export type SecurityGroupState =
| 'unknown_state'
| 'available'
| 'syncing'
| 'syncing_error'
export type SecurityGroupState = 'available' | 'syncing' | 'syncing_error'

export type ServerAction =
| 'poweron'
Expand Down Expand Up @@ -1961,9 +1957,15 @@ export type UpdateSecurityGroupRuleRequest = {
action?: SecurityGroupRuleAction
/** Range of IP addresses these rules apply to. */
ipRange?: string
/** Beginning of the range of ports this rule applies to (inclusive). */
/**
* Beginning of the range of ports this rule applies to (inclusive). If 0 is
* provided, unset the parameter.
*/
destPortFrom?: number
/** End of the range of ports this rule applies to (inclusive). */
/**
* End of the range of ports this rule applies to (inclusive). If 0 is
* provided, unset the parameter.
*/
destPortTo?: number
/** Position of this rule in the security group rules list. */
position?: number
Expand Down
13 changes: 13 additions & 0 deletions packages/clients/src/api/instance/v1/validation-rules.gen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.

export const UpdateSecurityGroupRuleRequest = {
destPortFrom: {
greaterThanOrEqual: 0,
lessThanOrEqual: 65535,
},
destPortTo: {
greaterThanOrEqual: 0,
lessThanOrEqual: 65535,
},
}