@scaleway/sdk 2.50.0 → 2.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +1 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +8 -0
- package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +15 -1
- package/dist/api/baremetal/v1/marshalling.gen.js +15 -1
- package/dist/api/baremetal/v1/types.gen.d.ts +12 -3
- package/dist/api/block/v1alpha1/api.gen.cjs +3 -0
- package/dist/api/block/v1alpha1/api.gen.js +3 -0
- package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/container/v1beta1/marshalling.gen.cjs +21 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +21 -0
- package/dist/api/container/v1beta1/types.gen.d.ts +30 -2
- package/dist/api/container/v1beta1/validation-rules.gen.cjs +2 -0
- package/dist/api/container/v1beta1/validation-rules.gen.d.ts +1 -0
- package/dist/api/container/v1beta1/validation-rules.gen.js +2 -0
- package/dist/api/edge_services/v1alpha1/api.gen.cjs +27 -2
- package/dist/api/edge_services/v1alpha1/api.gen.d.ts +10 -3
- package/dist/api/edge_services/v1alpha1/api.gen.js +28 -3
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +31 -0
- package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +3 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +31 -0
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +47 -9
- package/dist/api/iam/v1alpha1/api.gen.cjs +11 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/api.gen.js +12 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +6 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +25 -18
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +7 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +6 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +8 -1
- package/dist/api/index.gen.d.ts +2 -1
- package/dist/api/inference/v1beta1/validation-rules.gen.cjs +1 -1
- package/dist/api/inference/v1beta1/validation-rules.gen.js +1 -1
- package/dist/api/instance/v1/api.gen.cjs +0 -37
- package/dist/api/instance/v1/api.gen.d.ts +1 -21
- package/dist/api/instance/v1/api.gen.js +1 -38
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +1 -28
- package/dist/api/instance/v1/marshalling.gen.d.ts +1 -3
- package/dist/api/instance/v1/marshalling.gen.js +1 -28
- package/dist/api/instance/v1/types.gen.d.ts +9 -53
- package/dist/api/instance/v1/types.private.gen.d.ts +1 -3
- package/dist/api/jobs/v1alpha1/api.gen.cjs +13 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +8 -1
- package/dist/api/jobs/v1alpha1/api.gen.js +14 -1
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +11 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +11 -0
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +10 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +2 -2
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +2 -2
- package/dist/api/k8s/v1/api.gen.cjs +0 -16
- package/dist/api/k8s/v1/api.gen.d.ts +1 -9
- package/dist/api/k8s/v1/api.gen.js +0 -16
- package/dist/api/k8s/v1/index.gen.d.ts +1 -1
- package/dist/api/k8s/v1/types.gen.d.ts +0 -9
- package/dist/api/k8s/v1/validation-rules.gen.cjs +8 -16
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +0 -8
- package/dist/api/k8s/v1/validation-rules.gen.js +8 -16
- package/dist/api/mongodb/index.gen.cjs +4 -0
- package/dist/api/mongodb/index.gen.d.ts +5 -0
- package/dist/api/mongodb/index.gen.js +4 -0
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +393 -0
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +203 -0
- package/dist/api/mongodb/v1alpha1/api.gen.js +393 -0
- package/dist/api/mongodb/v1alpha1/content.gen.cjs +16 -0
- package/dist/api/mongodb/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/mongodb/v1alpha1/content.gen.js +16 -0
- package/dist/api/mongodb/v1alpha1/index.gen.cjs +9 -0
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/mongodb/v1alpha1/index.gen.js +9 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +327 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +19 -0
- package/dist/api/mongodb/v1alpha1/marshalling.gen.js +327 -0
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +461 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +147 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +134 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +147 -0
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +1 -1
- package/dist/index.cjs +16 -14
- package/dist/index.js +16 -14
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import type { Region } from '../../../bridge';
|
|
2
|
+
export type InstanceStatus = 'unknown_status' | 'ready' | 'provisioning' | 'configuring' | 'deleting' | 'error' | 'initializing' | 'locked' | 'snapshotting';
|
|
3
|
+
export type ListInstancesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc';
|
|
4
|
+
export type ListSnapshotsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'expires_at_asc' | 'expires_at_desc';
|
|
5
|
+
export type ListUsersRequestOrderBy = 'name_asc' | 'name_desc';
|
|
6
|
+
export type NodeTypeStock = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
|
|
7
|
+
export type SettingPropertyType = 'BOOLEAN' | 'INT' | 'STRING' | 'FLOAT';
|
|
8
|
+
export type SnapshotStatus = 'unknown_status' | 'creating' | 'ready' | 'restoring' | 'deleting' | 'error' | 'locked';
|
|
9
|
+
export type VolumeType = 'unknown_type' | 'sbs_5k' | 'sbs_15k';
|
|
10
|
+
/** Private Network details. */
|
|
11
|
+
export interface EndpointPrivateNetworkDetails {
|
|
12
|
+
/** UUID of the private network. */
|
|
13
|
+
privateNetworkId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface EndpointPublicDetails {
|
|
16
|
+
}
|
|
17
|
+
export interface EndpointSpecPrivateNetworkDetails {
|
|
18
|
+
/** UUID of the private network. */
|
|
19
|
+
privateNetworkId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface EndpointSpecPublicDetails {
|
|
22
|
+
}
|
|
23
|
+
export interface Endpoint {
|
|
24
|
+
/** UUID of the endpoint. */
|
|
25
|
+
id: string;
|
|
26
|
+
/** List of IPv4 addresses of the endpoint. */
|
|
27
|
+
ips: string[];
|
|
28
|
+
/** List of DNS records of the endpoint. */
|
|
29
|
+
dnsRecords: string[];
|
|
30
|
+
/** TCP port of the endpoint. */
|
|
31
|
+
port: number;
|
|
32
|
+
/**
|
|
33
|
+
* Private Network endpoint details.
|
|
34
|
+
*
|
|
35
|
+
* One-of ('details'): at most one of 'privateNetwork', 'public' could be set.
|
|
36
|
+
*/
|
|
37
|
+
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
38
|
+
/**
|
|
39
|
+
* Public endpoint details.
|
|
40
|
+
*
|
|
41
|
+
* One-of ('details'): at most one of 'privateNetwork', 'public' could be set.
|
|
42
|
+
*/
|
|
43
|
+
public?: EndpointPublicDetails;
|
|
44
|
+
}
|
|
45
|
+
export interface InstanceSetting {
|
|
46
|
+
/** Name of the settings. */
|
|
47
|
+
name: string;
|
|
48
|
+
/** Value of the settings. */
|
|
49
|
+
value: string;
|
|
50
|
+
}
|
|
51
|
+
export interface Volume {
|
|
52
|
+
/** Type of volume where data is stored. */
|
|
53
|
+
type: VolumeType;
|
|
54
|
+
/** Volume size. */
|
|
55
|
+
size: number;
|
|
56
|
+
}
|
|
57
|
+
export interface NodeTypeVolumeType {
|
|
58
|
+
/** Volume Type. */
|
|
59
|
+
type: VolumeType;
|
|
60
|
+
/** The description of the Volume. */
|
|
61
|
+
description: string;
|
|
62
|
+
/** Mimimum size required for the Volume. */
|
|
63
|
+
minSize: number;
|
|
64
|
+
/** Maximum size required for the Volume. */
|
|
65
|
+
maxSize: number;
|
|
66
|
+
/** Minimum increment level for a Block Storage volume size. */
|
|
67
|
+
chunkSize: number;
|
|
68
|
+
}
|
|
69
|
+
export interface SnapshotVolumeType {
|
|
70
|
+
type: VolumeType;
|
|
71
|
+
}
|
|
72
|
+
export interface Setting {
|
|
73
|
+
/** Setting name from the database engine. */
|
|
74
|
+
name: string;
|
|
75
|
+
/** Value set when not specified. */
|
|
76
|
+
defaultValue: string;
|
|
77
|
+
/** Setting can be applied without restarting. */
|
|
78
|
+
hotConfigurable: boolean;
|
|
79
|
+
/** Setting description. */
|
|
80
|
+
description: string;
|
|
81
|
+
/** Setting type. */
|
|
82
|
+
propertyType: SettingPropertyType;
|
|
83
|
+
/** Setting base unit. */
|
|
84
|
+
unit?: string;
|
|
85
|
+
/** Validation regex for string type settings. */
|
|
86
|
+
stringConstraint?: string;
|
|
87
|
+
/** Minimum value for int types. */
|
|
88
|
+
intMin?: number;
|
|
89
|
+
/** Maximum value for int types. */
|
|
90
|
+
intMax?: number;
|
|
91
|
+
/** Minimum value for float types. */
|
|
92
|
+
floatMin?: number;
|
|
93
|
+
/** Maximum value for float types. */
|
|
94
|
+
floatMax?: number;
|
|
95
|
+
}
|
|
96
|
+
export interface CreateInstanceRequestVolumeDetails {
|
|
97
|
+
/** Volume size. */
|
|
98
|
+
volumeSize: number;
|
|
99
|
+
/** Type of volume where data is stored. */
|
|
100
|
+
volumeType: VolumeType;
|
|
101
|
+
}
|
|
102
|
+
export interface EndpointSpec {
|
|
103
|
+
/** One-of ('details'): at most one of 'public', 'privateNetwork' could be set. */
|
|
104
|
+
public?: EndpointSpecPublicDetails;
|
|
105
|
+
/** One-of ('details'): at most one of 'public', 'privateNetwork' could be set. */
|
|
106
|
+
privateNetwork?: EndpointSpecPrivateNetworkDetails;
|
|
107
|
+
}
|
|
108
|
+
export interface Instance {
|
|
109
|
+
/** UUID of the Database Instance. */
|
|
110
|
+
id: string;
|
|
111
|
+
/** Name of the Database Instance. */
|
|
112
|
+
name: string;
|
|
113
|
+
/** Project ID the Database Instance belongs to. */
|
|
114
|
+
projectId: string;
|
|
115
|
+
/** Status of the Database Instance. */
|
|
116
|
+
status: InstanceStatus;
|
|
117
|
+
/** MongoDB™ engine version of the Database Instance. */
|
|
118
|
+
version: string;
|
|
119
|
+
/** List of tags applied to the Database Instance. */
|
|
120
|
+
tags: string[];
|
|
121
|
+
/** Advanced settings of the Database Instance. */
|
|
122
|
+
settings: InstanceSetting[];
|
|
123
|
+
/** Number of node in the Database Instance. */
|
|
124
|
+
nodeNumber: number;
|
|
125
|
+
/** Node type of the Database Instance. */
|
|
126
|
+
nodeType: string;
|
|
127
|
+
/** Volumes of the Database Instance. */
|
|
128
|
+
volume?: Volume;
|
|
129
|
+
/** List of Database Instance endpoints. */
|
|
130
|
+
endpoints: Endpoint[];
|
|
131
|
+
/** Creation date (must follow the ISO 8601 format). */
|
|
132
|
+
createdAt?: Date;
|
|
133
|
+
/** Region the Database Instance is in. */
|
|
134
|
+
region: Region;
|
|
135
|
+
}
|
|
136
|
+
export interface NodeType {
|
|
137
|
+
/** Node Type name identifier. */
|
|
138
|
+
name: string;
|
|
139
|
+
/** Current stock status for the Node Type. */
|
|
140
|
+
stockStatus: NodeTypeStock;
|
|
141
|
+
/** Current specs of the offer. */
|
|
142
|
+
description: string;
|
|
143
|
+
/** Number of virtual CPUs. */
|
|
144
|
+
vcpus: number;
|
|
145
|
+
/** Quantity of RAM. */
|
|
146
|
+
memory: number;
|
|
147
|
+
/** Available storage options for the Node Type. */
|
|
148
|
+
availableVolumeTypes: NodeTypeVolumeType[];
|
|
149
|
+
/** The Node Type is currently disabled. */
|
|
150
|
+
disabled: boolean;
|
|
151
|
+
/** The Node Type is currently in beta. */
|
|
152
|
+
beta: boolean;
|
|
153
|
+
/** Instance range associated with the NodeType offer. */
|
|
154
|
+
instanceRange: string;
|
|
155
|
+
}
|
|
156
|
+
export interface Snapshot {
|
|
157
|
+
/** UUID of the snapshot. */
|
|
158
|
+
id: string;
|
|
159
|
+
/** UUID of the Database Instance. */
|
|
160
|
+
instanceId: string;
|
|
161
|
+
/** Name of the snapshot. */
|
|
162
|
+
name: string;
|
|
163
|
+
/** Status of the snapshot. */
|
|
164
|
+
status: SnapshotStatus;
|
|
165
|
+
/** Size of the snapshot. */
|
|
166
|
+
size: number;
|
|
167
|
+
/** Expiration date (must follow the ISO 8601 format). */
|
|
168
|
+
expiresAt?: Date;
|
|
169
|
+
/** Creation date (must follow the ISO 8601 format). */
|
|
170
|
+
createdAt?: Date;
|
|
171
|
+
/** Updated date (must follow the ISO 8601 format). */
|
|
172
|
+
updatedAt?: Date;
|
|
173
|
+
/** Name of the Database Instance of the snapshot. */
|
|
174
|
+
instanceName: string;
|
|
175
|
+
/** Source node type. */
|
|
176
|
+
nodeType: string;
|
|
177
|
+
/** Type of volume where data is stored sbs_5k or sbs_15k. */
|
|
178
|
+
volumeType?: SnapshotVolumeType;
|
|
179
|
+
/** Region of this snapshot. */
|
|
180
|
+
region: Region;
|
|
181
|
+
}
|
|
182
|
+
export interface User {
|
|
183
|
+
/**
|
|
184
|
+
* Name of the user (Length must be between 1 and 63 characters. First
|
|
185
|
+
* character must be an alphabet character (a-zA-Z). Only a-zA-Z0-9_$-
|
|
186
|
+
* characters are accepted).
|
|
187
|
+
*/
|
|
188
|
+
name: string;
|
|
189
|
+
}
|
|
190
|
+
export interface Version {
|
|
191
|
+
/** MongoDB™ engine version. */
|
|
192
|
+
version: string;
|
|
193
|
+
/** Date of End of Life. */
|
|
194
|
+
endOfLifeAt?: Date;
|
|
195
|
+
/** Instance settings available to be updated. */
|
|
196
|
+
availableSettings: Setting[];
|
|
197
|
+
}
|
|
198
|
+
export interface RestoreSnapshotRequestVolumeDetails {
|
|
199
|
+
/** Type of volume where data is stored. */
|
|
200
|
+
volumeType: VolumeType;
|
|
201
|
+
}
|
|
202
|
+
export type CreateInstanceRequest = {
|
|
203
|
+
/**
|
|
204
|
+
* Region to target. If none is passed will use default region from the
|
|
205
|
+
* config.
|
|
206
|
+
*/
|
|
207
|
+
region?: Region;
|
|
208
|
+
/** The Project ID on which the Database Instance will be created. */
|
|
209
|
+
projectId?: string;
|
|
210
|
+
/** Name of the Database Instance. */
|
|
211
|
+
name?: string;
|
|
212
|
+
/** Version of the MongoDB™ engine. */
|
|
213
|
+
version: string;
|
|
214
|
+
/** Tags to apply to the Database Instance. */
|
|
215
|
+
tags?: string[];
|
|
216
|
+
/** Number of node to use for the Database Instance. */
|
|
217
|
+
nodeNumber: number;
|
|
218
|
+
/** Type of node to use for the Database Instance. */
|
|
219
|
+
nodeType: string;
|
|
220
|
+
/** Username created when the Database Instance is created. */
|
|
221
|
+
userName: string;
|
|
222
|
+
/** Password of the initial user. */
|
|
223
|
+
password: string;
|
|
224
|
+
/** Instance volume information. */
|
|
225
|
+
volume?: CreateInstanceRequestVolumeDetails;
|
|
226
|
+
/** One or multiple EndpointSpec used to expose your Database Instance. */
|
|
227
|
+
endpoints?: EndpointSpec[];
|
|
228
|
+
};
|
|
229
|
+
export type CreateSnapshotRequest = {
|
|
230
|
+
/**
|
|
231
|
+
* Region to target. If none is passed will use default region from the
|
|
232
|
+
* config.
|
|
233
|
+
*/
|
|
234
|
+
region?: Region;
|
|
235
|
+
/** UUID of the Database Instance to snapshot. */
|
|
236
|
+
instanceId: string;
|
|
237
|
+
/** Name of the snapshot. */
|
|
238
|
+
name: string;
|
|
239
|
+
/** Expiration date of the snapshot (must follow the ISO 8601 format). */
|
|
240
|
+
expiresAt?: Date;
|
|
241
|
+
};
|
|
242
|
+
export type DeleteInstanceRequest = {
|
|
243
|
+
/**
|
|
244
|
+
* Region to target. If none is passed will use default region from the
|
|
245
|
+
* config.
|
|
246
|
+
*/
|
|
247
|
+
region?: Region;
|
|
248
|
+
/** UUID of the Database Instance to delete. */
|
|
249
|
+
instanceId: string;
|
|
250
|
+
};
|
|
251
|
+
export type DeleteSnapshotRequest = {
|
|
252
|
+
/**
|
|
253
|
+
* Region to target. If none is passed will use default region from the
|
|
254
|
+
* config.
|
|
255
|
+
*/
|
|
256
|
+
region?: Region;
|
|
257
|
+
/** UUID of the snapshot. */
|
|
258
|
+
snapshotId: string;
|
|
259
|
+
};
|
|
260
|
+
export type GetInstanceCertificateRequest = {
|
|
261
|
+
/**
|
|
262
|
+
* Region to target. If none is passed will use default region from the
|
|
263
|
+
* config.
|
|
264
|
+
*/
|
|
265
|
+
region?: Region;
|
|
266
|
+
/** UUID of the Database Instance. */
|
|
267
|
+
instanceId: string;
|
|
268
|
+
};
|
|
269
|
+
export type GetInstanceRequest = {
|
|
270
|
+
/**
|
|
271
|
+
* Region to target. If none is passed will use default region from the
|
|
272
|
+
* config.
|
|
273
|
+
*/
|
|
274
|
+
region?: Region;
|
|
275
|
+
/** UUID of the Database Instance. */
|
|
276
|
+
instanceId: string;
|
|
277
|
+
};
|
|
278
|
+
export type GetSnapshotRequest = {
|
|
279
|
+
/**
|
|
280
|
+
* Region to target. If none is passed will use default region from the
|
|
281
|
+
* config.
|
|
282
|
+
*/
|
|
283
|
+
region?: Region;
|
|
284
|
+
/** UUID of the snapshot. */
|
|
285
|
+
snapshotId: string;
|
|
286
|
+
};
|
|
287
|
+
export type ListInstancesRequest = {
|
|
288
|
+
/**
|
|
289
|
+
* Region to target. If none is passed will use default region from the
|
|
290
|
+
* config.
|
|
291
|
+
*/
|
|
292
|
+
region?: Region;
|
|
293
|
+
/** List Database Instances that have a given tag. */
|
|
294
|
+
tags?: string[];
|
|
295
|
+
/** Lists Database Instances that match a name pattern. */
|
|
296
|
+
name?: string;
|
|
297
|
+
/** Criteria to use when ordering Database Instance listings. */
|
|
298
|
+
orderBy?: ListInstancesRequestOrderBy;
|
|
299
|
+
/** Organization ID the Database Instance belongs to. */
|
|
300
|
+
organizationId?: string;
|
|
301
|
+
/** Project ID to list the Database Instance of. */
|
|
302
|
+
projectId?: string;
|
|
303
|
+
page?: number;
|
|
304
|
+
pageSize?: number;
|
|
305
|
+
};
|
|
306
|
+
export interface ListInstancesResponse {
|
|
307
|
+
/** List of all Database Instances available in an Organization or Project. */
|
|
308
|
+
instances: Instance[];
|
|
309
|
+
/** Total count of Database Instances available in a Organization or Project. */
|
|
310
|
+
totalCount: number;
|
|
311
|
+
}
|
|
312
|
+
export type ListNodeTypesRequest = {
|
|
313
|
+
/**
|
|
314
|
+
* Region to target. If none is passed will use default region from the
|
|
315
|
+
* config.
|
|
316
|
+
*/
|
|
317
|
+
region?: Region;
|
|
318
|
+
/** Defines whether or not to include disabled types. */
|
|
319
|
+
includeDisabledTypes?: boolean;
|
|
320
|
+
page?: number;
|
|
321
|
+
pageSize?: number;
|
|
322
|
+
};
|
|
323
|
+
export interface ListNodeTypesResponse {
|
|
324
|
+
/** Types of the node. */
|
|
325
|
+
nodeTypes: NodeType[];
|
|
326
|
+
/** Total count of node-types available. */
|
|
327
|
+
totalCount: number;
|
|
328
|
+
}
|
|
329
|
+
export type ListSnapshotsRequest = {
|
|
330
|
+
/**
|
|
331
|
+
* Region to target. If none is passed will use default region from the
|
|
332
|
+
* config.
|
|
333
|
+
*/
|
|
334
|
+
region?: Region;
|
|
335
|
+
/** Instance ID the snapshots belongs to. */
|
|
336
|
+
instanceId?: string;
|
|
337
|
+
/** Lists Database snapshots that match a name pattern. */
|
|
338
|
+
name?: string;
|
|
339
|
+
/** Criteria to use when ordering snapshot listings. */
|
|
340
|
+
orderBy?: ListSnapshotsRequestOrderBy;
|
|
341
|
+
/** Organization ID the snapshots belongs to. */
|
|
342
|
+
organizationId?: string;
|
|
343
|
+
/** Project ID to list the snapshots of. */
|
|
344
|
+
projectId?: string;
|
|
345
|
+
page?: number;
|
|
346
|
+
pageSize?: number;
|
|
347
|
+
};
|
|
348
|
+
export interface ListSnapshotsResponse {
|
|
349
|
+
/** List of all Database Snapshots available in an Organization or Project. */
|
|
350
|
+
snapshots: Snapshot[];
|
|
351
|
+
/** Total count of Database Snapshots available in a Organization or Project. */
|
|
352
|
+
totalCount: number;
|
|
353
|
+
}
|
|
354
|
+
export type ListUsersRequest = {
|
|
355
|
+
/**
|
|
356
|
+
* Region to target. If none is passed will use default region from the
|
|
357
|
+
* config.
|
|
358
|
+
*/
|
|
359
|
+
region?: Region;
|
|
360
|
+
/** UUID of the Database Instance. */
|
|
361
|
+
instanceId: string;
|
|
362
|
+
/** Name of the user. */
|
|
363
|
+
name?: string;
|
|
364
|
+
/** Criteria to use when requesting user listing. */
|
|
365
|
+
orderBy?: ListUsersRequestOrderBy;
|
|
366
|
+
page?: number;
|
|
367
|
+
pageSize?: number;
|
|
368
|
+
};
|
|
369
|
+
export interface ListUsersResponse {
|
|
370
|
+
/** List of users in a Database Instance. */
|
|
371
|
+
users: User[];
|
|
372
|
+
/** Total count of users present on a Database Instance. */
|
|
373
|
+
totalCount: number;
|
|
374
|
+
}
|
|
375
|
+
export type ListVersionsRequest = {
|
|
376
|
+
/**
|
|
377
|
+
* Region to target. If none is passed will use default region from the
|
|
378
|
+
* config.
|
|
379
|
+
*/
|
|
380
|
+
region?: Region;
|
|
381
|
+
version?: string;
|
|
382
|
+
page?: number;
|
|
383
|
+
pageSize?: number;
|
|
384
|
+
};
|
|
385
|
+
export interface ListVersionsResponse {
|
|
386
|
+
/** Available MongoDB™ engine version. */
|
|
387
|
+
versions: Version[];
|
|
388
|
+
/** Total count of MongoDB™ engine version available. */
|
|
389
|
+
totalCount: number;
|
|
390
|
+
}
|
|
391
|
+
export type RestoreSnapshotRequest = {
|
|
392
|
+
/**
|
|
393
|
+
* Region to target. If none is passed will use default region from the
|
|
394
|
+
* config.
|
|
395
|
+
*/
|
|
396
|
+
region?: Region;
|
|
397
|
+
/** UUID of the snapshot. */
|
|
398
|
+
snapshotId: string;
|
|
399
|
+
/** Name of the new Database Instance. */
|
|
400
|
+
instanceName: string;
|
|
401
|
+
/** Node type to use for the new Database Instance. */
|
|
402
|
+
nodeType: string;
|
|
403
|
+
/** Number of nodes to use for the new Database Instance. */
|
|
404
|
+
nodeNumber: number;
|
|
405
|
+
/** Instance volume information. */
|
|
406
|
+
volume: RestoreSnapshotRequestVolumeDetails;
|
|
407
|
+
};
|
|
408
|
+
export type UpdateInstanceRequest = {
|
|
409
|
+
/**
|
|
410
|
+
* Region to target. If none is passed will use default region from the
|
|
411
|
+
* config.
|
|
412
|
+
*/
|
|
413
|
+
region?: Region;
|
|
414
|
+
/** UUID of the Database Instance to update. */
|
|
415
|
+
instanceId: string;
|
|
416
|
+
/** Name of the Database Instance. */
|
|
417
|
+
name?: string;
|
|
418
|
+
/** Tags of a Database Instance. */
|
|
419
|
+
tags?: string[];
|
|
420
|
+
};
|
|
421
|
+
export type UpdateSnapshotRequest = {
|
|
422
|
+
/**
|
|
423
|
+
* Region to target. If none is passed will use default region from the
|
|
424
|
+
* config.
|
|
425
|
+
*/
|
|
426
|
+
region?: Region;
|
|
427
|
+
/** UUID of the Snapshot. */
|
|
428
|
+
snapshotId: string;
|
|
429
|
+
/** Name of the snapshot. */
|
|
430
|
+
name?: string;
|
|
431
|
+
/** Expiration date of the snapshot (must follow the ISO 8601 format). */
|
|
432
|
+
expiresAt?: Date;
|
|
433
|
+
};
|
|
434
|
+
export type UpdateUserRequest = {
|
|
435
|
+
/**
|
|
436
|
+
* Region to target. If none is passed will use default region from the
|
|
437
|
+
* config.
|
|
438
|
+
*/
|
|
439
|
+
region?: Region;
|
|
440
|
+
/** UUID of the Database Instance the user belongs to. */
|
|
441
|
+
instanceId: string;
|
|
442
|
+
/** Name of the database user. */
|
|
443
|
+
name: string;
|
|
444
|
+
/** Password of the database user. */
|
|
445
|
+
password?: string;
|
|
446
|
+
};
|
|
447
|
+
export type UpgradeInstanceRequest = {
|
|
448
|
+
/**
|
|
449
|
+
* Region to target. If none is passed will use default region from the
|
|
450
|
+
* config.
|
|
451
|
+
*/
|
|
452
|
+
region?: Region;
|
|
453
|
+
/** UUID of the Database Instance you want to upgrade. */
|
|
454
|
+
instanceId: string;
|
|
455
|
+
/**
|
|
456
|
+
* Increase your block storage volume size.
|
|
457
|
+
*
|
|
458
|
+
* One-of ('upgradeTarget'): at most one of 'volumeSize' could be set.
|
|
459
|
+
*/
|
|
460
|
+
volumeSize?: number;
|
|
461
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const CreateInstanceRequest = {
|
|
4
|
+
name: {
|
|
5
|
+
maxLength: 255,
|
|
6
|
+
minLength: 1,
|
|
7
|
+
pattern: /^[A-Za-z0-9\-_]+$/
|
|
8
|
+
},
|
|
9
|
+
nodeNumber: {
|
|
10
|
+
greaterThanOrEqual: 1,
|
|
11
|
+
lessThanOrEqual: 3
|
|
12
|
+
},
|
|
13
|
+
nodeType: {
|
|
14
|
+
maxLength: 128,
|
|
15
|
+
minLength: 1,
|
|
16
|
+
pattern: /^[A-Za-z0-9\-_]+$/
|
|
17
|
+
},
|
|
18
|
+
password: {
|
|
19
|
+
maxLength: 128,
|
|
20
|
+
minLength: 8
|
|
21
|
+
},
|
|
22
|
+
userName: {
|
|
23
|
+
maxLength: 63,
|
|
24
|
+
minLength: 1,
|
|
25
|
+
pattern: /^[a-zA-Z0-9_\-]*$/
|
|
26
|
+
},
|
|
27
|
+
version: {
|
|
28
|
+
pattern: /^[0-9]+\.[0-9]+\.[0-9]+$/
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const CreateSnapshotRequest = {
|
|
32
|
+
name: {
|
|
33
|
+
maxLength: 255,
|
|
34
|
+
minLength: 1,
|
|
35
|
+
pattern: /^[A-Za-z0-9\-_]+$/
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const ListInstancesRequest = {
|
|
39
|
+
name: {
|
|
40
|
+
maxLength: 255,
|
|
41
|
+
minLength: 1,
|
|
42
|
+
pattern: /^[A-Za-z0-9\-_]+$/
|
|
43
|
+
},
|
|
44
|
+
page: {
|
|
45
|
+
greaterThanOrEqual: 1
|
|
46
|
+
},
|
|
47
|
+
pageSize: {
|
|
48
|
+
greaterThanOrEqual: 1,
|
|
49
|
+
lessThanOrEqual: 100
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const ListNodeTypesRequest = {
|
|
53
|
+
page: {
|
|
54
|
+
greaterThanOrEqual: 1
|
|
55
|
+
},
|
|
56
|
+
pageSize: {
|
|
57
|
+
greaterThanOrEqual: 1,
|
|
58
|
+
lessThanOrEqual: 100
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const ListSnapshotsRequest = {
|
|
62
|
+
name: {
|
|
63
|
+
maxLength: 255,
|
|
64
|
+
minLength: 1,
|
|
65
|
+
pattern: /^[A-Za-z0-9\-_]+$/
|
|
66
|
+
},
|
|
67
|
+
page: {
|
|
68
|
+
greaterThanOrEqual: 1
|
|
69
|
+
},
|
|
70
|
+
pageSize: {
|
|
71
|
+
greaterThanOrEqual: 1,
|
|
72
|
+
lessThanOrEqual: 100
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const ListUsersRequest = {
|
|
76
|
+
name: {
|
|
77
|
+
maxLength: 63,
|
|
78
|
+
minLength: 1,
|
|
79
|
+
pattern: /^[a-zA-Z0-9_\-]*$/
|
|
80
|
+
},
|
|
81
|
+
page: {
|
|
82
|
+
greaterThanOrEqual: 1
|
|
83
|
+
},
|
|
84
|
+
pageSize: {
|
|
85
|
+
greaterThanOrEqual: 1,
|
|
86
|
+
lessThanOrEqual: 100
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const ListVersionsRequest = {
|
|
90
|
+
page: {
|
|
91
|
+
greaterThanOrEqual: 1
|
|
92
|
+
},
|
|
93
|
+
pageSize: {
|
|
94
|
+
greaterThanOrEqual: 1,
|
|
95
|
+
lessThanOrEqual: 100
|
|
96
|
+
},
|
|
97
|
+
version: {
|
|
98
|
+
pattern: /^[0-9]+\.[0-9]+\.[0-9]+$/
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const RestoreSnapshotRequest = {
|
|
102
|
+
instanceName: {
|
|
103
|
+
maxLength: 255,
|
|
104
|
+
minLength: 1,
|
|
105
|
+
pattern: /^[A-Za-z0-9\-_]+$/
|
|
106
|
+
},
|
|
107
|
+
nodeNumber: {
|
|
108
|
+
greaterThanOrEqual: 1,
|
|
109
|
+
lessThanOrEqual: 3
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const UpdateInstanceRequest = {
|
|
113
|
+
name: {
|
|
114
|
+
maxLength: 255,
|
|
115
|
+
minLength: 1,
|
|
116
|
+
pattern: /^[A-Za-z0-9\-_]+$/
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
const UpdateSnapshotRequest = {
|
|
120
|
+
name: {
|
|
121
|
+
maxLength: 255,
|
|
122
|
+
minLength: 1,
|
|
123
|
+
pattern: /^[A-Za-z0-9\-_]+$/
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const UpdateUserRequest = {
|
|
127
|
+
name: {
|
|
128
|
+
maxLength: 63,
|
|
129
|
+
minLength: 1,
|
|
130
|
+
pattern: /^[a-zA-Z0-9_\-]*$/
|
|
131
|
+
},
|
|
132
|
+
password: {
|
|
133
|
+
maxLength: 128,
|
|
134
|
+
minLength: 8
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
exports.CreateInstanceRequest = CreateInstanceRequest;
|
|
138
|
+
exports.CreateSnapshotRequest = CreateSnapshotRequest;
|
|
139
|
+
exports.ListInstancesRequest = ListInstancesRequest;
|
|
140
|
+
exports.ListNodeTypesRequest = ListNodeTypesRequest;
|
|
141
|
+
exports.ListSnapshotsRequest = ListSnapshotsRequest;
|
|
142
|
+
exports.ListUsersRequest = ListUsersRequest;
|
|
143
|
+
exports.ListVersionsRequest = ListVersionsRequest;
|
|
144
|
+
exports.RestoreSnapshotRequest = RestoreSnapshotRequest;
|
|
145
|
+
exports.UpdateInstanceRequest = UpdateInstanceRequest;
|
|
146
|
+
exports.UpdateSnapshotRequest = UpdateSnapshotRequest;
|
|
147
|
+
exports.UpdateUserRequest = UpdateUserRequest;
|