@scaleway/sdk 2.49.1 → 2.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +1 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +8 -0
- package/dist/api/baremetal/v1/marshalling.gen.cjs +3 -1
- package/dist/api/baremetal/v1/marshalling.gen.js +3 -1
- package/dist/api/baremetal/v1/types.gen.d.ts +4 -3
- package/dist/api/dedibox/v1/types.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/api.gen.cjs +39 -0
- package/dist/api/edge_services/v1alpha1/api.gen.d.ts +16 -1
- package/dist/api/edge_services/v1alpha1/api.gen.js +40 -1
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +54 -6
- package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +54 -6
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +64 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +9 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +9 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +18 -0
- package/dist/api/index.gen.d.ts +2 -1
- package/dist/api/inference/v1beta1/validation-rules.gen.cjs +1 -1
- package/dist/api/inference/v1beta1/validation-rules.gen.js +1 -1
- package/dist/api/instance/v1/api.gen.cjs +0 -37
- package/dist/api/instance/v1/api.gen.d.ts +1 -21
- package/dist/api/instance/v1/api.gen.js +1 -38
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +1 -28
- package/dist/api/instance/v1/marshalling.gen.d.ts +1 -3
- package/dist/api/instance/v1/marshalling.gen.js +1 -28
- package/dist/api/instance/v1/types.gen.d.ts +9 -53
- package/dist/api/instance/v1/types.private.gen.d.ts +1 -3
- package/dist/api/jobs/v1alpha1/api.gen.cjs +46 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +6 -1
- package/dist/api/jobs/v1alpha1/api.gen.js +47 -1
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +80 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +6 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +81 -1
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +81 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +14 -2
- package/dist/api/jobs/v1alpha1/validation-rules.gen.d.ts +10 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +15 -3
- package/dist/api/mongodb/index.gen.cjs +4 -0
- package/dist/api/mongodb/index.gen.d.ts +5 -0
- package/dist/api/mongodb/index.gen.js +4 -0
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +385 -0
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +195 -0
- package/dist/api/mongodb/v1alpha1/api.gen.js +385 -0
- package/dist/api/mongodb/v1alpha1/content.gen.cjs +16 -0
- package/dist/api/mongodb/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/mongodb/v1alpha1/content.gen.js +16 -0
- package/dist/api/mongodb/v1alpha1/index.gen.cjs +9 -0
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/mongodb/v1alpha1/index.gen.js +9 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +326 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +19 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.js +326 -0
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +461 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +147 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +134 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +147 -0
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +13 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +13 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +13 -2
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +1 -1
- package/dist/index.cjs +16 -14
- package/dist/index.js +16 -14
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -31,9 +31,11 @@ const unmarshalAPIKey = (data) => {
|
|
|
31
31
|
createdAt: unmarshalDate(data.created_at),
|
|
32
32
|
creationIp: data.creation_ip,
|
|
33
33
|
defaultProjectId: data.default_project_id,
|
|
34
|
+
deletable: data.deletable,
|
|
34
35
|
description: data.description,
|
|
35
36
|
editable: data.editable,
|
|
36
37
|
expiresAt: unmarshalDate(data.expires_at),
|
|
38
|
+
managed: data.managed,
|
|
37
39
|
secretKey: data.secret_key,
|
|
38
40
|
updatedAt: unmarshalDate(data.updated_at),
|
|
39
41
|
userId: data.user_id
|
|
@@ -47,9 +49,11 @@ const unmarshalApplication = (data) => {
|
|
|
47
49
|
}
|
|
48
50
|
return {
|
|
49
51
|
createdAt: unmarshalDate(data.created_at),
|
|
52
|
+
deletable: data.deletable,
|
|
50
53
|
description: data.description,
|
|
51
54
|
editable: data.editable,
|
|
52
55
|
id: data.id,
|
|
56
|
+
managed: data.managed,
|
|
53
57
|
name: data.name,
|
|
54
58
|
nbApiKeys: data.nb_api_keys,
|
|
55
59
|
organizationId: data.organization_id,
|
|
@@ -66,8 +70,11 @@ const unmarshalGroup = (data) => {
|
|
|
66
70
|
return {
|
|
67
71
|
applicationIds: data.application_ids,
|
|
68
72
|
createdAt: unmarshalDate(data.created_at),
|
|
73
|
+
deletable: data.deletable,
|
|
69
74
|
description: data.description,
|
|
75
|
+
editable: data.editable,
|
|
70
76
|
id: data.id,
|
|
77
|
+
managed: data.managed,
|
|
71
78
|
name: data.name,
|
|
72
79
|
organizationId: data.organization_id,
|
|
73
80
|
tags: data.tags,
|
|
@@ -102,10 +109,12 @@ const unmarshalPolicy = (data) => {
|
|
|
102
109
|
return {
|
|
103
110
|
applicationId: data.application_id,
|
|
104
111
|
createdAt: unmarshalDate(data.created_at),
|
|
112
|
+
deletable: data.deletable,
|
|
105
113
|
description: data.description,
|
|
106
114
|
editable: data.editable,
|
|
107
115
|
groupId: data.group_id,
|
|
108
116
|
id: data.id,
|
|
117
|
+
managed: data.managed,
|
|
109
118
|
name: data.name,
|
|
110
119
|
nbPermissionSets: data.nb_permission_sets,
|
|
111
120
|
nbRules: data.nb_rules,
|
|
@@ -91,6 +91,10 @@ export interface APIKey {
|
|
|
91
91
|
defaultProjectId: string;
|
|
92
92
|
/** Defines whether or not the API key is editable. */
|
|
93
93
|
editable: boolean;
|
|
94
|
+
/** Defines whether or not the API key is deletable. */
|
|
95
|
+
deletable: boolean;
|
|
96
|
+
/** Defines whether or not the API key is managed. */
|
|
97
|
+
managed: boolean;
|
|
94
98
|
/** IP address of the device that created the API key. */
|
|
95
99
|
creationIp: string;
|
|
96
100
|
}
|
|
@@ -109,6 +113,10 @@ export interface Application {
|
|
|
109
113
|
organizationId: string;
|
|
110
114
|
/** Defines whether or not the application is editable. */
|
|
111
115
|
editable: boolean;
|
|
116
|
+
/** Defines whether or not the application is deletable. */
|
|
117
|
+
deletable: boolean;
|
|
118
|
+
/** Defines whether or not the application is managed. */
|
|
119
|
+
managed: boolean;
|
|
112
120
|
/** Number of API keys attributed to the application. */
|
|
113
121
|
nbApiKeys: number;
|
|
114
122
|
/** Tags associated with the user. */
|
|
@@ -133,6 +141,12 @@ export interface Group {
|
|
|
133
141
|
applicationIds: string[];
|
|
134
142
|
/** Tags associated to the group. */
|
|
135
143
|
tags: string[];
|
|
144
|
+
/** Defines whether or not the group is editable. */
|
|
145
|
+
editable: boolean;
|
|
146
|
+
/** Defines whether or not the group is deletable. */
|
|
147
|
+
deletable: boolean;
|
|
148
|
+
/** Defines whether or not the group is managed. */
|
|
149
|
+
managed: boolean;
|
|
136
150
|
}
|
|
137
151
|
export interface Log {
|
|
138
152
|
/** Log ID. */
|
|
@@ -181,6 +195,10 @@ export interface Policy {
|
|
|
181
195
|
updatedAt?: Date;
|
|
182
196
|
/** Defines whether or not a policy is editable. */
|
|
183
197
|
editable: boolean;
|
|
198
|
+
/** Defines whether or not a policy is deletable. */
|
|
199
|
+
deletable: boolean;
|
|
200
|
+
/** Defines whether or not a policy is managed. */
|
|
201
|
+
managed: boolean;
|
|
184
202
|
/** Number of rules of the policy. */
|
|
185
203
|
nbRules: number;
|
|
186
204
|
/** Number of policy scopes. */
|
package/dist/api/index.gen.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import * as Lb from './lb/index.gen';
|
|
|
28
28
|
import * as LlmInference from './llm_inference/index.gen';
|
|
29
29
|
import * as Marketplace from './marketplace/index.gen';
|
|
30
30
|
import * as Mnq from './mnq/index.gen';
|
|
31
|
+
import * as Mongodb from './mongodb/index.gen';
|
|
31
32
|
import * as Qaas from './qaas/index.gen';
|
|
32
33
|
import * as Rdb from './rdb/index.gen';
|
|
33
34
|
import * as Redis from './redis/index.gen';
|
|
@@ -40,4 +41,4 @@ import * as Test from './test/index.gen';
|
|
|
40
41
|
import * as Vpc from './vpc/index.gen';
|
|
41
42
|
import * as Vpcgw from './vpcgw/index.gen';
|
|
42
43
|
import * as Webhosting from './webhosting/index.gen';
|
|
43
|
-
export { Account, Applesilicon, Baremetal, Billing, Block, Cockpit, Container, Dedibox, DocumentDb, Domain, EdgeServices, Flexibleip, Function, Iam, Inference, Instance, Iot, Ipam, Ipfs, Jobs, K8s, KeyManager, Lb, LlmInference, Marketplace, Mnq, Qaas, Rdb, Redis, Registry, Secret, ServerlessSqldb, Std, Tem, Test, Vpc, Vpcgw, Webhosting, };
|
|
44
|
+
export { Account, Applesilicon, Baremetal, Billing, Block, Cockpit, Container, Dedibox, DocumentDb, Domain, EdgeServices, Flexibleip, Function, Iam, Inference, Instance, Iot, Ipam, Ipfs, Jobs, K8s, KeyManager, Lb, LlmInference, Marketplace, Mnq, Mongodb, Qaas, Rdb, Redis, Registry, Secret, ServerlessSqldb, Std, Tem, Test, Vpc, Vpcgw, Webhosting, };
|
|
@@ -1086,43 +1086,6 @@ class API extends api.API {
|
|
|
1086
1086
|
method: "DELETE",
|
|
1087
1087
|
path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/private_nics/${marshalling.validatePathParam("privateNicId", request.privateNicId)}`
|
|
1088
1088
|
});
|
|
1089
|
-
pageOfListBootscripts = (request = {}) => this.client.fetch(
|
|
1090
|
-
{
|
|
1091
|
-
method: "GET",
|
|
1092
|
-
path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/bootscripts`,
|
|
1093
|
-
urlParams: marshalling.urlParams(
|
|
1094
|
-
["arch", request.arch],
|
|
1095
|
-
["default", request.default],
|
|
1096
|
-
["page", request.page],
|
|
1097
|
-
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
1098
|
-
["public", request.public],
|
|
1099
|
-
["title", request.title]
|
|
1100
|
-
)
|
|
1101
|
-
},
|
|
1102
|
-
marshalling_gen.unmarshalListBootscriptsResponse
|
|
1103
|
-
);
|
|
1104
|
-
/**
|
|
1105
|
-
* List bootscripts.
|
|
1106
|
-
*
|
|
1107
|
-
* @deprecated
|
|
1108
|
-
* @param request - The request {@link ListBootscriptsRequest}
|
|
1109
|
-
* @returns A Promise of ListBootscriptsResponse
|
|
1110
|
-
*/
|
|
1111
|
-
listBootscripts = (request = {}) => resourcePaginator.enrichForPagination("bootscripts", this.pageOfListBootscripts, request);
|
|
1112
|
-
/**
|
|
1113
|
-
* Get bootscripts. Get details of a bootscript with the specified ID.
|
|
1114
|
-
*
|
|
1115
|
-
* @deprecated
|
|
1116
|
-
* @param request - The request {@link GetBootscriptRequest}
|
|
1117
|
-
* @returns A Promise of GetBootscriptResponse
|
|
1118
|
-
*/
|
|
1119
|
-
getBootscript = (request) => this.client.fetch(
|
|
1120
|
-
{
|
|
1121
|
-
method: "GET",
|
|
1122
|
-
path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/bootscripts/${marshalling.validatePathParam("bootscriptId", request.bootscriptId)}`
|
|
1123
|
-
},
|
|
1124
|
-
marshalling_gen.unmarshalGetBootscriptResponse
|
|
1125
|
-
);
|
|
1126
1089
|
getDashboard = (request = {}) => this.client.fetch(
|
|
1127
1090
|
{
|
|
1128
1091
|
method: "GET",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Zone } from '../../../bridge';
|
|
3
|
-
import type { ApplyBlockMigrationRequest, AttachServerVolumeRequest, AttachServerVolumeResponse, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse,
|
|
3
|
+
import type { ApplyBlockMigrationRequest, AttachServerVolumeRequest, AttachServerVolumeResponse, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetDashboardRequest, GetDashboardResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlanBlockMigrationRequest, PrivateNIC, ServerActionRequest, ServerActionResponse, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesResponse, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse } from './types.gen';
|
|
4
4
|
import type { SetImageResponse, SetSecurityGroupRequest, SetSecurityGroupResponse, SetSecurityGroupRuleRequest, SetSecurityGroupRuleResponse, SetServerRequest, SetServerResponse, SetSnapshotRequest, SetSnapshotResponse } from './types.private.gen';
|
|
5
5
|
/**
|
|
6
6
|
* Instance API.
|
|
@@ -484,26 +484,6 @@ export declare class API extends ParentAPI {
|
|
|
484
484
|
* @param request - The request {@link DeletePrivateNICRequest}
|
|
485
485
|
*/
|
|
486
486
|
deletePrivateNIC: (request: Readonly<DeletePrivateNICRequest>) => Promise<void>;
|
|
487
|
-
protected pageOfListBootscripts: (request?: Readonly<ListBootscriptsRequest>) => Promise<ListBootscriptsResponse>;
|
|
488
|
-
/**
|
|
489
|
-
* List bootscripts.
|
|
490
|
-
*
|
|
491
|
-
* @deprecated
|
|
492
|
-
* @param request - The request {@link ListBootscriptsRequest}
|
|
493
|
-
* @returns A Promise of ListBootscriptsResponse
|
|
494
|
-
*/
|
|
495
|
-
listBootscripts: (request?: Readonly<ListBootscriptsRequest>) => Promise<ListBootscriptsResponse> & {
|
|
496
|
-
all: () => Promise<import("./types.gen").Bootscript[]>;
|
|
497
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").Bootscript[], void, void>;
|
|
498
|
-
};
|
|
499
|
-
/**
|
|
500
|
-
* Get bootscripts. Get details of a bootscript with the specified ID.
|
|
501
|
-
*
|
|
502
|
-
* @deprecated
|
|
503
|
-
* @param request - The request {@link GetBootscriptRequest}
|
|
504
|
-
* @returns A Promise of GetBootscriptResponse
|
|
505
|
-
*/
|
|
506
|
-
getBootscript: (request: Readonly<GetBootscriptRequest>) => Promise<GetBootscriptResponse>;
|
|
507
487
|
getDashboard: (request?: Readonly<GetDashboardRequest>) => Promise<GetDashboardResponse>;
|
|
508
488
|
/**
|
|
509
489
|
* Get a volume or snapshot's migration plan. Given a volume or snapshot,
|
|
@@ -2,7 +2,7 @@ import { API as API$1 } from "../../../scw/api.js";
|
|
|
2
2
|
import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
3
3
|
import "../../../vendor/base64/index.js";
|
|
4
4
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
5
|
-
import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, marshalAttachServerVolumeRequest, unmarshalAttachServerVolumeResponse, marshalDetachServerVolumeRequest, unmarshalDetachServerVolumeResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, marshalUpdateImageRequest, unmarshalUpdateImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalUpdateSnapshotRequest, unmarshalUpdateSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, marshalUpdateSecurityGroupRequest, unmarshalUpdateSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, marshalUpdateSecurityGroupRuleRequest, unmarshalUpdateSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC,
|
|
5
|
+
import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, marshalAttachServerVolumeRequest, unmarshalAttachServerVolumeResponse, marshalDetachServerVolumeRequest, unmarshalDetachServerVolumeResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, marshalUpdateImageRequest, unmarshalUpdateImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalUpdateSnapshotRequest, unmarshalUpdateSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, marshalUpdateSecurityGroupRequest, unmarshalUpdateSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, marshalUpdateSecurityGroupRuleRequest, unmarshalUpdateSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalGetDashboardResponse, marshalPlanBlockMigrationRequest, unmarshalMigrationPlan, marshalApplyBlockMigrationRequest } from "./marshalling.gen.js";
|
|
6
6
|
const jsonContentHeaders = {
|
|
7
7
|
"Content-Type": "application/json; charset=utf-8"
|
|
8
8
|
};
|
|
@@ -1084,43 +1084,6 @@ class API extends API$1 {
|
|
|
1084
1084
|
method: "DELETE",
|
|
1085
1085
|
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private_nics/${validatePathParam("privateNicId", request.privateNicId)}`
|
|
1086
1086
|
});
|
|
1087
|
-
pageOfListBootscripts = (request = {}) => this.client.fetch(
|
|
1088
|
-
{
|
|
1089
|
-
method: "GET",
|
|
1090
|
-
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/bootscripts`,
|
|
1091
|
-
urlParams: urlParams(
|
|
1092
|
-
["arch", request.arch],
|
|
1093
|
-
["default", request.default],
|
|
1094
|
-
["page", request.page],
|
|
1095
|
-
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
1096
|
-
["public", request.public],
|
|
1097
|
-
["title", request.title]
|
|
1098
|
-
)
|
|
1099
|
-
},
|
|
1100
|
-
unmarshalListBootscriptsResponse
|
|
1101
|
-
);
|
|
1102
|
-
/**
|
|
1103
|
-
* List bootscripts.
|
|
1104
|
-
*
|
|
1105
|
-
* @deprecated
|
|
1106
|
-
* @param request - The request {@link ListBootscriptsRequest}
|
|
1107
|
-
* @returns A Promise of ListBootscriptsResponse
|
|
1108
|
-
*/
|
|
1109
|
-
listBootscripts = (request = {}) => enrichForPagination("bootscripts", this.pageOfListBootscripts, request);
|
|
1110
|
-
/**
|
|
1111
|
-
* Get bootscripts. Get details of a bootscript with the specified ID.
|
|
1112
|
-
*
|
|
1113
|
-
* @deprecated
|
|
1114
|
-
* @param request - The request {@link GetBootscriptRequest}
|
|
1115
|
-
* @returns A Promise of GetBootscriptResponse
|
|
1116
|
-
*/
|
|
1117
|
-
getBootscript = (request) => this.client.fetch(
|
|
1118
|
-
{
|
|
1119
|
-
method: "GET",
|
|
1120
|
-
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/bootscripts/${validatePathParam("bootscriptId", request.bootscriptId)}`
|
|
1121
|
-
},
|
|
1122
|
-
unmarshalGetBootscriptResponse
|
|
1123
|
-
);
|
|
1124
1087
|
getDashboard = (request = {}) => this.client.fetch(
|
|
1125
1088
|
{
|
|
1126
1089
|
method: "GET",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { ApplyBlockMigrationRequest, Arch, AttachServerVolumeRequest, AttachServerVolumeRequestVolumeType, AttachServerVolumeResponse, BootType, Bootscript, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, Dashboard, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse,
|
|
3
|
+
export type { ApplyBlockMigrationRequest, Arch, AttachServerVolumeRequest, AttachServerVolumeRequestVolumeType, AttachServerVolumeResponse, BootType, Bootscript, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, Dashboard, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetDashboardRequest, GetDashboardResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetServerTypesAvailabilityResponseAvailability, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, Image, ImageState, Ip, IpState, IpType, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersRequestOrder, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlacementGroup, PlacementGroupPolicyMode, PlacementGroupPolicyType, PlacementGroupServer, PlanBlockMigrationRequest, PrivateNIC, PrivateNICState, SecurityGroup, SecurityGroupPolicy, SecurityGroupRule, SecurityGroupRuleAction, SecurityGroupRuleDirection, SecurityGroupRuleProtocol, SecurityGroupState, SecurityGroupSummary, SecurityGroupTemplate, Server, ServerAction, ServerActionRequest, ServerActionRequestVolumeBackupTemplate, ServerActionResponse, ServerIp, ServerIpIpFamily, ServerIpProvisioningMode, ServerIpState, ServerIpv6, ServerLocation, ServerMaintenance, ServerState, ServerSummary, ServerType, ServerTypeCapabilities, ServerTypeNetwork, ServerTypeNetworkInterface, ServerTypeVolumeConstraintSizes, ServerTypeVolumeConstraintsByType, ServerTypesAvailability, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesRequestRule, SetSecurityGroupRulesResponse, Snapshot, SnapshotBaseVolume, SnapshotState, SnapshotVolumeType, Task, TaskStatus, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse, Volume, VolumeImageUpdateTemplate, VolumeServer, VolumeServerState, VolumeServerTemplate, VolumeServerVolumeType, VolumeState, VolumeSummary, VolumeTemplate, VolumeType, VolumeTypeCapabilities, VolumeTypeConstraints, VolumeVolumeType, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -229,7 +229,6 @@ const unmarshalServer = (data) => {
|
|
|
229
229
|
allowedActions: data.allowed_actions,
|
|
230
230
|
arch: data.arch,
|
|
231
231
|
bootType: data.boot_type,
|
|
232
|
-
bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : void 0,
|
|
233
232
|
commercialType: data.commercial_type,
|
|
234
233
|
creationDate: marshalling.unmarshalDate(data.creation_date),
|
|
235
234
|
dynamicIpRequired: data.dynamic_ip_required,
|
|
@@ -501,16 +500,6 @@ const unmarshalExportSnapshotResponse = (data) => {
|
|
|
501
500
|
task: data.task ? unmarshalTask(data.task) : void 0
|
|
502
501
|
};
|
|
503
502
|
};
|
|
504
|
-
const unmarshalGetBootscriptResponse = (data) => {
|
|
505
|
-
if (!json.isJSONObject(data)) {
|
|
506
|
-
throw new TypeError(
|
|
507
|
-
`Unmarshalling the type 'GetBootscriptResponse' failed as data isn't a dictionary.`
|
|
508
|
-
);
|
|
509
|
-
}
|
|
510
|
-
return {
|
|
511
|
-
bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : void 0
|
|
512
|
-
};
|
|
513
|
-
};
|
|
514
503
|
const unmarshalDashboard = (data) => {
|
|
515
504
|
if (!json.isJSONObject(data)) {
|
|
516
505
|
throw new TypeError(
|
|
@@ -684,17 +673,6 @@ const unmarshalGetVolumeResponse = (data) => {
|
|
|
684
673
|
volume: data.volume ? unmarshalVolume(data.volume) : void 0
|
|
685
674
|
};
|
|
686
675
|
};
|
|
687
|
-
const unmarshalListBootscriptsResponse = (data) => {
|
|
688
|
-
if (!json.isJSONObject(data)) {
|
|
689
|
-
throw new TypeError(
|
|
690
|
-
`Unmarshalling the type 'ListBootscriptsResponse' failed as data isn't a dictionary.`
|
|
691
|
-
);
|
|
692
|
-
}
|
|
693
|
-
return {
|
|
694
|
-
bootscripts: marshalling.unmarshalArrayOfObject(data.bootscripts, unmarshalBootscript),
|
|
695
|
-
totalCount: data.total_count
|
|
696
|
-
};
|
|
697
|
-
};
|
|
698
676
|
const unmarshalListImagesResponse = (data) => {
|
|
699
677
|
if (!json.isJSONObject(data)) {
|
|
700
678
|
throw new TypeError(
|
|
@@ -1179,7 +1157,6 @@ const marshalVolumeTemplate = (request, defaults) => ({
|
|
|
1179
1157
|
});
|
|
1180
1158
|
const marshalCreateImageRequest = (request, defaults) => ({
|
|
1181
1159
|
arch: request.arch,
|
|
1182
|
-
default_bootscript: request.defaultBootscript,
|
|
1183
1160
|
extra_volumes: request.extraVolumes !== void 0 ? Object.entries(request.extraVolumes).reduce(
|
|
1184
1161
|
(acc, [key, value]) => ({
|
|
1185
1162
|
...acc,
|
|
@@ -1293,7 +1270,6 @@ const marshalVolumeServerTemplate = (request, defaults) => ({
|
|
|
1293
1270
|
const marshalCreateServerRequest = (request, defaults) => ({
|
|
1294
1271
|
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
|
|
1295
1272
|
boot_type: request.bootType,
|
|
1296
|
-
bootscript: request.bootscript,
|
|
1297
1273
|
commercial_type: request.commercialType,
|
|
1298
1274
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
1299
1275
|
enable_ipv6: request.enableIpv6,
|
|
@@ -1385,6 +1361,7 @@ const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
|
|
|
1385
1361
|
});
|
|
1386
1362
|
const marshalServerActionRequest = (request, defaults) => ({
|
|
1387
1363
|
action: request.action,
|
|
1364
|
+
disable_ipv6: request.disableIpv6,
|
|
1388
1365
|
name: request.name,
|
|
1389
1366
|
volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
|
|
1390
1367
|
(acc, [key, value]) => ({
|
|
@@ -1587,7 +1564,6 @@ const marshalSetServerRequest = (request, defaults) => ({
|
|
|
1587
1564
|
allowed_actions: request.allowedActions !== void 0 ? request.allowedActions : void 0,
|
|
1588
1565
|
arch: request.arch,
|
|
1589
1566
|
boot_type: request.bootType,
|
|
1590
|
-
bootscript: request.bootscript !== void 0 ? marshalBootscript(request.bootscript) : void 0,
|
|
1591
1567
|
commercial_type: request.commercialType,
|
|
1592
1568
|
creation_date: request.creationDate,
|
|
1593
1569
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
@@ -1698,7 +1674,6 @@ const marshalSecurityGroupTemplate = (request, defaults) => ({
|
|
|
1698
1674
|
const marshalUpdateServerRequest = (request, defaults) => ({
|
|
1699
1675
|
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
|
|
1700
1676
|
boot_type: request.bootType,
|
|
1701
|
-
bootscript: request.bootscript,
|
|
1702
1677
|
commercial_type: request.commercialType,
|
|
1703
1678
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
1704
1679
|
enable_ipv6: request.enableIpv6,
|
|
@@ -1772,7 +1747,6 @@ exports.unmarshalCreateSnapshotResponse = unmarshalCreateSnapshotResponse;
|
|
|
1772
1747
|
exports.unmarshalCreateVolumeResponse = unmarshalCreateVolumeResponse;
|
|
1773
1748
|
exports.unmarshalDetachServerVolumeResponse = unmarshalDetachServerVolumeResponse;
|
|
1774
1749
|
exports.unmarshalExportSnapshotResponse = unmarshalExportSnapshotResponse;
|
|
1775
|
-
exports.unmarshalGetBootscriptResponse = unmarshalGetBootscriptResponse;
|
|
1776
1750
|
exports.unmarshalGetDashboardResponse = unmarshalGetDashboardResponse;
|
|
1777
1751
|
exports.unmarshalGetImageResponse = unmarshalGetImageResponse;
|
|
1778
1752
|
exports.unmarshalGetIpResponse = unmarshalGetIpResponse;
|
|
@@ -1785,7 +1759,6 @@ exports.unmarshalGetServerResponse = unmarshalGetServerResponse;
|
|
|
1785
1759
|
exports.unmarshalGetServerTypesAvailabilityResponse = unmarshalGetServerTypesAvailabilityResponse;
|
|
1786
1760
|
exports.unmarshalGetSnapshotResponse = unmarshalGetSnapshotResponse;
|
|
1787
1761
|
exports.unmarshalGetVolumeResponse = unmarshalGetVolumeResponse;
|
|
1788
|
-
exports.unmarshalListBootscriptsResponse = unmarshalListBootscriptsResponse;
|
|
1789
1762
|
exports.unmarshalListImagesResponse = unmarshalListImagesResponse;
|
|
1790
1763
|
exports.unmarshalListIpsResponse = unmarshalListIpsResponse;
|
|
1791
1764
|
exports.unmarshalListPlacementGroupsResponse = unmarshalListPlacementGroupsResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { ApplyBlockMigrationRequest, AttachServerVolumeRequest, AttachServerVolumeResponse, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse,
|
|
2
|
+
import type { ApplyBlockMigrationRequest, AttachServerVolumeRequest, AttachServerVolumeResponse, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetDashboardResponse, GetImageResponse, GetIpResponse, GetPlacementGroupResponse, GetPlacementGroupServersResponse, GetPrivateNICResponse, GetSecurityGroupResponse, GetSecurityGroupRuleResponse, GetServerResponse, GetServerTypesAvailabilityResponse, GetSnapshotResponse, GetVolumeResponse, ListImagesResponse, ListIpsResponse, ListPlacementGroupsResponse, ListPrivateNICsResponse, ListSecurityGroupRulesResponse, ListSecurityGroupsResponse, ListServerActionsResponse, ListServerUserDataResponse, ListServersResponse, ListServersTypesResponse, ListSnapshotsResponse, ListVolumesResponse, ListVolumesTypesResponse, MigrationPlan, PlanBlockMigrationRequest, PrivateNIC, ServerActionRequest, ServerActionResponse, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesResponse, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse } from './types.gen';
|
|
3
3
|
import type { SetImageResponse, SetSecurityGroupRequest, SetSecurityGroupResponse, SetSecurityGroupRuleRequest, SetSecurityGroupRuleResponse, SetServerRequest, SetServerResponse, SetSnapshotRequest, SetSnapshotResponse } from './types.private.gen';
|
|
4
4
|
export declare const unmarshalPrivateNIC: (data: unknown) => PrivateNIC;
|
|
5
5
|
export declare const unmarshalAttachServerVolumeResponse: (data: unknown) => AttachServerVolumeResponse;
|
|
@@ -14,7 +14,6 @@ export declare const unmarshalCreateSnapshotResponse: (data: unknown) => CreateS
|
|
|
14
14
|
export declare const unmarshalCreateVolumeResponse: (data: unknown) => CreateVolumeResponse;
|
|
15
15
|
export declare const unmarshalDetachServerVolumeResponse: (data: unknown) => DetachServerVolumeResponse;
|
|
16
16
|
export declare const unmarshalExportSnapshotResponse: (data: unknown) => ExportSnapshotResponse;
|
|
17
|
-
export declare const unmarshalGetBootscriptResponse: (data: unknown) => GetBootscriptResponse;
|
|
18
17
|
export declare const unmarshalGetDashboardResponse: (data: unknown) => GetDashboardResponse;
|
|
19
18
|
export declare const unmarshalGetImageResponse: (data: unknown) => GetImageResponse;
|
|
20
19
|
export declare const unmarshalGetIpResponse: (data: unknown) => GetIpResponse;
|
|
@@ -27,7 +26,6 @@ export declare const unmarshalGetServerResponse: (data: unknown) => GetServerRes
|
|
|
27
26
|
export declare const unmarshalGetServerTypesAvailabilityResponse: (data: unknown) => GetServerTypesAvailabilityResponse;
|
|
28
27
|
export declare const unmarshalGetSnapshotResponse: (data: unknown) => GetSnapshotResponse;
|
|
29
28
|
export declare const unmarshalGetVolumeResponse: (data: unknown) => GetVolumeResponse;
|
|
30
|
-
export declare const unmarshalListBootscriptsResponse: (data: unknown) => ListBootscriptsResponse;
|
|
31
29
|
export declare const unmarshalListImagesResponse: (data: unknown) => ListImagesResponse;
|
|
32
30
|
export declare const unmarshalListIpsResponse: (data: unknown) => ListIpsResponse;
|
|
33
31
|
export declare const unmarshalListPlacementGroupsResponse: (data: unknown) => ListPlacementGroupsResponse;
|
|
@@ -227,7 +227,6 @@ const unmarshalServer = (data) => {
|
|
|
227
227
|
allowedActions: data.allowed_actions,
|
|
228
228
|
arch: data.arch,
|
|
229
229
|
bootType: data.boot_type,
|
|
230
|
-
bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : void 0,
|
|
231
230
|
commercialType: data.commercial_type,
|
|
232
231
|
creationDate: unmarshalDate(data.creation_date),
|
|
233
232
|
dynamicIpRequired: data.dynamic_ip_required,
|
|
@@ -499,16 +498,6 @@ const unmarshalExportSnapshotResponse = (data) => {
|
|
|
499
498
|
task: data.task ? unmarshalTask(data.task) : void 0
|
|
500
499
|
};
|
|
501
500
|
};
|
|
502
|
-
const unmarshalGetBootscriptResponse = (data) => {
|
|
503
|
-
if (!isJSONObject(data)) {
|
|
504
|
-
throw new TypeError(
|
|
505
|
-
`Unmarshalling the type 'GetBootscriptResponse' failed as data isn't a dictionary.`
|
|
506
|
-
);
|
|
507
|
-
}
|
|
508
|
-
return {
|
|
509
|
-
bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : void 0
|
|
510
|
-
};
|
|
511
|
-
};
|
|
512
501
|
const unmarshalDashboard = (data) => {
|
|
513
502
|
if (!isJSONObject(data)) {
|
|
514
503
|
throw new TypeError(
|
|
@@ -682,17 +671,6 @@ const unmarshalGetVolumeResponse = (data) => {
|
|
|
682
671
|
volume: data.volume ? unmarshalVolume(data.volume) : void 0
|
|
683
672
|
};
|
|
684
673
|
};
|
|
685
|
-
const unmarshalListBootscriptsResponse = (data) => {
|
|
686
|
-
if (!isJSONObject(data)) {
|
|
687
|
-
throw new TypeError(
|
|
688
|
-
`Unmarshalling the type 'ListBootscriptsResponse' failed as data isn't a dictionary.`
|
|
689
|
-
);
|
|
690
|
-
}
|
|
691
|
-
return {
|
|
692
|
-
bootscripts: unmarshalArrayOfObject(data.bootscripts, unmarshalBootscript),
|
|
693
|
-
totalCount: data.total_count
|
|
694
|
-
};
|
|
695
|
-
};
|
|
696
674
|
const unmarshalListImagesResponse = (data) => {
|
|
697
675
|
if (!isJSONObject(data)) {
|
|
698
676
|
throw new TypeError(
|
|
@@ -1177,7 +1155,6 @@ const marshalVolumeTemplate = (request, defaults) => ({
|
|
|
1177
1155
|
});
|
|
1178
1156
|
const marshalCreateImageRequest = (request, defaults) => ({
|
|
1179
1157
|
arch: request.arch,
|
|
1180
|
-
default_bootscript: request.defaultBootscript,
|
|
1181
1158
|
extra_volumes: request.extraVolumes !== void 0 ? Object.entries(request.extraVolumes).reduce(
|
|
1182
1159
|
(acc, [key, value]) => ({
|
|
1183
1160
|
...acc,
|
|
@@ -1291,7 +1268,6 @@ const marshalVolumeServerTemplate = (request, defaults) => ({
|
|
|
1291
1268
|
const marshalCreateServerRequest = (request, defaults) => ({
|
|
1292
1269
|
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
|
|
1293
1270
|
boot_type: request.bootType,
|
|
1294
|
-
bootscript: request.bootscript,
|
|
1295
1271
|
commercial_type: request.commercialType,
|
|
1296
1272
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
1297
1273
|
enable_ipv6: request.enableIpv6,
|
|
@@ -1383,6 +1359,7 @@ const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
|
|
|
1383
1359
|
});
|
|
1384
1360
|
const marshalServerActionRequest = (request, defaults) => ({
|
|
1385
1361
|
action: request.action,
|
|
1362
|
+
disable_ipv6: request.disableIpv6,
|
|
1386
1363
|
name: request.name,
|
|
1387
1364
|
volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
|
|
1388
1365
|
(acc, [key, value]) => ({
|
|
@@ -1585,7 +1562,6 @@ const marshalSetServerRequest = (request, defaults) => ({
|
|
|
1585
1562
|
allowed_actions: request.allowedActions !== void 0 ? request.allowedActions : void 0,
|
|
1586
1563
|
arch: request.arch,
|
|
1587
1564
|
boot_type: request.bootType,
|
|
1588
|
-
bootscript: request.bootscript !== void 0 ? marshalBootscript(request.bootscript) : void 0,
|
|
1589
1565
|
commercial_type: request.commercialType,
|
|
1590
1566
|
creation_date: request.creationDate,
|
|
1591
1567
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
@@ -1696,7 +1672,6 @@ const marshalSecurityGroupTemplate = (request, defaults) => ({
|
|
|
1696
1672
|
const marshalUpdateServerRequest = (request, defaults) => ({
|
|
1697
1673
|
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
|
|
1698
1674
|
boot_type: request.bootType,
|
|
1699
|
-
bootscript: request.bootscript,
|
|
1700
1675
|
commercial_type: request.commercialType,
|
|
1701
1676
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
1702
1677
|
enable_ipv6: request.enableIpv6,
|
|
@@ -1771,7 +1746,6 @@ export {
|
|
|
1771
1746
|
unmarshalCreateVolumeResponse,
|
|
1772
1747
|
unmarshalDetachServerVolumeResponse,
|
|
1773
1748
|
unmarshalExportSnapshotResponse,
|
|
1774
|
-
unmarshalGetBootscriptResponse,
|
|
1775
1749
|
unmarshalGetDashboardResponse,
|
|
1776
1750
|
unmarshalGetImageResponse,
|
|
1777
1751
|
unmarshalGetIpResponse,
|
|
@@ -1784,7 +1758,6 @@ export {
|
|
|
1784
1758
|
unmarshalGetServerTypesAvailabilityResponse,
|
|
1785
1759
|
unmarshalGetSnapshotResponse,
|
|
1786
1760
|
unmarshalGetVolumeResponse,
|
|
1787
|
-
unmarshalListBootscriptsResponse,
|
|
1788
1761
|
unmarshalListImagesResponse,
|
|
1789
1762
|
unmarshalListIpsResponse,
|
|
1790
1763
|
unmarshalListPlacementGroupsResponse,
|