@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.
Files changed (48) hide show
  1. package/dist/api/generated/apis/actions-api.d.ts +2 -2
  2. package/dist/api/generated/apis/cloud-providers-api.d.ts +8 -0
  3. package/dist/api/generated/apis/cloud-providers-api.js +25 -0
  4. package/dist/api/generated/apis/users-api.d.ts +5 -6
  5. package/dist/api/generated/apis/users-api.js +6 -25
  6. package/dist/api/generated/models/accepted-response-message.d.ts +24 -0
  7. package/dist/api/generated/models/accepted-response-message.js +14 -0
  8. package/dist/api/generated/models/action-list-item-params.d.ts +25 -0
  9. package/dist/api/generated/models/action-list-item-params.js +14 -0
  10. package/dist/api/generated/models/action-list-item.d.ts +18 -0
  11. package/dist/api/generated/models/action-list-item.js +14 -0
  12. package/dist/api/generated/models/action-relation.d.ts +7 -0
  13. package/dist/api/generated/models/application.d.ts +5 -5
  14. package/dist/api/generated/models/cloud-instance.d.ts +2 -2
  15. package/dist/api/generated/models/cloud-provider-property-type.d.ts +21 -0
  16. package/dist/api/generated/models/cloud-provider-property-type.js +26 -0
  17. package/dist/api/generated/models/cloud-provider-property-validation.d.ts +49 -0
  18. package/dist/api/generated/models/cloud-provider-property-validation.js +14 -0
  19. package/dist/api/generated/models/cloud-provider-property.d.ts +49 -0
  20. package/dist/api/generated/models/cloud-provider-property.js +14 -0
  21. package/dist/api/generated/models/cloud-provider.d.ts +5 -5
  22. package/dist/api/generated/models/cloud-service.d.ts +1 -1
  23. package/dist/api/generated/models/credential-create.d.ts +6 -6
  24. package/dist/api/generated/models/credential.d.ts +0 -6
  25. package/dist/api/generated/models/cron-job.d.ts +6 -6
  26. package/dist/api/generated/models/daemon-relation.d.ts +1 -1
  27. package/dist/api/generated/models/daemon.d.ts +18 -4
  28. package/dist/api/generated/models/deployment.d.ts +3 -3
  29. package/dist/api/generated/models/hook.d.ts +1 -1
  30. package/dist/api/generated/models/index.d.ts +7 -0
  31. package/dist/api/generated/models/index.js +7 -0
  32. package/dist/api/generated/models/invitation.d.ts +3 -3
  33. package/dist/api/generated/models/network-rule-create.d.ts +2 -2
  34. package/dist/api/generated/models/network-rule-relation.d.ts +2 -2
  35. package/dist/api/generated/models/network-rule.d.ts +18 -4
  36. package/dist/api/generated/models/project.d.ts +7 -7
  37. package/dist/api/generated/models/provider.d.ts +13 -0
  38. package/dist/api/generated/models/resource.d.ts +11 -2
  39. package/dist/api/generated/models/server.d.ts +8 -7
  40. package/dist/api/generated/models/service.d.ts +17 -17
  41. package/dist/api/generated/models/ssh-key.d.ts +16 -2
  42. package/dist/api/generated/models/ssl-certificate.d.ts +3 -3
  43. package/dist/api/generated/models/user-account-activate.d.ts +42 -0
  44. package/dist/api/generated/models/user-account-activate.js +14 -0
  45. package/dist/api/generated/models/user-create.d.ts +0 -19
  46. package/dist/common/ApiResponse.js +1 -1
  47. package/dist/services/ApplicationService.js +1 -1
  48. 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 { ActionRelation } from '../../generated/models';
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<ActionRelation>>>;
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 {number} userId The unique ID of the user account to activate
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 &#x60;60 minutes&#x60;)
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(userId: number, activationHash: string, expires: number, signature: string): Promise<ApiResponse<void>>;
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<void>>;
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 {number} userId The unique ID of the user account to activate
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 &#x60;60 minutes&#x60;)
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(userId, activationHash, expires, signature) {
37
+ activateUser(userAccountActivate) {
41
38
  return __awaiter(this, void 0, void 0, function* () {
42
- if (userId === null || userId === undefined) {
43
- throw new Exceptions_1.ArgumentNullException('userId', 'activateUser');
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 queryParams = { expires: expires, signature: signature, };
56
- for (const key in queryParams) {
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?: Array<ServerRelation>;
169
+ servers: Array<ServerRelation>;
170
170
  /**
171
171
  *
172
172
  * @type {ApplicationLastDeployments}
173
173
  * @memberof Application
174
174
  */
175
- last_deployments?: ApplicationLastDeployments;
175
+ last_deployments: ApplicationLastDeployments;
176
176
  /**
177
177
  *
178
178
  * @type {SourceProvider}
179
179
  * @memberof Application
180
180
  */
181
- source_provider?: SourceProvider | null;
181
+ source_provider: SourceProvider | null;
182
182
  /**
183
183
  *
184
184
  * @type {Array<SslCertificateRelation>}
185
185
  * @memberof Application
186
186
  */
187
- ssl_certificates?: Array<SslCertificateRelation>;
187
+ ssl_certificates: Array<SslCertificateRelation>;
188
188
  /**
189
189
  *
190
190
  * @type {UserRelation}
191
191
  * @memberof Application
192
192
  */
193
- created_by_user?: UserRelation;
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 {string}
62
+ * @type {number}
63
63
  * @memberof CloudInstance
64
64
  */
65
- vcpus: string;
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 unique id of the cloud provider
20
- * @type {number}
19
+ * The code that uniquely identify a cloud provider
20
+ * @type {string}
21
21
  * @memberof CloudProvider
22
22
  */
23
- id: number;
23
+ code: string;
24
24
  /**
25
- * The acronym of the cloud provider
25
+ * A URL path to the provider\'s logo image
26
26
  * @type {string}
27
27
  * @memberof CloudProvider
28
28
  */
29
- acronym: string;
29
+ logo_url: string;
30
30
  /**
31
31
  * The name of the cloud provider
32
32
  * @type {string}
@@ -18,7 +18,7 @@ import { ProviderRegion } from './provider-region';
18
18
  */
19
19
  export interface CloudService {
20
20
  /**
21
- * The acronym name of the cloud service
21
+ * The code that uniquely identify this cloud service
22
22
  * @type {string}
23
23
  * @memberof CloudService
24
24
  */
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface CredentialCreate {
18
18
  /**
19
- * The provider that this credential belongs to
20
- * @type {number}
19
+ * The provider to which this credential belongs to
20
+ * @type {string}
21
21
  * @memberof CredentialCreate
22
22
  */
23
- provider_id: number;
23
+ provider_name: string;
24
24
  /**
25
- * The name of the credential
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
- key: string;
35
+ access_key: string;
36
36
  /**
37
- * The secret used on AWS providers
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?: ApplicationRelation | null;
72
+ application: ApplicationRelation | null;
73
73
  /**
74
74
  *
75
75
  * @type {Array<EnvironmentRelation>}
76
76
  * @memberof CronJob
77
77
  */
78
- environments?: Array<EnvironmentRelation>;
78
+ environments: Array<EnvironmentRelation>;
79
79
  /**
80
80
  *
81
81
  * @type {UserRelation}
82
82
  * @memberof CronJob
83
83
  */
84
- created_by_user?: UserRelation;
84
+ created_by_user: UserRelation;
85
85
  /**
86
86
  *
87
87
  * @type {ActionRelation}
88
88
  * @memberof CronJob
89
89
  */
90
- last_action?: ActionRelation | null;
90
+ last_action: ActionRelation | null;
91
91
  /**
92
92
  *
93
93
  * @type {ProjectRelation}
94
94
  * @memberof CronJob
95
95
  */
96
- project?: ProjectRelation;
96
+ project: ProjectRelation;
97
97
  /**
98
98
  *
99
99
  * @type {Array<ServerRelation>}
100
100
  * @memberof CronJob
101
101
  */
102
- servers?: Array<ServerRelation>;
102
+ servers: Array<ServerRelation>;
103
103
  /**
104
104
  * The date and time when the record was created
105
105
  * @type {string}
@@ -22,7 +22,7 @@ export interface DaemonRelation {
22
22
  * @type {number}
23
23
  * @memberof DaemonRelation
24
24
  */
25
- id?: number;
25
+ id: number;
26
26
  /**
27
27
  * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon
28
28
  * @type {string}