@scaleway/sdk 2.50.0 → 2.52.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/index.gen.d.ts +1 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +15 -1
- package/dist/api/baremetal/v1/marshalling.gen.js +15 -1
- package/dist/api/baremetal/v1/types.gen.d.ts +12 -3
- package/dist/api/block/v1alpha1/api.gen.cjs +3 -0
- package/dist/api/block/v1alpha1/api.gen.js +3 -0
- package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/container/v1beta1/marshalling.gen.cjs +21 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +21 -0
- package/dist/api/container/v1beta1/types.gen.d.ts +30 -2
- package/dist/api/container/v1beta1/validation-rules.gen.cjs +2 -0
- package/dist/api/container/v1beta1/validation-rules.gen.d.ts +1 -0
- package/dist/api/container/v1beta1/validation-rules.gen.js +2 -0
- package/dist/api/edge_services/v1alpha1/api.gen.cjs +27 -2
- package/dist/api/edge_services/v1alpha1/api.gen.d.ts +10 -3
- package/dist/api/edge_services/v1alpha1/api.gen.js +28 -3
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +31 -0
- package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +3 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +31 -0
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +47 -9
- package/dist/api/iam/v1alpha1/api.gen.cjs +11 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/api.gen.js +12 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +6 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +25 -18
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +7 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +6 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +8 -1
- 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 +13 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +8 -1
- package/dist/api/jobs/v1alpha1/api.gen.js +14 -1
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +11 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +11 -0
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +10 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +2 -2
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +2 -2
- package/dist/api/k8s/v1/api.gen.cjs +0 -16
- package/dist/api/k8s/v1/api.gen.d.ts +1 -9
- package/dist/api/k8s/v1/api.gen.js +0 -16
- package/dist/api/k8s/v1/index.gen.d.ts +1 -1
- package/dist/api/k8s/v1/types.gen.d.ts +0 -9
- package/dist/api/k8s/v1/validation-rules.gen.cjs +8 -16
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +0 -8
- package/dist/api/k8s/v1/validation-rules.gen.js +8 -16
- 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 +393 -0
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +203 -0
- package/dist/api/mongodb/v1alpha1/api.gen.js +393 -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 +327 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +19 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.js +327 -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/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
|
@@ -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,
|
|
@@ -32,35 +32,18 @@ export interface ServerSummary {
|
|
|
32
32
|
name: string;
|
|
33
33
|
}
|
|
34
34
|
export interface Bootscript {
|
|
35
|
-
|
|
35
|
+
architecture: Arch;
|
|
36
36
|
bootcmdargs: string;
|
|
37
|
-
/**
|
|
38
|
-
* Display if the bootscript is the default bootscript (if no other boot
|
|
39
|
-
* option is configured).
|
|
40
|
-
*/
|
|
41
37
|
default: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Provide information regarding a Device Tree Binary (DTB) for use with C1
|
|
44
|
-
* servers.
|
|
45
|
-
*/
|
|
46
38
|
dtb: string;
|
|
47
|
-
/** Bootscript ID. */
|
|
48
39
|
id: string;
|
|
49
|
-
/** Initrd (initial ramdisk) configuration. */
|
|
50
40
|
initrd: string;
|
|
51
|
-
/** Instance kernel version. */
|
|
52
41
|
kernel: string;
|
|
53
|
-
/** Bootscript Organization ID. */
|
|
54
42
|
organization: string;
|
|
55
|
-
/** Bootscript Project ID. */
|
|
56
|
-
project: string;
|
|
57
|
-
/** Provide information if the bootscript is public. */
|
|
58
43
|
public: boolean;
|
|
59
|
-
/** Bootscript title. */
|
|
60
44
|
title: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
/** Zone in which the bootscript is located. */
|
|
45
|
+
project: string;
|
|
46
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
64
47
|
zone: Zone;
|
|
65
48
|
}
|
|
66
49
|
export interface Volume {
|
|
@@ -323,8 +306,6 @@ export interface Server {
|
|
|
323
306
|
* `True`).
|
|
324
307
|
*/
|
|
325
308
|
ipv6?: ServerIpv6;
|
|
326
|
-
/** @deprecated Instance bootscript. */
|
|
327
|
-
bootscript?: Bootscript;
|
|
328
309
|
/** Instance boot type. */
|
|
329
310
|
bootType: BootType;
|
|
330
311
|
/** Instance volumes. */
|
|
@@ -679,8 +660,6 @@ export type CreateImageRequest = {
|
|
|
679
660
|
rootVolume: string;
|
|
680
661
|
/** Architecture of the image. */
|
|
681
662
|
arch: Arch;
|
|
682
|
-
/** @deprecated Default bootscript of the image. */
|
|
683
|
-
defaultBootscript?: string;
|
|
684
663
|
/** Additional volumes of the image. */
|
|
685
664
|
extraVolumes?: Record<string, VolumeTemplate>;
|
|
686
665
|
/**
|
|
@@ -874,7 +853,7 @@ export type CreateServerRequest = {
|
|
|
874
853
|
/** Define the Instance commercial type (i.e. GP1-S). */
|
|
875
854
|
commercialType: string;
|
|
876
855
|
/** Instance image ID or label. */
|
|
877
|
-
image
|
|
856
|
+
image?: string;
|
|
878
857
|
/** Volumes attached to the server. */
|
|
879
858
|
volumes?: Record<string, VolumeServerTemplate>;
|
|
880
859
|
/**
|
|
@@ -888,8 +867,6 @@ export type CreateServerRequest = {
|
|
|
888
867
|
publicIps?: string[];
|
|
889
868
|
/** Boot type to use. */
|
|
890
869
|
bootType?: BootType;
|
|
891
|
-
/** @deprecated Bootscript ID to use when `boot_type` is set to `bootscript`. */
|
|
892
|
-
bootscript?: string;
|
|
893
870
|
/**
|
|
894
871
|
* @deprecated Instance Organization ID.
|
|
895
872
|
*
|
|
@@ -1079,14 +1056,6 @@ export type ExportSnapshotRequest = {
|
|
|
1079
1056
|
export interface ExportSnapshotResponse {
|
|
1080
1057
|
task?: Task;
|
|
1081
1058
|
}
|
|
1082
|
-
export type GetBootscriptRequest = {
|
|
1083
|
-
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1084
|
-
zone?: Zone;
|
|
1085
|
-
bootscriptId: string;
|
|
1086
|
-
};
|
|
1087
|
-
export interface GetBootscriptResponse {
|
|
1088
|
-
bootscript?: Bootscript;
|
|
1089
|
-
}
|
|
1090
1059
|
export type GetDashboardRequest = {
|
|
1091
1060
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1092
1061
|
zone?: Zone;
|
|
@@ -1205,22 +1174,6 @@ export type GetVolumeRequest = {
|
|
|
1205
1174
|
export interface GetVolumeResponse {
|
|
1206
1175
|
volume?: Volume;
|
|
1207
1176
|
}
|
|
1208
|
-
export type ListBootscriptsRequest = {
|
|
1209
|
-
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1210
|
-
zone?: Zone;
|
|
1211
|
-
arch?: string;
|
|
1212
|
-
title?: string;
|
|
1213
|
-
default?: boolean;
|
|
1214
|
-
public?: boolean;
|
|
1215
|
-
perPage?: number;
|
|
1216
|
-
page?: number;
|
|
1217
|
-
};
|
|
1218
|
-
export interface ListBootscriptsResponse {
|
|
1219
|
-
/** Total number of bootscripts. */
|
|
1220
|
-
totalCount: number;
|
|
1221
|
-
/** List of bootscripts. */
|
|
1222
|
-
bootscripts: Bootscript[];
|
|
1223
|
-
}
|
|
1224
1177
|
export type ListDefaultSecurityGroupRulesRequest = {
|
|
1225
1178
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1226
1179
|
zone?: Zone;
|
|
@@ -1580,6 +1533,11 @@ export type ServerActionRequest = {
|
|
|
1580
1533
|
* should only be specified when performing a backup action.
|
|
1581
1534
|
*/
|
|
1582
1535
|
volumes?: Record<string, ServerActionRequestVolumeBackupTemplate>;
|
|
1536
|
+
/**
|
|
1537
|
+
* Disable IPv6 on the Instance while performing migration to routed IPs. This
|
|
1538
|
+
* field should only be specified when performing a enable_routed_ip action.
|
|
1539
|
+
*/
|
|
1540
|
+
disableIpv6?: boolean;
|
|
1583
1541
|
};
|
|
1584
1542
|
export interface ServerActionResponse {
|
|
1585
1543
|
task?: Task;
|
|
@@ -1789,8 +1747,6 @@ export type UpdateServerRequest = {
|
|
|
1789
1747
|
/** Tags of the Instance. */
|
|
1790
1748
|
tags?: string[];
|
|
1791
1749
|
volumes?: Record<string, VolumeServerTemplate>;
|
|
1792
|
-
/** @deprecated */
|
|
1793
|
-
bootscript?: string;
|
|
1794
1750
|
dynamicIpRequired?: boolean;
|
|
1795
1751
|
/**
|
|
1796
1752
|
* @deprecated True to configure the instance so it uses the new routed IP
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Zone } from '../../../bridge';
|
|
2
|
-
import type { Arch, BootType,
|
|
2
|
+
import type { Arch, BootType, Image, PlacementGroup, PrivateNIC, SecurityGroup, SecurityGroupPolicy, SecurityGroupRule, SecurityGroupRuleAction, SecurityGroupRuleDirection, SecurityGroupRuleProtocol, SecurityGroupSummary, Server, ServerAction, ServerIp, ServerIpv6, ServerLocation, ServerMaintenance, ServerState, ServerSummary, Snapshot, SnapshotBaseVolume, SnapshotState, Volume, VolumeVolumeType } from './types.gen';
|
|
3
3
|
export interface SetImageResponse {
|
|
4
4
|
image?: Image;
|
|
5
5
|
}
|
|
@@ -121,8 +121,6 @@ export type SetServerRequest = {
|
|
|
121
121
|
* `True`).
|
|
122
122
|
*/
|
|
123
123
|
ipv6?: ServerIpv6;
|
|
124
|
-
/** @deprecated Instance bootscript. */
|
|
125
|
-
bootscript?: Bootscript;
|
|
126
124
|
/** Instance boot type. */
|
|
127
125
|
bootType?: BootType;
|
|
128
126
|
/** Instance volumes. */
|
|
@@ -226,5 +226,18 @@ class API extends api.API {
|
|
|
226
226
|
},
|
|
227
227
|
marshalling_gen.unmarshalListJobsResourcesResponse
|
|
228
228
|
);
|
|
229
|
+
/**
|
|
230
|
+
* Get jobs limits for the console.
|
|
231
|
+
*
|
|
232
|
+
* @param request - The request {@link GetJobsLimitsRequest}
|
|
233
|
+
* @returns A Promise of JobsLimits
|
|
234
|
+
*/
|
|
235
|
+
getJobsLimits = (request = {}) => this.client.fetch(
|
|
236
|
+
{
|
|
237
|
+
method: "GET",
|
|
238
|
+
path: `/serverless-jobs/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/jobs-limits`
|
|
239
|
+
},
|
|
240
|
+
marshalling_gen.unmarshalJobsLimits
|
|
241
|
+
);
|
|
229
242
|
}
|
|
230
243
|
exports.API = API;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region } from '../../../bridge';
|
|
3
|
-
import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, JobDefinition, JobRun, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
|
|
3
|
+
import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, GetJobsLimitsRequest, JobDefinition, JobRun, JobsLimits, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Serverless Jobs API.
|
|
6
6
|
*
|
|
@@ -93,4 +93,11 @@ export declare class API extends ParentAPI {
|
|
|
93
93
|
* @returns A Promise of ListJobsResourcesResponse
|
|
94
94
|
*/
|
|
95
95
|
listJobsResources: (request?: Readonly<ListJobsResourcesRequest>) => Promise<ListJobsResourcesResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Get jobs limits for the console.
|
|
98
|
+
*
|
|
99
|
+
* @param request - The request {@link GetJobsLimitsRequest}
|
|
100
|
+
* @returns A Promise of JobsLimits
|
|
101
|
+
*/
|
|
102
|
+
getJobsLimits: (request?: Readonly<GetJobsLimitsRequest>) => Promise<JobsLimits>;
|
|
96
103
|
}
|
|
@@ -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 { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalStartJobDefinitionResponse, marshalCreateJobDefinitionSecretsRequest, unmarshalCreateJobDefinitionSecretsResponse, unmarshalSecret, unmarshalListJobDefinitionSecretsResponse, marshalUpdateJobDefinitionSecretRequest, unmarshalJobRun, unmarshalListJobRunsResponse, unmarshalListJobsResourcesResponse } from "./marshalling.gen.js";
|
|
5
|
+
import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalStartJobDefinitionResponse, marshalCreateJobDefinitionSecretsRequest, unmarshalCreateJobDefinitionSecretsResponse, unmarshalSecret, unmarshalListJobDefinitionSecretsResponse, marshalUpdateJobDefinitionSecretRequest, unmarshalJobRun, unmarshalListJobRunsResponse, unmarshalListJobsResourcesResponse, unmarshalJobsLimits } from "./marshalling.gen.js";
|
|
6
6
|
const jsonContentHeaders = {
|
|
7
7
|
"Content-Type": "application/json; charset=utf-8"
|
|
8
8
|
};
|
|
@@ -224,6 +224,19 @@ class API extends API$1 {
|
|
|
224
224
|
},
|
|
225
225
|
unmarshalListJobsResourcesResponse
|
|
226
226
|
);
|
|
227
|
+
/**
|
|
228
|
+
* Get jobs limits for the console.
|
|
229
|
+
*
|
|
230
|
+
* @param request - The request {@link GetJobsLimitsRequest}
|
|
231
|
+
* @returns A Promise of JobsLimits
|
|
232
|
+
*/
|
|
233
|
+
getJobsLimits = (request = {}) => this.client.fetch(
|
|
234
|
+
{
|
|
235
|
+
method: "GET",
|
|
236
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/jobs-limits`
|
|
237
|
+
},
|
|
238
|
+
unmarshalJobsLimits
|
|
239
|
+
);
|
|
227
240
|
}
|
|
228
241
|
export {
|
|
229
242
|
API
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsRequestSecretConfig, CreateJobDefinitionSecretsResponse, CronSchedule, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, JobDefinition, JobRun, JobRunState, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsRequestOrderBy, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsRequestOrderBy, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Resource, Secret, SecretEnvVar, SecretFile, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig, UpdateJobDefinitionSecretRequest, } from './types.gen';
|
|
3
|
+
export type { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsRequestSecretConfig, CreateJobDefinitionSecretsResponse, CronSchedule, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, GetJobsLimitsRequest, JobDefinition, JobRun, JobRunState, JobsLimits, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsRequestOrderBy, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsRequestOrderBy, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Resource, Secret, SecretEnvVar, SecretFile, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig, UpdateJobDefinitionSecretRequest, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -108,6 +108,16 @@ const unmarshalCreateJobDefinitionSecretsResponse = (data) => {
|
|
|
108
108
|
secrets: marshalling.unmarshalArrayOfObject(data.secrets, unmarshalSecret)
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
+
const unmarshalJobsLimits = (data) => {
|
|
112
|
+
if (!json.isJSONObject(data)) {
|
|
113
|
+
throw new TypeError(
|
|
114
|
+
`Unmarshalling the type 'JobsLimits' failed as data isn't a dictionary.`
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
secretsPerJobDefinition: data.secrets_per_job_definition
|
|
119
|
+
};
|
|
120
|
+
};
|
|
111
121
|
const unmarshalListJobDefinitionSecretsResponse = (data) => {
|
|
112
122
|
if (!json.isJSONObject(data)) {
|
|
113
123
|
throw new TypeError(
|
|
@@ -245,6 +255,7 @@ exports.marshalUpdateJobDefinitionSecretRequest = marshalUpdateJobDefinitionSecr
|
|
|
245
255
|
exports.unmarshalCreateJobDefinitionSecretsResponse = unmarshalCreateJobDefinitionSecretsResponse;
|
|
246
256
|
exports.unmarshalJobDefinition = unmarshalJobDefinition;
|
|
247
257
|
exports.unmarshalJobRun = unmarshalJobRun;
|
|
258
|
+
exports.unmarshalJobsLimits = unmarshalJobsLimits;
|
|
248
259
|
exports.unmarshalListJobDefinitionSecretsResponse = unmarshalListJobDefinitionSecretsResponse;
|
|
249
260
|
exports.unmarshalListJobDefinitionsResponse = unmarshalListJobDefinitionsResponse;
|
|
250
261
|
exports.unmarshalListJobRunsResponse = unmarshalListJobRunsResponse;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, JobDefinition, JobRun, ListJobDefinitionSecretsResponse, ListJobDefinitionsResponse, ListJobRunsResponse, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
|
|
2
|
+
import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, JobDefinition, JobRun, JobsLimits, ListJobDefinitionSecretsResponse, ListJobDefinitionsResponse, ListJobRunsResponse, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
|
|
3
3
|
export declare const unmarshalSecret: (data: unknown) => Secret;
|
|
4
4
|
export declare const unmarshalJobDefinition: (data: unknown) => JobDefinition;
|
|
5
5
|
export declare const unmarshalJobRun: (data: unknown) => JobRun;
|
|
6
6
|
export declare const unmarshalCreateJobDefinitionSecretsResponse: (data: unknown) => CreateJobDefinitionSecretsResponse;
|
|
7
|
+
export declare const unmarshalJobsLimits: (data: unknown) => JobsLimits;
|
|
7
8
|
export declare const unmarshalListJobDefinitionSecretsResponse: (data: unknown) => ListJobDefinitionSecretsResponse;
|
|
8
9
|
export declare const unmarshalListJobDefinitionsResponse: (data: unknown) => ListJobDefinitionsResponse;
|
|
9
10
|
export declare const unmarshalListJobRunsResponse: (data: unknown) => ListJobRunsResponse;
|
|
@@ -106,6 +106,16 @@ const unmarshalCreateJobDefinitionSecretsResponse = (data) => {
|
|
|
106
106
|
secrets: unmarshalArrayOfObject(data.secrets, unmarshalSecret)
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
|
+
const unmarshalJobsLimits = (data) => {
|
|
110
|
+
if (!isJSONObject(data)) {
|
|
111
|
+
throw new TypeError(
|
|
112
|
+
`Unmarshalling the type 'JobsLimits' failed as data isn't a dictionary.`
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
secretsPerJobDefinition: data.secrets_per_job_definition
|
|
117
|
+
};
|
|
118
|
+
};
|
|
109
119
|
const unmarshalListJobDefinitionSecretsResponse = (data) => {
|
|
110
120
|
if (!isJSONObject(data)) {
|
|
111
121
|
throw new TypeError(
|
|
@@ -244,6 +254,7 @@ export {
|
|
|
244
254
|
unmarshalCreateJobDefinitionSecretsResponse,
|
|
245
255
|
unmarshalJobDefinition,
|
|
246
256
|
unmarshalJobRun,
|
|
257
|
+
unmarshalJobsLimits,
|
|
247
258
|
unmarshalListJobDefinitionSecretsResponse,
|
|
248
259
|
unmarshalListJobDefinitionsResponse,
|
|
249
260
|
unmarshalListJobRunsResponse,
|
|
@@ -180,6 +180,16 @@ export type GetJobRunRequest = {
|
|
|
180
180
|
/** UUID of the job run to get. */
|
|
181
181
|
jobRunId: string;
|
|
182
182
|
};
|
|
183
|
+
export type GetJobsLimitsRequest = {
|
|
184
|
+
/**
|
|
185
|
+
* Region to target. If none is passed will use default region from the
|
|
186
|
+
* config.
|
|
187
|
+
*/
|
|
188
|
+
region?: Region;
|
|
189
|
+
};
|
|
190
|
+
export interface JobsLimits {
|
|
191
|
+
secretsPerJobDefinition: number;
|
|
192
|
+
}
|
|
183
193
|
export type ListJobDefinitionSecretsRequest = {
|
|
184
194
|
/**
|
|
185
195
|
* Region to target. If none is passed will use default region from the
|
|
@@ -5,7 +5,7 @@ const CreateJobDefinitionRequest = {
|
|
|
5
5
|
greaterThan: 0
|
|
6
6
|
},
|
|
7
7
|
imageUri: {
|
|
8
|
-
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::(
|
|
8
|
+
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::(\w[A-Za-z0-9_.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
|
|
9
9
|
},
|
|
10
10
|
localStorageCapacity: {
|
|
11
11
|
greaterThan: 0
|
|
@@ -70,7 +70,7 @@ const UpdateJobDefinitionRequest = {
|
|
|
70
70
|
greaterThan: 0
|
|
71
71
|
},
|
|
72
72
|
imageUri: {
|
|
73
|
-
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::(
|
|
73
|
+
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::(\w[A-Za-z0-9_.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
|
|
74
74
|
},
|
|
75
75
|
localStorageCapacity: {
|
|
76
76
|
greaterThan: 0
|