@devopness/sdk-js 1.88.0 → 1.91.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.
- package/dist/api/generated/apis/actions-api.d.ts +2 -2
- package/dist/api/generated/apis/cloud-providers-api.d.ts +8 -0
- package/dist/api/generated/apis/cloud-providers-api.js +25 -0
- package/dist/api/generated/apis/users-api.d.ts +5 -6
- package/dist/api/generated/apis/users-api.js +6 -25
- package/dist/api/generated/models/accepted-response-message.d.ts +24 -0
- package/dist/api/generated/models/accepted-response-message.js +14 -0
- package/dist/api/generated/models/action-list-item-params.d.ts +25 -0
- package/dist/api/generated/models/action-list-item-params.js +14 -0
- package/dist/api/generated/models/action-list-item.d.ts +18 -0
- package/dist/api/generated/models/action-list-item.js +14 -0
- package/dist/api/generated/models/action-relation.d.ts +7 -0
- package/dist/api/generated/models/application.d.ts +5 -5
- package/dist/api/generated/models/cloud-instance.d.ts +2 -2
- package/dist/api/generated/models/cloud-provider-property-type.d.ts +21 -0
- package/dist/api/generated/models/cloud-provider-property-type.js +26 -0
- package/dist/api/generated/models/cloud-provider-property-validation.d.ts +49 -0
- package/dist/api/generated/models/cloud-provider-property-validation.js +14 -0
- package/dist/api/generated/models/cloud-provider-property.d.ts +49 -0
- package/dist/api/generated/models/cloud-provider-property.js +14 -0
- package/dist/api/generated/models/cloud-provider.d.ts +5 -5
- package/dist/api/generated/models/cloud-service.d.ts +1 -1
- package/dist/api/generated/models/credential-create.d.ts +6 -6
- package/dist/api/generated/models/credential.d.ts +0 -6
- package/dist/api/generated/models/cron-job.d.ts +6 -6
- package/dist/api/generated/models/daemon-relation.d.ts +1 -1
- package/dist/api/generated/models/daemon.d.ts +18 -4
- package/dist/api/generated/models/deployment.d.ts +3 -3
- package/dist/api/generated/models/hook.d.ts +1 -1
- package/dist/api/generated/models/index.d.ts +7 -0
- package/dist/api/generated/models/index.js +7 -0
- package/dist/api/generated/models/invitation.d.ts +3 -3
- package/dist/api/generated/models/network-rule-create.d.ts +2 -2
- package/dist/api/generated/models/network-rule-relation.d.ts +2 -2
- package/dist/api/generated/models/network-rule.d.ts +18 -4
- package/dist/api/generated/models/project.d.ts +7 -7
- package/dist/api/generated/models/provider.d.ts +13 -0
- package/dist/api/generated/models/resource.d.ts +11 -2
- package/dist/api/generated/models/server.d.ts +8 -7
- package/dist/api/generated/models/service.d.ts +17 -17
- package/dist/api/generated/models/ssh-key.d.ts +16 -2
- package/dist/api/generated/models/ssl-certificate.d.ts +3 -3
- package/dist/api/generated/models/user-account-activate.d.ts +42 -0
- package/dist/api/generated/models/user-account-activate.js +14 -0
- package/dist/api/generated/models/user-create.d.ts +0 -19
- package/dist/common/ApiResponse.js +1 -1
- package/dist/services/ApplicationService.js +1 -1
- package/package.json +8 -8
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Action } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { ActionListItem } from '../../generated/models';
|
|
16
16
|
/**
|
|
17
17
|
* ActionsApiService - Auto-generated
|
|
18
18
|
*/
|
|
@@ -29,5 +29,5 @@ export declare class ActionsApiService extends ApiBaseService {
|
|
|
29
29
|
* @param {number} [page] Number of the page to be retrieved
|
|
30
30
|
* @param {number} [perPage] Number of items returned per page
|
|
31
31
|
*/
|
|
32
|
-
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<
|
|
32
|
+
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
|
|
33
33
|
}
|
|
@@ -35,6 +35,14 @@ export declare class CloudProvidersApiService extends ApiBaseService {
|
|
|
35
35
|
* @param {number} credentialId Numeric ID of the credential to get
|
|
36
36
|
*/
|
|
37
37
|
getCredential(credentialId: number): Promise<ApiResponse<Credential>>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary List credentials of the given cloud provider
|
|
41
|
+
* @param {string} cloudProviderCode Code of the cloud provider to get credentials from
|
|
42
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
43
|
+
* @param {number} [perPage] Number of items returned per page
|
|
44
|
+
*/
|
|
45
|
+
listCloudProviderCredentials(cloudProviderCode: string, page?: number, perPage?: number): Promise<ApiResponse<Array<Credential>>>;
|
|
38
46
|
/**
|
|
39
47
|
*
|
|
40
48
|
* @summary List cloud provider credentials
|
|
@@ -77,6 +77,31 @@ class CloudProvidersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
77
77
|
return new ApiResponse_1.ApiResponse(response);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary List credentials of the given cloud provider
|
|
83
|
+
* @param {string} cloudProviderCode Code of the cloud provider to get credentials from
|
|
84
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
85
|
+
* @param {number} [perPage] Number of items returned per page
|
|
86
|
+
*/
|
|
87
|
+
listCloudProviderCredentials(cloudProviderCode, page, perPage) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
if (cloudProviderCode === null || cloudProviderCode === undefined) {
|
|
90
|
+
throw new Exceptions_1.ArgumentNullException('cloudProviderCode', 'listCloudProviderCredentials');
|
|
91
|
+
}
|
|
92
|
+
let queryString = '';
|
|
93
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
94
|
+
for (const key in queryParams) {
|
|
95
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
99
|
+
}
|
|
100
|
+
const requestUrl = '/cloud-providers/{cloud_provider_code}/credentials' + (queryString ? `?${queryString}` : '');
|
|
101
|
+
const response = yield this.get(requestUrl.replace(`{${"cloud_provider_code"}}`, encodeURIComponent(String(cloudProviderCode))));
|
|
102
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
80
105
|
/**
|
|
81
106
|
*
|
|
82
107
|
* @summary List cloud provider credentials
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { AcceptedResponseMessage } from '../../generated/models';
|
|
14
15
|
import { LoginCredentials } from '../../generated/models';
|
|
15
16
|
import { User } from '../../generated/models';
|
|
17
|
+
import { UserAccountActivate } from '../../generated/models';
|
|
16
18
|
import { UserAccountResendVerification } from '../../generated/models';
|
|
17
19
|
import { UserAccountVerify } from '../../generated/models';
|
|
18
20
|
import { UserCreate } from '../../generated/models';
|
|
@@ -28,18 +30,15 @@ export declare class UsersApiService extends ApiBaseService {
|
|
|
28
30
|
/**
|
|
29
31
|
*
|
|
30
32
|
* @summary Activate the user account
|
|
31
|
-
* @param {
|
|
32
|
-
* @param {string} activationHash The unique hash generated to active the account
|
|
33
|
-
* @param {number} expires The time limit to expires the URL generated by the API (default `60 minutes`)
|
|
34
|
-
* @param {string} signature The signature of the URL generated by the API
|
|
33
|
+
* @param {UserAccountActivate} userAccountActivate A JSON object containing user account data
|
|
35
34
|
*/
|
|
36
|
-
activateUser(
|
|
35
|
+
activateUser(userAccountActivate: UserAccountActivate): Promise<ApiResponse<void>>;
|
|
37
36
|
/**
|
|
38
37
|
*
|
|
39
38
|
* @summary Sign up/register a new user
|
|
40
39
|
* @param {UserCreate} userCreate A JSON object containing user essential data
|
|
41
40
|
*/
|
|
42
|
-
addUser(userCreate: UserCreate): Promise<ApiResponse<
|
|
41
|
+
addUser(userCreate: UserCreate): Promise<ApiResponse<AcceptedResponseMessage>>;
|
|
43
42
|
/**
|
|
44
43
|
*
|
|
45
44
|
* @summary Get details of the current user
|
|
@@ -32,35 +32,16 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Activate the user account
|
|
35
|
-
* @param {
|
|
36
|
-
* @param {string} activationHash The unique hash generated to active the account
|
|
37
|
-
* @param {number} expires The time limit to expires the URL generated by the API (default `60 minutes`)
|
|
38
|
-
* @param {string} signature The signature of the URL generated by the API
|
|
35
|
+
* @param {UserAccountActivate} userAccountActivate A JSON object containing user account data
|
|
39
36
|
*/
|
|
40
|
-
activateUser(
|
|
37
|
+
activateUser(userAccountActivate) {
|
|
41
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
if (
|
|
43
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
44
|
-
}
|
|
45
|
-
if (activationHash === null || activationHash === undefined) {
|
|
46
|
-
throw new Exceptions_1.ArgumentNullException('activationHash', 'activateUser');
|
|
47
|
-
}
|
|
48
|
-
if (expires === null || expires === undefined) {
|
|
49
|
-
throw new Exceptions_1.ArgumentNullException('expires', 'activateUser');
|
|
50
|
-
}
|
|
51
|
-
if (signature === null || signature === undefined) {
|
|
52
|
-
throw new Exceptions_1.ArgumentNullException('signature', 'activateUser');
|
|
39
|
+
if (userAccountActivate === null || userAccountActivate === undefined) {
|
|
40
|
+
throw new Exceptions_1.ArgumentNullException('userAccountActivate', 'activateUser');
|
|
53
41
|
}
|
|
54
42
|
let queryString = '';
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
61
|
-
}
|
|
62
|
-
const requestUrl = '/users/account/verify/{user_id}/{activation_hash}' + (queryString ? `?${queryString}` : '');
|
|
63
|
-
const response = yield this.get(requestUrl.replace(`{${"user_id"}}`, encodeURIComponent(String(userId))).replace(`{${"activation_hash"}}`, encodeURIComponent(String(activationHash))));
|
|
43
|
+
const requestUrl = '/users/account/verify' + (queryString ? `?${queryString}` : '');
|
|
44
|
+
const response = yield this.post(requestUrl, userAccountActivate);
|
|
64
45
|
return new ApiResponse_1.ApiResponse(response);
|
|
65
46
|
});
|
|
66
47
|
}
|
|
@@ -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 AcceptedResponseMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface AcceptedResponseMessage {
|
|
18
|
+
/**
|
|
19
|
+
* Message with information about the response
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AcceptedResponseMessage
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
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,25 @@
|
|
|
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
|
+
import { ServerAction } from './server-action';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ActionListItemParams
|
|
17
|
+
*/
|
|
18
|
+
export interface ActionListItemParams {
|
|
19
|
+
/**
|
|
20
|
+
* List of actions dispatched to servers
|
|
21
|
+
* @type {Array<ServerAction>}
|
|
22
|
+
* @memberof ActionListItemParams
|
|
23
|
+
*/
|
|
24
|
+
servers?: Array<ServerAction>;
|
|
25
|
+
}
|
|
@@ -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,18 @@
|
|
|
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
|
+
import { ActionListItemParams } from './action-list-item-params';
|
|
13
|
+
import { ActionRelation } from './action-relation';
|
|
14
|
+
/**
|
|
15
|
+
* @type ActionListItem
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export declare type ActionListItem = ActionListItemParams & ActionRelation;
|
|
@@ -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 });
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ActionStatus } from './action-status';
|
|
13
13
|
import { ActionSummary } from './action-summary';
|
|
14
14
|
import { ActionType } from './action-type';
|
|
15
|
+
import { Resource } from './resource';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -42,6 +43,12 @@ export interface ActionRelation {
|
|
|
42
43
|
* @memberof ActionRelation
|
|
43
44
|
*/
|
|
44
45
|
type_human_readable: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Resource}
|
|
49
|
+
* @memberof ActionRelation
|
|
50
|
+
*/
|
|
51
|
+
resource: Resource;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @type {ActionSummary}
|
|
@@ -166,31 +166,31 @@ export interface Application {
|
|
|
166
166
|
* @type {Array<ServerRelation>}
|
|
167
167
|
* @memberof Application
|
|
168
168
|
*/
|
|
169
|
-
servers
|
|
169
|
+
servers: Array<ServerRelation>;
|
|
170
170
|
/**
|
|
171
171
|
*
|
|
172
172
|
* @type {ApplicationLastDeployments}
|
|
173
173
|
* @memberof Application
|
|
174
174
|
*/
|
|
175
|
-
last_deployments
|
|
175
|
+
last_deployments: ApplicationLastDeployments;
|
|
176
176
|
/**
|
|
177
177
|
*
|
|
178
178
|
* @type {SourceProvider}
|
|
179
179
|
* @memberof Application
|
|
180
180
|
*/
|
|
181
|
-
source_provider
|
|
181
|
+
source_provider: SourceProvider | null;
|
|
182
182
|
/**
|
|
183
183
|
*
|
|
184
184
|
* @type {Array<SslCertificateRelation>}
|
|
185
185
|
* @memberof Application
|
|
186
186
|
*/
|
|
187
|
-
ssl_certificates
|
|
187
|
+
ssl_certificates: Array<SslCertificateRelation>;
|
|
188
188
|
/**
|
|
189
189
|
*
|
|
190
190
|
* @type {UserRelation}
|
|
191
191
|
* @memberof Application
|
|
192
192
|
*/
|
|
193
|
-
created_by_user
|
|
193
|
+
created_by_user: UserRelation;
|
|
194
194
|
/**
|
|
195
195
|
*
|
|
196
196
|
* @type {ActionRelation}
|
|
@@ -59,10 +59,10 @@ export interface CloudInstance {
|
|
|
59
59
|
price_currency: string;
|
|
60
60
|
/**
|
|
61
61
|
* The number of virtual CPU of the instance
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {number}
|
|
63
63
|
* @memberof CloudInstance
|
|
64
64
|
*/
|
|
65
|
-
vcpus:
|
|
65
|
+
vcpus: number;
|
|
66
66
|
/**
|
|
67
67
|
* The RAM memory size (in MB) of the instance
|
|
68
68
|
* @type {string}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum CloudProviderPropertyType {
|
|
18
|
+
String = "string",
|
|
19
|
+
Integer = "integer",
|
|
20
|
+
Boolean = "boolean"
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 });
|
|
15
|
+
exports.CloudProviderPropertyType = void 0;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var CloudProviderPropertyType;
|
|
22
|
+
(function (CloudProviderPropertyType) {
|
|
23
|
+
CloudProviderPropertyType["String"] = "string";
|
|
24
|
+
CloudProviderPropertyType["Integer"] = "integer";
|
|
25
|
+
CloudProviderPropertyType["Boolean"] = "boolean";
|
|
26
|
+
})(CloudProviderPropertyType = exports.CloudProviderPropertyType || (exports.CloudProviderPropertyType = {}));
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { CloudProviderPropertyType } from './cloud-provider-property-type';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CloudProviderPropertyValidation
|
|
17
|
+
*/
|
|
18
|
+
export interface CloudProviderPropertyValidation {
|
|
19
|
+
/**
|
|
20
|
+
* Defines if the property is required
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof CloudProviderPropertyValidation
|
|
23
|
+
*/
|
|
24
|
+
required: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CloudProviderPropertyType}
|
|
28
|
+
* @memberof CloudProviderPropertyValidation
|
|
29
|
+
*/
|
|
30
|
+
type: CloudProviderPropertyType;
|
|
31
|
+
/**
|
|
32
|
+
* The minimum allowed property value. For properties of type `string` the validation checks the length of the property value
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof CloudProviderPropertyValidation
|
|
35
|
+
*/
|
|
36
|
+
min: number;
|
|
37
|
+
/**
|
|
38
|
+
* The maximum allowed property value. For properties of type `string` the validation checks the length of the property value
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof CloudProviderPropertyValidation
|
|
41
|
+
*/
|
|
42
|
+
max: number;
|
|
43
|
+
/**
|
|
44
|
+
* List of allowed values for the property. If empty, any value is allowed
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof CloudProviderPropertyValidation
|
|
47
|
+
*/
|
|
48
|
+
allowed_values: Array<string>;
|
|
49
|
+
}
|
|
@@ -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,49 @@
|
|
|
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
|
+
import { CloudProviderPropertyValidation } from './cloud-provider-property-validation';
|
|
13
|
+
/**
|
|
14
|
+
* Cloud provider setting\'s property
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CloudProviderProperty
|
|
17
|
+
*/
|
|
18
|
+
export interface CloudProviderProperty {
|
|
19
|
+
/**
|
|
20
|
+
* Name of the property
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CloudProviderProperty
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Human readable version of the property\'s name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CloudProviderProperty
|
|
29
|
+
*/
|
|
30
|
+
name_human_readable: string;
|
|
31
|
+
/**
|
|
32
|
+
* Default property\'s value
|
|
33
|
+
* @type {string | number | boolean}
|
|
34
|
+
* @memberof CloudProviderProperty
|
|
35
|
+
*/
|
|
36
|
+
default_value: string | number | boolean | null;
|
|
37
|
+
/**
|
|
38
|
+
* Defines if the property data is a sensitive content
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof CloudProviderProperty
|
|
41
|
+
*/
|
|
42
|
+
sensitive: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {CloudProviderPropertyValidation}
|
|
46
|
+
* @memberof CloudProviderProperty
|
|
47
|
+
*/
|
|
48
|
+
validation: CloudProviderPropertyValidation;
|
|
49
|
+
}
|
|
@@ -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 });
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CloudProvider {
|
|
18
18
|
/**
|
|
19
|
-
* The
|
|
20
|
-
* @type {
|
|
19
|
+
* The code that uniquely identify a cloud provider
|
|
20
|
+
* @type {string}
|
|
21
21
|
* @memberof CloudProvider
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
code: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* A URL path to the provider\'s logo image
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CloudProvider
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
logo_url: string;
|
|
30
30
|
/**
|
|
31
31
|
* The name of the cloud provider
|
|
32
32
|
* @type {string}
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CredentialCreate {
|
|
18
18
|
/**
|
|
19
|
-
* The provider
|
|
20
|
-
* @type {
|
|
19
|
+
* The provider to which this credential belongs to
|
|
20
|
+
* @type {string}
|
|
21
21
|
* @memberof CredentialCreate
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
provider_name: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* A name to uniquely identify this cloud provider credential
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CredentialCreate
|
|
28
28
|
*/
|
|
@@ -32,9 +32,9 @@ export interface CredentialCreate {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CredentialCreate
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
access_key: string;
|
|
36
36
|
/**
|
|
37
|
-
* The secret used on
|
|
37
|
+
* The secret used to authenticate on this cloud provider
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CredentialCreate
|
|
40
40
|
*/
|
|
@@ -22,12 +22,6 @@ export interface Credential {
|
|
|
22
22
|
* @memberof Credential
|
|
23
23
|
*/
|
|
24
24
|
id: number;
|
|
25
|
-
/**
|
|
26
|
-
* The provider that this credential belongs to
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof Credential
|
|
29
|
-
*/
|
|
30
|
-
provider_id: number;
|
|
31
25
|
/**
|
|
32
26
|
* The user id that created the credential
|
|
33
27
|
* @type {number}
|
|
@@ -69,37 +69,37 @@ export interface CronJob {
|
|
|
69
69
|
* @type {ApplicationRelation}
|
|
70
70
|
* @memberof CronJob
|
|
71
71
|
*/
|
|
72
|
-
application
|
|
72
|
+
application: ApplicationRelation | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<EnvironmentRelation>}
|
|
76
76
|
* @memberof CronJob
|
|
77
77
|
*/
|
|
78
|
-
environments
|
|
78
|
+
environments: Array<EnvironmentRelation>;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {UserRelation}
|
|
82
82
|
* @memberof CronJob
|
|
83
83
|
*/
|
|
84
|
-
created_by_user
|
|
84
|
+
created_by_user: UserRelation;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {ActionRelation}
|
|
88
88
|
* @memberof CronJob
|
|
89
89
|
*/
|
|
90
|
-
last_action
|
|
90
|
+
last_action: ActionRelation | null;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
* @type {ProjectRelation}
|
|
94
94
|
* @memberof CronJob
|
|
95
95
|
*/
|
|
96
|
-
project
|
|
96
|
+
project: ProjectRelation;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @type {Array<ServerRelation>}
|
|
100
100
|
* @memberof CronJob
|
|
101
101
|
*/
|
|
102
|
-
servers
|
|
102
|
+
servers: Array<ServerRelation>;
|
|
103
103
|
/**
|
|
104
104
|
* The date and time when the record was created
|
|
105
105
|
* @type {string}
|