Skip to content

Commit c9aef25

Browse files
authored
Merge branch 'main' into v1.7007.0
2 parents 231a93a + 32ebc5c commit c9aef25

File tree

4 files changed

+32
-4
lines changed

4 files changed

+32
-4
lines changed

packages_generated/instance/src/v1/api.gen.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ import type {
203203
MigrationPlan,
204204
PlanBlockMigrationRequest,
205205
PrivateNIC,
206+
ReleaseIpToIpamRequest,
206207
ServerActionRequest,
207208
ServerActionResponse,
208209
ServerCompatibleTypes,
@@ -1646,4 +1647,17 @@ The endpoint also returns the validation_key, which must be provided to the [Mig
16461647
method: 'POST',
16471648
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/check-organization-quotas`,
16481649
})
1650+
1651+
/**
1652+
* Releases the reserved IP without deleting the reservation.. **The IP remains available in IPAM**, which means that it is still reserved by the Organization, and can be reattached to another resource (Instance or other product).
1653+
*
1654+
* @param request - The request {@link ReleaseIpToIpamRequest}
1655+
*/
1656+
releaseIpToIpam = (request: Readonly<ReleaseIpToIpamRequest>) =>
1657+
this.client.fetch<void>({
1658+
body: '{}',
1659+
headers: jsonContentHeaders,
1660+
method: 'POST',
1661+
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}/release-to-ipam`,
1662+
})
16491663
}

packages_generated/instance/src/v1/content.gen.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,18 @@ export const TASK_TRANSIENT_STATUSES: TaskStatus[] = [
5757
/** Lists transient statutes of the enum {@link VolumeServerState}. */
5858
export const VOLUME_SERVER_TRANSIENT_STATUSES: VolumeServerState[] = [
5959
'snapshotting',
60-
'fetching',
6160
'resizing',
61+
'fetching',
6262
'saving',
6363
'hotsyncing',
64+
'attaching',
6465
]
6566

6667
/** Lists transient statutes of the enum {@link VolumeState}. */
6768
export const VOLUME_TRANSIENT_STATUSES: VolumeState[] = [
6869
'snapshotting',
6970
'fetching',
70-
'resizing',
7171
'saving',
72+
'resizing',
7273
'hotsyncing',
7374
]

packages_generated/instance/src/v1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export type {
116116
PlanBlockMigrationRequest,
117117
PrivateNIC,
118118
PrivateNICState,
119+
ReleaseIpToIpamRequest,
119120
SecurityGroup,
120121
SecurityGroupPolicy,
121122
SecurityGroupRule,

packages_generated/instance/src/v1/types.gen.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ export type TaskStatus = 'pending' | 'started' | 'success' | 'failure' | 'retry'
108108
export type VolumeServerState =
109109
| 'available'
110110
| 'snapshotting'
111-
| 'fetching'
112111
| 'resizing'
112+
| 'fetching'
113113
| 'saving'
114114
| 'hotsyncing'
115+
| 'attaching'
115116
| 'error'
116117

117118
export type VolumeServerVolumeType =
@@ -124,8 +125,8 @@ export type VolumeState =
124125
| 'available'
125126
| 'snapshotting'
126127
| 'fetching'
127-
| 'resizing'
128128
| 'saving'
129+
| 'resizing'
129130
| 'hotsyncing'
130131
| 'error'
131132

@@ -2447,6 +2448,17 @@ export type PlanBlockMigrationRequest = {
24472448
snapshotId?: string
24482449
}
24492450

2451+
export type ReleaseIpToIpamRequest = {
2452+
/**
2453+
* Zone to target. If none is passed will use default zone from the config.
2454+
*/
2455+
zone?: ScwZone
2456+
/**
2457+
* ID of the IP you want to release from the Instance but retain in IPAM.
2458+
*/
2459+
ipId: string
2460+
}
2461+
24502462
export type ServerActionRequest = {
24512463
/**
24522464
* Zone to target. If none is passed will use default zone from the config.

0 commit comments

Comments
 (0)