@scaleway/sdk 1.10.0 → 1.11.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/account/v2/api.gen.js +1 -0
- package/dist/api/account/v2/index.gen.js +1 -0
- package/dist/api/account/v2/marshalling.gen.js +1 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.js +1 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.js +1 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/baremetal/v1/api.gen.js +1 -0
- package/dist/api/baremetal/v1/marshalling.gen.js +1 -0
- package/dist/api/billing/v2alpha1/api.gen.js +1 -0
- package/dist/api/billing/v2alpha1/index.gen.js +1 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/index.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/container/v1beta1/api.gen.js +1 -0
- package/dist/api/container/v1beta1/index.gen.js +1 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/domain/v2beta1/api.gen.js +3 -2
- package/dist/api/domain/v2beta1/index.gen.js +1 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +1 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.js +1 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.js +1 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/function/v1beta1/api.gen.js +1 -0
- package/dist/api/function/v1beta1/index.gen.js +1 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/iam/v1alpha1/api.gen.js +1 -0
- package/dist/api/iam/v1alpha1/index.gen.js +1 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/instance/v1/api.gen.js +1 -0
- package/dist/api/instance/v1/marshalling.gen.js +1 -0
- package/dist/api/iot/v1/api.gen.js +1 -0
- package/dist/api/iot/v1/index.gen.js +1 -0
- package/dist/api/iot/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/api.gen.js +49 -55
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/lb/v1/api.gen.js +1 -0
- package/dist/api/lb/v1/marshalling.gen.js +11 -0
- package/dist/api/marketplace/v1/api.gen.js +1 -0
- package/dist/api/marketplace/v1/index.gen.js +1 -0
- package/dist/api/marketplace/v1/marshalling.gen.js +1 -0
- package/dist/api/marketplace/v2/api.gen.js +1 -0
- package/dist/api/marketplace/v2/index.gen.js +1 -0
- package/dist/api/marketplace/v2/marshalling.gen.js +1 -0
- package/dist/api/mnq/v1alpha1/api.gen.js +1 -0
- package/dist/api/mnq/v1alpha1/index.gen.js +1 -0
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/rdb/v1/api.gen.js +1 -0
- package/dist/api/rdb/v1/index.gen.js +1 -0
- package/dist/api/rdb/v1/marshalling.gen.js +1 -0
- package/dist/api/redis/v1/api.gen.js +1 -0
- package/dist/api/redis/v1/index.gen.js +1 -0
- package/dist/api/redis/v1/marshalling.gen.js +1 -0
- package/dist/api/registry/v1/api.gen.js +1 -0
- package/dist/api/registry/v1/index.gen.js +1 -0
- package/dist/api/registry/v1/marshalling.gen.js +1 -0
- package/dist/api/secret/v1alpha1/api.gen.js +1 -0
- package/dist/api/secret/v1alpha1/index.gen.js +1 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/tem/v1alpha1/api.gen.js +1 -0
- package/dist/api/tem/v1alpha1/index.gen.js +1 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/test/v1/api.gen.js +1 -0
- package/dist/api/test/v1/index.gen.js +1 -0
- package/dist/api/test/v1/marshalling.gen.js +1 -0
- package/dist/api/vpc/v1/api.gen.js +1 -0
- package/dist/api/vpc/v1/index.gen.js +1 -0
- package/dist/api/vpc/v1/marshalling.gen.js +1 -0
- package/dist/api/vpcgw/v1/api.gen.js +1 -0
- package/dist/api/vpcgw/v1/index.gen.js +1 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +1 -0
- package/dist/api/webhosting/v1alpha1/api.gen.js +1 -0
- package/dist/api/webhosting/v1alpha1/index.gen.js +1 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
- package/dist/index.cjs +143 -60
- package/dist/index.d.ts +311 -287
- package/dist/scw/constants.js +1 -1
- package/dist/scw/custom-marshalling.js +5 -1
- package/dist/scw/fetch/build-fetcher.js +1 -1
- package/dist/scw/fetch/resource-paginator.js +2 -0
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalSubscriberEmailConfig = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'SubscriberEmailConfig' failed as data isn't a dictionary.`);
|
|
@@ -187,6 +188,7 @@ const unmarshalBackend = data => {
|
|
|
187
188
|
id: data.id,
|
|
188
189
|
ignoreSslServerVerify: data.ignore_ssl_server_verify,
|
|
189
190
|
lb: data.lb ? unmarshalLb(data.lb) : undefined,
|
|
191
|
+
maxConnections: data.max_connections,
|
|
190
192
|
maxRetries: data.max_retries,
|
|
191
193
|
name: data.name,
|
|
192
194
|
onMarkedDownAction: data.on_marked_down_action,
|
|
@@ -198,6 +200,7 @@ const unmarshalBackend = data => {
|
|
|
198
200
|
stickySessions: data.sticky_sessions,
|
|
199
201
|
stickySessionsCookieName: data.sticky_sessions_cookie_name,
|
|
200
202
|
timeoutConnect: data.timeout_connect,
|
|
203
|
+
timeoutQueue: data.timeout_queue,
|
|
201
204
|
timeoutServer: data.timeout_server,
|
|
202
205
|
timeoutTunnel: data.timeout_tunnel,
|
|
203
206
|
updatedAt: unmarshalDate(data.updated_at)
|
|
@@ -607,6 +610,7 @@ const marshalCreateBackendRequest = (request, defaults) => ({
|
|
|
607
610
|
forward_protocol: request.forwardProtocol,
|
|
608
611
|
health_check: marshalHealthCheck(request.healthCheck),
|
|
609
612
|
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
613
|
+
max_connections: request.maxConnections,
|
|
610
614
|
max_retries: request.maxRetries,
|
|
611
615
|
name: request.name || randomName('lbb'),
|
|
612
616
|
on_marked_down_action: request.onMarkedDownAction ?? 'on_marked_down_action_none',
|
|
@@ -618,6 +622,7 @@ const marshalCreateBackendRequest = (request, defaults) => ({
|
|
|
618
622
|
sticky_sessions: request.stickySessions,
|
|
619
623
|
sticky_sessions_cookie_name: request.stickySessionsCookieName,
|
|
620
624
|
timeout_connect: request.timeoutConnect,
|
|
625
|
+
timeout_queue: request.timeoutQueue,
|
|
621
626
|
timeout_server: request.timeoutServer,
|
|
622
627
|
timeout_tunnel: request.timeoutTunnel
|
|
623
628
|
});
|
|
@@ -718,6 +723,7 @@ const marshalUpdateBackendRequest = (request, defaults) => ({
|
|
|
718
723
|
forward_port_algorithm: request.forwardPortAlgorithm,
|
|
719
724
|
forward_protocol: request.forwardProtocol,
|
|
720
725
|
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
726
|
+
max_connections: request.maxConnections,
|
|
721
727
|
max_retries: request.maxRetries,
|
|
722
728
|
name: request.name,
|
|
723
729
|
on_marked_down_action: request.onMarkedDownAction ?? 'on_marked_down_action_none',
|
|
@@ -728,6 +734,7 @@ const marshalUpdateBackendRequest = (request, defaults) => ({
|
|
|
728
734
|
sticky_sessions: request.stickySessions,
|
|
729
735
|
sticky_sessions_cookie_name: request.stickySessionsCookieName,
|
|
730
736
|
timeout_connect: request.timeoutConnect,
|
|
737
|
+
timeout_queue: request.timeoutQueue,
|
|
731
738
|
timeout_server: request.timeoutServer,
|
|
732
739
|
timeout_tunnel: request.timeoutTunnel
|
|
733
740
|
});
|
|
@@ -825,6 +832,7 @@ const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
|
|
|
825
832
|
forward_protocol: request.forwardProtocol,
|
|
826
833
|
health_check: marshalHealthCheck(request.healthCheck),
|
|
827
834
|
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
835
|
+
max_connections: request.maxConnections,
|
|
828
836
|
max_retries: request.maxRetries,
|
|
829
837
|
name: request.name || randomName('lbb'),
|
|
830
838
|
on_marked_down_action: request.onMarkedDownAction ?? 'on_marked_down_action_none',
|
|
@@ -836,6 +844,7 @@ const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
|
|
|
836
844
|
sticky_sessions: request.stickySessions,
|
|
837
845
|
sticky_sessions_cookie_name: request.stickySessionsCookieName,
|
|
838
846
|
timeout_connect: request.timeoutConnect,
|
|
847
|
+
timeout_queue: request.timeoutQueue,
|
|
839
848
|
timeout_server: request.timeoutServer,
|
|
840
849
|
timeout_tunnel: request.timeoutTunnel
|
|
841
850
|
});
|
|
@@ -939,6 +948,7 @@ const marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
|
|
|
939
948
|
forward_port_algorithm: request.forwardPortAlgorithm,
|
|
940
949
|
forward_protocol: request.forwardProtocol,
|
|
941
950
|
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
951
|
+
max_connections: request.maxConnections,
|
|
942
952
|
max_retries: request.maxRetries,
|
|
943
953
|
name: request.name,
|
|
944
954
|
on_marked_down_action: request.onMarkedDownAction ?? 'on_marked_down_action_none',
|
|
@@ -949,6 +959,7 @@ const marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
|
|
|
949
959
|
sticky_sessions: request.stickySessions,
|
|
950
960
|
sticky_sessions_cookie_name: request.stickySessionsCookieName,
|
|
951
961
|
timeout_connect: request.timeoutConnect,
|
|
962
|
+
timeout_queue: request.timeoutQueue,
|
|
952
963
|
timeout_server: request.timeoutServer,
|
|
953
964
|
timeout_tunnel: request.timeoutTunnel
|
|
954
965
|
});
|
|
@@ -4,6 +4,7 @@ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
|
4
4
|
import { unmarshalListImagesResponse, unmarshalGetImageResponse, unmarshalListVersionsResponse, unmarshalGetVersionResponse } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
/** Marketplace API. */
|
|
8
9
|
class API extends API$1 {
|
|
9
10
|
constructor() {
|
|
@@ -2,6 +2,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
2
2
|
import { unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshalling.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5
6
|
const unmarshalLocalImage = data => {
|
|
6
7
|
if (!isJSONObject(data)) {
|
|
7
8
|
throw new TypeError(`Unmarshalling the type 'LocalImage' failed as data isn't a dictionary.`);
|
|
@@ -4,6 +4,7 @@ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
|
4
4
|
import { unmarshalListImagesResponse, unmarshalImage, unmarshalListVersionsResponse, unmarshalVersion, unmarshalListLocalImagesResponse, unmarshalLocalImage, unmarshalListCategoriesResponse, unmarshalCategory } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
/** Marketplace API. */
|
|
8
9
|
class API extends API$1 {
|
|
9
10
|
constructor() {
|
|
@@ -2,6 +2,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
2
2
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5
6
|
const unmarshalCategory = data => {
|
|
6
7
|
if (!isJSONObject(data)) {
|
|
7
8
|
throw new TypeError(`Unmarshalling the type 'Category' failed as data isn't a dictionary.`);
|
|
@@ -4,6 +4,7 @@ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
|
4
4
|
import { unmarshalListNamespacesResponse, marshalCreateNamespaceRequest, unmarshalNamespace, marshalUpdateNamespaceRequest, marshalCreateCredentialRequest, unmarshalCredential, unmarshalListCredentialsResponse, marshalUpdateCredentialRequest } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const jsonContentHeaders = {
|
|
8
9
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9
10
|
};
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalPermissions = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'Permissions' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { DATABASE_BACKUP_TRANSIENT_STATUSES, INSTANCE_TRANSIENT_STATUSES, READ_R
|
|
|
6
6
|
import { unmarshalListDatabaseEnginesResponse, unmarshalListNodeTypesResponse, unmarshalListDatabaseBackupsResponse, marshalCreateDatabaseBackupRequest, unmarshalDatabaseBackup, marshalUpdateDatabaseBackupRequest, marshalRestoreDatabaseBackupRequest, marshalUpgradeInstanceRequest, unmarshalInstance, unmarshalListInstancesResponse, marshalCreateInstanceRequest, marshalUpdateInstanceRequest, marshalCloneInstanceRequest, unmarshalInstanceMetrics, marshalCreateReadReplicaRequest, unmarshalReadReplica, marshalCreateReadReplicaEndpointRequest, marshalPrepareInstanceLogsRequest, unmarshalPrepareInstanceLogsResponse, unmarshalListInstanceLogsResponse, unmarshalInstanceLog, marshalPurgeInstanceLogsRequest, unmarshalListInstanceLogsDetailsResponse, marshalAddInstanceSettingsRequest, unmarshalAddInstanceSettingsResponse, marshalDeleteInstanceSettingsRequest, unmarshalDeleteInstanceSettingsResponse, marshalSetInstanceSettingsRequest, unmarshalSetInstanceSettingsResponse, unmarshalListInstanceACLRulesResponse, marshalAddInstanceACLRulesRequest, unmarshalAddInstanceACLRulesResponse, marshalSetInstanceACLRulesRequest, unmarshalSetInstanceACLRulesResponse, marshalDeleteInstanceACLRulesRequest, unmarshalDeleteInstanceACLRulesResponse, unmarshalListUsersResponse, marshalCreateUserRequest, unmarshalUser, marshalUpdateUserRequest, unmarshalListDatabasesResponse, marshalCreateDatabaseRequest, unmarshalDatabase, unmarshalListPrivilegesResponse, marshalSetPrivilegeRequest, unmarshalPrivilege, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalUpdateSnapshotRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateEndpointRequest, unmarshalEndpoint, marshalMigrateEndpointRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -2,3 +2,4 @@ export { API } from './api.gen.js';
|
|
|
2
2
|
export { DATABASE_BACKUP_TRANSIENT_STATUSES, INSTANCE_LOG_TRANSIENT_STATUSES, INSTANCE_TRANSIENT_STATUSES, MAINTENANCE_TRANSIENT_STATUSES, READ_REPLICA_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -4,6 +4,7 @@ import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
|
4
4
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const unmarshalEndpointDirectAccessDetails = data => {
|
|
8
9
|
if (!isJSONObject(data)) {
|
|
9
10
|
throw new TypeError(`Unmarshalling the type 'EndpointDirectAccessDetails' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { CLUSTER_TRANSIENT_STATUSES } from './content.gen.js';
|
|
|
6
6
|
import { marshalCreateClusterRequest, unmarshalCluster, marshalUpdateClusterRequest, unmarshalListClustersResponse, marshalMigrateClusterRequest, unmarshalClusterMetricsResponse, unmarshalListNodeTypesResponse, unmarshalListClusterVersionsResponse, marshalAddClusterSettingsRequest, unmarshalClusterSettingsResponse, marshalSetClusterSettingsRequest, marshalSetAclRulesRequest, unmarshalSetAclRulesResponse, marshalAddAclRulesRequest, unmarshalAddAclRulesResponse, unmarshalACLRule, marshalSetEndpointsRequest, unmarshalSetEndpointsResponse, marshalAddEndpointsRequest, unmarshalAddEndpointsResponse, unmarshalEndpoint, marshalUpdateEndpointRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -4,6 +4,7 @@ import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
|
4
4
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const unmarshalPrivateNetwork = data => {
|
|
8
9
|
if (!isJSONObject(data)) {
|
|
9
10
|
throw new TypeError(`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { NAMESPACE_TRANSIENT_STATUSES, IMAGE_TRANSIENT_STATUSES, TAG_TRANSIENT_S
|
|
|
6
6
|
import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListImagesResponse, unmarshalImage, marshalUpdateImageRequest, unmarshalListTagsResponse, unmarshalTag } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -2,3 +2,4 @@ export { API } from './api.gen.js';
|
|
|
2
2
|
export { IMAGE_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TAG_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalImage = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'Image' failed as data isn't a dictionary.`);
|
|
@@ -4,6 +4,7 @@ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
|
4
4
|
import { marshalCreateSecretRequest, unmarshalSecret, marshalUpdateSecretRequest, unmarshalListSecretsResponse, marshalAddSecretOwnerRequest, marshalCreateSecretVersionRequest, unmarshalSecretVersion, marshalUpdateSecretVersionRequest, unmarshalListSecretVersionsResponse, unmarshalAccessSecretVersionResponse } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const jsonContentHeaders = {
|
|
8
9
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9
10
|
};
|
|
@@ -2,6 +2,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
2
2
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5
6
|
const unmarshalSecret = data => {
|
|
6
7
|
if (!isJSONObject(data)) {
|
|
7
8
|
throw new TypeError(`Unmarshalling the type 'Secret' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { EMAIL_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES } from './content.g
|
|
|
6
6
|
import { marshalCreateEmailRequest, unmarshalCreateEmailResponse, unmarshalEmail, unmarshalListEmailsResponse, unmarshalStatistics, marshalCreateDomainRequest, unmarshalDomain, unmarshalListDomainsResponse } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -2,6 +2,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
2
2
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5
6
|
const unmarshalDomainStatistics = data => {
|
|
6
7
|
if (!isJSONObject(data)) {
|
|
7
8
|
throw new TypeError(`Unmarshalling the type 'DomainStatistics' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { HUMAN_TRANSIENT_STATUSES } from './content.gen.js';
|
|
|
6
6
|
import { marshalRegisterRequest, unmarshalRegisterResponse, unmarshalListHumansResponse, unmarshalHuman, marshalCreateHumanRequest, marshalUpdateHumanRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -2,6 +2,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
2
2
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5
6
|
const unmarshalHuman = data => {
|
|
6
7
|
if (!isJSONObject(data)) {
|
|
7
8
|
throw new TypeError(`Unmarshalling the type 'Human' failed as data isn't a dictionary.`);
|
|
@@ -4,6 +4,7 @@ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
|
4
4
|
import { unmarshalListPrivateNetworksResponse, marshalCreatePrivateNetworkRequest, unmarshalPrivateNetwork, marshalUpdatePrivateNetworkRequest } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const jsonContentHeaders = {
|
|
8
9
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9
10
|
};
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalPrivateNetwork = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { GATEWAY_TRANSIENT_STATUSES, GATEWAY_NETWORK_TRANSIENT_STATUSES } from '
|
|
|
6
6
|
import { unmarshalListGatewaysResponse, unmarshalGateway, marshalCreateGatewayRequest, marshalUpdateGatewayRequest, unmarshalListGatewayNetworksResponse, unmarshalGatewayNetwork, marshalCreateGatewayNetworkRequest, marshalUpdateGatewayNetworkRequest, unmarshalListDHCPsResponse, unmarshalDHCP, marshalCreateDHCPRequest, marshalUpdateDHCPRequest, unmarshalListDHCPEntriesResponse, unmarshalDHCPEntry, marshalCreateDHCPEntryRequest, marshalUpdateDHCPEntryRequest, marshalSetDHCPEntriesRequest, unmarshalSetDHCPEntriesResponse, unmarshalListPATRulesResponse, unmarshalPATRule, marshalCreatePATRuleRequest, marshalUpdatePATRuleRequest, marshalSetPATRulesRequest, unmarshalSetPATRulesResponse, unmarshalListGatewayTypesResponse, unmarshalListIPsResponse, unmarshalIP, marshalCreateIPRequest, marshalUpdateIPRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalDHCP = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'DHCP' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { HOSTING_TRANSIENT_STATUSES } from './content.gen.js';
|
|
|
6
6
|
import { marshalCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalUpdateHostingRequest, unmarshalDnsRecords, unmarshalListOffersResponse } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -3,6 +3,7 @@ import { unmarshalMoney } from '../../../scw/custom-marshalling.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalHostingCpanelUrls = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'HostingCpanelUrls' failed as data isn't a dictionary.`);
|