Skip to content

Commit 3151195

Browse files
committed
auto-generated version 1.0.1
1 parent cb19dab commit 3151195

52 files changed

Lines changed: 137 additions & 173 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

api/backups-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

api/clusters-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

api/logs-api.ts

Lines changed: 48 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,13 +32,14 @@ export const LogsApiAxiosParamCreator = function (configuration?: Configuration)
3232
* Retrieves PostgreSQL logs based on the given parameters.
3333
* @summary Get logs of your cluster
3434
* @param {string} clusterId The unique ID of the cluster.
35-
* @param {number} [limit] The maximal number of log lines to return.
36-
* @param {string} [start] The start time for the query in RFC3339 format.
37-
* @param {string} [end] The end time for the query in RFC3339 format.
35+
* @param {string} [start] The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
36+
* @param {string} [end] The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
37+
* @param {'BACKWARD' | 'FORWARD'} [direction] The direction in which to scan through the logs. The logs are returned in order of the direction.
38+
* @param {number} [limit] The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction).
3839
* @param {*} [options] Override http request option.
3940
* @throws {RequiredError}
4041
*/
41-
clusterLogsGet: async (clusterId: string, limit?: number, start?: string, end?: string, options: any = {}): Promise<RequestArgs> => {
42+
clusterLogsGet: async (clusterId: string, start?: string, end?: string, direction?: 'BACKWARD' | 'FORWARD', limit?: number, options: any = {}): Promise<RequestArgs> => {
4243
if (clusterId === null || clusterId === undefined) {
4344
throw new RequiredError('clusterId','Required parameter clusterId was null or undefined when calling clusterLogsGet.');
4445
}
@@ -69,13 +70,6 @@ export const LogsApiAxiosParamCreator = function (configuration?: Configuration)
6970
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
7071
}
7172

72-
if ((limit === undefined) && (configuration !== undefined)) {
73-
limit = configuration.getDefaultParamValue('limit');
74-
}
75-
if (limit !== undefined) {
76-
localVarQueryParameter['limit'] = limit;
77-
}
78-
7973
if ((start === undefined) && (configuration !== undefined)) {
8074
start = configuration.getDefaultParamValue('start');
8175
}
@@ -94,6 +88,20 @@ export const LogsApiAxiosParamCreator = function (configuration?: Configuration)
9488
end;
9589
}
9690

91+
if ((direction === undefined) && (configuration !== undefined)) {
92+
direction = configuration.getDefaultParamValue('direction');
93+
}
94+
if (direction !== undefined) {
95+
localVarQueryParameter['direction'] = direction;
96+
}
97+
98+
if ((limit === undefined) && (configuration !== undefined)) {
99+
limit = configuration.getDefaultParamValue('limit');
100+
}
101+
if (limit !== undefined) {
102+
localVarQueryParameter['limit'] = limit;
103+
}
104+
97105

98106

99107
localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -126,14 +134,15 @@ export const LogsApiFp = function(configuration?: Configuration) {
126134
* Retrieves PostgreSQL logs based on the given parameters.
127135
* @summary Get logs of your cluster
128136
* @param {string} clusterId The unique ID of the cluster.
129-
* @param {number} [limit] The maximal number of log lines to return.
130-
* @param {string} [start] The start time for the query in RFC3339 format.
131-
* @param {string} [end] The end time for the query in RFC3339 format.
137+
* @param {string} [start] The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
138+
* @param {string} [end] The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
139+
* @param {'BACKWARD' | 'FORWARD'} [direction] The direction in which to scan through the logs. The logs are returned in order of the direction.
140+
* @param {number} [limit] The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction).
132141
* @param {*} [options] Override http request option.
133142
* @throws {RequiredError}
134143
*/
135-
async clusterLogsGet(clusterId: string, limit?: number, start?: string, end?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogs>> {
136-
const axiosArgs = await LogsApiAxiosParamCreator(configuration).clusterLogsGet(clusterId, limit, start, end, options);
144+
async clusterLogsGet(clusterId: string, start?: string, end?: string, direction?: 'BACKWARD' | 'FORWARD', limit?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogs>> {
145+
const axiosArgs = await LogsApiAxiosParamCreator(configuration).clusterLogsGet(clusterId, start, end, direction, limit, options);
137146
return runRequest(axiosArgs, configuration);
138147
},
139148
}
@@ -149,14 +158,15 @@ export const LogsApiFactory = function (configuration?: Configuration, basePath?
149158
* Retrieves PostgreSQL logs based on the given parameters.
150159
* @summary Get logs of your cluster
151160
* @param {string} clusterId The unique ID of the cluster.
152-
* @param {number} [limit] The maximal number of log lines to return.
153-
* @param {string} [start] The start time for the query in RFC3339 format.
154-
* @param {string} [end] The end time for the query in RFC3339 format.
161+
* @param {string} [start] The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
162+
* @param {string} [end] The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
163+
* @param {'BACKWARD' | 'FORWARD'} [direction] The direction in which to scan through the logs. The logs are returned in order of the direction.
164+
* @param {number} [limit] The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction).
155165
* @param {*} [options] Override http request option.
156166
* @throws {RequiredError}
157167
*/
158-
clusterLogsGet(clusterId: string, limit?: number, start?: string, end?: string, options?: any): AxiosPromise<ClusterLogs> {
159-
return LogsApiFp(configuration).clusterLogsGet(clusterId, limit, start, end, options).then((request) => request(axios, basePath));
168+
clusterLogsGet(clusterId: string, start?: string, end?: string, direction?: 'BACKWARD' | 'FORWARD', limit?: number, options?: any): AxiosPromise<ClusterLogs> {
169+
return LogsApiFp(configuration).clusterLogsGet(clusterId, start, end, direction, limit, options).then((request) => request(axios, basePath));
160170
},
161171
};
162172
};
@@ -175,25 +185,32 @@ export interface LogsApiClusterLogsGetRequest {
175185
readonly clusterId: string
176186

177187
/**
178-
* The maximal number of log lines to return.
179-
* @type {number}
188+
* The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
189+
* @type {string}
180190
* @memberof LogsApiClusterLogsGet
181191
*/
182-
readonly limit?: number
192+
readonly start?: string
183193

184194
/**
185-
* The start time for the query in RFC3339 format.
195+
* The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
186196
* @type {string}
187197
* @memberof LogsApiClusterLogsGet
188198
*/
189-
readonly start?: string
199+
readonly end?: string
190200

191201
/**
192-
* The end time for the query in RFC3339 format.
193-
* @type {string}
202+
* The direction in which to scan through the logs. The logs are returned in order of the direction.
203+
* @type {'BACKWARD' | 'FORWARD'}
194204
* @memberof LogsApiClusterLogsGet
195205
*/
196-
readonly end?: string
206+
readonly direction?: 'BACKWARD' | 'FORWARD'
207+
208+
/**
209+
* The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction).
210+
* @type {number}
211+
* @memberof LogsApiClusterLogsGet
212+
*/
213+
readonly limit?: number
197214
}
198215

199216
/**
@@ -212,6 +229,6 @@ export class LogsApi extends BaseAPI {
212229
* @memberof LogsApi
213230
*/
214231
public clusterLogsGet(requestParameters: LogsApiClusterLogsGetRequest, options?: any) {
215-
return LogsApiFp(this.configuration).clusterLogsGet(requestParameters.clusterId, requestParameters.limit, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
232+
return LogsApiFp(this.configuration).clusterLogsGet(requestParameters.clusterId, requestParameters.start, requestParameters.end, requestParameters.direction, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
216233
}
217234
}

api/metadata-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

api/restores-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* IONOS DBaaS REST API
55
* An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
66
*
7-
* The version of the OpenAPI document: 0.0.1
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -120,7 +120,7 @@ export class Configuration {
120120
this.maxRetries = DEFAULT_MAX_RETRIES;
121121
this.maxWaitTime = DEFAULT_MAX_WAIT_TIME;
122122
this.debug = false;
123-
this.setUserAgent('ionos-cloud-dbaas-sdk-node/v1.0.0');
123+
this.setUserAgent('ionos-cloud-dbaas-sdk-node/v1.0.1');
124124
}
125125

126126
static fromEnv(): Configuration {

docs/api/LogsApi.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ const api_instance = new ionoscloud.LogsApi(config);
3030
api_instance
3131
.clusterLogsGet({
3232
clusterId: clusterId_example,
33-
limit: 56,
3433
start: 2013-10-20T19:20:30+01:00,
35-
end: 2013-10-20T19:20:30+01:00,
34+
end: 2013-10-20T19:20:30+01:00,
35+
direction: direction_example,
36+
limit: 56,
3637
options: {}
3738
})
3839
.then((response) => console.log(response.data))
@@ -44,9 +45,10 @@ api_instance
4445
| Name | Type | Description | Notes |
4546
| ---- | ---- | ----------- | ----- |
4647
| **clusterId** | **string** | The unique ID of the cluster. | [default to undefined] |
47-
| **limit** | **number** | The maximal number of log lines to return. | [optional][default to undefined] |
48-
| **start** | **string** | The start time for the query in RFC3339 format. | [optional][default to undefined] |
49-
| **end** | **string** | The end time for the query in RFC3339 format. | [optional][default to undefined] |
48+
| **start** | **string** | The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago. | [optional][default to undefined] |
49+
| **end** | **string** | The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp. | [optional][default to undefined] |
50+
| **direction** | **&#39;BACKWARD&#39; | &#39;FORWARD&#39;** | The direction in which to scan through the logs. The logs are returned in order of the direction. | [optional][default to &#39;BACKWARD&#39;] |
51+
| **limit** | **number** | The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction). | [optional][default to 100] |
5052

5153
### Return type
5254

0 commit comments

Comments
 (0)