@devopness/sdk-js 2.151.0 → 2.152.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.
|
@@ -56,6 +56,12 @@ export declare class ServersApiService extends ApiBaseService {
|
|
|
56
56
|
* @param {number} serverId The ID of the server.
|
|
57
57
|
*/
|
|
58
58
|
restartServer(serverId: number): Promise<ApiResponse<void>>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @summary Rotate the key used to access the server
|
|
62
|
+
* @param {number} serverId The ID of the server.
|
|
63
|
+
*/
|
|
64
|
+
rotateKeyServer(serverId: number): Promise<ApiResponse<void>>;
|
|
59
65
|
/**
|
|
60
66
|
*
|
|
61
67
|
* @summary Start a previously stopped server
|
|
@@ -137,6 +137,22 @@ class ServersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
137
137
|
return new ApiResponse_1.ApiResponse(response);
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @summary Rotate the key used to access the server
|
|
143
|
+
* @param {number} serverId The ID of the server.
|
|
144
|
+
*/
|
|
145
|
+
rotateKeyServer(serverId) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
if (serverId === null || serverId === undefined) {
|
|
148
|
+
throw new Exceptions_1.ArgumentNullException('serverId', 'rotateKeyServer');
|
|
149
|
+
}
|
|
150
|
+
let queryString = '';
|
|
151
|
+
const requestUrl = '/servers/{server_id}/rotate-key' + (queryString ? `?${queryString}` : '');
|
|
152
|
+
const response = yield this.post(requestUrl.replace(`{${"server_id"}}`, encodeURIComponent(String(serverId))));
|
|
153
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
140
156
|
/**
|
|
141
157
|
*
|
|
142
158
|
* @summary Start a previously stopped server
|
|
@@ -40,7 +40,13 @@ export interface ActionStep {
|
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof ActionStep
|
|
42
42
|
*/
|
|
43
|
-
name: string;
|
|
43
|
+
name: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* A short text describing the command. Can be helpful for other team members to understand why a pipeline step is needed.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ActionStep
|
|
48
|
+
*/
|
|
49
|
+
description?: string | null;
|
|
44
50
|
/**
|
|
45
51
|
* The execution order of the given step
|
|
46
52
|
* @type {number}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devopness/sdk-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.152.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"husky": "9.1.1",
|
|
64
64
|
"jest": "^29.7.0",
|
|
65
65
|
"ts-jest": "^29.2.3",
|
|
66
|
-
"typedoc": "^0.27.
|
|
66
|
+
"typedoc": "^0.27.5",
|
|
67
67
|
"typescript": "^5.7.2"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|