Skip to content

Commit 7127002

Browse files
authored
Merge branch 'main' into v1.7016.0
2 parents 424c324 + 2ba3308 commit 7127002

File tree

5 files changed

+37
-8
lines changed

5 files changed

+37
-8
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/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.

packages_generated/key_manager/src/v1alpha1/api.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class API extends ParentAPI {
7979
})
8080

8181
/**
82-
* Create a key. Create a key in a given region specified by the `region` parameter. Keys only support symmetric encryption. You can use keys to encrypt or decrypt arbitrary payloads, or to generate data encryption keys. **Data encryption keys are not stored in Key Manager**.
82+
* Create a key. Create a key in a given region specified by the `region` parameter. You can use keys to encrypt or decrypt arbitrary payloads, to sign and verify messages or to generate data encryption keys. **Data encryption keys are not stored in Key Manager**.
8383
*
8484
* @param request - The request {@link CreateKeyRequest}
8585
* @returns A Promise of Key

packages_generated/key_manager/src/v1alpha1/types.gen.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ export interface KeyUsage {
7575
*/
7676
symmetricEncryption?: KeyAlgorithmSymmetricEncryption
7777
/**
78+
* See the `Key.Algorithm.AsymmetricEncryption` enum for a description of values.
7879
*
7980
* One-of ('usage'): at most one of 'symmetricEncryption', 'asymmetricEncryption', 'asymmetricSigning' could be set.
8081
*/
8182
asymmetricEncryption?: KeyAlgorithmAsymmetricEncryption
8283
/**
84+
* See the `Key.Algorithm.AsymmetricSigning` enum for a description of values.
8385
*
8486
* One-of ('usage'): at most one of 'symmetricEncryption', 'asymmetricEncryption', 'asymmetricSigning' could be set.
8587
*/
@@ -106,7 +108,7 @@ export interface Key {
106108
*/
107109
name: string
108110
/**
109-
* Keys with a usage set to `symmetric_encryption` can encrypt and decrypt data using the `AES-256-GCM` key algorithm. Key Manager currently only supports `AES-256-GCM`.
111+
* See the `Key.Usage` enum for a description of possible values.
110112
*/
111113
usage?: KeyUsage
112114
/**
@@ -177,7 +179,7 @@ export type CreateKeyRequest = {
177179
*/
178180
name?: string
179181
/**
180-
* See the `Key.Algorithm.SymmetricEncryption` enum for a description of values.
182+
* See the `Key.Usage` enum for a description of possible values.
181183
*/
182184
usage?: KeyUsage
183185
/**
@@ -580,7 +582,7 @@ export interface VerifyResponse {
580582
*/
581583
keyId: string
582584
/**
583-
* Returns `true` if the signature is valid for the digest and key, `false` otherwise.
585+
* Returns `true` if the signature is valid for the digest and key, and `false` otherwise.
584586
*/
585587
valid: boolean
586588
}

0 commit comments

Comments
 (0)