@scaleway/sdk-serverless-sqldb 1.0.1

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.
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const DATABASE_TRANSIENT_STATUSES = [
4
+ "creating",
5
+ "deleting",
6
+ "restoring"
7
+ ];
8
+ exports.DATABASE_TRANSIENT_STATUSES = DATABASE_TRANSIENT_STATUSES;
@@ -0,0 +1,3 @@
1
+ import type { DatabaseStatus } from './types.gen';
2
+ /** Lists transient statutes of the enum {@link DatabaseStatus}. */
3
+ export declare const DATABASE_TRANSIENT_STATUSES: DatabaseStatus[];
@@ -0,0 +1,8 @@
1
+ const DATABASE_TRANSIENT_STATUSES = [
2
+ "creating",
3
+ "deleting",
4
+ "restoring"
5
+ ];
6
+ export {
7
+ DATABASE_TRANSIENT_STATUSES
8
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const api_gen = require("./api.gen.cjs");
4
+ const content_gen = require("./content.gen.cjs");
5
+ const marshalling_gen = require("./marshalling.gen.cjs");
6
+ const validationRules_gen = require("./validation-rules.gen.cjs");
7
+ exports.API = api_gen.API;
8
+ exports.DATABASE_TRANSIENT_STATUSES = content_gen.DATABASE_TRANSIENT_STATUSES;
9
+ exports.marshalCreateDatabaseRequest = marshalling_gen.marshalCreateDatabaseRequest;
10
+ exports.marshalRestoreDatabaseFromBackupRequest = marshalling_gen.marshalRestoreDatabaseFromBackupRequest;
11
+ exports.marshalUpdateDatabaseRequest = marshalling_gen.marshalUpdateDatabaseRequest;
12
+ exports.unmarshalDatabase = marshalling_gen.unmarshalDatabase;
13
+ exports.unmarshalDatabaseBackup = marshalling_gen.unmarshalDatabaseBackup;
14
+ exports.unmarshalListDatabaseBackupsResponse = marshalling_gen.unmarshalListDatabaseBackupsResponse;
15
+ exports.unmarshalListDatabasesResponse = marshalling_gen.unmarshalListDatabasesResponse;
16
+ exports.ValidationRules = validationRules_gen;
@@ -0,0 +1,5 @@
1
+ export { API } from './api.gen';
2
+ export * from './content.gen';
3
+ export * from './marshalling.gen';
4
+ export type { CreateDatabaseRequest, Database, DatabaseBackup, DatabaseBackupStatus, DatabaseStatus, DeleteDatabaseRequest, ExportDatabaseBackupRequest, GetDatabaseBackupRequest, GetDatabaseRequest, ListDatabaseBackupsRequest, ListDatabaseBackupsRequestOrderBy, ListDatabaseBackupsResponse, ListDatabasesRequest, ListDatabasesRequestOrderBy, ListDatabasesResponse, RestoreDatabaseFromBackupRequest, UpdateDatabaseRequest, } from './types.gen';
5
+ export * as ValidationRules from './validation-rules.gen';
@@ -0,0 +1,16 @@
1
+ import { API } from "./api.gen.js";
2
+ import { DATABASE_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { marshalCreateDatabaseRequest, marshalRestoreDatabaseFromBackupRequest, marshalUpdateDatabaseRequest, unmarshalDatabase, unmarshalDatabaseBackup, unmarshalListDatabaseBackupsResponse, unmarshalListDatabasesResponse } from "./marshalling.gen.js";
4
+ import * as validationRules_gen from "./validation-rules.gen.js";
5
+ export {
6
+ API,
7
+ DATABASE_TRANSIENT_STATUSES,
8
+ validationRules_gen as ValidationRules,
9
+ marshalCreateDatabaseRequest,
10
+ marshalRestoreDatabaseFromBackupRequest,
11
+ marshalUpdateDatabaseRequest,
12
+ unmarshalDatabase,
13
+ unmarshalDatabaseBackup,
14
+ unmarshalListDatabaseBackupsResponse,
15
+ unmarshalListDatabasesResponse
16
+ };
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const sdkClient = require("@scaleway/sdk-client");
4
+ const unmarshalDatabaseBackup = (data) => {
5
+ if (!sdkClient.isJSONObject(data)) {
6
+ throw new TypeError(
7
+ `Unmarshalling the type 'DatabaseBackup' failed as data isn't a dictionary.`
8
+ );
9
+ }
10
+ return {
11
+ createdAt: sdkClient.unmarshalDate(data.created_at),
12
+ databaseId: data.database_id,
13
+ dbSize: data.db_size,
14
+ downloadUrl: data.download_url,
15
+ downloadUrlExpiresAt: sdkClient.unmarshalDate(data.download_url_expires_at),
16
+ expiresAt: sdkClient.unmarshalDate(data.expires_at),
17
+ id: data.id,
18
+ organizationId: data.organization_id,
19
+ projectId: data.project_id,
20
+ region: data.region,
21
+ size: data.size,
22
+ status: data.status
23
+ };
24
+ };
25
+ const unmarshalDatabase = (data) => {
26
+ if (!sdkClient.isJSONObject(data)) {
27
+ throw new TypeError(
28
+ `Unmarshalling the type 'Database' failed as data isn't a dictionary.`
29
+ );
30
+ }
31
+ return {
32
+ cpuCurrent: data.cpu_current,
33
+ cpuMax: data.cpu_max,
34
+ cpuMin: data.cpu_min,
35
+ createdAt: sdkClient.unmarshalDate(data.created_at),
36
+ endpoint: data.endpoint,
37
+ engineMajorVersion: data.engine_major_version,
38
+ id: data.id,
39
+ name: data.name,
40
+ organizationId: data.organization_id,
41
+ projectId: data.project_id,
42
+ region: data.region,
43
+ started: data.started,
44
+ status: data.status
45
+ };
46
+ };
47
+ const unmarshalListDatabaseBackupsResponse = (data) => {
48
+ if (!sdkClient.isJSONObject(data)) {
49
+ throw new TypeError(
50
+ `Unmarshalling the type 'ListDatabaseBackupsResponse' failed as data isn't a dictionary.`
51
+ );
52
+ }
53
+ return {
54
+ backups: sdkClient.unmarshalArrayOfObject(data.backups, unmarshalDatabaseBackup),
55
+ totalCount: data.total_count
56
+ };
57
+ };
58
+ const unmarshalListDatabasesResponse = (data) => {
59
+ if (!sdkClient.isJSONObject(data)) {
60
+ throw new TypeError(
61
+ `Unmarshalling the type 'ListDatabasesResponse' failed as data isn't a dictionary.`
62
+ );
63
+ }
64
+ return {
65
+ databases: sdkClient.unmarshalArrayOfObject(data.databases, unmarshalDatabase),
66
+ totalCount: data.total_count
67
+ };
68
+ };
69
+ const marshalCreateDatabaseRequest = (request, defaults) => ({
70
+ cpu_max: request.cpuMax,
71
+ cpu_min: request.cpuMin,
72
+ from_backup_id: request.fromBackupId,
73
+ name: request.name,
74
+ project_id: request.projectId ?? defaults.defaultProjectId
75
+ });
76
+ const marshalRestoreDatabaseFromBackupRequest = (request, defaults) => ({
77
+ backup_id: request.backupId
78
+ });
79
+ const marshalUpdateDatabaseRequest = (request, defaults) => ({
80
+ cpu_max: request.cpuMax,
81
+ cpu_min: request.cpuMin
82
+ });
83
+ exports.marshalCreateDatabaseRequest = marshalCreateDatabaseRequest;
84
+ exports.marshalRestoreDatabaseFromBackupRequest = marshalRestoreDatabaseFromBackupRequest;
85
+ exports.marshalUpdateDatabaseRequest = marshalUpdateDatabaseRequest;
86
+ exports.unmarshalDatabase = unmarshalDatabase;
87
+ exports.unmarshalDatabaseBackup = unmarshalDatabaseBackup;
88
+ exports.unmarshalListDatabaseBackupsResponse = unmarshalListDatabaseBackupsResponse;
89
+ exports.unmarshalListDatabasesResponse = unmarshalListDatabasesResponse;
@@ -0,0 +1,9 @@
1
+ import type { DefaultValues } from '@scaleway/sdk-client';
2
+ import type { CreateDatabaseRequest, Database, DatabaseBackup, ListDatabaseBackupsResponse, ListDatabasesResponse, RestoreDatabaseFromBackupRequest, UpdateDatabaseRequest } from './types.gen';
3
+ export declare const unmarshalDatabaseBackup: (data: unknown) => DatabaseBackup;
4
+ export declare const unmarshalDatabase: (data: unknown) => Database;
5
+ export declare const unmarshalListDatabaseBackupsResponse: (data: unknown) => ListDatabaseBackupsResponse;
6
+ export declare const unmarshalListDatabasesResponse: (data: unknown) => ListDatabasesResponse;
7
+ export declare const marshalCreateDatabaseRequest: (request: CreateDatabaseRequest, defaults: DefaultValues) => Record<string, unknown>;
8
+ export declare const marshalRestoreDatabaseFromBackupRequest: (request: RestoreDatabaseFromBackupRequest, defaults: DefaultValues) => Record<string, unknown>;
9
+ export declare const marshalUpdateDatabaseRequest: (request: UpdateDatabaseRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -0,0 +1,89 @@
1
+ import { isJSONObject, unmarshalDate, unmarshalArrayOfObject } from "@scaleway/sdk-client";
2
+ const unmarshalDatabaseBackup = (data) => {
3
+ if (!isJSONObject(data)) {
4
+ throw new TypeError(
5
+ `Unmarshalling the type 'DatabaseBackup' failed as data isn't a dictionary.`
6
+ );
7
+ }
8
+ return {
9
+ createdAt: unmarshalDate(data.created_at),
10
+ databaseId: data.database_id,
11
+ dbSize: data.db_size,
12
+ downloadUrl: data.download_url,
13
+ downloadUrlExpiresAt: unmarshalDate(data.download_url_expires_at),
14
+ expiresAt: unmarshalDate(data.expires_at),
15
+ id: data.id,
16
+ organizationId: data.organization_id,
17
+ projectId: data.project_id,
18
+ region: data.region,
19
+ size: data.size,
20
+ status: data.status
21
+ };
22
+ };
23
+ const unmarshalDatabase = (data) => {
24
+ if (!isJSONObject(data)) {
25
+ throw new TypeError(
26
+ `Unmarshalling the type 'Database' failed as data isn't a dictionary.`
27
+ );
28
+ }
29
+ return {
30
+ cpuCurrent: data.cpu_current,
31
+ cpuMax: data.cpu_max,
32
+ cpuMin: data.cpu_min,
33
+ createdAt: unmarshalDate(data.created_at),
34
+ endpoint: data.endpoint,
35
+ engineMajorVersion: data.engine_major_version,
36
+ id: data.id,
37
+ name: data.name,
38
+ organizationId: data.organization_id,
39
+ projectId: data.project_id,
40
+ region: data.region,
41
+ started: data.started,
42
+ status: data.status
43
+ };
44
+ };
45
+ const unmarshalListDatabaseBackupsResponse = (data) => {
46
+ if (!isJSONObject(data)) {
47
+ throw new TypeError(
48
+ `Unmarshalling the type 'ListDatabaseBackupsResponse' failed as data isn't a dictionary.`
49
+ );
50
+ }
51
+ return {
52
+ backups: unmarshalArrayOfObject(data.backups, unmarshalDatabaseBackup),
53
+ totalCount: data.total_count
54
+ };
55
+ };
56
+ const unmarshalListDatabasesResponse = (data) => {
57
+ if (!isJSONObject(data)) {
58
+ throw new TypeError(
59
+ `Unmarshalling the type 'ListDatabasesResponse' failed as data isn't a dictionary.`
60
+ );
61
+ }
62
+ return {
63
+ databases: unmarshalArrayOfObject(data.databases, unmarshalDatabase),
64
+ totalCount: data.total_count
65
+ };
66
+ };
67
+ const marshalCreateDatabaseRequest = (request, defaults) => ({
68
+ cpu_max: request.cpuMax,
69
+ cpu_min: request.cpuMin,
70
+ from_backup_id: request.fromBackupId,
71
+ name: request.name,
72
+ project_id: request.projectId ?? defaults.defaultProjectId
73
+ });
74
+ const marshalRestoreDatabaseFromBackupRequest = (request, defaults) => ({
75
+ backup_id: request.backupId
76
+ });
77
+ const marshalUpdateDatabaseRequest = (request, defaults) => ({
78
+ cpu_max: request.cpuMax,
79
+ cpu_min: request.cpuMin
80
+ });
81
+ export {
82
+ marshalCreateDatabaseRequest,
83
+ marshalRestoreDatabaseFromBackupRequest,
84
+ marshalUpdateDatabaseRequest,
85
+ unmarshalDatabase,
86
+ unmarshalDatabaseBackup,
87
+ unmarshalListDatabaseBackupsResponse,
88
+ unmarshalListDatabasesResponse
89
+ };
@@ -0,0 +1,287 @@
1
+ import type { Region as ScwRegion } from '@scaleway/sdk-client';
2
+ export type DatabaseBackupStatus = 'unknown_status' | 'error' | 'ready' | 'locked';
3
+ export type DatabaseStatus = 'unknown_status' | 'error' | 'creating' | 'ready' | 'deleting' | 'restoring' | 'locked';
4
+ export type ListDatabaseBackupsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
5
+ export type ListDatabasesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
6
+ export interface DatabaseBackup {
7
+ /**
8
+ * UUID that uniquely identifies a Serverless SQL Database backup.
9
+ */
10
+ id: string;
11
+ /**
12
+ * Status of the Serverless SQL Database backup. One of `unknown_status` | `error` | `ready` | `locked`.
13
+ */
14
+ status: DatabaseBackupStatus;
15
+ /**
16
+ * The ID of your Scaleway organization.
17
+ */
18
+ organizationId: string;
19
+ /**
20
+ * UUID of the Scaleway project.
21
+ */
22
+ projectId: string;
23
+ /**
24
+ * UUID of the source Serverless SQL Database the backup is created from.
25
+ */
26
+ databaseId: string;
27
+ /**
28
+ * Creation date.
29
+ */
30
+ createdAt?: Date;
31
+ /**
32
+ * Expiration date.
33
+ */
34
+ expiresAt?: Date;
35
+ /**
36
+ * Size (in bytes) of the database backup file.
37
+ */
38
+ size?: number;
39
+ /**
40
+ * Size (in bytes) of the database when backup has been done.
41
+ */
42
+ dbSize?: number;
43
+ /**
44
+ * Download URL of the exported database backup.
45
+ */
46
+ downloadUrl?: string;
47
+ /**
48
+ * Expiration date of the download URL.
49
+ */
50
+ downloadUrlExpiresAt?: Date;
51
+ /**
52
+ * Region of the database backup.
53
+ */
54
+ region: ScwRegion;
55
+ }
56
+ export interface Database {
57
+ /**
58
+ * UUID that uniquely identifies your Serverless SQL DB Database.
59
+ */
60
+ id: string;
61
+ /**
62
+ * Name of the database.
63
+ */
64
+ name: string;
65
+ /**
66
+ * Status of the Serverless SQL Ddatabase. One of `unknown_status` | `ready` | `creating` | `deleting` | `error` | `restoring` | `locked`.
67
+ */
68
+ status: DatabaseStatus;
69
+ /**
70
+ * Endpoint of the database.
71
+ */
72
+ endpoint: string;
73
+ /**
74
+ * The ID of your Scaleway organization.
75
+ */
76
+ organizationId: string;
77
+ /**
78
+ * Project ID the database belongs to.
79
+ */
80
+ projectId: string;
81
+ /**
82
+ * Region of the database.
83
+ */
84
+ region: ScwRegion;
85
+ /**
86
+ * Creation date.
87
+ */
88
+ createdAt?: Date;
89
+ /**
90
+ * The minimum number of CPU units for your Serverless SQL Database.
91
+ */
92
+ cpuMin: number;
93
+ /**
94
+ * The maximum number of CPU units for your Serverless SQL Database.
95
+ */
96
+ cpuMax: number;
97
+ /**
98
+ * The current number of CPU units allocated to your Serverless SQL Database.
99
+ */
100
+ cpuCurrent: number;
101
+ /**
102
+ * Whether your Serverless SQL Database is running or not.
103
+ */
104
+ started: boolean;
105
+ /**
106
+ * The major version of the underlying database engine.
107
+ */
108
+ engineMajorVersion: number;
109
+ }
110
+ export type CreateDatabaseRequest = {
111
+ /**
112
+ * Region to target. If none is passed will use default region from the config.
113
+ */
114
+ region?: ScwRegion;
115
+ /**
116
+ * The ID of your Scaleway project.
117
+ */
118
+ projectId?: string;
119
+ /**
120
+ * The name of the Serverless SQL Database to be created.
121
+ */
122
+ name: string;
123
+ /**
124
+ * The minimum number of CPU units for your Serverless SQL Database.
125
+ */
126
+ cpuMin: number;
127
+ /**
128
+ * The maximum number of CPU units for your Serverless SQL Database.
129
+ */
130
+ cpuMax: number;
131
+ /**
132
+ * The ID of the backup to create the database from.
133
+ */
134
+ fromBackupId?: string;
135
+ };
136
+ export type DeleteDatabaseRequest = {
137
+ /**
138
+ * Region to target. If none is passed will use default region from the config.
139
+ */
140
+ region?: ScwRegion;
141
+ /**
142
+ * UUID of the Serverless SQL Database.
143
+ */
144
+ databaseId: string;
145
+ };
146
+ export type ExportDatabaseBackupRequest = {
147
+ /**
148
+ * Region to target. If none is passed will use default region from the config.
149
+ */
150
+ region?: ScwRegion;
151
+ /**
152
+ * UUID of the Serverless SQL Database backup.
153
+ */
154
+ backupId: string;
155
+ };
156
+ export type GetDatabaseBackupRequest = {
157
+ /**
158
+ * Region to target. If none is passed will use default region from the config.
159
+ */
160
+ region?: ScwRegion;
161
+ /**
162
+ * UUID of the Serverless SQL Database backup.
163
+ */
164
+ backupId: string;
165
+ };
166
+ export type GetDatabaseRequest = {
167
+ /**
168
+ * Region to target. If none is passed will use default region from the config.
169
+ */
170
+ region?: ScwRegion;
171
+ /**
172
+ * UUID of the Serverless SQL DB database.
173
+ */
174
+ databaseId: string;
175
+ };
176
+ export type ListDatabaseBackupsRequest = {
177
+ /**
178
+ * Region to target. If none is passed will use default region from the config.
179
+ */
180
+ region?: ScwRegion;
181
+ /**
182
+ * Filter by the UUID of the Scaleway organization.
183
+ */
184
+ organizationId?: string;
185
+ /**
186
+ * Filter by the UUID of the Scaleway project.
187
+ */
188
+ projectId?: string;
189
+ /**
190
+ * Filter by the UUID of the Serverless SQL Database.
191
+ */
192
+ databaseId: string;
193
+ /**
194
+ * Page number.
195
+ */
196
+ page?: number;
197
+ /**
198
+ * Page size.
199
+ */
200
+ pageSize?: number;
201
+ /**
202
+ * Sorting criteria. One of `created_at_asc`, `created_at_desc`.
203
+ */
204
+ orderBy?: ListDatabaseBackupsRequestOrderBy;
205
+ };
206
+ export interface ListDatabaseBackupsResponse {
207
+ /**
208
+ * List of the backups.
209
+ */
210
+ backups: DatabaseBackup[];
211
+ /**
212
+ * Length of the backups list.
213
+ */
214
+ totalCount: number;
215
+ }
216
+ export type ListDatabasesRequest = {
217
+ /**
218
+ * Region to target. If none is passed will use default region from the config.
219
+ */
220
+ region?: ScwRegion;
221
+ /**
222
+ * Filter by the UUID of the Scaleway organization.
223
+ */
224
+ organizationId?: string;
225
+ /**
226
+ * UUID of the Scaleway project.
227
+ */
228
+ projectId?: string;
229
+ /**
230
+ * Page number.
231
+ */
232
+ page?: number;
233
+ /**
234
+ * Page size.
235
+ */
236
+ pageSize?: number;
237
+ /**
238
+ * Filter by the name of the database.
239
+ */
240
+ name?: string;
241
+ /**
242
+ * Sorting criteria. One of `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc`.
243
+ */
244
+ orderBy?: ListDatabasesRequestOrderBy;
245
+ };
246
+ export interface ListDatabasesResponse {
247
+ /**
248
+ * List of the databases.
249
+ */
250
+ databases: Database[];
251
+ /**
252
+ * Total count of Serverless SQL Databases.
253
+ */
254
+ totalCount: number;
255
+ }
256
+ export type RestoreDatabaseFromBackupRequest = {
257
+ /**
258
+ * Region to target. If none is passed will use default region from the config.
259
+ */
260
+ region?: ScwRegion;
261
+ /**
262
+ * UUID of the Serverless SQL Database.
263
+ */
264
+ databaseId: string;
265
+ /**
266
+ * UUID of the Serverless SQL Database backup to restore.
267
+ */
268
+ backupId: string;
269
+ };
270
+ export type UpdateDatabaseRequest = {
271
+ /**
272
+ * Region to target. If none is passed will use default region from the config.
273
+ */
274
+ region?: ScwRegion;
275
+ /**
276
+ * UUID of the Serverless SQL Database.
277
+ */
278
+ databaseId: string;
279
+ /**
280
+ * The minimum number of CPU units for your Serverless SQL Database.
281
+ */
282
+ cpuMin?: number;
283
+ /**
284
+ * The maximum number of CPU units for your Serverless SQL Database.
285
+ */
286
+ cpuMax?: number;
287
+ };
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const CreateDatabaseRequest = {
4
+ cpuMax: {
5
+ greaterThanOrEqual: 1,
6
+ lessThanOrEqual: 15
7
+ },
8
+ cpuMin: {
9
+ lessThanOrEqual: 15
10
+ },
11
+ fromBackupId: {
12
+ ignoreEmpty: true
13
+ },
14
+ name: {
15
+ maxLength: 63,
16
+ minLength: 1
17
+ }
18
+ };
19
+ const Database = {
20
+ cpuCurrent: {
21
+ lessThanOrEqual: 15
22
+ },
23
+ cpuMax: {
24
+ greaterThanOrEqual: 1,
25
+ lessThanOrEqual: 15
26
+ },
27
+ cpuMin: {
28
+ lessThanOrEqual: 15
29
+ }
30
+ };
31
+ const ListDatabaseBackupsRequest = {
32
+ page: {
33
+ greaterThanOrEqual: 1
34
+ },
35
+ pageSize: {
36
+ greaterThanOrEqual: 1,
37
+ lessThanOrEqual: 1e3
38
+ }
39
+ };
40
+ const ListDatabasesRequest = {
41
+ page: {
42
+ greaterThanOrEqual: 1
43
+ },
44
+ pageSize: {
45
+ greaterThanOrEqual: 1,
46
+ lessThanOrEqual: 1e3
47
+ }
48
+ };
49
+ const UpdateDatabaseRequest = {
50
+ cpuMax: {
51
+ greaterThanOrEqual: 1,
52
+ lessThanOrEqual: 15
53
+ },
54
+ cpuMin: {
55
+ lessThanOrEqual: 15
56
+ }
57
+ };
58
+ exports.CreateDatabaseRequest = CreateDatabaseRequest;
59
+ exports.Database = Database;
60
+ exports.ListDatabaseBackupsRequest = ListDatabaseBackupsRequest;
61
+ exports.ListDatabasesRequest = ListDatabasesRequest;
62
+ exports.UpdateDatabaseRequest = UpdateDatabaseRequest;
@@ -0,0 +1,55 @@
1
+ export declare const CreateDatabaseRequest: {
2
+ cpuMax: {
3
+ greaterThanOrEqual: number;
4
+ lessThanOrEqual: number;
5
+ };
6
+ cpuMin: {
7
+ lessThanOrEqual: number;
8
+ };
9
+ fromBackupId: {
10
+ ignoreEmpty: boolean;
11
+ };
12
+ name: {
13
+ maxLength: number;
14
+ minLength: number;
15
+ };
16
+ };
17
+ export declare const Database: {
18
+ cpuCurrent: {
19
+ lessThanOrEqual: number;
20
+ };
21
+ cpuMax: {
22
+ greaterThanOrEqual: number;
23
+ lessThanOrEqual: number;
24
+ };
25
+ cpuMin: {
26
+ lessThanOrEqual: number;
27
+ };
28
+ };
29
+ export declare const ListDatabaseBackupsRequest: {
30
+ page: {
31
+ greaterThanOrEqual: number;
32
+ };
33
+ pageSize: {
34
+ greaterThanOrEqual: number;
35
+ lessThanOrEqual: number;
36
+ };
37
+ };
38
+ export declare const ListDatabasesRequest: {
39
+ page: {
40
+ greaterThanOrEqual: number;
41
+ };
42
+ pageSize: {
43
+ greaterThanOrEqual: number;
44
+ lessThanOrEqual: number;
45
+ };
46
+ };
47
+ export declare const UpdateDatabaseRequest: {
48
+ cpuMax: {
49
+ greaterThanOrEqual: number;
50
+ lessThanOrEqual: number;
51
+ };
52
+ cpuMin: {
53
+ lessThanOrEqual: number;
54
+ };
55
+ };