@devopness/sdk-js 3.1.10 → 3.2.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.
- package/README.md +75 -20
- package/dist/api/generated/apis/cron-jobs-api.d.ts +8 -0
- package/dist/api/generated/apis/cron-jobs-api.js +20 -0
- package/dist/api/generated/apis/daemons-api.d.ts +8 -0
- package/dist/api/generated/apis/daemons-api.js +20 -0
- package/dist/api/generated/apis/network-rules-api.d.ts +8 -0
- package/dist/api/generated/apis/network-rules-api.js +20 -0
- package/dist/api/generated/apis/servers-api.d.ts +6 -0
- package/dist/api/generated/apis/servers-api.js +16 -0
- package/dist/api/generated/apis/services-api.d.ts +8 -0
- package/dist/api/generated/apis/services-api.js +20 -0
- package/dist/api/generated/apis/sshkeys-api.d.ts +8 -0
- package/dist/api/generated/apis/sshkeys-api.js +20 -0
- package/dist/api/generated/apis/sslcertificates-api.d.ts +8 -0
- package/dist/api/generated/apis/sslcertificates-api.js +20 -0
- package/dist/api/generated/apis/subnets-api.d.ts +9 -0
- package/dist/api/generated/apis/subnets-api.js +25 -0
- package/dist/api/generated/apis/virtual-hosts-api.d.ts +8 -0
- package/dist/api/generated/apis/virtual-hosts-api.js +20 -0
- package/dist/api/generated/models/cron-job-deploy.d.ts +24 -0
- package/dist/api/generated/models/cron-job-deploy.js +14 -0
- package/dist/api/generated/models/daemon-deploy.d.ts +24 -0
- package/dist/api/generated/models/daemon-deploy.js +14 -0
- package/dist/api/generated/models/index.d.ts +7 -0
- package/dist/api/generated/models/index.js +7 -0
- package/dist/api/generated/models/network-rule-deploy.d.ts +24 -0
- package/dist/api/generated/models/network-rule-deploy.js +14 -0
- package/dist/api/generated/models/service-deploy.d.ts +24 -0
- package/dist/api/generated/models/service-deploy.js +14 -0
- package/dist/api/generated/models/ssh-key-deploy.d.ts +24 -0
- package/dist/api/generated/models/ssh-key-deploy.js +14 -0
- package/dist/api/generated/models/ssl-certificate-deploy.d.ts +24 -0
- package/dist/api/generated/models/ssl-certificate-deploy.js +14 -0
- package/dist/api/generated/models/subnet-relation.d.ts +4 -3
- package/dist/api/generated/models/virtual-host-deploy.d.ts +24 -0
- package/dist/api/generated/models/virtual-host-deploy.js +14 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -9,7 +9,9 @@ Devopness SDK includes a pre-defined set of classes that provide convenient acce
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
### Install/Upgrade
|
|
12
|
+
|
|
12
13
|
Use your favourite package manager to install Devopness SDK as a dependency of your project:
|
|
14
|
+
|
|
13
15
|
```bash
|
|
14
16
|
# Using npm
|
|
15
17
|
npm install @devopness/sdk-js
|
|
@@ -34,107 +36,160 @@ The name of the methods at services is the same as the operation name in the doc
|
|
|
34
36
|
Devopness API. You can consult the URL of an endpoint to see the operation name. For instance,
|
|
35
37
|
the URL to endpoint `POST /users/login` in the documentation is: `/#operation/login`
|
|
36
38
|
|
|
37
|
-
###
|
|
39
|
+
### Authentication
|
|
40
|
+
|
|
41
|
+
#### Authentication with Personal Access Token
|
|
38
42
|
|
|
39
|
-
|
|
43
|
+
Ensure you have a Personal Access Token from Devopness. If you don't have one, see [Add a Personal Access Token](https://www.devopness.com/docs/api-tokens/personal-access-tokens/add-personal-access-token).
|
|
44
|
+
|
|
45
|
+
**Option 1: Pass token during initialization**
|
|
40
46
|
|
|
41
47
|
```javascript
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
48
|
+
import { DevopnessApiClient } from '@devopness/sdk-js'
|
|
49
|
+
|
|
50
|
+
const devopnessApi = new DevopnessApiClient({
|
|
51
|
+
apiToken: 'your-personal-access-token-here'
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const currentUser = await devopnessApi.users.getUserMe();
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Option 2: Set token after initialization**
|
|
58
|
+
|
|
59
|
+
```javascript
|
|
60
|
+
import { DevopnessApiClient } from '@devopness/sdk-js'
|
|
61
|
+
|
|
62
|
+
const devopnessApi = new DevopnessApiClient();
|
|
63
|
+
devopnessApi.apiToken = 'your-personal-access-token-here';
|
|
47
64
|
|
|
48
|
-
|
|
49
|
-
authenticate('user@email.com', 'secret-password');
|
|
65
|
+
const currentUser = await devopnessApi.users.getUserMe();
|
|
50
66
|
```
|
|
51
67
|
|
|
52
|
-
|
|
68
|
+
#### Authentication with Project API Token
|
|
53
69
|
|
|
54
|
-
|
|
55
|
-
Once an authentication token is set, any protected endpoint can be invoked.
|
|
56
|
-
Example retrieving current user details:
|
|
70
|
+
Ensure you have a Project API Token from Devopness. If you don't have one, see [Add a Project API Token](https://www.devopness.com/docs/api-tokens/project-api-tokens/add-project-api-token).
|
|
57
71
|
|
|
58
72
|
```javascript
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
73
|
+
import { DevopnessApiClient } from '@devopness/sdk-js'
|
|
74
|
+
|
|
75
|
+
const devopnessApi = new DevopnessApiClient({
|
|
76
|
+
apiToken: 'your-project-api-token-here'
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
const project = await devopnessApi.projects.getProject(projectId);
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
#### Authentication with Login (Deprecated)
|
|
83
|
+
|
|
84
|
+
> **Warning:** Email/password authentication is no longer supported. API requests using this method return 4xx errors.
|
|
85
|
+
|
|
86
|
+
### Invoking authentication-protected endpoints
|
|
87
|
+
|
|
88
|
+
Once authenticated, you can invoke protected endpoints. Here's an example of retrieving user details and listing projects:
|
|
63
89
|
|
|
64
|
-
|
|
65
|
-
|
|
90
|
+
```javascript
|
|
91
|
+
import { DevopnessApiClient } from '@devopness/sdk-js'
|
|
92
|
+
|
|
93
|
+
const devopnessApi = new DevopnessApiClient({
|
|
94
|
+
apiToken: process.env.DEVOPNESS_API_TOKEN
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
async function getUserProfile() {
|
|
98
|
+
try {
|
|
99
|
+
// Retrieve current user details
|
|
66
100
|
const currentUser = await devopnessApi.users.getUserMe();
|
|
67
|
-
console.log('
|
|
101
|
+
console.log('User ID:', currentUser.data.id);
|
|
102
|
+
} catch (error) {
|
|
103
|
+
console.error('Error:', error.message);
|
|
104
|
+
}
|
|
68
105
|
}
|
|
69
106
|
|
|
70
107
|
getUserProfile();
|
|
71
108
|
```
|
|
72
109
|
|
|
73
110
|
### TypeScript support
|
|
111
|
+
|
|
74
112
|
This package includes TypeScript declarations for every method.
|
|
75
113
|
TypeScript versions `>= 4.4` are supported.
|
|
76
114
|
|
|
77
115
|
>Some methods in `Devopness SDK JavaScript` accept and return objects from the Devopness API. The type declarations for these objects will always track the latest version of the API. Therefore, if you're using the latest version of this package, you can rely on the Devopness API documentation for checking the input and return types of each API endpoint.
|
|
78
116
|
|
|
79
117
|
## Development & Testing
|
|
118
|
+
|
|
80
119
|
To build and test the SDK locally, [**fork this repository**](https://github.com/devopness/devopness/fork) and follow these steps:
|
|
81
120
|
|
|
82
121
|
### With Docker
|
|
122
|
+
|
|
83
123
|
#### Pre-requisites
|
|
124
|
+
|
|
84
125
|
- [Docker](https://www.docker.com/products/docker-desktop/)
|
|
85
126
|
- [make](https://www.gnu.org/software/make/)
|
|
86
127
|
- `make` is pre-installed in most Linux systems.
|
|
87
128
|
- In `macOS` it is included as part of the `Xcode` command line utils. It can be installed with the following command:
|
|
129
|
+
|
|
88
130
|
```
|
|
89
131
|
xcode-select --install
|
|
90
132
|
```
|
|
133
|
+
|
|
91
134
|
### Setup and run in local environment
|
|
135
|
+
|
|
92
136
|
#### 1. Navigate to the project directory
|
|
137
|
+
|
|
93
138
|
```shell
|
|
94
139
|
cd packages/sdks/javascript/
|
|
95
140
|
```
|
|
96
141
|
|
|
97
142
|
#### 2. Build Docker Image
|
|
143
|
+
|
|
98
144
|
```
|
|
99
145
|
make build-image
|
|
100
146
|
```
|
|
101
147
|
|
|
102
148
|
#### 3. Install Dependencies
|
|
149
|
+
|
|
103
150
|
```
|
|
104
151
|
make npm-ci
|
|
105
152
|
```
|
|
106
153
|
|
|
107
154
|
#### 4. Build SDK
|
|
155
|
+
|
|
108
156
|
```
|
|
109
157
|
make build-sdk-js
|
|
110
158
|
```
|
|
111
159
|
|
|
112
160
|
#### 5. Run Tests
|
|
161
|
+
|
|
113
162
|
```
|
|
114
163
|
make test
|
|
115
164
|
```
|
|
116
165
|
|
|
117
166
|
### Without Docker
|
|
167
|
+
|
|
118
168
|
Installing on ``Linux`` or ``macOS`` systems.
|
|
119
169
|
|
|
120
170
|
#### 1. Navigate to the project directory
|
|
171
|
+
|
|
121
172
|
```shell
|
|
122
173
|
cd packages/sdks/javascript/
|
|
123
174
|
```
|
|
124
175
|
|
|
125
176
|
#### 2. Install missing dependencies
|
|
177
|
+
|
|
126
178
|
This command will install all modules listed as dependencies in [package.json](package.json). **A working Java Runtime Environment is also required.** Please, check out the installation instructions
|
|
127
179
|
for your operating system.
|
|
180
|
+
|
|
128
181
|
```
|
|
129
182
|
npm install
|
|
130
183
|
```
|
|
131
184
|
|
|
132
185
|
#### 3. Build SDK
|
|
186
|
+
|
|
133
187
|
```
|
|
134
188
|
npm run build
|
|
135
189
|
```
|
|
136
190
|
|
|
137
191
|
#### 4. Run tests
|
|
192
|
+
|
|
138
193
|
```
|
|
139
194
|
npm run test
|
|
140
195
|
```
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { CronJob } from '../../generated/models';
|
|
15
|
+
import { CronJobDeploy } from '../../generated/models';
|
|
15
16
|
import { CronJobEnvironmentCreate } from '../../generated/models';
|
|
16
17
|
import { CronJobRelation } from '../../generated/models';
|
|
17
18
|
import { CronJobUpdate } from '../../generated/models';
|
|
@@ -32,6 +33,13 @@ export declare class CronJobsApiService extends ApiBaseService {
|
|
|
32
33
|
* @param {number} cronJobId The ID of the cron job.
|
|
33
34
|
*/
|
|
34
35
|
deleteCronJob(cronJobId: number): Promise<ApiResponse<void>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Deploy a Cron Job
|
|
39
|
+
* @param {number} cronJobId The ID of the cron job.
|
|
40
|
+
* @param {CronJobDeploy} cronJobDeploy A JSON object containing the resource data
|
|
41
|
+
*/
|
|
42
|
+
deployCronJob(cronJobId: number, cronJobDeploy: CronJobDeploy): Promise<ApiResponse<void>>;
|
|
35
43
|
/**
|
|
36
44
|
*
|
|
37
45
|
* @summary Get a Cron Job by ID
|
|
@@ -65,6 +65,26 @@ class CronJobsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
65
65
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Deploy a Cron Job
|
|
71
|
+
* @param {number} cronJobId The ID of the cron job.
|
|
72
|
+
* @param {CronJobDeploy} cronJobDeploy A JSON object containing the resource data
|
|
73
|
+
*/
|
|
74
|
+
deployCronJob(cronJobId, cronJobDeploy) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (cronJobId === null || cronJobId === undefined) {
|
|
77
|
+
throw new Exceptions_1.ArgumentNullException('cronJobId', 'deployCronJob');
|
|
78
|
+
}
|
|
79
|
+
if (cronJobDeploy === null || cronJobDeploy === undefined) {
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('cronJobDeploy', 'deployCronJob');
|
|
81
|
+
}
|
|
82
|
+
let queryString = '';
|
|
83
|
+
const requestUrl = '/cron-jobs/{cron_job_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
84
|
+
const response = yield this.post(requestUrl.replace(`{${"cron_job_id"}}`, encodeURIComponent(String(cronJobId))), cronJobDeploy);
|
|
85
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
68
88
|
/**
|
|
69
89
|
*
|
|
70
90
|
* @summary Get a Cron Job by ID
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Daemon } from '../../generated/models';
|
|
15
|
+
import { DaemonDeploy } from '../../generated/models';
|
|
15
16
|
import { DaemonEnvironmentCreate } from '../../generated/models';
|
|
16
17
|
import { DaemonGetStatus } from '../../generated/models';
|
|
17
18
|
import { DaemonRelation } from '../../generated/models';
|
|
@@ -36,6 +37,13 @@ export declare class DaemonsApiService extends ApiBaseService {
|
|
|
36
37
|
* @param {number} daemonId The ID of the daemon.
|
|
37
38
|
*/
|
|
38
39
|
deleteDaemon(daemonId: number): Promise<ApiResponse<void>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Deploy a Daemon
|
|
43
|
+
* @param {number} daemonId The ID of the daemon.
|
|
44
|
+
* @param {DaemonDeploy} daemonDeploy A JSON object containing the resource data
|
|
45
|
+
*/
|
|
46
|
+
deployDaemon(daemonId: number, daemonDeploy: DaemonDeploy): Promise<ApiResponse<void>>;
|
|
39
47
|
/**
|
|
40
48
|
*
|
|
41
49
|
* @summary Get a Daemon by ID
|
|
@@ -65,6 +65,26 @@ class DaemonsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
65
65
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Deploy a Daemon
|
|
71
|
+
* @param {number} daemonId The ID of the daemon.
|
|
72
|
+
* @param {DaemonDeploy} daemonDeploy A JSON object containing the resource data
|
|
73
|
+
*/
|
|
74
|
+
deployDaemon(daemonId, daemonDeploy) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (daemonId === null || daemonId === undefined) {
|
|
77
|
+
throw new Exceptions_1.ArgumentNullException('daemonId', 'deployDaemon');
|
|
78
|
+
}
|
|
79
|
+
if (daemonDeploy === null || daemonDeploy === undefined) {
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('daemonDeploy', 'deployDaemon');
|
|
81
|
+
}
|
|
82
|
+
let queryString = '';
|
|
83
|
+
const requestUrl = '/daemons/{daemon_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
84
|
+
const response = yield this.post(requestUrl.replace(`{${"daemon_id"}}`, encodeURIComponent(String(daemonId))), daemonDeploy);
|
|
85
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
68
88
|
/**
|
|
69
89
|
*
|
|
70
90
|
* @summary Get a Daemon by ID
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { NetworkRule } from '../../generated/models';
|
|
15
|
+
import { NetworkRuleDeploy } from '../../generated/models';
|
|
15
16
|
import { NetworkRuleEnvironmentCreate } from '../../generated/models';
|
|
16
17
|
import { NetworkRuleRelation } from '../../generated/models';
|
|
17
18
|
import { NetworkRuleUpdate } from '../../generated/models';
|
|
@@ -32,6 +33,13 @@ export declare class NetworkRulesApiService extends ApiBaseService {
|
|
|
32
33
|
* @param {number} networkRuleId The ID of the network rule.
|
|
33
34
|
*/
|
|
34
35
|
deleteNetworkRule(networkRuleId: number): Promise<ApiResponse<void>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Deploy a Network Rule
|
|
39
|
+
* @param {number} networkRuleId The ID of the network rule.
|
|
40
|
+
* @param {NetworkRuleDeploy} networkRuleDeploy A JSON object containing the resource data
|
|
41
|
+
*/
|
|
42
|
+
deployNetworkRule(networkRuleId: number, networkRuleDeploy: NetworkRuleDeploy): Promise<ApiResponse<void>>;
|
|
35
43
|
/**
|
|
36
44
|
*
|
|
37
45
|
* @summary Get a Network Rule by ID
|
|
@@ -65,6 +65,26 @@ class NetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
65
65
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Deploy a Network Rule
|
|
71
|
+
* @param {number} networkRuleId The ID of the network rule.
|
|
72
|
+
* @param {NetworkRuleDeploy} networkRuleDeploy A JSON object containing the resource data
|
|
73
|
+
*/
|
|
74
|
+
deployNetworkRule(networkRuleId, networkRuleDeploy) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (networkRuleId === null || networkRuleId === undefined) {
|
|
77
|
+
throw new Exceptions_1.ArgumentNullException('networkRuleId', 'deployNetworkRule');
|
|
78
|
+
}
|
|
79
|
+
if (networkRuleDeploy === null || networkRuleDeploy === undefined) {
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('networkRuleDeploy', 'deployNetworkRule');
|
|
81
|
+
}
|
|
82
|
+
let queryString = '';
|
|
83
|
+
const requestUrl = '/network-rules/{network_rule_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
84
|
+
const response = yield this.post(requestUrl.replace(`{${"network_rule_id"}}`, encodeURIComponent(String(networkRuleId))), networkRuleDeploy);
|
|
85
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
68
88
|
/**
|
|
69
89
|
*
|
|
70
90
|
* @summary Get a Network Rule by ID
|
|
@@ -41,6 +41,12 @@ export declare class ServersApiService extends ApiBaseService {
|
|
|
41
41
|
* @param {boolean} [destroyServerDisks] Indicates whether disks associated with a cloud server should be deleted after the server is destroyed
|
|
42
42
|
*/
|
|
43
43
|
deleteServer(serverId: number, destroyServerDisks?: boolean): Promise<ApiResponse<void>>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary Deploy a Server
|
|
47
|
+
* @param {number} serverId The ID of the server.
|
|
48
|
+
*/
|
|
49
|
+
deployServer(serverId: number): Promise<ApiResponse<void>>;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @summary Get a server by ID
|
|
@@ -93,6 +93,22 @@ class ServersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
93
93
|
return new ApiResponse_1.ApiResponse(response);
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Deploy a Server
|
|
99
|
+
* @param {number} serverId The ID of the server.
|
|
100
|
+
*/
|
|
101
|
+
deployServer(serverId) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
if (serverId === null || serverId === undefined) {
|
|
104
|
+
throw new Exceptions_1.ArgumentNullException('serverId', 'deployServer');
|
|
105
|
+
}
|
|
106
|
+
let queryString = '';
|
|
107
|
+
const requestUrl = '/servers/{server_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
108
|
+
const response = yield this.post(requestUrl.replace(`{${"server_id"}}`, encodeURIComponent(String(serverId))));
|
|
109
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
96
112
|
/**
|
|
97
113
|
*
|
|
98
114
|
* @summary Get a server by ID
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Service } from '../../generated/models';
|
|
15
|
+
import { ServiceDeploy } from '../../generated/models';
|
|
15
16
|
import { ServiceEnvironmentCreate } from '../../generated/models';
|
|
16
17
|
import { ServiceGetStatus } from '../../generated/models';
|
|
17
18
|
import { ServiceRelation } from '../../generated/models';
|
|
@@ -37,6 +38,13 @@ export declare class ServicesApiService extends ApiBaseService {
|
|
|
37
38
|
* @param {number} serviceId The ID of the service.
|
|
38
39
|
*/
|
|
39
40
|
deleteService(serviceId: number): Promise<ApiResponse<void>>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Deploy a Service
|
|
44
|
+
* @param {number} serviceId The ID of the service.
|
|
45
|
+
* @param {ServiceDeploy} serviceDeploy A JSON object containing the resource data
|
|
46
|
+
*/
|
|
47
|
+
deployService(serviceId: number, serviceDeploy: ServiceDeploy): Promise<ApiResponse<void>>;
|
|
40
48
|
/**
|
|
41
49
|
*
|
|
42
50
|
* @summary Get details of a single service
|
|
@@ -65,6 +65,26 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
65
65
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Deploy a Service
|
|
71
|
+
* @param {number} serviceId The ID of the service.
|
|
72
|
+
* @param {ServiceDeploy} serviceDeploy A JSON object containing the resource data
|
|
73
|
+
*/
|
|
74
|
+
deployService(serviceId, serviceDeploy) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (serviceId === null || serviceId === undefined) {
|
|
77
|
+
throw new Exceptions_1.ArgumentNullException('serviceId', 'deployService');
|
|
78
|
+
}
|
|
79
|
+
if (serviceDeploy === null || serviceDeploy === undefined) {
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('serviceDeploy', 'deployService');
|
|
81
|
+
}
|
|
82
|
+
let queryString = '';
|
|
83
|
+
const requestUrl = '/services/{service_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
84
|
+
const response = yield this.post(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))), serviceDeploy);
|
|
85
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
68
88
|
/**
|
|
69
89
|
*
|
|
70
90
|
* @summary Get details of a single service
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { SshKey } from '../../generated/models';
|
|
15
|
+
import { SshKeyDeploy } from '../../generated/models';
|
|
15
16
|
import { SshKeyEnvironmentCreate } from '../../generated/models';
|
|
16
17
|
import { SshKeyRelation } from '../../generated/models';
|
|
17
18
|
import { SshKeyUpdate } from '../../generated/models';
|
|
@@ -32,6 +33,13 @@ export declare class SSHKeysApiService extends ApiBaseService {
|
|
|
32
33
|
* @param {number} sshKeyId The ID of the ssh key.
|
|
33
34
|
*/
|
|
34
35
|
deleteSshKey(sshKeyId: number): Promise<ApiResponse<void>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Deploy a SSH Key
|
|
39
|
+
* @param {number} sshKeyId The ID of the ssh key.
|
|
40
|
+
* @param {SshKeyDeploy} sshKeyDeploy A JSON object containing the resource data
|
|
41
|
+
*/
|
|
42
|
+
deploySshKey(sshKeyId: number, sshKeyDeploy: SshKeyDeploy): Promise<ApiResponse<void>>;
|
|
35
43
|
/**
|
|
36
44
|
*
|
|
37
45
|
* @summary Get a SSH key by ID
|
|
@@ -65,6 +65,26 @@ class SSHKeysApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
65
65
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Deploy a SSH Key
|
|
71
|
+
* @param {number} sshKeyId The ID of the ssh key.
|
|
72
|
+
* @param {SshKeyDeploy} sshKeyDeploy A JSON object containing the resource data
|
|
73
|
+
*/
|
|
74
|
+
deploySshKey(sshKeyId, sshKeyDeploy) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (sshKeyId === null || sshKeyId === undefined) {
|
|
77
|
+
throw new Exceptions_1.ArgumentNullException('sshKeyId', 'deploySshKey');
|
|
78
|
+
}
|
|
79
|
+
if (sshKeyDeploy === null || sshKeyDeploy === undefined) {
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('sshKeyDeploy', 'deploySshKey');
|
|
81
|
+
}
|
|
82
|
+
let queryString = '';
|
|
83
|
+
const requestUrl = '/ssh-keys/{ssh_key_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
84
|
+
const response = yield this.post(requestUrl.replace(`{${"ssh_key_id"}}`, encodeURIComponent(String(sshKeyId))), sshKeyDeploy);
|
|
85
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
68
88
|
/**
|
|
69
89
|
*
|
|
70
90
|
* @summary Get a SSH key by ID
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { SslCertificate } from '../../generated/models';
|
|
15
|
+
import { SslCertificateDeploy } from '../../generated/models';
|
|
15
16
|
import { SslCertificateEnvironmentCreate } from '../../generated/models';
|
|
16
17
|
import { SslCertificateRelation } from '../../generated/models';
|
|
17
18
|
/**
|
|
@@ -31,6 +32,13 @@ export declare class SSLCertificatesApiService extends ApiBaseService {
|
|
|
31
32
|
* @param {number} sslCertificateId The ID of the ssl certificate.
|
|
32
33
|
*/
|
|
33
34
|
deleteSslCertificate(sslCertificateId: number): Promise<ApiResponse<void>>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary Deploy a SSL Certificate
|
|
38
|
+
* @param {number} sslCertificateId The ID of the ssl certificate.
|
|
39
|
+
* @param {SslCertificateDeploy} sslCertificateDeploy A JSON object containing the resource data
|
|
40
|
+
*/
|
|
41
|
+
deploySslCertificate(sslCertificateId: number, sslCertificateDeploy: SslCertificateDeploy): Promise<ApiResponse<void>>;
|
|
34
42
|
/**
|
|
35
43
|
*
|
|
36
44
|
* @summary Get details of a single SSL certificate
|
|
@@ -65,6 +65,26 @@ class SSLCertificatesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
65
65
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Deploy a SSL Certificate
|
|
71
|
+
* @param {number} sslCertificateId The ID of the ssl certificate.
|
|
72
|
+
* @param {SslCertificateDeploy} sslCertificateDeploy A JSON object containing the resource data
|
|
73
|
+
*/
|
|
74
|
+
deploySslCertificate(sslCertificateId, sslCertificateDeploy) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (sslCertificateId === null || sslCertificateId === undefined) {
|
|
77
|
+
throw new Exceptions_1.ArgumentNullException('sslCertificateId', 'deploySslCertificate');
|
|
78
|
+
}
|
|
79
|
+
if (sslCertificateDeploy === null || sslCertificateDeploy === undefined) {
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('sslCertificateDeploy', 'deploySslCertificate');
|
|
81
|
+
}
|
|
82
|
+
let queryString = '';
|
|
83
|
+
const requestUrl = '/ssl-certificates/{ssl_certificate_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
84
|
+
const response = yield this.post(requestUrl.replace(`{${"ssl_certificate_id"}}`, encodeURIComponent(String(sslCertificateId))), sslCertificateDeploy);
|
|
85
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
68
88
|
/**
|
|
69
89
|
*
|
|
70
90
|
* @summary Get details of a single SSL certificate
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Subnet } from '../../generated/models';
|
|
15
|
+
import { SubnetRelation } from '../../generated/models';
|
|
15
16
|
/**
|
|
16
17
|
* SubnetsApiService - Auto-generated
|
|
17
18
|
*/
|
|
@@ -28,4 +29,12 @@ export declare class SubnetsApiService extends ApiBaseService {
|
|
|
28
29
|
* @param {number} subnetId The ID of the subnet.
|
|
29
30
|
*/
|
|
30
31
|
getSubnet(subnetId: number): Promise<ApiResponse<Subnet>>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Return a list of all subnets belonging to an environment
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
37
|
+
* @param {number} [perPage] Number of items returned per page
|
|
38
|
+
*/
|
|
39
|
+
listEnvironmentSubnets(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<SubnetRelation>>>;
|
|
31
40
|
}
|
|
@@ -61,5 +61,30 @@ class SubnetsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
61
61
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Return a list of all subnets belonging to an environment
|
|
67
|
+
* @param {number} environmentId The ID of the environment.
|
|
68
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
69
|
+
* @param {number} [perPage] Number of items returned per page
|
|
70
|
+
*/
|
|
71
|
+
listEnvironmentSubnets(environmentId, page, perPage) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
if (environmentId === null || environmentId === undefined) {
|
|
74
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentSubnets');
|
|
75
|
+
}
|
|
76
|
+
let queryString = '';
|
|
77
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
78
|
+
for (const key in queryParams) {
|
|
79
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
83
|
+
}
|
|
84
|
+
const requestUrl = '/environments/{environment_id}/subnets' + (queryString ? `?${queryString}` : '');
|
|
85
|
+
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
86
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
64
89
|
}
|
|
65
90
|
exports.SubnetsApiService = SubnetsApiService;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { VirtualHost } from '../../generated/models';
|
|
15
|
+
import { VirtualHostDeploy } from '../../generated/models';
|
|
15
16
|
import { VirtualHostEnvironmentCreate } from '../../generated/models';
|
|
16
17
|
import { VirtualHostGetStatus } from '../../generated/models';
|
|
17
18
|
import { VirtualHostRelation } from '../../generated/models';
|
|
@@ -33,6 +34,13 @@ export declare class VirtualHostsApiService extends ApiBaseService {
|
|
|
33
34
|
* @param {number} virtualHostId The ID of the virtual host.
|
|
34
35
|
*/
|
|
35
36
|
deleteVirtualHost(virtualHostId: number): Promise<ApiResponse<void>>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary Deploy a Virtual Host
|
|
40
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
41
|
+
* @param {VirtualHostDeploy} virtualHostDeploy A JSON object containing the resource data
|
|
42
|
+
*/
|
|
43
|
+
deployVirtualHost(virtualHostId: number, virtualHostDeploy: VirtualHostDeploy): Promise<ApiResponse<void>>;
|
|
36
44
|
/**
|
|
37
45
|
*
|
|
38
46
|
* @summary Get current status of a virtual host
|
|
@@ -65,6 +65,26 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
65
65
|
return new ApiResponse_1.ApiResponse(response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Deploy a Virtual Host
|
|
71
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
72
|
+
* @param {VirtualHostDeploy} virtualHostDeploy A JSON object containing the resource data
|
|
73
|
+
*/
|
|
74
|
+
deployVirtualHost(virtualHostId, virtualHostDeploy) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (virtualHostId === null || virtualHostId === undefined) {
|
|
77
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostId', 'deployVirtualHost');
|
|
78
|
+
}
|
|
79
|
+
if (virtualHostDeploy === null || virtualHostDeploy === undefined) {
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostDeploy', 'deployVirtualHost');
|
|
81
|
+
}
|
|
82
|
+
let queryString = '';
|
|
83
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}/deploy' + (queryString ? `?${queryString}` : '');
|
|
84
|
+
const response = yield this.post(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))), virtualHostDeploy);
|
|
85
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
68
88
|
/**
|
|
69
89
|
*
|
|
70
90
|
* @summary Get current status of a virtual host
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 CronJobDeploy
|
|
16
|
+
*/
|
|
17
|
+
export interface CronJobDeploy {
|
|
18
|
+
/**
|
|
19
|
+
* List of valid resource IDs
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof CronJobDeploy
|
|
22
|
+
*/
|
|
23
|
+
servers?: Array<number>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 DaemonDeploy
|
|
16
|
+
*/
|
|
17
|
+
export interface DaemonDeploy {
|
|
18
|
+
/**
|
|
19
|
+
* List of valid resource IDs
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof DaemonDeploy
|
|
22
|
+
*/
|
|
23
|
+
servers?: Array<number>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -84,12 +84,14 @@ export * from './credential-source-provider';
|
|
|
84
84
|
export * from './credential-update';
|
|
85
85
|
export * from './credits';
|
|
86
86
|
export * from './cron-job';
|
|
87
|
+
export * from './cron-job-deploy';
|
|
87
88
|
export * from './cron-job-environment-create';
|
|
88
89
|
export * from './cron-job-options';
|
|
89
90
|
export * from './cron-job-pattern';
|
|
90
91
|
export * from './cron-job-relation';
|
|
91
92
|
export * from './cron-job-update';
|
|
92
93
|
export * from './daemon';
|
|
94
|
+
export * from './daemon-deploy';
|
|
93
95
|
export * from './daemon-environment-create';
|
|
94
96
|
export * from './daemon-get-status';
|
|
95
97
|
export * from './daemon-relation';
|
|
@@ -148,6 +150,7 @@ export * from './network-provision-input-settings-digital-ocean';
|
|
|
148
150
|
export * from './network-provision-input-settings-gcp';
|
|
149
151
|
export * from './network-relation';
|
|
150
152
|
export * from './network-rule';
|
|
153
|
+
export * from './network-rule-deploy';
|
|
151
154
|
export * from './network-rule-direction';
|
|
152
155
|
export * from './network-rule-environment-create';
|
|
153
156
|
export * from './network-rule-options';
|
|
@@ -227,6 +230,7 @@ export * from './server-relation';
|
|
|
227
230
|
export * from './server-status';
|
|
228
231
|
export * from './server-update';
|
|
229
232
|
export * from './service';
|
|
233
|
+
export * from './service-deploy';
|
|
230
234
|
export * from './service-environment-create';
|
|
231
235
|
export * from './service-get-status';
|
|
232
236
|
export * from './service-initial-state';
|
|
@@ -248,10 +252,12 @@ export * from './source-provider-displayable-name';
|
|
|
248
252
|
export * from './source-provider-name';
|
|
249
253
|
export * from './source-type';
|
|
250
254
|
export * from './ssh-key';
|
|
255
|
+
export * from './ssh-key-deploy';
|
|
251
256
|
export * from './ssh-key-environment-create';
|
|
252
257
|
export * from './ssh-key-relation';
|
|
253
258
|
export * from './ssh-key-update';
|
|
254
259
|
export * from './ssl-certificate';
|
|
260
|
+
export * from './ssl-certificate-deploy';
|
|
255
261
|
export * from './ssl-certificate-environment-create';
|
|
256
262
|
export * from './ssl-certificate-issuer';
|
|
257
263
|
export * from './ssl-certificate-relation';
|
|
@@ -324,6 +330,7 @@ export * from './variable-targets';
|
|
|
324
330
|
export * from './variable-type';
|
|
325
331
|
export * from './variable-update';
|
|
326
332
|
export * from './virtual-host';
|
|
333
|
+
export * from './virtual-host-deploy';
|
|
327
334
|
export * from './virtual-host-environment-create';
|
|
328
335
|
export * from './virtual-host-get-status';
|
|
329
336
|
export * from './virtual-host-options';
|
|
@@ -100,12 +100,14 @@ __exportStar(require("./credential-source-provider"), exports);
|
|
|
100
100
|
__exportStar(require("./credential-update"), exports);
|
|
101
101
|
__exportStar(require("./credits"), exports);
|
|
102
102
|
__exportStar(require("./cron-job"), exports);
|
|
103
|
+
__exportStar(require("./cron-job-deploy"), exports);
|
|
103
104
|
__exportStar(require("./cron-job-environment-create"), exports);
|
|
104
105
|
__exportStar(require("./cron-job-options"), exports);
|
|
105
106
|
__exportStar(require("./cron-job-pattern"), exports);
|
|
106
107
|
__exportStar(require("./cron-job-relation"), exports);
|
|
107
108
|
__exportStar(require("./cron-job-update"), exports);
|
|
108
109
|
__exportStar(require("./daemon"), exports);
|
|
110
|
+
__exportStar(require("./daemon-deploy"), exports);
|
|
109
111
|
__exportStar(require("./daemon-environment-create"), exports);
|
|
110
112
|
__exportStar(require("./daemon-get-status"), exports);
|
|
111
113
|
__exportStar(require("./daemon-relation"), exports);
|
|
@@ -164,6 +166,7 @@ __exportStar(require("./network-provision-input-settings-digital-ocean"), export
|
|
|
164
166
|
__exportStar(require("./network-provision-input-settings-gcp"), exports);
|
|
165
167
|
__exportStar(require("./network-relation"), exports);
|
|
166
168
|
__exportStar(require("./network-rule"), exports);
|
|
169
|
+
__exportStar(require("./network-rule-deploy"), exports);
|
|
167
170
|
__exportStar(require("./network-rule-direction"), exports);
|
|
168
171
|
__exportStar(require("./network-rule-environment-create"), exports);
|
|
169
172
|
__exportStar(require("./network-rule-options"), exports);
|
|
@@ -243,6 +246,7 @@ __exportStar(require("./server-relation"), exports);
|
|
|
243
246
|
__exportStar(require("./server-status"), exports);
|
|
244
247
|
__exportStar(require("./server-update"), exports);
|
|
245
248
|
__exportStar(require("./service"), exports);
|
|
249
|
+
__exportStar(require("./service-deploy"), exports);
|
|
246
250
|
__exportStar(require("./service-environment-create"), exports);
|
|
247
251
|
__exportStar(require("./service-get-status"), exports);
|
|
248
252
|
__exportStar(require("./service-initial-state"), exports);
|
|
@@ -264,10 +268,12 @@ __exportStar(require("./source-provider-displayable-name"), exports);
|
|
|
264
268
|
__exportStar(require("./source-provider-name"), exports);
|
|
265
269
|
__exportStar(require("./source-type"), exports);
|
|
266
270
|
__exportStar(require("./ssh-key"), exports);
|
|
271
|
+
__exportStar(require("./ssh-key-deploy"), exports);
|
|
267
272
|
__exportStar(require("./ssh-key-environment-create"), exports);
|
|
268
273
|
__exportStar(require("./ssh-key-relation"), exports);
|
|
269
274
|
__exportStar(require("./ssh-key-update"), exports);
|
|
270
275
|
__exportStar(require("./ssl-certificate"), exports);
|
|
276
|
+
__exportStar(require("./ssl-certificate-deploy"), exports);
|
|
271
277
|
__exportStar(require("./ssl-certificate-environment-create"), exports);
|
|
272
278
|
__exportStar(require("./ssl-certificate-issuer"), exports);
|
|
273
279
|
__exportStar(require("./ssl-certificate-relation"), exports);
|
|
@@ -340,6 +346,7 @@ __exportStar(require("./variable-targets"), exports);
|
|
|
340
346
|
__exportStar(require("./variable-type"), exports);
|
|
341
347
|
__exportStar(require("./variable-update"), exports);
|
|
342
348
|
__exportStar(require("./virtual-host"), exports);
|
|
349
|
+
__exportStar(require("./virtual-host-deploy"), exports);
|
|
343
350
|
__exportStar(require("./virtual-host-environment-create"), exports);
|
|
344
351
|
__exportStar(require("./virtual-host-get-status"), exports);
|
|
345
352
|
__exportStar(require("./virtual-host-options"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 NetworkRuleDeploy
|
|
16
|
+
*/
|
|
17
|
+
export interface NetworkRuleDeploy {
|
|
18
|
+
/**
|
|
19
|
+
* List of valid resource IDs
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof NetworkRuleDeploy
|
|
22
|
+
*/
|
|
23
|
+
servers?: Array<number>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 ServiceDeploy
|
|
16
|
+
*/
|
|
17
|
+
export interface ServiceDeploy {
|
|
18
|
+
/**
|
|
19
|
+
* List of valid resource IDs
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof ServiceDeploy
|
|
22
|
+
*/
|
|
23
|
+
servers?: Array<number>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 SshKeyDeploy
|
|
16
|
+
*/
|
|
17
|
+
export interface SshKeyDeploy {
|
|
18
|
+
/**
|
|
19
|
+
* List of valid resource IDs
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof SshKeyDeploy
|
|
22
|
+
*/
|
|
23
|
+
servers?: Array<number>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 SslCertificateDeploy
|
|
16
|
+
*/
|
|
17
|
+
export interface SslCertificateDeploy {
|
|
18
|
+
/**
|
|
19
|
+
* List of valid resource IDs
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof SslCertificateDeploy
|
|
22
|
+
*/
|
|
23
|
+
servers?: Array<number>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { NetworkRelation } from './network-relation';
|
|
12
13
|
import { SubnetProvisionInput } from './subnet-provision-input';
|
|
13
14
|
import { SubnetType } from './subnet-type';
|
|
14
15
|
/**
|
|
@@ -42,11 +43,11 @@ export interface SubnetRelation {
|
|
|
42
43
|
*/
|
|
43
44
|
created_by: number;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {
|
|
46
|
+
*
|
|
47
|
+
* @type {NetworkRelation}
|
|
47
48
|
* @memberof SubnetRelation
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
+
network: NetworkRelation | null;
|
|
50
51
|
/**
|
|
51
52
|
* The subnet\'s name
|
|
52
53
|
* @type {string}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
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 VirtualHostDeploy
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualHostDeploy {
|
|
18
|
+
/**
|
|
19
|
+
* List of valid resource IDs
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof VirtualHostDeploy
|
|
22
|
+
*/
|
|
23
|
+
servers?: Array<number>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@devopness/sdk-js",
|
|
4
|
-
"version": "3.1
|
|
4
|
+
"version": "3.2.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"homepage": "https://github.com/devopness/devopness#readme",
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@eslint/js": "^10.0.1",
|
|
55
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
55
|
+
"@openapitools/openapi-generator-cli": "^2.30.0",
|
|
56
56
|
"@types/jest": "^30.0.0",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
|
-
"eslint": "^10.0.
|
|
59
|
+
"eslint": "^10.0.2",
|
|
60
60
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
61
61
|
"eslint-plugin-import": "^2.32.0",
|
|
62
62
|
"eslint-plugin-n": "^17.24.0",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"ts-jest": "^29.4.5",
|
|
67
67
|
"typedoc": "^0.28.17",
|
|
68
68
|
"typescript": "^5.9.3",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript-eslint": "^8.56.1"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|
|
73
|
-
"axios": "^1.13.
|
|
73
|
+
"axios": "^1.13.6",
|
|
74
74
|
"parse-link-header": "^2.0.0"
|
|
75
75
|
}
|
|
76
76
|
}
|