@scaleway/sdk 2.59.0 → 2.61.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/container/v1beta1/api.gen.cjs +6 -8
- package/dist/api/container/v1beta1/api.gen.d.ts +6 -8
- package/dist/api/container/v1beta1/api.gen.js +6 -8
- 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 +49 -1
- package/dist/api/vpcgw/v2/api.gen.d.ts +25 -1
- package/dist/api/vpcgw/v2/api.gen.js +50 -2
- package/dist/api/vpcgw/v2/index.gen.d.ts +1 -1
- package/dist/api/vpcgw/v2/marshalling.gen.cjs +31 -0
- package/dist/api/vpcgw/v2/marshalling.gen.d.ts +5 -1
- package/dist/api/vpcgw/v2/marshalling.gen.js +31 -0
- package/dist/api/vpcgw/v2/types.gen.d.ts +39 -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
|
@@ -245,8 +245,8 @@ const unmarshalExternalNodeAuth = (data) => {
|
|
|
245
245
|
);
|
|
246
246
|
}
|
|
247
247
|
return {
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
metadataUrl: data.metadata_url,
|
|
249
|
+
nodeSecretKey: data.node_secret_key
|
|
250
250
|
};
|
|
251
251
|
};
|
|
252
252
|
const unmarshalListClusterACLRulesResponse = (data) => {
|
|
@@ -383,10 +383,8 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
383
383
|
clusterUrl: data.cluster_url,
|
|
384
384
|
credentialProviderConfig: data.credential_provider_config,
|
|
385
385
|
externalIp: data.external_ip,
|
|
386
|
-
fullIsolation: data.full_isolation,
|
|
387
386
|
hasGpu: data.has_gpu,
|
|
388
387
|
id: data.id,
|
|
389
|
-
kapsuleIfaceMac: data.kapsule_iface_mac,
|
|
390
388
|
kubeletConfig: data.kubelet_config,
|
|
391
389
|
name: data.name,
|
|
392
390
|
nodeLabels: data.node_labels,
|
|
@@ -395,7 +393,6 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
395
393
|
unmarshalNodeMetadataCoreV1Taint
|
|
396
394
|
),
|
|
397
395
|
poolVersion: data.pool_version,
|
|
398
|
-
privateNetworkMode: data.private_network_mode,
|
|
399
396
|
repoUri: data.repo_uri
|
|
400
397
|
};
|
|
401
398
|
};
|
|
@@ -243,8 +243,8 @@ const unmarshalExternalNodeAuth = (data) => {
|
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
return {
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
metadataUrl: data.metadata_url,
|
|
247
|
+
nodeSecretKey: data.node_secret_key
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
250
|
const unmarshalListClusterACLRulesResponse = (data) => {
|
|
@@ -381,10 +381,8 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
381
381
|
clusterUrl: data.cluster_url,
|
|
382
382
|
credentialProviderConfig: data.credential_provider_config,
|
|
383
383
|
externalIp: data.external_ip,
|
|
384
|
-
fullIsolation: data.full_isolation,
|
|
385
384
|
hasGpu: data.has_gpu,
|
|
386
385
|
id: data.id,
|
|
387
|
-
kapsuleIfaceMac: data.kapsule_iface_mac,
|
|
388
386
|
kubeletConfig: data.kubelet_config,
|
|
389
387
|
name: data.name,
|
|
390
388
|
nodeLabels: data.node_labels,
|
|
@@ -393,7 +391,6 @@ const unmarshalNodeMetadata = (data) => {
|
|
|
393
391
|
unmarshalNodeMetadataCoreV1Taint
|
|
394
392
|
),
|
|
395
393
|
poolVersion: data.pool_version,
|
|
396
|
-
privateNetworkMode: data.private_network_mode,
|
|
397
394
|
repoUri: data.repo_uri
|
|
398
395
|
};
|
|
399
396
|
};
|
|
@@ -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
|
);
|
|
@@ -513,5 +514,52 @@ class API extends api.API {
|
|
|
513
514
|
},
|
|
514
515
|
marshalling_gen.unmarshalGateway
|
|
515
516
|
);
|
|
517
|
+
/**
|
|
518
|
+
* Add allowed IP range to SSH bastion. Add an IP range (in CIDR notation) to
|
|
519
|
+
* be allowed to connect to the SSH bastion.
|
|
520
|
+
*
|
|
521
|
+
* @param request - The request {@link AddBastionAllowedIPsRequest}
|
|
522
|
+
* @returns A Promise of AddBastionAllowedIPsResponse
|
|
523
|
+
*/
|
|
524
|
+
addBastionAllowedIPs = (request) => this.client.fetch(
|
|
525
|
+
{
|
|
526
|
+
body: JSON.stringify(
|
|
527
|
+
marshalling_gen.marshalAddBastionAllowedIPsRequest(request, this.client.settings)
|
|
528
|
+
),
|
|
529
|
+
headers: jsonContentHeaders,
|
|
530
|
+
method: "POST",
|
|
531
|
+
path: `/vpc-gw/v2/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${marshalling.validatePathParam("gatewayId", request.gatewayId)}/bastion-allowed-ips`
|
|
532
|
+
},
|
|
533
|
+
marshalling_gen.unmarshalAddBastionAllowedIPsResponse
|
|
534
|
+
);
|
|
535
|
+
/**
|
|
536
|
+
* Set all IP ranges allowed for SSH bastion. Set a definitive list of IP
|
|
537
|
+
* ranges (in CIDR notation) allowed to connect to the SSH bastion.
|
|
538
|
+
*
|
|
539
|
+
* @param request - The request {@link SetBastionAllowedIPsRequest}
|
|
540
|
+
* @returns A Promise of SetBastionAllowedIPsResponse
|
|
541
|
+
*/
|
|
542
|
+
setBastionAllowedIPs = (request) => this.client.fetch(
|
|
543
|
+
{
|
|
544
|
+
body: JSON.stringify(
|
|
545
|
+
marshalling_gen.marshalSetBastionAllowedIPsRequest(request, this.client.settings)
|
|
546
|
+
),
|
|
547
|
+
headers: jsonContentHeaders,
|
|
548
|
+
method: "PUT",
|
|
549
|
+
path: `/vpc-gw/v2/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${marshalling.validatePathParam("gatewayId", request.gatewayId)}/bastion-allowed-ips`
|
|
550
|
+
},
|
|
551
|
+
marshalling_gen.unmarshalSetBastionAllowedIPsResponse
|
|
552
|
+
);
|
|
553
|
+
/**
|
|
554
|
+
* Delete allowed IP range from SSH bastion. Delete an IP range (defined in
|
|
555
|
+
* CIDR notation) from SSH bastion, so that it is no longer allowed to
|
|
556
|
+
* connect.
|
|
557
|
+
*
|
|
558
|
+
* @param request - The request {@link DeleteBastionAllowedIPsRequest}
|
|
559
|
+
*/
|
|
560
|
+
deleteBastionAllowedIPs = (request) => this.client.fetch({
|
|
561
|
+
method: "DELETE",
|
|
562
|
+
path: `/vpc-gw/v2/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${marshalling.validatePathParam("gatewayId", request.gatewayId)}/bastion-allowed-ips/${marshalling.validatePathParam("ipRange", request.ipRange)}`
|
|
563
|
+
});
|
|
516
564
|
}
|
|
517
565
|
exports.API = API;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { WaitForOptions, Zone } from '../../../bridge';
|
|
3
|
-
import type { CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePatRuleRequest, Gateway, GatewayNetwork, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPatRuleRequest, IP, ListGatewayNetworksRequest, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysResponse, ListIPsRequest, ListIPsResponse, ListPatRulesRequest, ListPatRulesResponse, PatRule, RefreshSSHKeysRequest, SetPatRulesRequest, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest } from './types.gen';
|
|
3
|
+
import type { AddBastionAllowedIPsRequest, AddBastionAllowedIPsResponse, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, DeleteBastionAllowedIPsRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePatRuleRequest, Gateway, GatewayNetwork, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPatRuleRequest, IP, ListGatewayNetworksRequest, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysResponse, ListIPsRequest, ListIPsResponse, ListPatRulesRequest, ListPatRulesResponse, PatRule, RefreshSSHKeysRequest, SetBastionAllowedIPsRequest, SetBastionAllowedIPsResponse, SetPatRulesRequest, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Public Gateways API.
|
|
6
6
|
*
|
|
@@ -264,4 +264,28 @@ export declare class API extends ParentAPI {
|
|
|
264
264
|
* @returns A Promise of Gateway
|
|
265
265
|
*/
|
|
266
266
|
refreshSSHKeys: (request: Readonly<RefreshSSHKeysRequest>) => Promise<Gateway>;
|
|
267
|
+
/**
|
|
268
|
+
* Add allowed IP range to SSH bastion. Add an IP range (in CIDR notation) to
|
|
269
|
+
* be allowed to connect to the SSH bastion.
|
|
270
|
+
*
|
|
271
|
+
* @param request - The request {@link AddBastionAllowedIPsRequest}
|
|
272
|
+
* @returns A Promise of AddBastionAllowedIPsResponse
|
|
273
|
+
*/
|
|
274
|
+
addBastionAllowedIPs: (request: Readonly<AddBastionAllowedIPsRequest>) => Promise<AddBastionAllowedIPsResponse>;
|
|
275
|
+
/**
|
|
276
|
+
* Set all IP ranges allowed for SSH bastion. Set a definitive list of IP
|
|
277
|
+
* ranges (in CIDR notation) allowed to connect to the SSH bastion.
|
|
278
|
+
*
|
|
279
|
+
* @param request - The request {@link SetBastionAllowedIPsRequest}
|
|
280
|
+
* @returns A Promise of SetBastionAllowedIPsResponse
|
|
281
|
+
*/
|
|
282
|
+
setBastionAllowedIPs: (request: Readonly<SetBastionAllowedIPsRequest>) => Promise<SetBastionAllowedIPsResponse>;
|
|
283
|
+
/**
|
|
284
|
+
* Delete allowed IP range from SSH bastion. Delete an IP range (defined in
|
|
285
|
+
* CIDR notation) from SSH bastion, so that it is no longer allowed to
|
|
286
|
+
* connect.
|
|
287
|
+
*
|
|
288
|
+
* @param request - The request {@link DeleteBastionAllowedIPsRequest}
|
|
289
|
+
*/
|
|
290
|
+
deleteBastionAllowedIPs: (request: Readonly<DeleteBastionAllowedIPsRequest>) => Promise<void>;
|
|
267
291
|
}
|