Skip to content

Commit 81e92d0

Browse files
authored
chore(instance): adjust generation and doc (#1039)
1 parent b67133c commit 81e92d0

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

packages/clients/src/api/instance/v1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,4 @@ export type {
190190
VolumeTypeConstraints,
191191
VolumeVolumeType,
192192
} from './types.gen'
193+
export * as ValidationRules from './validation-rules.gen'

packages/clients/src/api/instance/v1/types.gen.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import type { Zone } from '../../../bridge'
44

5-
export type Arch = 'x86_64' | 'arm' | 'arm64'
5+
export type Arch = 'unknown_arch' | 'x86_64' | 'arm' | 'arm64'
66

77
export type AttachServerVolumeRequestVolumeType =
88
| 'unknown_volume_type'
@@ -51,11 +51,7 @@ export type SecurityGroupRuleProtocol =
5151
| 'ICMP'
5252
| 'ANY'
5353

54-
export type SecurityGroupState =
55-
| 'unknown_state'
56-
| 'available'
57-
| 'syncing'
58-
| 'syncing_error'
54+
export type SecurityGroupState = 'available' | 'syncing' | 'syncing_error'
5955

6056
export type ServerAction =
6157
| 'poweron'
@@ -1961,9 +1957,15 @@ export type UpdateSecurityGroupRuleRequest = {
19611957
action?: SecurityGroupRuleAction
19621958
/** Range of IP addresses these rules apply to. */
19631959
ipRange?: string
1964-
/** Beginning of the range of ports this rule applies to (inclusive). */
1960+
/**
1961+
* Beginning of the range of ports this rule applies to (inclusive). If 0 is
1962+
* provided, unset the parameter.
1963+
*/
19651964
destPortFrom?: number
1966-
/** End of the range of ports this rule applies to (inclusive). */
1965+
/**
1966+
* End of the range of ports this rule applies to (inclusive). If 0 is
1967+
* provided, unset the parameter.
1968+
*/
19671969
destPortTo?: number
19681970
/** Position of this rule in the security group rules list. */
19691971
position?: number
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 UpdateSecurityGroupRuleRequest = {
5+
destPortFrom: {
6+
greaterThanOrEqual: 0,
7+
lessThanOrEqual: 65535,
8+
},
9+
destPortTo: {
10+
greaterThanOrEqual: 0,
11+
lessThanOrEqual: 65535,
12+
},
13+
}

0 commit comments

Comments
 (0)