Skip to content

Commit a28be9b

Browse files
committed
feat: update generated APIs
1 parent 9a2ebdf commit a28be9b

File tree

5 files changed

+49
-1
lines changed

5 files changed

+49
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import * as LlmInference from './llm_inference/index.gen'
3232
import * as Marketplace from './marketplace/index.gen'
3333
import * as Mnq from './mnq/index.gen'
3434
import * as Mongodb from './mongodb/index.gen'
35+
import * as ProductCatalog from './product_catalog/index.gen'
3536
import * as Qaas from './qaas/index.gen'
3637
import * as Rdb from './rdb/index.gen'
3738
import * as Redis from './redis/index.gen'
@@ -75,6 +76,7 @@ export {
7576
Marketplace,
7677
Mnq,
7778
Mongodb,
79+
ProductCatalog,
7880
Qaas,
7981
Rdb,
8082
Redis,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ const unmarshalServer = (data: unknown): Server => {
404404
creationDate: unmarshalDate(data.creation_date),
405405
dynamicIpRequired: data.dynamic_ip_required,
406406
enableIpv6: data.enable_ipv6,
407+
endOfService: data.end_of_service,
407408
hostname: data.hostname,
408409
id: data.id,
409410
image: data.image ? unmarshalImage(data.image) : undefined,
@@ -1834,6 +1835,7 @@ export const marshalCreateServerRequest = (
18341835
image: request.image,
18351836
name: request.name || randomName('srv'),
18361837
placement_group: request.placementGroup,
1838+
protected: request.protected,
18371839
public_ip: request.publicIp,
18381840
public_ips: request.publicIps,
18391841
routed_ip_enabled: request.routedIpEnabled,

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,10 @@ export interface Server {
632632
* This value is reset when admin_password_encryption_ssh_key_id is set to an empty string.
633633
*/
634634
adminPasswordEncryptedValue?: string
635+
/**
636+
* True if the Instance type has reached end of service.
637+
*/
638+
endOfService: boolean
635639
}
636640

637641
export interface VolumeTemplate {
@@ -888,7 +892,7 @@ export interface Task {
888892
hrefFrom: string
889893
hrefResult: string
890894
/**
891-
* Zone in which the task is excecuted.
895+
* Zone in which the task is executed.
892896
*/
893897
zone: ScwZone
894898
}
@@ -1437,6 +1441,10 @@ export type CreateServerRequest = {
14371441
* The public_key value of this key is used to encrypt the admin password.
14381442
*/
14391443
adminPasswordEncryptionSshKeyId?: string
1444+
/**
1445+
* True to activate server protection option.
1446+
*/
1447+
protected: boolean
14401448
}
14411449

14421450
export interface CreateServerResponse {
@@ -2783,6 +2791,9 @@ export type UpdateServerRequest = {
27832791
* @deprecated
27842792
*/
27852793
enableIpv6?: boolean
2794+
/**
2795+
* True to activate server protection option.
2796+
*/
27862797
protected?: boolean
27872798
securityGroup?: SecurityGroupTemplate
27882799
/**
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* This file is automatically generated from /scripts/generate.js
3+
* PLEASE DO NOT EDIT HERE
4+
*/
5+
6+
export * as v2alpha1 from './v2alpha1/index.gen'
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
export { PublicCatalogAPI } from './api.gen'
4+
export type {
5+
ListPublicCatalogProductsResponse,
6+
PublicCatalogApiListPublicCatalogProductsRequest,
7+
PublicCatalogProduct,
8+
PublicCatalogProductLocality,
9+
PublicCatalogProductPrice,
10+
PublicCatalogProductPriceUnitOfMeasure,
11+
PublicCatalogProductPriceUnitOfMeasureCountableUnit,
12+
PublicCatalogProductProperties,
13+
PublicCatalogProductPropertiesAppleSilicon,
14+
PublicCatalogProductPropertiesDedibox,
15+
PublicCatalogProductPropertiesElasticMetal,
16+
PublicCatalogProductPropertiesHardware,
17+
PublicCatalogProductPropertiesHardwareCPU,
18+
PublicCatalogProductPropertiesHardwareCPUArch,
19+
PublicCatalogProductPropertiesHardwareCPUPhysical,
20+
PublicCatalogProductPropertiesHardwareCPUVirtual,
21+
PublicCatalogProductPropertiesHardwareGPU,
22+
PublicCatalogProductPropertiesHardwareNetwork,
23+
PublicCatalogProductPropertiesHardwareRAM,
24+
PublicCatalogProductPropertiesHardwareStorage,
25+
PublicCatalogProductPropertiesInstance,
26+
} from './types.gen'
27+
export * as ValidationRules from './validation-rules.gen'

0 commit comments

Comments
 (0)