@scaleway/sdk 2.31.0 → 2.33.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/baremetal/v1/api.gen.cjs +1 -0
- package/dist/api/baremetal/v1/api.gen.js +1 -0
- package/dist/api/baremetal/v1/types.gen.d.ts +2 -0
- package/dist/api/block/v1alpha1/api.gen.cjs +44 -0
- package/dist/api/block/v1alpha1/api.gen.d.ts +19 -1
- package/dist/api/block/v1alpha1/api.gen.js +45 -1
- package/dist/api/block/v1alpha1/content.gen.cjs +2 -1
- package/dist/api/block/v1alpha1/content.gen.js +2 -1
- package/dist/api/block/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +14 -0
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +3 -1
- package/dist/api/block/v1alpha1/marshalling.gen.js +14 -0
- package/dist/api/block/v1alpha1/types.gen.d.ts +27 -1
- package/dist/api/block/v1alpha1/validation-rules.gen.cjs +6 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.d.ts +5 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.js +6 -0
- package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/instance/v1/api.gen.cjs +0 -25
- package/dist/api/instance/v1/api.gen.d.ts +1 -17
- package/dist/api/instance/v1/api.gen.js +1 -26
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +5 -13
- package/dist/api/instance/v1/marshalling.gen.d.ts +1 -2
- package/dist/api/instance/v1/marshalling.gen.js +5 -13
- package/dist/api/instance/v1/types.gen.d.ts +26 -25
- package/dist/api/instance/v1/types.private.gen.d.ts +7 -0
- 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 +22 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +22 -0
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +14 -0
- package/dist/api/k8s/v1/api.gen.cjs +0 -22
- package/dist/api/k8s/v1/api.gen.d.ts +1 -10
- package/dist/api/k8s/v1/api.gen.js +1 -23
- package/dist/api/k8s/v1/index.gen.d.ts +1 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +0 -4
- package/dist/api/k8s/v1/marshalling.gen.d.ts +1 -2
- package/dist/api/k8s/v1/marshalling.gen.js +0 -4
- package/dist/api/k8s/v1/types.gen.d.ts +0 -11
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +6 -2
- package/dist/api/secret/v1beta1/types.gen.d.ts +4 -4
- package/dist/api/tem/v1alpha1/api.gen.cjs +50 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +13 -1
- package/dist/api/tem/v1alpha1/api.gen.js +51 -1
- package/dist/api/tem/v1alpha1/index.gen.cjs +2 -0
- package/dist/api/tem/v1alpha1/index.gen.d.ts +2 -1
- package/dist/api/tem/v1alpha1/index.gen.js +3 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +71 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +5 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +72 -1
- package/dist/api/tem/v1alpha1/types.gen.d.ts +117 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +33 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +28 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +33 -0
- 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
|
@@ -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, GetBootscriptResponse, GetDashboardResponse,
|
|
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, GetBootscriptResponse, GetDashboardResponse, GetImageResponse, GetIpResponse, GetPlacementGroupResponse, GetPlacementGroupServersResponse, GetPrivateNICResponse, GetSecurityGroupResponse, GetSecurityGroupRuleResponse, GetServerResponse, GetServerTypesAvailabilityResponse, GetSnapshotResponse, GetVolumeResponse, ListBootscriptsResponse, 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;
|
|
@@ -16,7 +16,6 @@ export declare const unmarshalDetachServerVolumeResponse: (data: unknown) => Det
|
|
|
16
16
|
export declare const unmarshalExportSnapshotResponse: (data: unknown) => ExportSnapshotResponse;
|
|
17
17
|
export declare const unmarshalGetBootscriptResponse: (data: unknown) => GetBootscriptResponse;
|
|
18
18
|
export declare const unmarshalGetDashboardResponse: (data: unknown) => GetDashboardResponse;
|
|
19
|
-
export declare const unmarshalGetEncryptedRdpPasswordResponse: (data: unknown) => GetEncryptedRdpPasswordResponse;
|
|
20
19
|
export declare const unmarshalGetImageResponse: (data: unknown) => GetImageResponse;
|
|
21
20
|
export declare const unmarshalGetIpResponse: (data: unknown) => GetIpResponse;
|
|
22
21
|
export declare const unmarshalGetPlacementGroupResponse: (data: unknown) => GetPlacementGroupResponse;
|
|
@@ -221,6 +221,8 @@ const unmarshalServer = (data) => {
|
|
|
221
221
|
);
|
|
222
222
|
}
|
|
223
223
|
return {
|
|
224
|
+
adminPasswordEncryptedValue: data.admin_password_encrypted_value,
|
|
225
|
+
adminPasswordEncryptionSshKeyId: data.admin_password_encryption_ssh_key_id,
|
|
224
226
|
allowedActions: data.allowed_actions,
|
|
225
227
|
arch: data.arch,
|
|
226
228
|
bootType: data.boot_type,
|
|
@@ -540,18 +542,6 @@ const unmarshalGetDashboardResponse = (data) => {
|
|
|
540
542
|
dashboard: data.dashboard ? unmarshalDashboard(data.dashboard) : void 0
|
|
541
543
|
};
|
|
542
544
|
};
|
|
543
|
-
const unmarshalGetEncryptedRdpPasswordResponse = (data) => {
|
|
544
|
-
if (!isJSONObject(data)) {
|
|
545
|
-
throw new TypeError(
|
|
546
|
-
`Unmarshalling the type 'GetEncryptedRdpPasswordResponse' failed as data isn't a dictionary.`
|
|
547
|
-
);
|
|
548
|
-
}
|
|
549
|
-
return {
|
|
550
|
-
adminPasswordEncryptionSshKeyDescription: data.admin_password_encryption_ssh_key_description,
|
|
551
|
-
adminPasswordEncryptionSshKeyId: data.admin_password_encryption_ssh_key_id,
|
|
552
|
-
value: data.value
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
545
|
const unmarshalGetImageResponse = (data) => {
|
|
556
546
|
if (!isJSONObject(data)) {
|
|
557
547
|
throw new TypeError(
|
|
@@ -1247,6 +1237,7 @@ const marshalCreatePlacementGroupRequest = (request, defaults) => ({
|
|
|
1247
1237
|
});
|
|
1248
1238
|
const marshalCreatePrivateNICRequest = (request, defaults) => ({
|
|
1249
1239
|
ip_ids: request.ipIds,
|
|
1240
|
+
ipam_ip_ids: request.ipamIpIds,
|
|
1250
1241
|
private_network_id: request.privateNetworkId,
|
|
1251
1242
|
tags: request.tags
|
|
1252
1243
|
});
|
|
@@ -1588,6 +1579,7 @@ const marshalServerMaintenance = (request, defaults) => ({
|
|
|
1588
1579
|
start_date: request.startDate
|
|
1589
1580
|
});
|
|
1590
1581
|
const marshalSetServerRequest = (request, defaults) => ({
|
|
1582
|
+
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
|
|
1591
1583
|
allowed_actions: request.allowedActions !== void 0 ? request.allowedActions : void 0,
|
|
1592
1584
|
arch: request.arch,
|
|
1593
1585
|
boot_type: request.bootType,
|
|
@@ -1700,6 +1692,7 @@ const marshalSecurityGroupTemplate = (request, defaults) => ({
|
|
|
1700
1692
|
name: request.name
|
|
1701
1693
|
});
|
|
1702
1694
|
const marshalUpdateServerRequest = (request, defaults) => ({
|
|
1695
|
+
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
|
|
1703
1696
|
boot_type: request.bootType,
|
|
1704
1697
|
bootscript: request.bootscript,
|
|
1705
1698
|
commercial_type: request.commercialType,
|
|
@@ -1778,7 +1771,6 @@ export {
|
|
|
1778
1771
|
unmarshalExportSnapshotResponse,
|
|
1779
1772
|
unmarshalGetBootscriptResponse,
|
|
1780
1773
|
unmarshalGetDashboardResponse,
|
|
1781
|
-
unmarshalGetEncryptedRdpPasswordResponse,
|
|
1782
1774
|
unmarshalGetImageResponse,
|
|
1783
1775
|
unmarshalGetIpResponse,
|
|
1784
1776
|
unmarshalGetPlacementGroupResponse,
|
|
@@ -339,6 +339,18 @@ export interface Server {
|
|
|
339
339
|
privateNics: PrivateNIC[];
|
|
340
340
|
/** Zone in which the Instance is located. */
|
|
341
341
|
zone: Zone;
|
|
342
|
+
/**
|
|
343
|
+
* The public_key value of this key is used to encrypt the admin password.
|
|
344
|
+
* When set to an empty string, reset this value and
|
|
345
|
+
* admin_password_encrypted_value to an empty string so a new password may be
|
|
346
|
+
* generated.
|
|
347
|
+
*/
|
|
348
|
+
adminPasswordEncryptionSshKeyId?: string;
|
|
349
|
+
/**
|
|
350
|
+
* This value is reset when admin_password_encryption_ssh_key_id is set to an
|
|
351
|
+
* empty string.
|
|
352
|
+
*/
|
|
353
|
+
adminPasswordEncryptedValue?: string;
|
|
342
354
|
}
|
|
343
355
|
export interface VolumeTemplate {
|
|
344
356
|
/** UUID of the volume. */
|
|
@@ -749,8 +761,13 @@ export type CreatePrivateNICRequest = {
|
|
|
749
761
|
privateNetworkId: string;
|
|
750
762
|
/** Private NIC tags. */
|
|
751
763
|
tags?: string[];
|
|
752
|
-
/** Ip_ids defined from IPAM. */
|
|
764
|
+
/** @deprecated Ip_ids defined from IPAM. */
|
|
753
765
|
ipIds?: string[];
|
|
766
|
+
/**
|
|
767
|
+
* UUID of IPAM ips, to be attached to the instance in the requested private
|
|
768
|
+
* network.
|
|
769
|
+
*/
|
|
770
|
+
ipamIpIds?: string[];
|
|
754
771
|
};
|
|
755
772
|
export interface CreatePrivateNICResponse {
|
|
756
773
|
privateNic?: PrivateNIC;
|
|
@@ -878,10 +895,7 @@ export type CreateServerRequest = {
|
|
|
878
895
|
securityGroup?: string;
|
|
879
896
|
/** Placement group ID if Instance must be part of a placement group. */
|
|
880
897
|
placementGroup?: string;
|
|
881
|
-
/**
|
|
882
|
-
* UUID of the SSH RSA key that will be used to encrypt the initial admin
|
|
883
|
-
* password for OS requiring it. Mandatory for Windows OS.
|
|
884
|
-
*/
|
|
898
|
+
/** The public_key value of this key is used to encrypt the admin password. */
|
|
885
899
|
adminPasswordEncryptionSshKeyId?: string;
|
|
886
900
|
};
|
|
887
901
|
export interface CreateServerResponse {
|
|
@@ -965,12 +979,6 @@ export type CreateVolumeRequest = {
|
|
|
965
979
|
export interface CreateVolumeResponse {
|
|
966
980
|
volume?: Volume;
|
|
967
981
|
}
|
|
968
|
-
export type DeleteEncryptedRdpPasswordRequest = {
|
|
969
|
-
/** Zone to target. If none is passed will use default zone from the config. */
|
|
970
|
-
zone?: Zone;
|
|
971
|
-
/** UUID of the Instance. */
|
|
972
|
-
serverId: string;
|
|
973
|
-
};
|
|
974
982
|
export type DeleteImageRequest = {
|
|
975
983
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
976
984
|
zone?: Zone;
|
|
@@ -1073,20 +1081,6 @@ export type GetDashboardRequest = {
|
|
|
1073
1081
|
export interface GetDashboardResponse {
|
|
1074
1082
|
dashboard?: Dashboard;
|
|
1075
1083
|
}
|
|
1076
|
-
export type GetEncryptedRdpPasswordRequest = {
|
|
1077
|
-
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1078
|
-
zone?: Zone;
|
|
1079
|
-
/** UUID of the Instance. */
|
|
1080
|
-
serverId: string;
|
|
1081
|
-
};
|
|
1082
|
-
export interface GetEncryptedRdpPasswordResponse {
|
|
1083
|
-
/** The encrypted RDP password. */
|
|
1084
|
-
value?: string;
|
|
1085
|
-
/** The description of the SSH key used for ciphering. */
|
|
1086
|
-
adminPasswordEncryptionSshKeyDescription?: string;
|
|
1087
|
-
/** The UUID of the SSH key used for ciphering. */
|
|
1088
|
-
adminPasswordEncryptionSshKeyId?: string;
|
|
1089
|
-
}
|
|
1090
1084
|
export type GetImageRequest = {
|
|
1091
1085
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
1092
1086
|
zone?: Zone;
|
|
@@ -1809,6 +1803,13 @@ export type UpdateServerRequest = {
|
|
|
1809
1803
|
* DEV1-S, which has only 20GB).
|
|
1810
1804
|
*/
|
|
1811
1805
|
commercialType?: string;
|
|
1806
|
+
/**
|
|
1807
|
+
* The public_key value of this key is used to encrypt the admin password.
|
|
1808
|
+
* When set to an empty string, reset this value and
|
|
1809
|
+
* admin_password_encrypted_value to an empty string so a new password may be
|
|
1810
|
+
* generated.
|
|
1811
|
+
*/
|
|
1812
|
+
adminPasswordEncryptionSshKeyId?: string;
|
|
1812
1813
|
};
|
|
1813
1814
|
export interface UpdateServerResponse {
|
|
1814
1815
|
server?: Server;
|
|
@@ -142,6 +142,13 @@ export type SetServerRequest = {
|
|
|
142
142
|
placementGroup?: PlacementGroup;
|
|
143
143
|
/** Instance private NICs. */
|
|
144
144
|
privateNics?: PrivateNIC[];
|
|
145
|
+
/**
|
|
146
|
+
* The public_key value of this key is used to encrypt the admin password.
|
|
147
|
+
* When set to an empty string, reset this value and
|
|
148
|
+
* admin_password_encrypted_value to an empty string so a new password may be
|
|
149
|
+
* generated.
|
|
150
|
+
*/
|
|
151
|
+
adminPasswordEncryptionSshKeyId?: string;
|
|
145
152
|
};
|
|
146
153
|
export interface SetServerResponse {
|
|
147
154
|
server?: Server;
|
|
@@ -166,5 +166,18 @@ class API extends api.API {
|
|
|
166
166
|
* @returns A Promise of ListJobRunsResponse
|
|
167
167
|
*/
|
|
168
168
|
listJobRuns = (request = {}) => resourcePaginator.enrichForPagination("jobRuns", this.pageOfListJobRuns, request);
|
|
169
|
+
/**
|
|
170
|
+
* List jobs resources for the console.
|
|
171
|
+
*
|
|
172
|
+
* @param request - The request {@link ListJobsResourcesRequest}
|
|
173
|
+
* @returns A Promise of ListJobsResourcesResponse
|
|
174
|
+
*/
|
|
175
|
+
listJobsResources = (request = {}) => this.client.fetch(
|
|
176
|
+
{
|
|
177
|
+
method: "GET",
|
|
178
|
+
path: `/serverless-jobs/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/jobs-resources`
|
|
179
|
+
},
|
|
180
|
+
marshalling_gen.unmarshalListJobsResourcesResponse
|
|
181
|
+
);
|
|
169
182
|
}
|
|
170
183
|
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, DeleteJobDefinitionRequest, GetJobDefinitionRequest, GetJobRunRequest, JobDefinition, JobRun, ListJobDefinitionsRequest, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsResponse, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest } from './types.gen';
|
|
3
|
+
import type { CreateJobDefinitionRequest, DeleteJobDefinitionRequest, GetJobDefinitionRequest, GetJobRunRequest, JobDefinition, JobRun, ListJobDefinitionsRequest, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Serverless Jobs API.
|
|
6
6
|
*
|
|
@@ -81,4 +81,11 @@ export declare class API extends ParentAPI {
|
|
|
81
81
|
all: () => Promise<JobRun[]>;
|
|
82
82
|
[Symbol.asyncIterator]: () => AsyncGenerator<JobRun[], void, void>;
|
|
83
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* List jobs resources for the console.
|
|
86
|
+
*
|
|
87
|
+
* @param request - The request {@link ListJobsResourcesRequest}
|
|
88
|
+
* @returns A Promise of ListJobsResourcesResponse
|
|
89
|
+
*/
|
|
90
|
+
listJobsResources: (request?: Readonly<ListJobsResourcesRequest>) => Promise<ListJobsResourcesResponse>;
|
|
84
91
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { API as API$1 } from "../../../scw/api.js";
|
|
2
2
|
import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
3
3
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
4
|
-
import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalStartJobDefinitionResponse, unmarshalJobRun, unmarshalListJobRunsResponse } from "./marshalling.gen.js";
|
|
4
|
+
import { marshalCreateJobDefinitionRequest, unmarshalJobDefinition, unmarshalListJobDefinitionsResponse, marshalUpdateJobDefinitionRequest, marshalStartJobDefinitionRequest, unmarshalStartJobDefinitionResponse, unmarshalJobRun, unmarshalListJobRunsResponse, unmarshalListJobsResourcesResponse } from "./marshalling.gen.js";
|
|
5
5
|
const jsonContentHeaders = {
|
|
6
6
|
"Content-Type": "application/json; charset=utf-8"
|
|
7
7
|
};
|
|
@@ -164,6 +164,19 @@ class API extends API$1 {
|
|
|
164
164
|
* @returns A Promise of ListJobRunsResponse
|
|
165
165
|
*/
|
|
166
166
|
listJobRuns = (request = {}) => enrichForPagination("jobRuns", this.pageOfListJobRuns, request);
|
|
167
|
+
/**
|
|
168
|
+
* List jobs resources for the console.
|
|
169
|
+
*
|
|
170
|
+
* @param request - The request {@link ListJobsResourcesRequest}
|
|
171
|
+
* @returns A Promise of ListJobsResourcesResponse
|
|
172
|
+
*/
|
|
173
|
+
listJobsResources = (request = {}) => this.client.fetch(
|
|
174
|
+
{
|
|
175
|
+
method: "GET",
|
|
176
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/jobs-resources`
|
|
177
|
+
},
|
|
178
|
+
unmarshalListJobsResourcesResponse
|
|
179
|
+
);
|
|
167
180
|
}
|
|
168
181
|
export {
|
|
169
182
|
API
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CronSchedule, DeleteJobDefinitionRequest, GetJobDefinitionRequest, GetJobRunRequest, JobDefinition, JobRun, JobRunState, ListJobDefinitionsRequest, ListJobDefinitionsRequestOrderBy, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsRequestOrderBy, ListJobRunsResponse, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig, } from './types.gen';
|
|
3
|
+
export type { CreateJobDefinitionRequest, CreateJobDefinitionRequestCronScheduleConfig, CronSchedule, DeleteJobDefinitionRequest, GetJobDefinitionRequest, GetJobRunRequest, JobDefinition, JobRun, JobRunState, ListJobDefinitionsRequest, ListJobDefinitionsRequestOrderBy, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsRequestOrderBy, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Resource, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionRequestCronScheduleConfig, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -88,6 +88,27 @@ const unmarshalListJobRunsResponse = (data) => {
|
|
|
88
88
|
totalCount: data.total_count
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
+
const unmarshalResource = (data) => {
|
|
92
|
+
if (!json.isJSONObject(data)) {
|
|
93
|
+
throw new TypeError(
|
|
94
|
+
`Unmarshalling the type 'Resource' failed as data isn't a dictionary.`
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
cpuLimit: data.cpu_limit,
|
|
99
|
+
memoryLimit: data.memory_limit
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
const unmarshalListJobsResourcesResponse = (data) => {
|
|
103
|
+
if (!json.isJSONObject(data)) {
|
|
104
|
+
throw new TypeError(
|
|
105
|
+
`Unmarshalling the type 'ListJobsResourcesResponse' failed as data isn't a dictionary.`
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
resources: marshalling.unmarshalArrayOfObject(data.resources, unmarshalResource)
|
|
110
|
+
};
|
|
111
|
+
};
|
|
91
112
|
const unmarshalStartJobDefinitionResponse = (data) => {
|
|
92
113
|
if (!json.isJSONObject(data)) {
|
|
93
114
|
throw new TypeError(
|
|
@@ -147,4 +168,5 @@ exports.unmarshalJobDefinition = unmarshalJobDefinition;
|
|
|
147
168
|
exports.unmarshalJobRun = unmarshalJobRun;
|
|
148
169
|
exports.unmarshalListJobDefinitionsResponse = unmarshalListJobDefinitionsResponse;
|
|
149
170
|
exports.unmarshalListJobRunsResponse = unmarshalListJobRunsResponse;
|
|
171
|
+
exports.unmarshalListJobsResourcesResponse = unmarshalListJobsResourcesResponse;
|
|
150
172
|
exports.unmarshalStartJobDefinitionResponse = unmarshalStartJobDefinitionResponse;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { CreateJobDefinitionRequest, JobDefinition, JobRun, ListJobDefinitionsResponse, ListJobRunsResponse, StartJobDefinitionRequest, StartJobDefinitionResponse, UpdateJobDefinitionRequest } from './types.gen';
|
|
2
|
+
import type { CreateJobDefinitionRequest, JobDefinition, JobRun, ListJobDefinitionsResponse, ListJobRunsResponse, ListJobsResourcesResponse, StartJobDefinitionRequest, StartJobDefinitionResponse, UpdateJobDefinitionRequest } from './types.gen';
|
|
3
3
|
export declare const unmarshalJobDefinition: (data: unknown) => JobDefinition;
|
|
4
4
|
export declare const unmarshalJobRun: (data: unknown) => JobRun;
|
|
5
5
|
export declare const unmarshalListJobDefinitionsResponse: (data: unknown) => ListJobDefinitionsResponse;
|
|
6
6
|
export declare const unmarshalListJobRunsResponse: (data: unknown) => ListJobRunsResponse;
|
|
7
|
+
export declare const unmarshalListJobsResourcesResponse: (data: unknown) => ListJobsResourcesResponse;
|
|
7
8
|
export declare const unmarshalStartJobDefinitionResponse: (data: unknown) => StartJobDefinitionResponse;
|
|
8
9
|
export declare const marshalCreateJobDefinitionRequest: (request: CreateJobDefinitionRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
9
10
|
export declare const marshalStartJobDefinitionRequest: (request: StartJobDefinitionRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -86,6 +86,27 @@ const unmarshalListJobRunsResponse = (data) => {
|
|
|
86
86
|
totalCount: data.total_count
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
+
const unmarshalResource = (data) => {
|
|
90
|
+
if (!isJSONObject(data)) {
|
|
91
|
+
throw new TypeError(
|
|
92
|
+
`Unmarshalling the type 'Resource' failed as data isn't a dictionary.`
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
cpuLimit: data.cpu_limit,
|
|
97
|
+
memoryLimit: data.memory_limit
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
const unmarshalListJobsResourcesResponse = (data) => {
|
|
101
|
+
if (!isJSONObject(data)) {
|
|
102
|
+
throw new TypeError(
|
|
103
|
+
`Unmarshalling the type 'ListJobsResourcesResponse' failed as data isn't a dictionary.`
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
resources: unmarshalArrayOfObject(data.resources, unmarshalResource)
|
|
108
|
+
};
|
|
109
|
+
};
|
|
89
110
|
const unmarshalStartJobDefinitionResponse = (data) => {
|
|
90
111
|
if (!isJSONObject(data)) {
|
|
91
112
|
throw new TypeError(
|
|
@@ -146,5 +167,6 @@ export {
|
|
|
146
167
|
unmarshalJobRun,
|
|
147
168
|
unmarshalListJobDefinitionsResponse,
|
|
148
169
|
unmarshalListJobRunsResponse,
|
|
170
|
+
unmarshalListJobsResourcesResponse,
|
|
149
171
|
unmarshalStartJobDefinitionResponse
|
|
150
172
|
};
|
|
@@ -58,6 +58,10 @@ export interface JobRun {
|
|
|
58
58
|
*/
|
|
59
59
|
region: Region;
|
|
60
60
|
}
|
|
61
|
+
export interface Resource {
|
|
62
|
+
cpuLimit: number;
|
|
63
|
+
memoryLimit: number;
|
|
64
|
+
}
|
|
61
65
|
export interface UpdateJobDefinitionRequestCronScheduleConfig {
|
|
62
66
|
schedule?: string;
|
|
63
67
|
timezone?: string;
|
|
@@ -153,6 +157,16 @@ export interface ListJobRunsResponse {
|
|
|
153
157
|
jobRuns: JobRun[];
|
|
154
158
|
totalCount: number;
|
|
155
159
|
}
|
|
160
|
+
export type ListJobsResourcesRequest = {
|
|
161
|
+
/**
|
|
162
|
+
* Region to target. If none is passed will use default region from the
|
|
163
|
+
* config.
|
|
164
|
+
*/
|
|
165
|
+
region?: Region;
|
|
166
|
+
};
|
|
167
|
+
export interface ListJobsResourcesResponse {
|
|
168
|
+
resources: Resource[];
|
|
169
|
+
}
|
|
156
170
|
export type StartJobDefinitionRequest = {
|
|
157
171
|
/**
|
|
158
172
|
* Region to target. If none is passed will use default region from the
|
|
@@ -210,28 +210,6 @@ class API extends api.API {
|
|
|
210
210
|
method: "POST",
|
|
211
211
|
path: `/k8s/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${marshalling.validatePathParam("clusterId", request.clusterId)}/reset-admin-token`
|
|
212
212
|
});
|
|
213
|
-
/**
|
|
214
|
-
* Migrate an existing cluster to a Private Network cluster. Migrate a cluster
|
|
215
|
-
* that was created before the release of Private Network clusters to a new
|
|
216
|
-
* one with a Private Network.
|
|
217
|
-
*
|
|
218
|
-
* @param request - The request {@link MigrateToPrivateNetworkClusterRequest}
|
|
219
|
-
* @returns A Promise of Cluster
|
|
220
|
-
*/
|
|
221
|
-
migrateToPrivateNetworkCluster = (request) => this.client.fetch(
|
|
222
|
-
{
|
|
223
|
-
body: JSON.stringify(
|
|
224
|
-
marshalling_gen.marshalMigrateToPrivateNetworkClusterRequest(
|
|
225
|
-
request,
|
|
226
|
-
this.client.settings
|
|
227
|
-
)
|
|
228
|
-
),
|
|
229
|
-
headers: jsonContentHeaders,
|
|
230
|
-
method: "POST",
|
|
231
|
-
path: `/k8s/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${marshalling.validatePathParam("clusterId", request.clusterId)}/migrate-to-private-network`
|
|
232
|
-
},
|
|
233
|
-
marshalling_gen.unmarshalCluster
|
|
234
|
-
);
|
|
235
213
|
/**
|
|
236
214
|
* Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
|
|
237
215
|
* to Routed IPs and enable Routed IPs for all future nodes.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region, WaitForOptions } from '../../../bridge';
|
|
3
|
-
import type { Cluster, CreateClusterRequest, CreateExternalNodeRequest, CreatePoolRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MigrateClusterToRoutedIPsRequest,
|
|
3
|
+
import type { Cluster, CreateClusterRequest, CreateExternalNodeRequest, CreatePoolRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MigrateClusterToRoutedIPsRequest, Node, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Kubernetes API.
|
|
6
6
|
*
|
|
@@ -107,15 +107,6 @@ export declare class API extends ParentAPI {
|
|
|
107
107
|
* @param request - The request {@link ResetClusterAdminTokenRequest}
|
|
108
108
|
*/
|
|
109
109
|
resetClusterAdminToken: (request: Readonly<ResetClusterAdminTokenRequest>) => Promise<void>;
|
|
110
|
-
/**
|
|
111
|
-
* Migrate an existing cluster to a Private Network cluster. Migrate a cluster
|
|
112
|
-
* that was created before the release of Private Network clusters to a new
|
|
113
|
-
* one with a Private Network.
|
|
114
|
-
*
|
|
115
|
-
* @param request - The request {@link MigrateToPrivateNetworkClusterRequest}
|
|
116
|
-
* @returns A Promise of Cluster
|
|
117
|
-
*/
|
|
118
|
-
migrateToPrivateNetworkCluster: (request: Readonly<MigrateToPrivateNetworkClusterRequest>) => Promise<Cluster>;
|
|
119
110
|
/**
|
|
120
111
|
* Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
|
|
121
112
|
* to Routed IPs and enable Routed IPs for all future nodes.
|
|
@@ -3,7 +3,7 @@ import { API as API$1 } from "../../../scw/api.js";
|
|
|
3
3
|
import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
4
4
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
5
5
|
import { CLUSTER_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
6
|
-
import { unmarshalListClustersResponse, marshalCreateClusterRequest, unmarshalCluster, marshalUpdateClusterRequest, marshalUpgradeClusterRequest, marshalSetClusterTypeRequest, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterAvailableTypesResponse,
|
|
6
|
+
import { unmarshalListClustersResponse, marshalCreateClusterRequest, unmarshalCluster, marshalUpdateClusterRequest, marshalUpgradeClusterRequest, marshalSetClusterTypeRequest, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListPoolsResponse, marshalCreatePoolRequest, unmarshalPool, marshalUpgradePoolRequest, marshalUpdatePoolRequest, unmarshalExternalNode, unmarshalListNodesResponse, unmarshalNode, unmarshalListVersionsResponse, unmarshalVersion, unmarshalListClusterTypesResponse } from "./marshalling.gen.js";
|
|
7
7
|
const jsonContentHeaders = {
|
|
8
8
|
"Content-Type": "application/json; charset=utf-8"
|
|
9
9
|
};
|
|
@@ -208,28 +208,6 @@ class API extends API$1 {
|
|
|
208
208
|
method: "POST",
|
|
209
209
|
path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/reset-admin-token`
|
|
210
210
|
});
|
|
211
|
-
/**
|
|
212
|
-
* Migrate an existing cluster to a Private Network cluster. Migrate a cluster
|
|
213
|
-
* that was created before the release of Private Network clusters to a new
|
|
214
|
-
* one with a Private Network.
|
|
215
|
-
*
|
|
216
|
-
* @param request - The request {@link MigrateToPrivateNetworkClusterRequest}
|
|
217
|
-
* @returns A Promise of Cluster
|
|
218
|
-
*/
|
|
219
|
-
migrateToPrivateNetworkCluster = (request) => this.client.fetch(
|
|
220
|
-
{
|
|
221
|
-
body: JSON.stringify(
|
|
222
|
-
marshalMigrateToPrivateNetworkClusterRequest(
|
|
223
|
-
request,
|
|
224
|
-
this.client.settings
|
|
225
|
-
)
|
|
226
|
-
),
|
|
227
|
-
headers: jsonContentHeaders,
|
|
228
|
-
method: "POST",
|
|
229
|
-
path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/migrate-to-private-network`
|
|
230
|
-
},
|
|
231
|
-
unmarshalCluster
|
|
232
|
-
);
|
|
233
211
|
/**
|
|
234
212
|
* Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
|
|
235
213
|
* to Routed IPs and enable Routed IPs for all future nodes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreateExternalNodeRequest, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeCoreV1Taint, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, MigrateClusterToRoutedIPsRequest,
|
|
3
|
+
export type { AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreateExternalNodeRequest, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeCoreV1Taint, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, MigrateClusterToRoutedIPsRequest, Node, NodeStatus, Pool, PoolStatus, PoolUpgradePolicy, PoolVolumeType, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, Runtime, SetClusterTypeRequest, UpdateClusterRequest, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -421,9 +421,6 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
421
421
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy) : void 0,
|
|
422
422
|
zone: request.zone ?? defaults.defaultZone
|
|
423
423
|
});
|
|
424
|
-
const marshalMigrateToPrivateNetworkClusterRequest = (request, defaults) => ({
|
|
425
|
-
private_network_id: request.privateNetworkId
|
|
426
|
-
});
|
|
427
424
|
const marshalSetClusterTypeRequest = (request, defaults) => ({
|
|
428
425
|
type: request.type
|
|
429
426
|
});
|
|
@@ -490,7 +487,6 @@ const marshalUpgradePoolRequest = (request, defaults) => ({
|
|
|
490
487
|
});
|
|
491
488
|
exports.marshalCreateClusterRequest = marshalCreateClusterRequest;
|
|
492
489
|
exports.marshalCreatePoolRequest = marshalCreatePoolRequest;
|
|
493
|
-
exports.marshalMigrateToPrivateNetworkClusterRequest = marshalMigrateToPrivateNetworkClusterRequest;
|
|
494
490
|
exports.marshalSetClusterTypeRequest = marshalSetClusterTypeRequest;
|
|
495
491
|
exports.marshalUpdateClusterRequest = marshalUpdateClusterRequest;
|
|
496
492
|
exports.marshalUpdatePoolRequest = marshalUpdatePoolRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { Cluster, CreateClusterRequest, CreatePoolRequest, ExternalNode, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse, ListClusterTypesResponse, ListClustersResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse,
|
|
2
|
+
import type { Cluster, CreateClusterRequest, CreatePoolRequest, ExternalNode, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse, ListClusterTypesResponse, ListClustersResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse, Node, Pool, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
|
|
3
3
|
export declare const unmarshalPool: (data: unknown) => Pool;
|
|
4
4
|
export declare const unmarshalVersion: (data: unknown) => Version;
|
|
5
5
|
export declare const unmarshalCluster: (data: unknown) => Cluster;
|
|
@@ -14,7 +14,6 @@ export declare const unmarshalListPoolsResponse: (data: unknown) => ListPoolsRes
|
|
|
14
14
|
export declare const unmarshalListVersionsResponse: (data: unknown) => ListVersionsResponse;
|
|
15
15
|
export declare const marshalCreateClusterRequest: (request: CreateClusterRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
16
16
|
export declare const marshalCreatePoolRequest: (request: CreatePoolRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
17
|
-
export declare const marshalMigrateToPrivateNetworkClusterRequest: (request: MigrateToPrivateNetworkClusterRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
17
|
export declare const marshalSetClusterTypeRequest: (request: SetClusterTypeRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
18
|
export declare const marshalUpdateClusterRequest: (request: UpdateClusterRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
20
19
|
export declare const marshalUpdatePoolRequest: (request: UpdatePoolRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -419,9 +419,6 @@ const marshalCreatePoolRequest = (request, defaults) => ({
|
|
|
419
419
|
upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy) : void 0,
|
|
420
420
|
zone: request.zone ?? defaults.defaultZone
|
|
421
421
|
});
|
|
422
|
-
const marshalMigrateToPrivateNetworkClusterRequest = (request, defaults) => ({
|
|
423
|
-
private_network_id: request.privateNetworkId
|
|
424
|
-
});
|
|
425
422
|
const marshalSetClusterTypeRequest = (request, defaults) => ({
|
|
426
423
|
type: request.type
|
|
427
424
|
});
|
|
@@ -489,7 +486,6 @@ const marshalUpgradePoolRequest = (request, defaults) => ({
|
|
|
489
486
|
export {
|
|
490
487
|
marshalCreateClusterRequest,
|
|
491
488
|
marshalCreatePoolRequest,
|
|
492
|
-
marshalMigrateToPrivateNetworkClusterRequest,
|
|
493
489
|
marshalSetClusterTypeRequest,
|
|
494
490
|
marshalUpdateClusterRequest,
|
|
495
491
|
marshalUpdatePoolRequest,
|
|
@@ -974,17 +974,6 @@ export type MigrateClusterToRoutedIPsRequest = {
|
|
|
974
974
|
region?: Region;
|
|
975
975
|
clusterId: string;
|
|
976
976
|
};
|
|
977
|
-
export type MigrateToPrivateNetworkClusterRequest = {
|
|
978
|
-
/**
|
|
979
|
-
* Region to target. If none is passed will use default region from the
|
|
980
|
-
* config.
|
|
981
|
-
*/
|
|
982
|
-
region?: Region;
|
|
983
|
-
/** ID of the cluster to migrate. */
|
|
984
|
-
clusterId: string;
|
|
985
|
-
/** ID of the Private Network to link to the cluster. */
|
|
986
|
-
privateNetworkId: string;
|
|
987
|
-
};
|
|
988
977
|
export type RebootNodeRequest = {
|
|
989
978
|
/**
|
|
990
979
|
* Region to target. If none is passed will use default region from the
|
|
@@ -13,7 +13,11 @@ export interface KeyRotationPolicy {
|
|
|
13
13
|
nextRotationAt?: Date;
|
|
14
14
|
}
|
|
15
15
|
export interface KeyUsage {
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Algorithms used to encrypt and decrypt arbitrary payloads.
|
|
18
|
+
*
|
|
19
|
+
* One-of ('usage'): at most one of 'symmetricEncryption' could be set.
|
|
20
|
+
*/
|
|
17
21
|
symmetricEncryption?: KeyAlgorithmSymmetricEncryption;
|
|
18
22
|
}
|
|
19
23
|
export interface Key {
|
|
@@ -180,7 +184,7 @@ export type GenerateDataKeyRequest = {
|
|
|
180
184
|
region?: Region;
|
|
181
185
|
/** ID of the key. */
|
|
182
186
|
keyId: string;
|
|
183
|
-
/**
|
|
187
|
+
/** Encryption algorithm of the data encryption key. */
|
|
184
188
|
algorithm?: DataKeyAlgorithmSymmetricEncryption;
|
|
185
189
|
/**
|
|
186
190
|
* Default value is `false`, meaning that the plaintext is returned. Set it to
|
|
@@ -55,10 +55,10 @@ export interface SecretVersion {
|
|
|
55
55
|
/** ID of the secret. */
|
|
56
56
|
secretId: string;
|
|
57
57
|
/**
|
|
58
|
-
* - `
|
|
59
|
-
* accessible. `disabled`: the version is not accessible but can
|
|
60
|
-
* `deleted`: the version is permanently deleted. It is not
|
|
61
|
-
* recover it.
|
|
58
|
+
* - `unknown_status`: the version is in an invalid state. `enabled`: the
|
|
59
|
+
* version is accessible. `disabled`: the version is not accessible but can
|
|
60
|
+
* be enabled. `deleted`: the version is permanently deleted. It is not
|
|
61
|
+
* possible to recover it.
|
|
62
62
|
*/
|
|
63
63
|
status: SecretVersionStatus;
|
|
64
64
|
/** Date and time of the version's creation. */
|