Skip to content

Commit fc581e2

Browse files
committed
feat: update generated APIs
1 parent d77bf41 commit fc581e2

File tree

11 files changed

+103
-164
lines changed

11 files changed

+103
-164
lines changed

packages/clients/src/api/applesilicon/v1alpha1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export const unmarshalServer = (data: unknown): Server => {
141141
createdAt: unmarshalDate(data.created_at),
142142
deletableAt: unmarshalDate(data.deletable_at),
143143
deletionScheduled: data.deletion_scheduled,
144+
delivered: data.delivered,
144145
id: data.id,
145146
ip: data.ip,
146147
name: data.name,

packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ export interface Server {
128128
deletionScheduled: boolean
129129
/** Zone of the server. */
130130
zone: Zone
131+
/**
132+
* Set to true once the server has completed its provisioning steps and is
133+
* ready to use. Some OS configurations might require a reinstallation of the
134+
* server before delivery depending on the available stock. A reinstallation
135+
* after the initial delivery will not change this flag and can be tracked
136+
* using the server status.
137+
*/
138+
delivered: boolean
131139
}
132140

133141
export type CreateServerRequest = {

packages/clients/src/api/edge_services/v1alpha1/api.gen.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,8 +831,10 @@ export class API extends ParentAPI {
831831
})
832832

833833
/**
834-
* Gives information on current edge-services subscription plan and used
835-
* resources with associated price.
834+
* Gives information on the currently selected Edge Services subscription
835+
* plan, resource usage and associated billing information for this calendar
836+
* month (including whether consumption falls within or exceeds the currently
837+
* selected subscription plan.).
836838
*
837839
* @param request - The request {@link GetBillingRequest}
838840
* @returns A Promise of GetBillingResponse

packages/clients/src/api/edge_services/v1alpha1/types.gen.ts

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export interface PlanDetails {
283283
planName: PlanName
284284
/** Amount of egress data from cache included in subscription plan. */
285285
packageGb: number
286-
/** Number of pipeline included in subscription plan. */
286+
/** Number of pipelines included in subscription plan. */
287287
pipelineLimit: number
288288
}
289289

@@ -509,23 +509,39 @@ export type GetBillingRequest = {
509509
}
510510

511511
export interface GetBillingResponse {
512-
/** Information on the current edge-service subscription plan. */
512+
/**
513+
* Information on the currently-selected, active Edge Services subscription
514+
* plan.
515+
*/
513516
currentPlan?: PlanDetails
514517
/** Price of the current subscription plan. */
515518
planCost?: Money
516-
/** Total number of pipeline currently configured. */
519+
/** Total number of pipelines currently configured. */
517520
pipelineNumber: number
518-
/** Cost to date of the pipelines not included in the plans. */
521+
/**
522+
* Cost to date (this month) of pipelines not included in the subscription
523+
* plan.
524+
*/
519525
extraPipelinesCost?: Money
520-
/** Total amount of data egressed from cache in current subscription plan. */
526+
/**
527+
* Total amount of data egressed from the cache (this month), included in the
528+
* active subscription plan.
529+
*/
521530
currentPlanCacheUsage: number
522-
/** Total amount of data egressed from cache not included in the plans. */
531+
/**
532+
* Total amount of data egressed from cache (this month), not included in the
533+
* active subscription plan.
534+
*/
523535
extraCacheUsage: number
524-
/** Cost to date of the data egressed from cache not included in the plans. */
536+
/**
537+
* Cost to date (this month) of the data egressed from the cache that is not
538+
* included in the active subscription plan.
539+
*/
525540
extraCacheCost?: Money
526541
/**
527-
* Total cost to date of edge-service product for the month including current
528-
* plan, previous plans, extra pipelines and extra egress cache data.
542+
* Total cost to date (this month) of all Edge Services resources including
543+
* active subscription plan, previously active plans, extra pipelines and
544+
* extra egress cache data.
529545
*/
530546
totalCost?: Money
531547
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import * as Lb from './lb/index.gen'
2929
import * as LlmInference from './llm_inference/index.gen'
3030
import * as Marketplace from './marketplace/index.gen'
3131
import * as Mnq from './mnq/index.gen'
32+
import * as Mongodb from './mongodb/index.gen'
3233
import * as Qaas from './qaas/index.gen'
3334
import * as Rdb from './rdb/index.gen'
3435
import * as Redis from './redis/index.gen'
@@ -69,6 +70,7 @@ export {
6970
LlmInference,
7071
Marketplace,
7172
Mnq,
73+
Mongodb,
7274
Qaas,
7375
Rdb,
7476
Redis,

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

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ import {
5353
unmarshalCreateVolumeResponse,
5454
unmarshalDetachServerVolumeResponse,
5555
unmarshalExportSnapshotResponse,
56-
unmarshalGetBootscriptResponse,
5756
unmarshalGetDashboardResponse,
5857
unmarshalGetImageResponse,
5958
unmarshalGetIpResponse,
@@ -66,7 +65,6 @@ import {
6665
unmarshalGetServerTypesAvailabilityResponse,
6766
unmarshalGetSnapshotResponse,
6867
unmarshalGetVolumeResponse,
69-
unmarshalListBootscriptsResponse,
7068
unmarshalListImagesResponse,
7169
unmarshalListIpsResponse,
7270
unmarshalListPlacementGroupsResponse,
@@ -137,8 +135,6 @@ import type {
137135
DetachServerVolumeResponse,
138136
ExportSnapshotRequest,
139137
ExportSnapshotResponse,
140-
GetBootscriptRequest,
141-
GetBootscriptResponse,
142138
GetDashboardRequest,
143139
GetDashboardResponse,
144140
GetImageRequest,
@@ -163,8 +159,6 @@ import type {
163159
GetSnapshotResponse,
164160
GetVolumeRequest,
165161
GetVolumeResponse,
166-
ListBootscriptsRequest,
167-
ListBootscriptsResponse,
168162
ListDefaultSecurityGroupRulesRequest,
169163
ListImagesRequest,
170164
ListImagesResponse,
@@ -1520,51 +1514,6 @@ export class API extends ParentAPI {
15201514
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`,
15211515
})
15221516

1523-
protected pageOfListBootscripts = (
1524-
request: Readonly<ListBootscriptsRequest> = {},
1525-
) =>
1526-
this.client.fetch<ListBootscriptsResponse>(
1527-
{
1528-
method: 'GET',
1529-
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/bootscripts`,
1530-
urlParams: urlParams(
1531-
['arch', request.arch],
1532-
['default', request.default],
1533-
['page', request.page],
1534-
['per_page', request.perPage ?? this.client.settings.defaultPageSize],
1535-
['public', request.public],
1536-
['title', request.title],
1537-
),
1538-
},
1539-
unmarshalListBootscriptsResponse,
1540-
)
1541-
1542-
/**
1543-
* List bootscripts.
1544-
*
1545-
* @deprecated
1546-
* @param request - The request {@link ListBootscriptsRequest}
1547-
* @returns A Promise of ListBootscriptsResponse
1548-
*/
1549-
listBootscripts = (request: Readonly<ListBootscriptsRequest> = {}) =>
1550-
enrichForPagination('bootscripts', this.pageOfListBootscripts, request)
1551-
1552-
/**
1553-
* Get bootscripts. Get details of a bootscript with the specified ID.
1554-
*
1555-
* @deprecated
1556-
* @param request - The request {@link GetBootscriptRequest}
1557-
* @returns A Promise of GetBootscriptResponse
1558-
*/
1559-
getBootscript = (request: Readonly<GetBootscriptRequest>) =>
1560-
this.client.fetch<GetBootscriptResponse>(
1561-
{
1562-
method: 'GET',
1563-
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/bootscripts/${validatePathParam('bootscriptId', request.bootscriptId)}`,
1564-
},
1565-
unmarshalGetBootscriptResponse,
1566-
)
1567-
15681517
getDashboard = (request: Readonly<GetDashboardRequest> = {}) =>
15691518
this.client.fetch<GetDashboardResponse>(
15701519
{

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

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import type {
3737
DetachServerVolumeResponse,
3838
ExportSnapshotRequest,
3939
ExportSnapshotResponse,
40-
GetBootscriptResponse,
4140
GetDashboardResponse,
4241
GetImageResponse,
4342
GetIpResponse,
@@ -53,7 +52,6 @@ import type {
5352
GetVolumeResponse,
5453
Image,
5554
Ip,
56-
ListBootscriptsResponse,
5755
ListImagesResponse,
5856
ListIpsResponse,
5957
ListPlacementGroupsResponse,
@@ -399,9 +397,6 @@ const unmarshalServer = (data: unknown): Server => {
399397
allowedActions: data.allowed_actions,
400398
arch: data.arch,
401399
bootType: data.boot_type,
402-
bootscript: data.bootscript
403-
? unmarshalBootscript(data.bootscript)
404-
: undefined,
405400
commercialType: data.commercial_type,
406401
creationDate: unmarshalDate(data.creation_date),
407402
dynamicIpRequired: data.dynamic_ip_required,
@@ -746,22 +741,6 @@ export const unmarshalExportSnapshotResponse = (
746741
} as ExportSnapshotResponse
747742
}
748743

749-
export const unmarshalGetBootscriptResponse = (
750-
data: unknown,
751-
): GetBootscriptResponse => {
752-
if (!isJSONObject(data)) {
753-
throw new TypeError(
754-
`Unmarshalling the type 'GetBootscriptResponse' failed as data isn't a dictionary.`,
755-
)
756-
}
757-
758-
return {
759-
bootscript: data.bootscript
760-
? unmarshalBootscript(data.bootscript)
761-
: undefined,
762-
} as GetBootscriptResponse
763-
}
764-
765744
const unmarshalDashboard = (data: unknown): Dashboard => {
766745
if (!isJSONObject(data)) {
767746
throw new TypeError(
@@ -993,21 +972,6 @@ export const unmarshalGetVolumeResponse = (
993972
} as GetVolumeResponse
994973
}
995974

996-
export const unmarshalListBootscriptsResponse = (
997-
data: unknown,
998-
): ListBootscriptsResponse => {
999-
if (!isJSONObject(data)) {
1000-
throw new TypeError(
1001-
`Unmarshalling the type 'ListBootscriptsResponse' failed as data isn't a dictionary.`,
1002-
)
1003-
}
1004-
1005-
return {
1006-
bootscripts: unmarshalArrayOfObject(data.bootscripts, unmarshalBootscript),
1007-
totalCount: data.total_count,
1008-
} as ListBootscriptsResponse
1009-
}
1010-
1011975
export const unmarshalListImagesResponse = (
1012976
data: unknown,
1013977
): ListImagesResponse => {
@@ -1679,7 +1643,6 @@ export const marshalCreateImageRequest = (
16791643
defaults: DefaultValues,
16801644
): Record<string, unknown> => ({
16811645
arch: request.arch,
1682-
default_bootscript: request.defaultBootscript,
16831646
extra_volumes:
16841647
request.extraVolumes !== undefined
16851648
? Object.entries(request.extraVolumes).reduce(
@@ -1824,7 +1787,6 @@ export const marshalCreateServerRequest = (
18241787
): Record<string, unknown> => ({
18251788
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
18261789
boot_type: request.bootType,
1827-
bootscript: request.bootscript,
18281790
commercial_type: request.commercialType,
18291791
dynamic_ip_required: request.dynamicIpRequired,
18301792
enable_ipv6: request.enableIpv6,
@@ -2258,10 +2220,6 @@ export const marshalSetServerRequest = (
22582220
request.allowedActions !== undefined ? request.allowedActions : undefined,
22592221
arch: request.arch,
22602222
boot_type: request.bootType,
2261-
bootscript:
2262-
request.bootscript !== undefined
2263-
? marshalBootscript(request.bootscript, defaults)
2264-
: undefined,
22652223
commercial_type: request.commercialType,
22662224
creation_date: request.creationDate,
22672225
dynamic_ip_required: request.dynamicIpRequired,
@@ -2456,7 +2414,6 @@ export const marshalUpdateServerRequest = (
24562414
): Record<string, unknown> => ({
24572415
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
24582416
boot_type: request.bootType,
2459-
bootscript: request.bootscript,
24602417
commercial_type: request.commercialType,
24612418
dynamic_ip_required: request.dynamicIpRequired,
24622419
enable_ipv6: request.enableIpv6,

0 commit comments

Comments
 (0)