@scaleway/sdk 2.59.0 → 2.60.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/api.gen.cjs +117 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +54 -1
- package/dist/api/applesilicon/v1alpha1/api.gen.js +120 -3
- package/dist/api/applesilicon/v1alpha1/content.gen.cjs +4 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +5 -1
- package/dist/api/applesilicon/v1alpha1/content.gen.js +4 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.cjs +3 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
- package/dist/api/applesilicon/v1alpha1/index.gen.js +5 -2
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +60 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +6 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +60 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +100 -0
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +4 -4
- package/dist/api/index.gen.d.ts +2 -1
- package/dist/api/interlink/index.gen.cjs +4 -0
- package/dist/api/interlink/index.gen.d.ts +5 -0
- package/dist/api/interlink/index.gen.js +4 -0
- package/dist/api/interlink/v1beta1/api.gen.cjs +405 -0
- package/dist/api/interlink/v1beta1/api.gen.d.ts +208 -0
- package/dist/api/interlink/v1beta1/api.gen.js +405 -0
- package/dist/api/interlink/v1beta1/index.gen.cjs +6 -0
- package/dist/api/interlink/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/interlink/v1beta1/index.gen.js +6 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +180 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.d.ts +16 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +180 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +455 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +107 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +93 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +107 -0
- package/dist/api/ipam/v1/api.gen.cjs +1 -0
- package/dist/api/ipam/v1/api.gen.js +1 -0
- package/dist/api/ipam/v1/types.gen.d.ts +12 -10
- package/dist/api/k8s/v1/api.gen.cjs +22 -20
- package/dist/api/k8s/v1/api.gen.d.ts +22 -20
- package/dist/api/k8s/v1/api.gen.js +22 -20
- package/dist/api/k8s/v1/marshalling.gen.cjs +2 -5
- package/dist/api/k8s/v1/marshalling.gen.js +2 -5
- package/dist/api/k8s/v1/types.gen.d.ts +65 -49
- package/dist/api/lb/v1/types.gen.d.ts +6 -6
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +13 -1
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +8 -1
- package/dist/api/mongodb/v1alpha1/api.gen.js +13 -1
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +11 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +2 -0
- package/dist/api/vpcgw/v2/api.gen.cjs +2 -1
- package/dist/api/vpcgw/v2/api.gen.js +2 -1
- package/dist/api/vpcgw/v2/types.gen.d.ts +2 -0
- package/dist/api/webhosting/v1/api.gen.cjs +20 -0
- package/dist/api/webhosting/v1/api.gen.d.ts +8 -1
- package/dist/api/webhosting/v1/api.gen.js +21 -1
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +16 -1
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +16 -1
- package/dist/api/webhosting/v1/types.gen.d.ts +30 -2
- package/dist/index.cjs +26 -24
- package/dist/index.js +26 -24
- 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
|
@@ -6,7 +6,7 @@ export type ClusterStatus = 'unknown' | 'creating' | 'ready' | 'deleting' | 'del
|
|
|
6
6
|
export type ClusterTypeAvailability = 'available' | 'scarce' | 'shortage';
|
|
7
7
|
export type ClusterTypeResiliency = 'unknown_resiliency' | 'standard' | 'high_availability';
|
|
8
8
|
export type ListClustersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
|
|
9
|
-
export type ListNodesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
9
|
+
export type ListNodesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
|
|
10
10
|
export type ListPoolsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
|
|
11
11
|
export type MaintenanceWindowDayOfTheWeek = 'any' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
12
12
|
export type NodeStatus = 'unknown' | 'creating' | 'not_ready' | 'ready' | 'deleting' | 'deleted' | 'locked' | 'rebooting' | 'creation_error' | 'upgrading' | 'starting' | 'registering';
|
|
@@ -38,7 +38,7 @@ export interface ClusterAutoUpgrade {
|
|
|
38
38
|
export interface ClusterAutoscalerConfig {
|
|
39
39
|
/** Disable the cluster autoscaler. */
|
|
40
40
|
scaleDownDisabled: boolean;
|
|
41
|
-
/** How long after scale up
|
|
41
|
+
/** How long after scale up the scale down evaluation resumes. */
|
|
42
42
|
scaleDownDelayAfterAdd: string;
|
|
43
43
|
/** Type of resource estimator to be used in scale up. */
|
|
44
44
|
estimator: AutoscalerEstimator;
|
|
@@ -148,17 +148,19 @@ export interface Pool {
|
|
|
148
148
|
* when autoscaling is enabled on the pool.
|
|
149
149
|
*/
|
|
150
150
|
maxSize: number;
|
|
151
|
-
/**
|
|
152
|
-
* Customization of the container runtime is available for each pool. Note
|
|
153
|
-
* that `docker` has been deprecated since version 1.20 and will be removed by
|
|
154
|
-
* version 1.24.
|
|
155
|
-
*/
|
|
151
|
+
/** Customization of the container runtime is available for each pool. */
|
|
156
152
|
containerRuntime: Runtime;
|
|
157
153
|
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
158
154
|
autohealing: boolean;
|
|
159
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* Tags associated with the pool, see [managing
|
|
157
|
+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
|
|
158
|
+
*/
|
|
160
159
|
tags: string[];
|
|
161
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* Placement group ID in which all the nodes of the pool will be created,
|
|
162
|
+
* placement groups are limited to 20 instances.
|
|
163
|
+
*/
|
|
162
164
|
placementGroupId?: string;
|
|
163
165
|
/**
|
|
164
166
|
* Kubelet arguments to be used by this pool. Note that this feature is
|
|
@@ -170,11 +172,15 @@ export interface Pool {
|
|
|
170
172
|
/** Zone in which the pool's nodes will be spawned. */
|
|
171
173
|
zone: Zone;
|
|
172
174
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
175
|
+
* - `l_ssd` is a local block storage which means your system is stored locally
|
|
176
|
+
* on your node's hypervisor. This type is not available for all node types
|
|
177
|
+
* `sbs-5k` is a remote block storage which means your system is stored on a
|
|
178
|
+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
|
|
179
|
+
* faster remote block storage which means your system is stored on a
|
|
180
|
+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
|
|
181
|
+
* legacy remote block storage which means your system is stored on a
|
|
182
|
+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
|
|
183
|
+
* instead.
|
|
178
184
|
*/
|
|
179
185
|
rootVolumeType: PoolVolumeType;
|
|
180
186
|
/** System volume disk size. */
|
|
@@ -231,7 +237,7 @@ export interface CreateClusterRequestAutoUpgrade {
|
|
|
231
237
|
export interface CreateClusterRequestAutoscalerConfig {
|
|
232
238
|
/** Disable the cluster autoscaler. */
|
|
233
239
|
scaleDownDisabled?: boolean;
|
|
234
|
-
/** How long after scale up
|
|
240
|
+
/** How long after scale up the scale down evaluation resumes. */
|
|
235
241
|
scaleDownDelayAfterAdd?: string;
|
|
236
242
|
/** Type of resource estimator to be used in scale up. */
|
|
237
243
|
estimator: AutoscalerEstimator;
|
|
@@ -315,7 +321,10 @@ export interface CreateClusterRequestPoolConfig {
|
|
|
315
321
|
* cloud providers in a Kosmos Cluster.
|
|
316
322
|
*/
|
|
317
323
|
nodeType: string;
|
|
318
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* Placement group ID in which all the nodes of the pool will be created,
|
|
326
|
+
* placement groups are limited to 20 instances.
|
|
327
|
+
*/
|
|
319
328
|
placementGroupId?: string;
|
|
320
329
|
/** Defines whether the autoscaling feature is enabled for the pool. */
|
|
321
330
|
autoscaling: boolean;
|
|
@@ -331,15 +340,14 @@ export interface CreateClusterRequestPoolConfig {
|
|
|
331
340
|
* when autoscaling is enabled on the pool.
|
|
332
341
|
*/
|
|
333
342
|
maxSize?: number;
|
|
334
|
-
/**
|
|
335
|
-
* Customization of the container runtime is available for each pool. Note
|
|
336
|
-
* that `docker` has been deprecated since version 1.20 and will be removed by
|
|
337
|
-
* version 1.24.
|
|
338
|
-
*/
|
|
343
|
+
/** Customization of the container runtime is available for each pool. */
|
|
339
344
|
containerRuntime: Runtime;
|
|
340
345
|
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
341
346
|
autohealing: boolean;
|
|
342
|
-
/**
|
|
347
|
+
/**
|
|
348
|
+
* Tags associated with the pool, see [managing
|
|
349
|
+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
|
|
350
|
+
*/
|
|
343
351
|
tags: string[];
|
|
344
352
|
/**
|
|
345
353
|
* Kubelet arguments to be used by this pool. Note that this feature is
|
|
@@ -351,11 +359,15 @@ export interface CreateClusterRequestPoolConfig {
|
|
|
351
359
|
/** Zone in which the pool's nodes will be spawned. */
|
|
352
360
|
zone: Zone;
|
|
353
361
|
/**
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
362
|
+
* - `l_ssd` is a local block storage which means your system is stored locally
|
|
363
|
+
* on your node's hypervisor. This type is not available for all node types
|
|
364
|
+
* `sbs-5k` is a remote block storage which means your system is stored on a
|
|
365
|
+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
|
|
366
|
+
* faster remote block storage which means your system is stored on a
|
|
367
|
+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
|
|
368
|
+
* legacy remote block storage which means your system is stored on a
|
|
369
|
+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
|
|
370
|
+
* instead.
|
|
359
371
|
*/
|
|
360
372
|
rootVolumeType: PoolVolumeType;
|
|
361
373
|
/** System volume disk size. */
|
|
@@ -452,7 +464,7 @@ export interface Cluster {
|
|
|
452
464
|
updatedAt?: Date;
|
|
453
465
|
/** Autoscaler config for the cluster. */
|
|
454
466
|
autoscalerConfig?: ClusterAutoscalerConfig;
|
|
455
|
-
/** Auto upgrade
|
|
467
|
+
/** Auto upgrade Kubernetes version of the cluster. */
|
|
456
468
|
autoUpgrade?: ClusterAutoUpgrade;
|
|
457
469
|
/** Defines whether a new Kubernetes version is available. */
|
|
458
470
|
upgradeAvailable: boolean;
|
|
@@ -531,7 +543,7 @@ export interface UpdateClusterRequestAutoUpgrade {
|
|
|
531
543
|
export interface UpdateClusterRequestAutoscalerConfig {
|
|
532
544
|
/** Disable the cluster autoscaler. */
|
|
533
545
|
scaleDownDisabled?: boolean;
|
|
534
|
-
/** How long after scale up
|
|
546
|
+
/** How long after scale up the scale down evaluation resumes. */
|
|
535
547
|
scaleDownDelayAfterAdd?: string;
|
|
536
548
|
/** Type of resource estimator to be used in scale up. */
|
|
537
549
|
estimator: AutoscalerEstimator;
|
|
@@ -654,8 +666,9 @@ export type CreateClusterRequest = {
|
|
|
654
666
|
*/
|
|
655
667
|
projectId?: string;
|
|
656
668
|
/**
|
|
657
|
-
* Type of the cluster
|
|
658
|
-
*
|
|
669
|
+
* Type of the cluster. See [list available cluster
|
|
670
|
+
* types](#list-available-cluster-types-for-a-cluster) for a list of valid
|
|
671
|
+
* types.
|
|
659
672
|
*/
|
|
660
673
|
type: string;
|
|
661
674
|
/** Cluster name. */
|
|
@@ -728,7 +741,10 @@ export type CreatePoolRequest = {
|
|
|
728
741
|
* cloud providers in a Kosmos Cluster.
|
|
729
742
|
*/
|
|
730
743
|
nodeType: string;
|
|
731
|
-
/**
|
|
744
|
+
/**
|
|
745
|
+
* Placement group ID in which all the nodes of the pool will be created,
|
|
746
|
+
* placement groups are limited to 20 instances.
|
|
747
|
+
*/
|
|
732
748
|
placementGroupId?: string;
|
|
733
749
|
/** Defines whether the autoscaling feature is enabled for the pool. */
|
|
734
750
|
autoscaling: boolean;
|
|
@@ -744,15 +760,14 @@ export type CreatePoolRequest = {
|
|
|
744
760
|
* when autoscaling is enabled on the pool.
|
|
745
761
|
*/
|
|
746
762
|
maxSize?: number;
|
|
747
|
-
/**
|
|
748
|
-
* Customization of the container runtime is available for each pool. Note
|
|
749
|
-
* that `docker` has been deprecated since version 1.20 and will be removed by
|
|
750
|
-
* version 1.24.
|
|
751
|
-
*/
|
|
763
|
+
/** Customization of the container runtime is available for each pool. */
|
|
752
764
|
containerRuntime?: Runtime;
|
|
753
765
|
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
754
766
|
autohealing: boolean;
|
|
755
|
-
/**
|
|
767
|
+
/**
|
|
768
|
+
* Tags associated with the pool, see [managing
|
|
769
|
+
* tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags).
|
|
770
|
+
*/
|
|
756
771
|
tags?: string[];
|
|
757
772
|
/**
|
|
758
773
|
* Kubelet arguments to be used by this pool. Note that this feature is
|
|
@@ -764,11 +779,15 @@ export type CreatePoolRequest = {
|
|
|
764
779
|
/** Zone in which the pool's nodes will be spawned. */
|
|
765
780
|
zone?: Zone;
|
|
766
781
|
/**
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
*
|
|
770
|
-
*
|
|
771
|
-
*
|
|
782
|
+
* - `l_ssd` is a local block storage which means your system is stored locally
|
|
783
|
+
* on your node's hypervisor. This type is not available for all node types
|
|
784
|
+
* `sbs-5k` is a remote block storage which means your system is stored on a
|
|
785
|
+
* centralized and resilient cluster with 5k IOPS limits `sbs-15k` is a
|
|
786
|
+
* faster remote block storage which means your system is stored on a
|
|
787
|
+
* centralized and resilient cluster with 15k IOPS limits `b_ssd` is the
|
|
788
|
+
* legacy remote block storage which means your system is stored on a
|
|
789
|
+
* centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k`
|
|
790
|
+
* instead.
|
|
772
791
|
*/
|
|
773
792
|
rootVolumeType?: PoolVolumeType;
|
|
774
793
|
/** System volume disk size. */
|
|
@@ -845,8 +864,8 @@ export interface ExternalNode {
|
|
|
845
864
|
nodeTaints: ExternalNodeCoreV1Taint[];
|
|
846
865
|
}
|
|
847
866
|
export interface ExternalNodeAuth {
|
|
848
|
-
|
|
849
|
-
|
|
867
|
+
nodeSecretKey: string;
|
|
868
|
+
metadataUrl: string;
|
|
850
869
|
}
|
|
851
870
|
export type GetClusterKubeConfigRequest = {
|
|
852
871
|
/**
|
|
@@ -1094,9 +1113,6 @@ export interface NodeMetadata {
|
|
|
1094
1113
|
kubeletConfig: string;
|
|
1095
1114
|
nodeLabels: Record<string, string>;
|
|
1096
1115
|
nodeTaints: NodeMetadataCoreV1Taint[];
|
|
1097
|
-
privateNetworkMode: string;
|
|
1098
|
-
kapsuleIfaceMac: string;
|
|
1099
|
-
fullIsolation: boolean;
|
|
1100
1116
|
hasGpu: boolean;
|
|
1101
1117
|
externalIp: string;
|
|
1102
1118
|
repoUri: string;
|
|
@@ -1174,7 +1190,7 @@ export type UpdateClusterRequest = {
|
|
|
1174
1190
|
/** New autoscaler config for the cluster. */
|
|
1175
1191
|
autoscalerConfig?: UpdateClusterRequestAutoscalerConfig;
|
|
1176
1192
|
/**
|
|
1177
|
-
* New auto upgrade configuration for the cluster. Note that all fields
|
|
1193
|
+
* New auto upgrade configuration for the cluster. Note that all fields needs
|
|
1178
1194
|
* to be set.
|
|
1179
1195
|
*/
|
|
1180
1196
|
autoUpgrade?: UpdateClusterRequestAutoUpgrade;
|
|
@@ -163,8 +163,8 @@ export interface HealthCheck {
|
|
|
163
163
|
*/
|
|
164
164
|
tcpConfig?: HealthCheckTcpConfig;
|
|
165
165
|
/**
|
|
166
|
-
* Object to configure a MySQL health check. The check requires MySQL >=3.22
|
|
167
|
-
*
|
|
166
|
+
* Object to configure a MySQL health check. The check requires MySQL >=3.22
|
|
167
|
+
* or <9.0. For older or newer versions, use a TCP health check.
|
|
168
168
|
*
|
|
169
169
|
* One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig',
|
|
170
170
|
* 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig'
|
|
@@ -1660,8 +1660,8 @@ export type UpdateHealthCheckRequest = {
|
|
|
1660
1660
|
*/
|
|
1661
1661
|
tcpConfig?: HealthCheckTcpConfig;
|
|
1662
1662
|
/**
|
|
1663
|
-
* Object to configure a MySQL health check. The check requires MySQL >=3.22
|
|
1664
|
-
*
|
|
1663
|
+
* Object to configure a MySQL health check. The check requires MySQL >=3.22
|
|
1664
|
+
* or <9.0. For older or newer versions, use a TCP health check.
|
|
1665
1665
|
*
|
|
1666
1666
|
* One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig',
|
|
1667
1667
|
* 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig'
|
|
@@ -2622,8 +2622,8 @@ export type ZonedApiUpdateHealthCheckRequest = {
|
|
|
2622
2622
|
*/
|
|
2623
2623
|
tcpConfig?: HealthCheckTcpConfig;
|
|
2624
2624
|
/**
|
|
2625
|
-
* Object to configure a MySQL health check. The check requires MySQL >=3.22
|
|
2626
|
-
*
|
|
2625
|
+
* Object to configure a MySQL health check. The check requires MySQL >=3.22
|
|
2626
|
+
* or <9.0. For older or newer versions, use a TCP health check.
|
|
2627
2627
|
*
|
|
2628
2628
|
* One-of ('config'): at most one of 'tcpConfig', 'mysqlConfig',
|
|
2629
2629
|
* 'pgsqlConfig', 'ldapConfig', 'redisConfig', 'httpConfig', 'httpsConfig'
|
|
@@ -12,7 +12,7 @@ const jsonContentHeaders = {
|
|
|
12
12
|
};
|
|
13
13
|
class API extends api.API {
|
|
14
14
|
/** Lists the available regions of the API. */
|
|
15
|
-
static LOCALITIES = ["fr-par"
|
|
15
|
+
static LOCALITIES = ["fr-par"];
|
|
16
16
|
pageOfListNodeTypes = (request = {}) => this.client.fetch(
|
|
17
17
|
{
|
|
18
18
|
method: "GET",
|
|
@@ -395,6 +395,18 @@ class API extends api.API {
|
|
|
395
395
|
},
|
|
396
396
|
marshalling_gen.unmarshalUser
|
|
397
397
|
);
|
|
398
|
+
/**
|
|
399
|
+
* Delete a user on a Database Instance. Delete an existing user on a Database
|
|
400
|
+
* Instance.
|
|
401
|
+
*
|
|
402
|
+
* @param request - The request {@link DeleteUserRequest}
|
|
403
|
+
*/
|
|
404
|
+
deleteUser = (request) => this.client.fetch({
|
|
405
|
+
body: "{}",
|
|
406
|
+
headers: jsonContentHeaders,
|
|
407
|
+
method: "DELETE",
|
|
408
|
+
path: `/mongodb/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${marshalling.validatePathParam("instanceId", request.instanceId)}/users/${marshalling.validatePathParam("name", request.name)}`
|
|
409
|
+
});
|
|
398
410
|
/**
|
|
399
411
|
* Delete a Database Instance endpoint. Delete the endpoint of a Database
|
|
400
412
|
* Instance. You must specify the `endpoint_id` parameter of the endpoint you
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region, WaitForOptions } from '../../../bridge';
|
|
3
|
-
import type { CreateEndpointRequest, CreateInstanceRequest, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, Endpoint, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, ListInstancesRequest, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListUsersRequest, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, RestoreSnapshotRequest, Snapshot, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User } from './types.gen';
|
|
3
|
+
import type { CreateEndpointRequest, CreateInstanceRequest, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, ListInstancesRequest, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListUsersRequest, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, RestoreSnapshotRequest, Snapshot, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Managed Database for MongoDB®.
|
|
6
6
|
*
|
|
@@ -208,6 +208,13 @@ export declare class API extends ParentAPI {
|
|
|
208
208
|
* @returns A Promise of User
|
|
209
209
|
*/
|
|
210
210
|
updateUser: (request: Readonly<UpdateUserRequest>) => Promise<User>;
|
|
211
|
+
/**
|
|
212
|
+
* Delete a user on a Database Instance. Delete an existing user on a Database
|
|
213
|
+
* Instance.
|
|
214
|
+
*
|
|
215
|
+
* @param request - The request {@link DeleteUserRequest}
|
|
216
|
+
*/
|
|
217
|
+
deleteUser: (request: Readonly<DeleteUserRequest>) => Promise<void>;
|
|
211
218
|
/**
|
|
212
219
|
* Delete a Database Instance endpoint. Delete the endpoint of a Database
|
|
213
220
|
* Instance. You must specify the `endpoint_id` parameter of the endpoint you
|
|
@@ -10,7 +10,7 @@ const jsonContentHeaders = {
|
|
|
10
10
|
};
|
|
11
11
|
class API extends API$1 {
|
|
12
12
|
/** Lists the available regions of the API. */
|
|
13
|
-
static LOCALITIES = ["fr-par"
|
|
13
|
+
static LOCALITIES = ["fr-par"];
|
|
14
14
|
pageOfListNodeTypes = (request = {}) => this.client.fetch(
|
|
15
15
|
{
|
|
16
16
|
method: "GET",
|
|
@@ -393,6 +393,18 @@ class API extends API$1 {
|
|
|
393
393
|
},
|
|
394
394
|
unmarshalUser
|
|
395
395
|
);
|
|
396
|
+
/**
|
|
397
|
+
* Delete a user on a Database Instance. Delete an existing user on a Database
|
|
398
|
+
* Instance.
|
|
399
|
+
*
|
|
400
|
+
* @param request - The request {@link DeleteUserRequest}
|
|
401
|
+
*/
|
|
402
|
+
deleteUser = (request) => this.client.fetch({
|
|
403
|
+
body: "{}",
|
|
404
|
+
headers: jsonContentHeaders,
|
|
405
|
+
method: "DELETE",
|
|
406
|
+
path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users/${validatePathParam("name", request.name)}`
|
|
407
|
+
});
|
|
396
408
|
/**
|
|
397
409
|
* Delete a Database Instance endpoint. Delete the endpoint of a Database
|
|
398
410
|
* Instance. You must specify the `endpoint_id` parameter of the endpoint you
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { CreateEndpointRequest, CreateInstanceRequest, CreateInstanceRequestVolumeDetails, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicDetails, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicDetails, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, InstanceSetting, InstanceStatus, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, NodeType, NodeTypeStock, NodeTypeVolumeType, RestoreSnapshotRequest, RestoreSnapshotRequestVolumeDetails, Setting, SettingPropertyType, Snapshot, SnapshotStatus, SnapshotVolumeType, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User, Version, Volume, VolumeType, } from './types.gen';
|
|
3
|
+
export type { CreateEndpointRequest, CreateInstanceRequest, CreateInstanceRequestVolumeDetails, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicDetails, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicDetails, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, InstanceSetting, InstanceStatus, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, NodeType, NodeTypeStock, NodeTypeVolumeType, RestoreSnapshotRequest, RestoreSnapshotRequestVolumeDetails, Setting, SettingPropertyType, Snapshot, SnapshotStatus, SnapshotVolumeType, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User, Version, Volume, VolumeType, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -290,6 +290,17 @@ export type DeleteSnapshotRequest = {
|
|
|
290
290
|
/** UUID of the snapshot. */
|
|
291
291
|
snapshotId: string;
|
|
292
292
|
};
|
|
293
|
+
export type DeleteUserRequest = {
|
|
294
|
+
/**
|
|
295
|
+
* Region to target. If none is passed will use default region from the
|
|
296
|
+
* config.
|
|
297
|
+
*/
|
|
298
|
+
region?: Region;
|
|
299
|
+
/** UUID of the Database Instance the user belongs to. */
|
|
300
|
+
instanceId: string;
|
|
301
|
+
/** Name of the database user. */
|
|
302
|
+
name: string;
|
|
303
|
+
};
|
|
293
304
|
export type GetInstanceCertificateRequest = {
|
|
294
305
|
/**
|
|
295
306
|
* Region to target. If none is passed will use default region from the
|
|
@@ -46,6 +46,13 @@ const CreateUserRequest = {
|
|
|
46
46
|
minLength: 8
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
+
const DeleteUserRequest = {
|
|
50
|
+
name: {
|
|
51
|
+
maxLength: 63,
|
|
52
|
+
minLength: 1,
|
|
53
|
+
pattern: /^[a-zA-Z0-9_\-]*$/
|
|
54
|
+
}
|
|
55
|
+
};
|
|
49
56
|
const ListInstancesRequest = {
|
|
50
57
|
name: {
|
|
51
58
|
maxLength: 255,
|
|
@@ -148,6 +155,7 @@ const UpdateUserRequest = {
|
|
|
148
155
|
exports.CreateInstanceRequest = CreateInstanceRequest;
|
|
149
156
|
exports.CreateSnapshotRequest = CreateSnapshotRequest;
|
|
150
157
|
exports.CreateUserRequest = CreateUserRequest;
|
|
158
|
+
exports.DeleteUserRequest = DeleteUserRequest;
|
|
151
159
|
exports.ListInstancesRequest = ListInstancesRequest;
|
|
152
160
|
exports.ListNodeTypesRequest = ListNodeTypesRequest;
|
|
153
161
|
exports.ListSnapshotsRequest = ListSnapshotsRequest;
|
|
@@ -44,6 +44,13 @@ export declare const CreateUserRequest: {
|
|
|
44
44
|
minLength: number;
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
+
export declare const DeleteUserRequest: {
|
|
48
|
+
name: {
|
|
49
|
+
maxLength: number;
|
|
50
|
+
minLength: number;
|
|
51
|
+
pattern: RegExp;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
47
54
|
export declare const ListInstancesRequest: {
|
|
48
55
|
name: {
|
|
49
56
|
maxLength: number;
|
|
@@ -44,6 +44,13 @@ const CreateUserRequest = {
|
|
|
44
44
|
minLength: 8
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
+
const DeleteUserRequest = {
|
|
48
|
+
name: {
|
|
49
|
+
maxLength: 63,
|
|
50
|
+
minLength: 1,
|
|
51
|
+
pattern: /^[a-zA-Z0-9_\-]*$/
|
|
52
|
+
}
|
|
53
|
+
};
|
|
47
54
|
const ListInstancesRequest = {
|
|
48
55
|
name: {
|
|
49
56
|
maxLength: 255,
|
|
@@ -147,6 +154,7 @@ export {
|
|
|
147
154
|
CreateInstanceRequest,
|
|
148
155
|
CreateSnapshotRequest,
|
|
149
156
|
CreateUserRequest,
|
|
157
|
+
DeleteUserRequest,
|
|
150
158
|
ListInstancesRequest,
|
|
151
159
|
ListNodeTypesRequest,
|
|
152
160
|
ListSnapshotsRequest,
|
|
@@ -23,6 +23,7 @@ const unmarshalSecretVersion = (data) => {
|
|
|
23
23
|
}
|
|
24
24
|
return {
|
|
25
25
|
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
26
|
+
deletedAt: marshalling.unmarshalDate(data.deleted_at),
|
|
26
27
|
description: data.description,
|
|
27
28
|
ephemeralProperties: data.ephemeral_properties ? unmarshalEphemeralProperties(data.ephemeral_properties) : void 0,
|
|
28
29
|
latest: data.latest,
|
|
@@ -21,6 +21,7 @@ const unmarshalSecretVersion = (data) => {
|
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
23
|
createdAt: unmarshalDate(data.created_at),
|
|
24
|
+
deletedAt: unmarshalDate(data.deleted_at),
|
|
24
25
|
description: data.description,
|
|
25
26
|
ephemeralProperties: data.ephemeral_properties ? unmarshalEphemeralProperties(data.ephemeral_properties) : void 0,
|
|
26
27
|
latest: data.latest,
|
|
@@ -66,6 +66,8 @@ export interface SecretVersion {
|
|
|
66
66
|
createdAt?: Date;
|
|
67
67
|
/** Last update of the version. */
|
|
68
68
|
updatedAt?: Date;
|
|
69
|
+
/** Date and time of the version's deletion. */
|
|
70
|
+
deletedAt?: Date;
|
|
69
71
|
/** Description of the version. */
|
|
70
72
|
description?: string;
|
|
71
73
|
/** Returns `true` if the version is the latest. */
|
|
@@ -130,7 +130,8 @@ class API extends api.API {
|
|
|
130
130
|
deleteGateway = (request) => this.client.fetch(
|
|
131
131
|
{
|
|
132
132
|
method: "DELETE",
|
|
133
|
-
path: `/vpc-gw/v2/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${marshalling.validatePathParam("gatewayId", request.gatewayId)}
|
|
133
|
+
path: `/vpc-gw/v2/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${marshalling.validatePathParam("gatewayId", request.gatewayId)}`,
|
|
134
|
+
urlParams: marshalling.urlParams(["delete_ip", request.deleteIp])
|
|
134
135
|
},
|
|
135
136
|
marshalling_gen.unmarshalGateway
|
|
136
137
|
);
|
|
@@ -128,7 +128,8 @@ class API extends API$1 {
|
|
|
128
128
|
deleteGateway = (request) => this.client.fetch(
|
|
129
129
|
{
|
|
130
130
|
method: "DELETE",
|
|
131
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}
|
|
131
|
+
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}`,
|
|
132
|
+
urlParams: urlParams(["delete_ip", request.deleteIp])
|
|
132
133
|
},
|
|
133
134
|
unmarshalGateway
|
|
134
135
|
);
|
|
@@ -213,6 +213,8 @@ export type DeleteGatewayRequest = {
|
|
|
213
213
|
zone?: Zone;
|
|
214
214
|
/** ID of the gateway to delete. */
|
|
215
215
|
gatewayId: string;
|
|
216
|
+
/** Defines whether the PGW's IP should be deleted. */
|
|
217
|
+
deleteIp: boolean;
|
|
216
218
|
};
|
|
217
219
|
export type DeleteIPRequest = {
|
|
218
220
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
@@ -273,6 +273,26 @@ class DnsAPI extends api.API {
|
|
|
273
273
|
},
|
|
274
274
|
marshalling_gen.unmarshalCheckUserOwnsDomainResponse
|
|
275
275
|
);
|
|
276
|
+
/**
|
|
277
|
+
* "Synchronize your DNS records on the Elements Console and on cPanel.".
|
|
278
|
+
*
|
|
279
|
+
* @param request - The request {@link DnsApiSyncDomainDnsRecordsRequest}
|
|
280
|
+
* @returns A Promise of DnsRecords
|
|
281
|
+
*/
|
|
282
|
+
syncDomainDnsRecords = (request) => this.client.fetch(
|
|
283
|
+
{
|
|
284
|
+
body: JSON.stringify(
|
|
285
|
+
marshalling_gen.marshalDnsApiSyncDomainDnsRecordsRequest(
|
|
286
|
+
request,
|
|
287
|
+
this.client.settings
|
|
288
|
+
)
|
|
289
|
+
),
|
|
290
|
+
headers: jsonContentHeaders,
|
|
291
|
+
method: "POST",
|
|
292
|
+
path: `/webhosting/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${marshalling.validatePathParam("domain", request.domain)}/sync-domain-dns-records`
|
|
293
|
+
},
|
|
294
|
+
marshalling_gen.unmarshalDnsRecords
|
|
295
|
+
);
|
|
276
296
|
}
|
|
277
297
|
class OfferAPI extends api.API {
|
|
278
298
|
/** Lists the available regions of the API. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region, WaitForOptions } from '../../../bridge';
|
|
3
|
-
import type { CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsRecords, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, OfferApiListOffersRequest, ResetHostingPasswordResponse, ResourceSummary, Session, WebsiteApiListWebsitesRequest } from './types.gen';
|
|
3
|
+
import type { CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, OfferApiListOffersRequest, ResetHostingPasswordResponse, ResourceSummary, Session, WebsiteApiListWebsitesRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Web Hosting Control Panel API.
|
|
6
6
|
*
|
|
@@ -140,6 +140,13 @@ export declare class DnsAPI extends ParentAPI {
|
|
|
140
140
|
* @returns A Promise of CheckUserOwnsDomainResponse
|
|
141
141
|
*/
|
|
142
142
|
checkUserOwnsDomain: (request: Readonly<DnsApiCheckUserOwnsDomainRequest>) => Promise<CheckUserOwnsDomainResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* "Synchronize your DNS records on the Elements Console and on cPanel.".
|
|
145
|
+
*
|
|
146
|
+
* @param request - The request {@link DnsApiSyncDomainDnsRecordsRequest}
|
|
147
|
+
* @returns A Promise of DnsRecords
|
|
148
|
+
*/
|
|
149
|
+
syncDomainDnsRecords: (request: Readonly<DnsApiSyncDomainDnsRecordsRequest>) => Promise<DnsRecords>;
|
|
143
150
|
}
|
|
144
151
|
/**
|
|
145
152
|
* Web Hosting Offer API.
|
|
@@ -4,7 +4,7 @@ import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
|
4
4
|
import "../../../vendor/base64/index.js";
|
|
5
5
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
6
6
|
import { HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
7
|
-
import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, unmarshalListOffersResponse, marshalHostingApiCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalHostingApiUpdateHostingRequest, unmarshalSession, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, marshalFtpAccountApiCreateFtpAccountRequest, unmarshalFtpAccount, unmarshalListFtpAccountsResponse, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, unmarshalMailAccount, unmarshalListMailAccountsResponse, marshalMailAccountApiRemoveMailAccountRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, unmarshalListWebsitesResponse } from "./marshalling.gen.js";
|
|
7
|
+
import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, marshalDnsApiSyncDomainDnsRecordsRequest, unmarshalListOffersResponse, marshalHostingApiCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalHostingApiUpdateHostingRequest, unmarshalSession, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, marshalFtpAccountApiCreateFtpAccountRequest, unmarshalFtpAccount, unmarshalListFtpAccountsResponse, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, unmarshalMailAccount, unmarshalListMailAccountsResponse, marshalMailAccountApiRemoveMailAccountRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, unmarshalListWebsitesResponse } from "./marshalling.gen.js";
|
|
8
8
|
const jsonContentHeaders = {
|
|
9
9
|
"Content-Type": "application/json; charset=utf-8"
|
|
10
10
|
};
|
|
@@ -271,6 +271,26 @@ class DnsAPI extends API$1 {
|
|
|
271
271
|
},
|
|
272
272
|
unmarshalCheckUserOwnsDomainResponse
|
|
273
273
|
);
|
|
274
|
+
/**
|
|
275
|
+
* "Synchronize your DNS records on the Elements Console and on cPanel.".
|
|
276
|
+
*
|
|
277
|
+
* @param request - The request {@link DnsApiSyncDomainDnsRecordsRequest}
|
|
278
|
+
* @returns A Promise of DnsRecords
|
|
279
|
+
*/
|
|
280
|
+
syncDomainDnsRecords = (request) => this.client.fetch(
|
|
281
|
+
{
|
|
282
|
+
body: JSON.stringify(
|
|
283
|
+
marshalDnsApiSyncDomainDnsRecordsRequest(
|
|
284
|
+
request,
|
|
285
|
+
this.client.settings
|
|
286
|
+
)
|
|
287
|
+
),
|
|
288
|
+
headers: jsonContentHeaders,
|
|
289
|
+
method: "POST",
|
|
290
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/sync-domain-dns-records`
|
|
291
|
+
},
|
|
292
|
+
unmarshalDnsRecords
|
|
293
|
+
);
|
|
274
294
|
}
|
|
275
295
|
class OfferAPI extends API$1 {
|
|
276
296
|
/** Lists the available regions of the API. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, HostingSummaryStatus, HostingUser, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, ResetHostingPasswordResponse, ResourceSummary, Session, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
|
|
3
|
+
export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, HostingSummaryStatus, HostingUser, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, ResetHostingPasswordResponse, ResourceSummary, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|