@forteplatforms/sdk 1.0.301 → 1.0.322

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.
@@ -49,10 +49,12 @@ import { type GetContentDownloadLinkResponse } from '../models/GetContentDownloa
49
49
  import { type ImpersonationTokenResponse } from '../models/ImpersonationTokenResponse';
50
50
  import { type ListContentResponse } from '../models/ListContentResponse';
51
51
  import { type ListCustomDomainsResponse } from '../models/ListCustomDomainsResponse';
52
+ import { type ListManagedDatabaseSlowQueriesResponse } from '../models/ListManagedDatabaseSlowQueriesResponse';
52
53
  import { type ListManagedDatabaseUsersResponse } from '../models/ListManagedDatabaseUsersResponse';
53
54
  import { type ListManagedDatabasesResponse } from '../models/ListManagedDatabasesResponse';
54
55
  import { type ListSessionsResponse } from '../models/ListSessionsResponse';
55
56
  import { type ManagedDatabaseConnection } from '../models/ManagedDatabaseConnection';
57
+ import { type ManagedDatabaseMetricsResponse } from '../models/ManagedDatabaseMetricsResponse';
56
58
  import { type ManagedDatabaseObject } from '../models/ManagedDatabaseObject';
57
59
  import { type NotificationTemplatesResponse } from '../models/NotificationTemplatesResponse';
58
60
  import { type PaginatedResponseActionInvocationObject } from '../models/PaginatedResponseActionInvocationObject';
@@ -313,6 +315,11 @@ export interface GetManagedDatabaseRequest {
313
315
  projectId: string;
314
316
  databaseId: string;
315
317
  }
318
+ export interface GetManagedDatabaseMetricsRequest {
319
+ projectId: string;
320
+ databaseId: string;
321
+ rangeHours?: number;
322
+ }
316
323
  export interface GetNotificationTemplatesRequest {
317
324
  projectId: string;
318
325
  }
@@ -418,6 +425,12 @@ export interface ListLogLinesRequest {
418
425
  level?: string;
419
426
  nextToken?: string;
420
427
  }
428
+ export interface ListManagedDatabaseSlowQueriesRequest {
429
+ projectId: string;
430
+ databaseId: string;
431
+ page?: number;
432
+ pageSize?: number;
433
+ }
421
434
  export interface ListManagedDatabaseUsersRequest {
422
435
  projectId: string;
423
436
  databaseId: string;
@@ -1217,6 +1230,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
1217
1230
  /**
1218
1231
  */
1219
1232
  getManagedDatabase(requestParameters: GetManagedDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedDatabaseObject>;
1233
+ /**
1234
+ * Creates request options for getManagedDatabaseMetrics without sending the request
1235
+ */
1236
+ getManagedDatabaseMetricsRequestOpts(requestParameters: GetManagedDatabaseMetricsRequest): Promise<runtime.RequestOpts>;
1237
+ /**
1238
+ */
1239
+ getManagedDatabaseMetricsRaw(requestParameters: GetManagedDatabaseMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagedDatabaseMetricsResponse>>;
1240
+ /**
1241
+ */
1242
+ getManagedDatabaseMetrics(requestParameters: GetManagedDatabaseMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedDatabaseMetricsResponse>;
1220
1243
  /**
1221
1244
  * Creates request options for getNotificationTemplates without sending the request
1222
1245
  */
@@ -1417,6 +1440,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
1417
1440
  /**
1418
1441
  */
1419
1442
  listLogLines(requestParameters: ListLogLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseLogLineObject>;
1443
+ /**
1444
+ * Creates request options for listManagedDatabaseSlowQueries without sending the request
1445
+ */
1446
+ listManagedDatabaseSlowQueriesRequestOpts(requestParameters: ListManagedDatabaseSlowQueriesRequest): Promise<runtime.RequestOpts>;
1447
+ /**
1448
+ */
1449
+ listManagedDatabaseSlowQueriesRaw(requestParameters: ListManagedDatabaseSlowQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListManagedDatabaseSlowQueriesResponse>>;
1450
+ /**
1451
+ */
1452
+ listManagedDatabaseSlowQueries(requestParameters: ListManagedDatabaseSlowQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListManagedDatabaseSlowQueriesResponse>;
1420
1453
  /**
1421
1454
  * Creates request options for listManagedDatabaseUsers without sending the request
1422
1455
  */
@@ -105,10 +105,12 @@ var GetContentDownloadLinkResponse_1 = require("../models/GetContentDownloadLink
105
105
  var ImpersonationTokenResponse_1 = require("../models/ImpersonationTokenResponse");
106
106
  var ListContentResponse_1 = require("../models/ListContentResponse");
107
107
  var ListCustomDomainsResponse_1 = require("../models/ListCustomDomainsResponse");
108
+ var ListManagedDatabaseSlowQueriesResponse_1 = require("../models/ListManagedDatabaseSlowQueriesResponse");
108
109
  var ListManagedDatabaseUsersResponse_1 = require("../models/ListManagedDatabaseUsersResponse");
109
110
  var ListManagedDatabasesResponse_1 = require("../models/ListManagedDatabasesResponse");
110
111
  var ListSessionsResponse_1 = require("../models/ListSessionsResponse");
111
112
  var ManagedDatabaseConnection_1 = require("../models/ManagedDatabaseConnection");
113
+ var ManagedDatabaseMetricsResponse_1 = require("../models/ManagedDatabaseMetricsResponse");
112
114
  var ManagedDatabaseObject_1 = require("../models/ManagedDatabaseObject");
113
115
  var NotificationTemplatesResponse_1 = require("../models/NotificationTemplatesResponse");
114
116
  var PaginatedResponseActionInvocationObject_1 = require("../models/PaginatedResponseActionInvocationObject");
@@ -3012,6 +3014,70 @@ var ProjectsServerApi = /** @class */ (function (_super) {
3012
3014
  });
3013
3015
  });
3014
3016
  };
3017
+ /**
3018
+ * Creates request options for getManagedDatabaseMetrics without sending the request
3019
+ */
3020
+ ProjectsServerApi.prototype.getManagedDatabaseMetricsRequestOpts = function (requestParameters) {
3021
+ return __awaiter(this, void 0, void 0, function () {
3022
+ var queryParameters, headerParameters, urlPath;
3023
+ return __generator(this, function (_a) {
3024
+ if (requestParameters['projectId'] == null) {
3025
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getManagedDatabaseMetrics().');
3026
+ }
3027
+ if (requestParameters['databaseId'] == null) {
3028
+ throw new runtime.RequiredError('databaseId', 'Required parameter "databaseId" was null or undefined when calling getManagedDatabaseMetrics().');
3029
+ }
3030
+ queryParameters = {};
3031
+ if (requestParameters['rangeHours'] != null) {
3032
+ queryParameters['rangeHours'] = requestParameters['rangeHours'];
3033
+ }
3034
+ headerParameters = {};
3035
+ urlPath = "/api/v1/projects/{projectId}/databases/{databaseId}/metrics";
3036
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
3037
+ urlPath = urlPath.replace('{databaseId}', encodeURIComponent(String(requestParameters['databaseId'])));
3038
+ return [2 /*return*/, {
3039
+ path: urlPath,
3040
+ method: 'GET',
3041
+ headers: headerParameters,
3042
+ query: queryParameters,
3043
+ }];
3044
+ });
3045
+ });
3046
+ };
3047
+ /**
3048
+ */
3049
+ ProjectsServerApi.prototype.getManagedDatabaseMetricsRaw = function (requestParameters, initOverrides) {
3050
+ return __awaiter(this, void 0, void 0, function () {
3051
+ var requestOptions, response;
3052
+ return __generator(this, function (_a) {
3053
+ switch (_a.label) {
3054
+ case 0: return [4 /*yield*/, this.getManagedDatabaseMetricsRequestOpts(requestParameters)];
3055
+ case 1:
3056
+ requestOptions = _a.sent();
3057
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
3058
+ case 2:
3059
+ response = _a.sent();
3060
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ManagedDatabaseMetricsResponse_1.ManagedDatabaseMetricsResponseFromJSON)(jsonValue); })];
3061
+ }
3062
+ });
3063
+ });
3064
+ };
3065
+ /**
3066
+ */
3067
+ ProjectsServerApi.prototype.getManagedDatabaseMetrics = function (requestParameters, initOverrides) {
3068
+ return __awaiter(this, void 0, void 0, function () {
3069
+ var response;
3070
+ return __generator(this, function (_a) {
3071
+ switch (_a.label) {
3072
+ case 0: return [4 /*yield*/, this.getManagedDatabaseMetricsRaw(requestParameters, initOverrides)];
3073
+ case 1:
3074
+ response = _a.sent();
3075
+ return [4 /*yield*/, response.value()];
3076
+ case 2: return [2 /*return*/, _a.sent()];
3077
+ }
3078
+ });
3079
+ });
3080
+ };
3015
3081
  /**
3016
3082
  * Creates request options for getNotificationTemplates without sending the request
3017
3083
  */
@@ -4307,6 +4373,73 @@ var ProjectsServerApi = /** @class */ (function (_super) {
4307
4373
  });
4308
4374
  });
4309
4375
  };
4376
+ /**
4377
+ * Creates request options for listManagedDatabaseSlowQueries without sending the request
4378
+ */
4379
+ ProjectsServerApi.prototype.listManagedDatabaseSlowQueriesRequestOpts = function (requestParameters) {
4380
+ return __awaiter(this, void 0, void 0, function () {
4381
+ var queryParameters, headerParameters, urlPath;
4382
+ return __generator(this, function (_a) {
4383
+ if (requestParameters['projectId'] == null) {
4384
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listManagedDatabaseSlowQueries().');
4385
+ }
4386
+ if (requestParameters['databaseId'] == null) {
4387
+ throw new runtime.RequiredError('databaseId', 'Required parameter "databaseId" was null or undefined when calling listManagedDatabaseSlowQueries().');
4388
+ }
4389
+ queryParameters = {};
4390
+ if (requestParameters['page'] != null) {
4391
+ queryParameters['page'] = requestParameters['page'];
4392
+ }
4393
+ if (requestParameters['pageSize'] != null) {
4394
+ queryParameters['pageSize'] = requestParameters['pageSize'];
4395
+ }
4396
+ headerParameters = {};
4397
+ urlPath = "/api/v1/projects/{projectId}/databases/{databaseId}/slow-queries";
4398
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
4399
+ urlPath = urlPath.replace('{databaseId}', encodeURIComponent(String(requestParameters['databaseId'])));
4400
+ return [2 /*return*/, {
4401
+ path: urlPath,
4402
+ method: 'GET',
4403
+ headers: headerParameters,
4404
+ query: queryParameters,
4405
+ }];
4406
+ });
4407
+ });
4408
+ };
4409
+ /**
4410
+ */
4411
+ ProjectsServerApi.prototype.listManagedDatabaseSlowQueriesRaw = function (requestParameters, initOverrides) {
4412
+ return __awaiter(this, void 0, void 0, function () {
4413
+ var requestOptions, response;
4414
+ return __generator(this, function (_a) {
4415
+ switch (_a.label) {
4416
+ case 0: return [4 /*yield*/, this.listManagedDatabaseSlowQueriesRequestOpts(requestParameters)];
4417
+ case 1:
4418
+ requestOptions = _a.sent();
4419
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
4420
+ case 2:
4421
+ response = _a.sent();
4422
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListManagedDatabaseSlowQueriesResponse_1.ListManagedDatabaseSlowQueriesResponseFromJSON)(jsonValue); })];
4423
+ }
4424
+ });
4425
+ });
4426
+ };
4427
+ /**
4428
+ */
4429
+ ProjectsServerApi.prototype.listManagedDatabaseSlowQueries = function (requestParameters, initOverrides) {
4430
+ return __awaiter(this, void 0, void 0, function () {
4431
+ var response;
4432
+ return __generator(this, function (_a) {
4433
+ switch (_a.label) {
4434
+ case 0: return [4 /*yield*/, this.listManagedDatabaseSlowQueriesRaw(requestParameters, initOverrides)];
4435
+ case 1:
4436
+ response = _a.sent();
4437
+ return [4 /*yield*/, response.value()];
4438
+ case 2: return [2 /*return*/, _a.sent()];
4439
+ }
4440
+ });
4441
+ });
4442
+ };
4310
4443
  /**
4311
4444
  * Creates request options for listManagedDatabaseUsers without sending the request
4312
4445
  */
@@ -56,7 +56,6 @@ export declare const ForteApiExceptionErrorCodeType: {
56
56
  readonly MANAGED_DATABASE_NOT_FOUND: "MANAGED_DATABASE_NOT_FOUND";
57
57
  readonly MANAGED_DATABASE_TYPE_NOT_AVAILABLE: "MANAGED_DATABASE_TYPE_NOT_AVAILABLE";
58
58
  readonly MANAGED_DATABASE_DEDICATED_TIER_REQUIRES_SUPPORT: "MANAGED_DATABASE_DEDICATED_TIER_REQUIRES_SUPPORT";
59
- readonly MANAGED_DATABASE_INVALID_MEMORY: "MANAGED_DATABASE_INVALID_MEMORY";
60
59
  readonly MANAGED_DATABASE_USER_QUOTA_EXCEEDED: "MANAGED_DATABASE_USER_QUOTA_EXCEEDED";
61
60
  readonly MANAGED_DATABASE_USERNAME_TAKEN: "MANAGED_DATABASE_USERNAME_TAKEN";
62
61
  readonly MANAGED_DATABASE_USERNAME_RESERVED: "MANAGED_DATABASE_USERNAME_RESERVED";
@@ -68,6 +67,15 @@ export declare const ForteApiExceptionErrorCodeType: {
68
67
  readonly MANAGED_DATABASE_CONNECTION_ENV_VAR_CONFLICT: "MANAGED_DATABASE_CONNECTION_ENV_VAR_CONFLICT";
69
68
  readonly MANAGED_DATABASE_ENV_VAR_MAPPING_REQUIRED: "MANAGED_DATABASE_ENV_VAR_MAPPING_REQUIRED";
70
69
  readonly MANAGED_DATABASE_HAS_ACTIVE_CONNECTIONS: "MANAGED_DATABASE_HAS_ACTIVE_CONNECTIONS";
70
+ readonly MANAGED_DATABASE_NOT_READY: "MANAGED_DATABASE_NOT_READY";
71
+ readonly MANAGED_DATABASE_STORAGE_BELOW_USAGE: "MANAGED_DATABASE_STORAGE_BELOW_USAGE";
72
+ readonly MANAGED_DATABASE_USERNAME_TOO_LONG: "MANAGED_DATABASE_USERNAME_TOO_LONG";
73
+ readonly MANAGED_DATABASE_AGENT_COMMAND_FAILED: "MANAGED_DATABASE_AGENT_COMMAND_FAILED";
74
+ readonly MANAGED_DATABASE_CLUSTER_ALREADY_EXISTS: "MANAGED_DATABASE_CLUSTER_ALREADY_EXISTS";
75
+ readonly MANAGED_DATABASE_CLUSTER_DISCOVERY_FAILED: "MANAGED_DATABASE_CLUSTER_DISCOVERY_FAILED";
76
+ readonly MANAGED_DATABASE_CLUSTER_INSTANCE_NOT_FOUND: "MANAGED_DATABASE_CLUSTER_INSTANCE_NOT_FOUND";
77
+ readonly MANAGED_DATABASE_CLUSTER_PROVISIONING_IN_PROGRESS: "MANAGED_DATABASE_CLUSTER_PROVISIONING_IN_PROGRESS";
78
+ readonly MANAGED_DATABASE_CLUSTER_HAS_TENANTS: "MANAGED_DATABASE_CLUSTER_HAS_TENANTS";
71
79
  readonly SITE_PASSWORD_NOT_SUPPORTED: "SITE_PASSWORD_NOT_SUPPORTED";
72
80
  readonly CONFLICTING_SITE_PASSWORD_FIELDS: "CONFLICTING_SITE_PASSWORD_FIELDS";
73
81
  readonly SESSION_TOKEN_PROJECT_MISMATCH: "SESSION_TOKEN_PROJECT_MISMATCH";
@@ -41,7 +41,6 @@ exports.ForteApiExceptionErrorCodeType = {
41
41
  MANAGED_DATABASE_NOT_FOUND: 'MANAGED_DATABASE_NOT_FOUND',
42
42
  MANAGED_DATABASE_TYPE_NOT_AVAILABLE: 'MANAGED_DATABASE_TYPE_NOT_AVAILABLE',
43
43
  MANAGED_DATABASE_DEDICATED_TIER_REQUIRES_SUPPORT: 'MANAGED_DATABASE_DEDICATED_TIER_REQUIRES_SUPPORT',
44
- MANAGED_DATABASE_INVALID_MEMORY: 'MANAGED_DATABASE_INVALID_MEMORY',
45
44
  MANAGED_DATABASE_USER_QUOTA_EXCEEDED: 'MANAGED_DATABASE_USER_QUOTA_EXCEEDED',
46
45
  MANAGED_DATABASE_USERNAME_TAKEN: 'MANAGED_DATABASE_USERNAME_TAKEN',
47
46
  MANAGED_DATABASE_USERNAME_RESERVED: 'MANAGED_DATABASE_USERNAME_RESERVED',
@@ -53,6 +52,15 @@ exports.ForteApiExceptionErrorCodeType = {
53
52
  MANAGED_DATABASE_CONNECTION_ENV_VAR_CONFLICT: 'MANAGED_DATABASE_CONNECTION_ENV_VAR_CONFLICT',
54
53
  MANAGED_DATABASE_ENV_VAR_MAPPING_REQUIRED: 'MANAGED_DATABASE_ENV_VAR_MAPPING_REQUIRED',
55
54
  MANAGED_DATABASE_HAS_ACTIVE_CONNECTIONS: 'MANAGED_DATABASE_HAS_ACTIVE_CONNECTIONS',
55
+ MANAGED_DATABASE_NOT_READY: 'MANAGED_DATABASE_NOT_READY',
56
+ MANAGED_DATABASE_STORAGE_BELOW_USAGE: 'MANAGED_DATABASE_STORAGE_BELOW_USAGE',
57
+ MANAGED_DATABASE_USERNAME_TOO_LONG: 'MANAGED_DATABASE_USERNAME_TOO_LONG',
58
+ MANAGED_DATABASE_AGENT_COMMAND_FAILED: 'MANAGED_DATABASE_AGENT_COMMAND_FAILED',
59
+ MANAGED_DATABASE_CLUSTER_ALREADY_EXISTS: 'MANAGED_DATABASE_CLUSTER_ALREADY_EXISTS',
60
+ MANAGED_DATABASE_CLUSTER_DISCOVERY_FAILED: 'MANAGED_DATABASE_CLUSTER_DISCOVERY_FAILED',
61
+ MANAGED_DATABASE_CLUSTER_INSTANCE_NOT_FOUND: 'MANAGED_DATABASE_CLUSTER_INSTANCE_NOT_FOUND',
62
+ MANAGED_DATABASE_CLUSTER_PROVISIONING_IN_PROGRESS: 'MANAGED_DATABASE_CLUSTER_PROVISIONING_IN_PROGRESS',
63
+ MANAGED_DATABASE_CLUSTER_HAS_TENANTS: 'MANAGED_DATABASE_CLUSTER_HAS_TENANTS',
56
64
  SITE_PASSWORD_NOT_SUPPORTED: 'SITE_PASSWORD_NOT_SUPPORTED',
57
65
  CONFLICTING_SITE_PASSWORD_FIELDS: 'CONFLICTING_SITE_PASSWORD_FIELDS',
58
66
  SESSION_TOKEN_PROJECT_MISMATCH: 'SESSION_TOKEN_PROJECT_MISMATCH',
@@ -0,0 +1,39 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ManagedDatabaseSlowQuery } from './ManagedDatabaseSlowQuery';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListManagedDatabaseSlowQueriesResponse
17
+ */
18
+ export interface ListManagedDatabaseSlowQueriesResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ManagedDatabaseSlowQuery>}
22
+ * @memberof ListManagedDatabaseSlowQueriesResponse
23
+ */
24
+ items: Array<ManagedDatabaseSlowQuery>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ListManagedDatabaseSlowQueriesResponse
29
+ */
30
+ nextPageToken?: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ListManagedDatabaseSlowQueriesResponse interface.
34
+ */
35
+ export declare function instanceOfListManagedDatabaseSlowQueriesResponse(value: object): value is ListManagedDatabaseSlowQueriesResponse;
36
+ export declare function ListManagedDatabaseSlowQueriesResponseFromJSON(json: any): ListManagedDatabaseSlowQueriesResponse;
37
+ export declare function ListManagedDatabaseSlowQueriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListManagedDatabaseSlowQueriesResponse;
38
+ export declare function ListManagedDatabaseSlowQueriesResponseToJSON(json: any): ListManagedDatabaseSlowQueriesResponse;
39
+ export declare function ListManagedDatabaseSlowQueriesResponseToJSONTyped(value?: ListManagedDatabaseSlowQueriesResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfListManagedDatabaseSlowQueriesResponse = instanceOfListManagedDatabaseSlowQueriesResponse;
17
+ exports.ListManagedDatabaseSlowQueriesResponseFromJSON = ListManagedDatabaseSlowQueriesResponseFromJSON;
18
+ exports.ListManagedDatabaseSlowQueriesResponseFromJSONTyped = ListManagedDatabaseSlowQueriesResponseFromJSONTyped;
19
+ exports.ListManagedDatabaseSlowQueriesResponseToJSON = ListManagedDatabaseSlowQueriesResponseToJSON;
20
+ exports.ListManagedDatabaseSlowQueriesResponseToJSONTyped = ListManagedDatabaseSlowQueriesResponseToJSONTyped;
21
+ var ManagedDatabaseSlowQuery_1 = require("./ManagedDatabaseSlowQuery");
22
+ /**
23
+ * Check if a given object implements the ListManagedDatabaseSlowQueriesResponse interface.
24
+ */
25
+ function instanceOfListManagedDatabaseSlowQueriesResponse(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ListManagedDatabaseSlowQueriesResponseFromJSON(json) {
31
+ return ListManagedDatabaseSlowQueriesResponseFromJSONTyped(json, false);
32
+ }
33
+ function ListManagedDatabaseSlowQueriesResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'items': (json['items'].map(ManagedDatabaseSlowQuery_1.ManagedDatabaseSlowQueryFromJSON)),
39
+ 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
40
+ };
41
+ }
42
+ function ListManagedDatabaseSlowQueriesResponseToJSON(json) {
43
+ return ListManagedDatabaseSlowQueriesResponseToJSONTyped(json, false);
44
+ }
45
+ function ListManagedDatabaseSlowQueriesResponseToJSONTyped(value, ignoreDiscriminator) {
46
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'items': (value['items'].map(ManagedDatabaseSlowQuery_1.ManagedDatabaseSlowQueryToJSON)),
52
+ 'nextPageToken': value['nextPageToken'],
53
+ };
54
+ }
@@ -0,0 +1,176 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ManagedDatabaseMetricPoint
16
+ */
17
+ export interface ManagedDatabaseMetricPoint {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof ManagedDatabaseMetricPoint
22
+ */
23
+ timestamp: Date;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ManagedDatabaseMetricPoint
28
+ */
29
+ activeTimeMs?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ManagedDatabaseMetricPoint
34
+ */
35
+ xactCommit?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ManagedDatabaseMetricPoint
40
+ */
41
+ xactRollback?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ManagedDatabaseMetricPoint
46
+ */
47
+ blksHit?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ManagedDatabaseMetricPoint
52
+ */
53
+ blksRead?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof ManagedDatabaseMetricPoint
58
+ */
59
+ tupReturned?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ManagedDatabaseMetricPoint
64
+ */
65
+ tupFetched?: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof ManagedDatabaseMetricPoint
70
+ */
71
+ tupInserted?: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof ManagedDatabaseMetricPoint
76
+ */
77
+ tupUpdated?: number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof ManagedDatabaseMetricPoint
82
+ */
83
+ tupDeleted?: number;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof ManagedDatabaseMetricPoint
88
+ */
89
+ tempFiles?: number;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof ManagedDatabaseMetricPoint
94
+ */
95
+ tempBytes?: number;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof ManagedDatabaseMetricPoint
100
+ */
101
+ deadlocks?: number;
102
+ /**
103
+ *
104
+ * @type {number}
105
+ * @memberof ManagedDatabaseMetricPoint
106
+ */
107
+ stmtTotalExecMs?: number;
108
+ /**
109
+ *
110
+ * @type {number}
111
+ * @memberof ManagedDatabaseMetricPoint
112
+ */
113
+ stmtCalls?: number;
114
+ /**
115
+ *
116
+ * @type {number}
117
+ * @memberof ManagedDatabaseMetricPoint
118
+ */
119
+ stmtWalBytes?: number;
120
+ /**
121
+ *
122
+ * @type {number}
123
+ * @memberof ManagedDatabaseMetricPoint
124
+ */
125
+ stmtTempBlks?: number;
126
+ /**
127
+ *
128
+ * @type {number}
129
+ * @memberof ManagedDatabaseMetricPoint
130
+ */
131
+ queryCount?: number;
132
+ /**
133
+ *
134
+ * @type {number}
135
+ * @memberof ManagedDatabaseMetricPoint
136
+ */
137
+ avgQueryTimeMicros?: number;
138
+ /**
139
+ *
140
+ * @type {number}
141
+ * @memberof ManagedDatabaseMetricPoint
142
+ */
143
+ clientConnections?: number;
144
+ /**
145
+ *
146
+ * @type {number}
147
+ * @memberof ManagedDatabaseMetricPoint
148
+ */
149
+ serverConnections?: number;
150
+ /**
151
+ *
152
+ * @type {number}
153
+ * @memberof ManagedDatabaseMetricPoint
154
+ */
155
+ clWaiting?: number;
156
+ /**
157
+ *
158
+ * @type {number}
159
+ * @memberof ManagedDatabaseMetricPoint
160
+ */
161
+ logicalSizeBytes?: number;
162
+ /**
163
+ *
164
+ * @type {number}
165
+ * @memberof ManagedDatabaseMetricPoint
166
+ */
167
+ physicalSizeBytes?: number;
168
+ }
169
+ /**
170
+ * Check if a given object implements the ManagedDatabaseMetricPoint interface.
171
+ */
172
+ export declare function instanceOfManagedDatabaseMetricPoint(value: object): value is ManagedDatabaseMetricPoint;
173
+ export declare function ManagedDatabaseMetricPointFromJSON(json: any): ManagedDatabaseMetricPoint;
174
+ export declare function ManagedDatabaseMetricPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedDatabaseMetricPoint;
175
+ export declare function ManagedDatabaseMetricPointToJSON(json: any): ManagedDatabaseMetricPoint;
176
+ export declare function ManagedDatabaseMetricPointToJSONTyped(value?: ManagedDatabaseMetricPoint | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfManagedDatabaseMetricPoint = instanceOfManagedDatabaseMetricPoint;
17
+ exports.ManagedDatabaseMetricPointFromJSON = ManagedDatabaseMetricPointFromJSON;
18
+ exports.ManagedDatabaseMetricPointFromJSONTyped = ManagedDatabaseMetricPointFromJSONTyped;
19
+ exports.ManagedDatabaseMetricPointToJSON = ManagedDatabaseMetricPointToJSON;
20
+ exports.ManagedDatabaseMetricPointToJSONTyped = ManagedDatabaseMetricPointToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ManagedDatabaseMetricPoint interface.
23
+ */
24
+ function instanceOfManagedDatabaseMetricPoint(value) {
25
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ManagedDatabaseMetricPointFromJSON(json) {
30
+ return ManagedDatabaseMetricPointFromJSONTyped(json, false);
31
+ }
32
+ function ManagedDatabaseMetricPointFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'timestamp': (new Date(json['timestamp'])),
38
+ 'activeTimeMs': json['activeTimeMs'] == null ? undefined : json['activeTimeMs'],
39
+ 'xactCommit': json['xactCommit'] == null ? undefined : json['xactCommit'],
40
+ 'xactRollback': json['xactRollback'] == null ? undefined : json['xactRollback'],
41
+ 'blksHit': json['blksHit'] == null ? undefined : json['blksHit'],
42
+ 'blksRead': json['blksRead'] == null ? undefined : json['blksRead'],
43
+ 'tupReturned': json['tupReturned'] == null ? undefined : json['tupReturned'],
44
+ 'tupFetched': json['tupFetched'] == null ? undefined : json['tupFetched'],
45
+ 'tupInserted': json['tupInserted'] == null ? undefined : json['tupInserted'],
46
+ 'tupUpdated': json['tupUpdated'] == null ? undefined : json['tupUpdated'],
47
+ 'tupDeleted': json['tupDeleted'] == null ? undefined : json['tupDeleted'],
48
+ 'tempFiles': json['tempFiles'] == null ? undefined : json['tempFiles'],
49
+ 'tempBytes': json['tempBytes'] == null ? undefined : json['tempBytes'],
50
+ 'deadlocks': json['deadlocks'] == null ? undefined : json['deadlocks'],
51
+ 'stmtTotalExecMs': json['stmtTotalExecMs'] == null ? undefined : json['stmtTotalExecMs'],
52
+ 'stmtCalls': json['stmtCalls'] == null ? undefined : json['stmtCalls'],
53
+ 'stmtWalBytes': json['stmtWalBytes'] == null ? undefined : json['stmtWalBytes'],
54
+ 'stmtTempBlks': json['stmtTempBlks'] == null ? undefined : json['stmtTempBlks'],
55
+ 'queryCount': json['queryCount'] == null ? undefined : json['queryCount'],
56
+ 'avgQueryTimeMicros': json['avgQueryTimeMicros'] == null ? undefined : json['avgQueryTimeMicros'],
57
+ 'clientConnections': json['clientConnections'] == null ? undefined : json['clientConnections'],
58
+ 'serverConnections': json['serverConnections'] == null ? undefined : json['serverConnections'],
59
+ 'clWaiting': json['clWaiting'] == null ? undefined : json['clWaiting'],
60
+ 'logicalSizeBytes': json['logicalSizeBytes'] == null ? undefined : json['logicalSizeBytes'],
61
+ 'physicalSizeBytes': json['physicalSizeBytes'] == null ? undefined : json['physicalSizeBytes'],
62
+ };
63
+ }
64
+ function ManagedDatabaseMetricPointToJSON(json) {
65
+ return ManagedDatabaseMetricPointToJSONTyped(json, false);
66
+ }
67
+ function ManagedDatabaseMetricPointToJSONTyped(value, ignoreDiscriminator) {
68
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'timestamp': value['timestamp'].toISOString(),
74
+ 'activeTimeMs': value['activeTimeMs'],
75
+ 'xactCommit': value['xactCommit'],
76
+ 'xactRollback': value['xactRollback'],
77
+ 'blksHit': value['blksHit'],
78
+ 'blksRead': value['blksRead'],
79
+ 'tupReturned': value['tupReturned'],
80
+ 'tupFetched': value['tupFetched'],
81
+ 'tupInserted': value['tupInserted'],
82
+ 'tupUpdated': value['tupUpdated'],
83
+ 'tupDeleted': value['tupDeleted'],
84
+ 'tempFiles': value['tempFiles'],
85
+ 'tempBytes': value['tempBytes'],
86
+ 'deadlocks': value['deadlocks'],
87
+ 'stmtTotalExecMs': value['stmtTotalExecMs'],
88
+ 'stmtCalls': value['stmtCalls'],
89
+ 'stmtWalBytes': value['stmtWalBytes'],
90
+ 'stmtTempBlks': value['stmtTempBlks'],
91
+ 'queryCount': value['queryCount'],
92
+ 'avgQueryTimeMicros': value['avgQueryTimeMicros'],
93
+ 'clientConnections': value['clientConnections'],
94
+ 'serverConnections': value['serverConnections'],
95
+ 'clWaiting': value['clWaiting'],
96
+ 'logicalSizeBytes': value['logicalSizeBytes'],
97
+ 'physicalSizeBytes': value['physicalSizeBytes'],
98
+ };
99
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ManagedDatabaseMetricPoint } from './ManagedDatabaseMetricPoint';
13
+ import type { ManagedDatabaseUsage } from './ManagedDatabaseUsage';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ManagedDatabaseMetricsResponse
18
+ */
19
+ export interface ManagedDatabaseMetricsResponse {
20
+ /**
21
+ *
22
+ * @type {Array<ManagedDatabaseMetricPoint>}
23
+ * @memberof ManagedDatabaseMetricsResponse
24
+ */
25
+ points: Array<ManagedDatabaseMetricPoint>;
26
+ /**
27
+ *
28
+ * @type {ManagedDatabaseUsage}
29
+ * @memberof ManagedDatabaseMetricsResponse
30
+ */
31
+ usage: ManagedDatabaseUsage;
32
+ }
33
+ /**
34
+ * Check if a given object implements the ManagedDatabaseMetricsResponse interface.
35
+ */
36
+ export declare function instanceOfManagedDatabaseMetricsResponse(value: object): value is ManagedDatabaseMetricsResponse;
37
+ export declare function ManagedDatabaseMetricsResponseFromJSON(json: any): ManagedDatabaseMetricsResponse;
38
+ export declare function ManagedDatabaseMetricsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedDatabaseMetricsResponse;
39
+ export declare function ManagedDatabaseMetricsResponseToJSON(json: any): ManagedDatabaseMetricsResponse;
40
+ export declare function ManagedDatabaseMetricsResponseToJSONTyped(value?: ManagedDatabaseMetricsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfManagedDatabaseMetricsResponse = instanceOfManagedDatabaseMetricsResponse;
17
+ exports.ManagedDatabaseMetricsResponseFromJSON = ManagedDatabaseMetricsResponseFromJSON;
18
+ exports.ManagedDatabaseMetricsResponseFromJSONTyped = ManagedDatabaseMetricsResponseFromJSONTyped;
19
+ exports.ManagedDatabaseMetricsResponseToJSON = ManagedDatabaseMetricsResponseToJSON;
20
+ exports.ManagedDatabaseMetricsResponseToJSONTyped = ManagedDatabaseMetricsResponseToJSONTyped;
21
+ var ManagedDatabaseMetricPoint_1 = require("./ManagedDatabaseMetricPoint");
22
+ var ManagedDatabaseUsage_1 = require("./ManagedDatabaseUsage");
23
+ /**
24
+ * Check if a given object implements the ManagedDatabaseMetricsResponse interface.
25
+ */
26
+ function instanceOfManagedDatabaseMetricsResponse(value) {
27
+ if (!('points' in value) || value['points'] === undefined)
28
+ return false;
29
+ if (!('usage' in value) || value['usage'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ManagedDatabaseMetricsResponseFromJSON(json) {
34
+ return ManagedDatabaseMetricsResponseFromJSONTyped(json, false);
35
+ }
36
+ function ManagedDatabaseMetricsResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'points': (json['points'].map(ManagedDatabaseMetricPoint_1.ManagedDatabaseMetricPointFromJSON)),
42
+ 'usage': (0, ManagedDatabaseUsage_1.ManagedDatabaseUsageFromJSON)(json['usage']),
43
+ };
44
+ }
45
+ function ManagedDatabaseMetricsResponseToJSON(json) {
46
+ return ManagedDatabaseMetricsResponseToJSONTyped(json, false);
47
+ }
48
+ function ManagedDatabaseMetricsResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'points': (value['points'].map(ManagedDatabaseMetricPoint_1.ManagedDatabaseMetricPointToJSON)),
55
+ 'usage': (0, ManagedDatabaseUsage_1.ManagedDatabaseUsageToJSON)(value['usage']),
56
+ };
57
+ }
@@ -45,13 +45,13 @@ export interface ManagedDatabaseObject {
45
45
  * @type {string}
46
46
  * @memberof ManagedDatabaseObject
47
47
  */
48
- cpu: string;
48
+ cpu?: string;
49
49
  /**
50
50
  *
51
51
  * @type {number}
52
52
  * @memberof ManagedDatabaseObject
53
53
  */
54
- memoryGb: number;
54
+ memoryGb?: number;
55
55
  /**
56
56
  *
57
57
  * @type {number}
@@ -100,6 +100,36 @@ export interface ManagedDatabaseObject {
100
100
  * @memberof ManagedDatabaseObject
101
101
  */
102
102
  databaseName?: string;
103
+ /**
104
+ *
105
+ * @type {boolean}
106
+ * @memberof ManagedDatabaseObject
107
+ */
108
+ readOnly?: boolean;
109
+ /**
110
+ *
111
+ * @type {Date}
112
+ * @memberof ManagedDatabaseObject
113
+ */
114
+ cleanupUnlockExpiresAt?: Date;
115
+ /**
116
+ *
117
+ * @type {number}
118
+ * @memberof ManagedDatabaseObject
119
+ */
120
+ usageBytes?: number;
121
+ /**
122
+ *
123
+ * @type {number}
124
+ * @memberof ManagedDatabaseObject
125
+ */
126
+ physicalUsageBytes?: number;
127
+ /**
128
+ *
129
+ * @type {Date}
130
+ * @memberof ManagedDatabaseObject
131
+ */
132
+ usageUpdatedAt?: Date;
103
133
  }
104
134
  /**
105
135
  * @export
@@ -124,6 +154,8 @@ export declare const ManagedDatabaseObjectStatusType: {
124
154
  readonly CREATING: "CREATING";
125
155
  readonly ACTIVE: "ACTIVE";
126
156
  readonly UPDATING: "UPDATING";
157
+ readonly READ_ONLY: "READ_ONLY";
158
+ readonly SUSPENDED: "SUSPENDED";
127
159
  readonly DELETING: "DELETING";
128
160
  readonly FAILED: "FAILED";
129
161
  };
@@ -41,6 +41,8 @@ exports.ManagedDatabaseObjectStatusType = {
41
41
  CREATING: 'CREATING',
42
42
  ACTIVE: 'ACTIVE',
43
43
  UPDATING: 'UPDATING',
44
+ READ_ONLY: 'READ_ONLY',
45
+ SUSPENDED: 'SUSPENDED',
44
46
  DELETING: 'DELETING',
45
47
  FAILED: 'FAILED'
46
48
  };
@@ -54,10 +56,6 @@ function instanceOfManagedDatabaseObject(value) {
54
56
  return false;
55
57
  if (!('tier' in value) || value['tier'] === undefined)
56
58
  return false;
57
- if (!('cpu' in value) || value['cpu'] === undefined)
58
- return false;
59
- if (!('memoryGb' in value) || value['memoryGb'] === undefined)
60
- return false;
61
59
  if (!('storageGb' in value) || value['storageGb'] === undefined)
62
60
  return false;
63
61
  if (!('status' in value) || value['status'] === undefined)
@@ -80,8 +78,8 @@ function ManagedDatabaseObjectFromJSONTyped(json, ignoreDiscriminator) {
80
78
  'managedDatabaseName': json['managedDatabaseName'],
81
79
  'type': json['type'],
82
80
  'tier': json['tier'],
83
- 'cpu': json['cpu'],
84
- 'memoryGb': json['memoryGb'],
81
+ 'cpu': json['cpu'] == null ? undefined : json['cpu'],
82
+ 'memoryGb': json['memoryGb'] == null ? undefined : json['memoryGb'],
85
83
  'storageGb': json['storageGb'],
86
84
  'status': json['status'],
87
85
  'connections': (json['connections'].map(ManagedDatabaseConnection_1.ManagedDatabaseConnectionFromJSON)),
@@ -90,6 +88,11 @@ function ManagedDatabaseObjectFromJSONTyped(json, ignoreDiscriminator) {
90
88
  'host': json['host'] == null ? undefined : json['host'],
91
89
  'port': json['port'] == null ? undefined : json['port'],
92
90
  'databaseName': json['databaseName'] == null ? undefined : json['databaseName'],
91
+ 'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
92
+ 'cleanupUnlockExpiresAt': json['cleanupUnlockExpiresAt'] == null ? undefined : (new Date(json['cleanupUnlockExpiresAt'])),
93
+ 'usageBytes': json['usageBytes'] == null ? undefined : json['usageBytes'],
94
+ 'physicalUsageBytes': json['physicalUsageBytes'] == null ? undefined : json['physicalUsageBytes'],
95
+ 'usageUpdatedAt': json['usageUpdatedAt'] == null ? undefined : (new Date(json['usageUpdatedAt'])),
93
96
  };
94
97
  }
95
98
  function ManagedDatabaseObjectToJSON(json) {
@@ -115,5 +118,10 @@ function ManagedDatabaseObjectToJSONTyped(value, ignoreDiscriminator) {
115
118
  'host': value['host'],
116
119
  'port': value['port'],
117
120
  'databaseName': value['databaseName'],
121
+ 'readOnly': value['readOnly'],
122
+ 'cleanupUnlockExpiresAt': value['cleanupUnlockExpiresAt'] == null ? value['cleanupUnlockExpiresAt'] : value['cleanupUnlockExpiresAt'].toISOString(),
123
+ 'usageBytes': value['usageBytes'],
124
+ 'physicalUsageBytes': value['physicalUsageBytes'],
125
+ 'usageUpdatedAt': value['usageUpdatedAt'] == null ? value['usageUpdatedAt'] : value['usageUpdatedAt'].toISOString(),
118
126
  };
119
127
  }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ManagedDatabaseSlowQuery
16
+ */
17
+ export interface ManagedDatabaseSlowQuery {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ManagedDatabaseSlowQuery
22
+ */
23
+ slowQueryId: string;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof ManagedDatabaseSlowQuery
28
+ */
29
+ timestamp: Date;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ManagedDatabaseSlowQuery
34
+ */
35
+ durationMs?: number;
36
+ /**
37
+ *
38
+ * @type {ManagedDatabaseSlowQueryKindType}
39
+ * @memberof ManagedDatabaseSlowQuery
40
+ */
41
+ kind: ManagedDatabaseSlowQueryKindType;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ManagedDatabaseSlowQuery
46
+ */
47
+ queryText?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ManagedDatabaseSlowQuery
52
+ */
53
+ userName?: string;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const ManagedDatabaseSlowQueryKindType: {
59
+ readonly SLOW: "SLOW";
60
+ readonly TEMP_FILE: "TEMP_FILE";
61
+ readonly LOCK_WAIT: "LOCK_WAIT";
62
+ };
63
+ export type ManagedDatabaseSlowQueryKindType = typeof ManagedDatabaseSlowQueryKindType[keyof typeof ManagedDatabaseSlowQueryKindType];
64
+ /**
65
+ * Check if a given object implements the ManagedDatabaseSlowQuery interface.
66
+ */
67
+ export declare function instanceOfManagedDatabaseSlowQuery(value: object): value is ManagedDatabaseSlowQuery;
68
+ export declare function ManagedDatabaseSlowQueryFromJSON(json: any): ManagedDatabaseSlowQuery;
69
+ export declare function ManagedDatabaseSlowQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedDatabaseSlowQuery;
70
+ export declare function ManagedDatabaseSlowQueryToJSON(json: any): ManagedDatabaseSlowQuery;
71
+ export declare function ManagedDatabaseSlowQueryToJSONTyped(value?: ManagedDatabaseSlowQuery | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ManagedDatabaseSlowQueryKindType = void 0;
17
+ exports.instanceOfManagedDatabaseSlowQuery = instanceOfManagedDatabaseSlowQuery;
18
+ exports.ManagedDatabaseSlowQueryFromJSON = ManagedDatabaseSlowQueryFromJSON;
19
+ exports.ManagedDatabaseSlowQueryFromJSONTyped = ManagedDatabaseSlowQueryFromJSONTyped;
20
+ exports.ManagedDatabaseSlowQueryToJSON = ManagedDatabaseSlowQueryToJSON;
21
+ exports.ManagedDatabaseSlowQueryToJSONTyped = ManagedDatabaseSlowQueryToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ManagedDatabaseSlowQueryKindType = {
26
+ SLOW: 'SLOW',
27
+ TEMP_FILE: 'TEMP_FILE',
28
+ LOCK_WAIT: 'LOCK_WAIT'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ManagedDatabaseSlowQuery interface.
32
+ */
33
+ function instanceOfManagedDatabaseSlowQuery(value) {
34
+ if (!('slowQueryId' in value) || value['slowQueryId'] === undefined)
35
+ return false;
36
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
37
+ return false;
38
+ if (!('kind' in value) || value['kind'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function ManagedDatabaseSlowQueryFromJSON(json) {
43
+ return ManagedDatabaseSlowQueryFromJSONTyped(json, false);
44
+ }
45
+ function ManagedDatabaseSlowQueryFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'slowQueryId': json['slowQueryId'],
51
+ 'timestamp': (new Date(json['timestamp'])),
52
+ 'durationMs': json['durationMs'] == null ? undefined : json['durationMs'],
53
+ 'kind': json['kind'],
54
+ 'queryText': json['queryText'] == null ? undefined : json['queryText'],
55
+ 'userName': json['userName'] == null ? undefined : json['userName'],
56
+ };
57
+ }
58
+ function ManagedDatabaseSlowQueryToJSON(json) {
59
+ return ManagedDatabaseSlowQueryToJSONTyped(json, false);
60
+ }
61
+ function ManagedDatabaseSlowQueryToJSONTyped(value, ignoreDiscriminator) {
62
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'slowQueryId': value['slowQueryId'],
68
+ 'timestamp': value['timestamp'].toISOString(),
69
+ 'durationMs': value['durationMs'],
70
+ 'kind': value['kind'],
71
+ 'queryText': value['queryText'],
72
+ 'userName': value['userName'],
73
+ };
74
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ManagedDatabaseUsage
16
+ */
17
+ export interface ManagedDatabaseUsage {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ManagedDatabaseUsage
22
+ */
23
+ usageBytes?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ManagedDatabaseUsage
28
+ */
29
+ physicalUsageBytes?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ManagedDatabaseUsage
34
+ */
35
+ storageGb: number;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof ManagedDatabaseUsage
40
+ */
41
+ usageUpdatedAt?: Date;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ManagedDatabaseUsage
46
+ */
47
+ readOnly: boolean;
48
+ }
49
+ /**
50
+ * Check if a given object implements the ManagedDatabaseUsage interface.
51
+ */
52
+ export declare function instanceOfManagedDatabaseUsage(value: object): value is ManagedDatabaseUsage;
53
+ export declare function ManagedDatabaseUsageFromJSON(json: any): ManagedDatabaseUsage;
54
+ export declare function ManagedDatabaseUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedDatabaseUsage;
55
+ export declare function ManagedDatabaseUsageToJSON(json: any): ManagedDatabaseUsage;
56
+ export declare function ManagedDatabaseUsageToJSONTyped(value?: ManagedDatabaseUsage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfManagedDatabaseUsage = instanceOfManagedDatabaseUsage;
17
+ exports.ManagedDatabaseUsageFromJSON = ManagedDatabaseUsageFromJSON;
18
+ exports.ManagedDatabaseUsageFromJSONTyped = ManagedDatabaseUsageFromJSONTyped;
19
+ exports.ManagedDatabaseUsageToJSON = ManagedDatabaseUsageToJSON;
20
+ exports.ManagedDatabaseUsageToJSONTyped = ManagedDatabaseUsageToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ManagedDatabaseUsage interface.
23
+ */
24
+ function instanceOfManagedDatabaseUsage(value) {
25
+ if (!('storageGb' in value) || value['storageGb'] === undefined)
26
+ return false;
27
+ if (!('readOnly' in value) || value['readOnly'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ManagedDatabaseUsageFromJSON(json) {
32
+ return ManagedDatabaseUsageFromJSONTyped(json, false);
33
+ }
34
+ function ManagedDatabaseUsageFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'usageBytes': json['usageBytes'] == null ? undefined : json['usageBytes'],
40
+ 'physicalUsageBytes': json['physicalUsageBytes'] == null ? undefined : json['physicalUsageBytes'],
41
+ 'storageGb': json['storageGb'],
42
+ 'usageUpdatedAt': json['usageUpdatedAt'] == null ? undefined : (new Date(json['usageUpdatedAt'])),
43
+ 'readOnly': json['readOnly'],
44
+ };
45
+ }
46
+ function ManagedDatabaseUsageToJSON(json) {
47
+ return ManagedDatabaseUsageToJSONTyped(json, false);
48
+ }
49
+ function ManagedDatabaseUsageToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'usageBytes': value['usageBytes'],
56
+ 'physicalUsageBytes': value['physicalUsageBytes'],
57
+ 'storageGb': value['storageGb'],
58
+ 'usageUpdatedAt': value['usageUpdatedAt'] == null ? value['usageUpdatedAt'] : value['usageUpdatedAt'].toISOString(),
59
+ 'readOnly': value['readOnly'],
60
+ };
61
+ }
@@ -72,6 +72,7 @@ export * from './LatencyPercentileSeries';
72
72
  export * from './LatencyStats';
73
73
  export * from './ListContentResponse';
74
74
  export * from './ListCustomDomainsResponse';
75
+ export * from './ListManagedDatabaseSlowQueriesResponse';
75
76
  export * from './ListManagedDatabaseUsersResponse';
76
77
  export * from './ListManagedDatabasesResponse';
77
78
  export * from './ListMfaMethodsResponse';
@@ -82,7 +83,11 @@ export * from './LoginHistoryEntry';
82
83
  export * from './LoginUserResponse';
83
84
  export * from './ManagedDatabaseConnection';
84
85
  export * from './ManagedDatabaseEnvVarMappings';
86
+ export * from './ManagedDatabaseMetricPoint';
87
+ export * from './ManagedDatabaseMetricsResponse';
85
88
  export * from './ManagedDatabaseObject';
89
+ export * from './ManagedDatabaseSlowQuery';
90
+ export * from './ManagedDatabaseUsage';
86
91
  export * from './ManagedDatabaseUser';
87
92
  export * from './MfaChallengeRequest';
88
93
  export * from './MfaChallengeResponse';
@@ -90,6 +90,7 @@ __exportStar(require("./LatencyPercentileSeries"), exports);
90
90
  __exportStar(require("./LatencyStats"), exports);
91
91
  __exportStar(require("./ListContentResponse"), exports);
92
92
  __exportStar(require("./ListCustomDomainsResponse"), exports);
93
+ __exportStar(require("./ListManagedDatabaseSlowQueriesResponse"), exports);
93
94
  __exportStar(require("./ListManagedDatabaseUsersResponse"), exports);
94
95
  __exportStar(require("./ListManagedDatabasesResponse"), exports);
95
96
  __exportStar(require("./ListMfaMethodsResponse"), exports);
@@ -100,7 +101,11 @@ __exportStar(require("./LoginHistoryEntry"), exports);
100
101
  __exportStar(require("./LoginUserResponse"), exports);
101
102
  __exportStar(require("./ManagedDatabaseConnection"), exports);
102
103
  __exportStar(require("./ManagedDatabaseEnvVarMappings"), exports);
104
+ __exportStar(require("./ManagedDatabaseMetricPoint"), exports);
105
+ __exportStar(require("./ManagedDatabaseMetricsResponse"), exports);
103
106
  __exportStar(require("./ManagedDatabaseObject"), exports);
107
+ __exportStar(require("./ManagedDatabaseSlowQuery"), exports);
108
+ __exportStar(require("./ManagedDatabaseUsage"), exports);
104
109
  __exportStar(require("./ManagedDatabaseUser"), exports);
105
110
  __exportStar(require("./MfaChallengeRequest"), exports);
106
111
  __exportStar(require("./MfaChallengeResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.301",
3
+ "version": "1.0.322",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {