@devopness/sdk-js 2.17.0 → 2.19.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 (53) hide show
  1. package/dist/api/generated/apis/applications-sslcertificates-api.d.ts +6 -6
  2. package/dist/api/generated/apis/applications-sslcertificates-api.js +8 -8
  3. package/dist/api/generated/apis/applications-variables-api.d.ts +7 -6
  4. package/dist/api/generated/apis/applications-variables-api.js +7 -7
  5. package/dist/api/generated/apis/daemons-api.d.ts +10 -10
  6. package/dist/api/generated/apis/daemons-api.js +10 -10
  7. package/dist/api/generated/apis/environments-daemons-api.d.ts +11 -2
  8. package/dist/api/generated/apis/environments-daemons-api.js +22 -2
  9. package/dist/api/generated/apis/environments-network-rules-api.d.ts +2 -2
  10. package/dist/api/generated/apis/environments-network-rules-api.js +2 -2
  11. package/dist/api/generated/apis/network-rules-api.d.ts +7 -7
  12. package/dist/api/generated/apis/network-rules-api.js +7 -7
  13. package/dist/api/generated/apis/pipelines-api.d.ts +9 -8
  14. package/dist/api/generated/apis/pipelines-api.js +11 -11
  15. package/dist/api/generated/apis/pipelines-steps-api.d.ts +17 -17
  16. package/dist/api/generated/apis/pipelines-steps-api.js +35 -35
  17. package/dist/api/generated/apis/projects-daemons-api.d.ts +7 -7
  18. package/dist/api/generated/apis/projects-daemons-api.js +10 -10
  19. package/dist/api/generated/apis/projects-network-rules-api.d.ts +6 -6
  20. package/dist/api/generated/apis/projects-network-rules-api.js +8 -8
  21. package/dist/api/generated/apis/sslcertificates-api.d.ts +3 -3
  22. package/dist/api/generated/apis/sslcertificates-api.js +3 -3
  23. package/dist/api/generated/apis/variables-api.d.ts +4 -4
  24. package/dist/api/generated/apis/variables-api.js +4 -4
  25. package/dist/api/generated/models/cron-job-update.d.ts +3 -4
  26. package/dist/api/generated/models/daemon-create.d.ts +13 -20
  27. package/dist/api/generated/models/daemon-project-create.d.ts +61 -0
  28. package/dist/api/generated/models/daemon-project-create.js +14 -0
  29. package/dist/api/generated/models/daemon-relation.d.ts +13 -13
  30. package/dist/api/generated/models/daemon-restart.d.ts +1 -1
  31. package/dist/api/generated/models/daemon-update.d.ts +16 -23
  32. package/dist/api/generated/models/daemon.d.ts +23 -17
  33. package/dist/api/generated/models/index.d.ts +3 -0
  34. package/dist/api/generated/models/index.js +3 -0
  35. package/dist/api/generated/models/network-rule-create.d.ts +8 -8
  36. package/dist/api/generated/models/network-rule-relation.d.ts +21 -15
  37. package/dist/api/generated/models/network-rule-update.d.ts +7 -7
  38. package/dist/api/generated/models/network-rule.d.ts +23 -17
  39. package/dist/api/generated/models/pipeline-step-create.d.ts +9 -3
  40. package/dist/api/generated/models/pipeline-step-update.d.ts +11 -5
  41. package/dist/api/generated/models/pipeline-step.d.ts +20 -14
  42. package/dist/api/generated/models/pipeline-update.d.ts +30 -0
  43. package/dist/api/generated/models/pipeline-update.js +14 -0
  44. package/dist/api/generated/models/pipeline.d.ts +19 -12
  45. package/dist/api/generated/models/ssl-certificate-create.d.ts +9 -9
  46. package/dist/api/generated/models/ssl-certificate-relation.d.ts +24 -30
  47. package/dist/api/generated/models/ssl-certificate.d.ts +41 -40
  48. package/dist/api/generated/models/variable-create.d.ts +16 -4
  49. package/dist/api/generated/models/variable-relation.d.ts +92 -0
  50. package/dist/api/generated/models/variable-relation.js +14 -0
  51. package/dist/api/generated/models/variable-update.d.ts +4 -10
  52. package/dist/api/generated/models/variable.d.ts +30 -12
  53. package/package.json +1 -1
@@ -12,7 +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 { DaemonCreate } from '../../generated/models';
15
+ import { DaemonProjectCreate } from '../../generated/models';
16
16
  import { DaemonRelation } from '../../generated/models';
17
17
  /**
18
18
  * ProjectsDaemonsApiService - Auto-generated
@@ -20,15 +20,15 @@ import { DaemonRelation } from '../../generated/models';
20
20
  export declare class ProjectsDaemonsApiService extends ApiBaseService {
21
21
  /**
22
22
  *
23
- * @summary Add a daemon to the given project
24
- * @param {number} projectId The project numeric Id
25
- * @param {DaemonCreate} daemonCreate A JSON object containing daemon data
23
+ * @summary Add a Daemon to the given project
24
+ * @param {number} projectId The ID of the project.
25
+ * @param {DaemonProjectCreate} daemonProjectCreate A JSON object containing the resource data
26
26
  */
27
- addDaemonToProject(projectId: number, daemonCreate: DaemonCreate): Promise<ApiResponse<Daemon>>;
27
+ addProjectDaemon(projectId: number, daemonProjectCreate: DaemonProjectCreate): Promise<ApiResponse<Daemon>>;
28
28
  /**
29
29
  *
30
- * @summary Returns a list of all daemons belonging to a project
31
- * @param {number} projectId Numeric ID of the project to get daemons from
30
+ * @summary Return a list of all Daemons belonging to a project
31
+ * @param {number} projectId The ID of the project.
32
32
  * @param {number} [page] Number of the page to be retrieved
33
33
  * @param {number} [perPage] Number of items returned per page
34
34
  */
@@ -31,28 +31,28 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class ProjectsDaemonsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Add a daemon to the given project
35
- * @param {number} projectId The project numeric Id
36
- * @param {DaemonCreate} daemonCreate A JSON object containing daemon data
34
+ * @summary Add a Daemon to the given project
35
+ * @param {number} projectId The ID of the project.
36
+ * @param {DaemonProjectCreate} daemonProjectCreate A JSON object containing the resource data
37
37
  */
38
- addDaemonToProject(projectId, daemonCreate) {
38
+ addProjectDaemon(projectId, daemonProjectCreate) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  if (projectId === null || projectId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('projectId', 'addDaemonToProject');
41
+ throw new Exceptions_1.ArgumentNullException('projectId', 'addProjectDaemon');
42
42
  }
43
- if (daemonCreate === null || daemonCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('daemonCreate', 'addDaemonToProject');
43
+ if (daemonProjectCreate === null || daemonProjectCreate === undefined) {
44
+ throw new Exceptions_1.ArgumentNullException('daemonProjectCreate', 'addProjectDaemon');
45
45
  }
46
46
  let queryString = '';
47
47
  const requestUrl = '/projects/{project_id}/daemons' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))), daemonCreate);
48
+ const response = yield this.post(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))), daemonProjectCreate);
49
49
  return new ApiResponse_1.ApiResponse(response);
50
50
  });
51
51
  }
52
52
  /**
53
53
  *
54
- * @summary Returns a list of all daemons belonging to a project
55
- * @param {number} projectId Numeric ID of the project to get daemons from
54
+ * @summary Return a list of all Daemons belonging to a project
55
+ * @param {number} projectId The ID of the project.
56
56
  * @param {number} [page] Number of the page to be retrieved
57
57
  * @param {number} [perPage] Number of items returned per page
58
58
  */
@@ -20,15 +20,15 @@ import { NetworkRuleRelation } from '../../generated/models';
20
20
  export declare class ProjectsNetworkRulesApiService extends ApiBaseService {
21
21
  /**
22
22
  *
23
- * @summary Add a network rule to the given project
24
- * @param {number} projectId The project numeric Id
25
- * @param {NetworkRuleCreate} networkRuleCreate A JSON object containing backgroud process data
23
+ * @summary Add a Network Rule to the given project
24
+ * @param {number} projectId The ID of the project.
25
+ * @param {NetworkRuleCreate} networkRuleCreate A JSON object containing the resource data
26
26
  */
27
- addNetworkRuleToProject(projectId: number, networkRuleCreate: NetworkRuleCreate): Promise<ApiResponse<NetworkRule>>;
27
+ addProjectNetworkRule(projectId: number, networkRuleCreate: NetworkRuleCreate): Promise<ApiResponse<NetworkRule>>;
28
28
  /**
29
29
  *
30
- * @summary Returns a list of all network rules that applies to a project
31
- * @param {number} projectId Numeric ID of the project to get network rules from
30
+ * @summary Return a list of all Network Rules belonging to a project
31
+ * @param {number} projectId The ID of the project.
32
32
  * @param {number} [page] Number of the page to be retrieved
33
33
  * @param {number} [perPage] Number of items returned per page
34
34
  */
@@ -31,17 +31,17 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class ProjectsNetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Add a network rule to the given project
35
- * @param {number} projectId The project numeric Id
36
- * @param {NetworkRuleCreate} networkRuleCreate A JSON object containing backgroud process data
34
+ * @summary Add a Network Rule to the given project
35
+ * @param {number} projectId The ID of the project.
36
+ * @param {NetworkRuleCreate} networkRuleCreate A JSON object containing the resource data
37
37
  */
38
- addNetworkRuleToProject(projectId, networkRuleCreate) {
38
+ addProjectNetworkRule(projectId, networkRuleCreate) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  if (projectId === null || projectId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('projectId', 'addNetworkRuleToProject');
41
+ throw new Exceptions_1.ArgumentNullException('projectId', 'addProjectNetworkRule');
42
42
  }
43
43
  if (networkRuleCreate === null || networkRuleCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('networkRuleCreate', 'addNetworkRuleToProject');
44
+ throw new Exceptions_1.ArgumentNullException('networkRuleCreate', 'addProjectNetworkRule');
45
45
  }
46
46
  let queryString = '';
47
47
  const requestUrl = '/projects/{project_id}/network-rules' + (queryString ? `?${queryString}` : '');
@@ -51,8 +51,8 @@ class ProjectsNetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
51
51
  }
52
52
  /**
53
53
  *
54
- * @summary Returns a list of all network rules that applies to a project
55
- * @param {number} projectId Numeric ID of the project to get network rules from
54
+ * @summary Return a list of all Network Rules belonging to a project
55
+ * @param {number} projectId The ID of the project.
56
56
  * @param {number} [page] Number of the page to be retrieved
57
57
  * @param {number} [perPage] Number of items returned per page
58
58
  */
@@ -18,14 +18,14 @@ import { SslCertificate } from '../../generated/models';
18
18
  export declare class SSLCertificatesApiService extends ApiBaseService {
19
19
  /**
20
20
  *
21
- * @summary Delete a SSL certificate
22
- * @param {number} sslCertificateId The unique id of the record to be deleted
21
+ * @summary Delete a given SSL Certificate
22
+ * @param {number} sslCertificateId The ID of the ssl certificate.
23
23
  */
24
24
  deleteSslCertificate(sslCertificateId: number): Promise<ApiResponse<void>>;
25
25
  /**
26
26
  *
27
27
  * @summary Get details of a single SSL certificate
28
- * @param {number} sslCertificateId Unique ID of the item to be retrieved
28
+ * @param {number} sslCertificateId The ID of the ssl certificate.
29
29
  */
30
30
  getSslCertificate(sslCertificateId: number): Promise<ApiResponse<SslCertificate>>;
31
31
  }
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class SSLCertificatesApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Delete a SSL certificate
35
- * @param {number} sslCertificateId The unique id of the record to be deleted
34
+ * @summary Delete a given SSL Certificate
35
+ * @param {number} sslCertificateId The ID of the ssl certificate.
36
36
  */
37
37
  deleteSslCertificate(sslCertificateId) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
@@ -48,7 +48,7 @@ class SSLCertificatesApiService extends ApiBaseService_1.ApiBaseService {
48
48
  /**
49
49
  *
50
50
  * @summary Get details of a single SSL certificate
51
- * @param {number} sslCertificateId Unique ID of the item to be retrieved
51
+ * @param {number} sslCertificateId The ID of the ssl certificate.
52
52
  */
53
53
  getSslCertificate(sslCertificateId) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -20,20 +20,20 @@ export declare class VariablesApiService extends ApiBaseService {
20
20
  /**
21
21
  *
22
22
  * @summary Delete a variable by ID
23
- * @param {number} variableId The id of the variable
23
+ * @param {number} variableId The ID of the variable.
24
24
  */
25
25
  deleteVariable(variableId: number): Promise<ApiResponse<void>>;
26
26
  /**
27
27
  *
28
28
  * @summary Get a variable by ID
29
- * @param {number} variableId The unique id of the variable
29
+ * @param {number} variableId The ID of the variable.
30
30
  */
31
31
  getVariable(variableId: number): Promise<ApiResponse<Variable>>;
32
32
  /**
33
33
  *
34
34
  * @summary Update an existing variable
35
- * @param {number} variableId The unique id of the variable to be updated
36
- * @param {VariableUpdate} variableUpdate A JSON object containing variable data
35
+ * @param {number} variableId The ID of the variable.
36
+ * @param {VariableUpdate} variableUpdate A JSON object containing the resource data
37
37
  */
38
38
  updateVariable(variableId: number, variableUpdate: VariableUpdate): Promise<ApiResponse<void>>;
39
39
  }
@@ -32,7 +32,7 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
34
  * @summary Delete a variable by ID
35
- * @param {number} variableId The id of the variable
35
+ * @param {number} variableId The ID of the variable.
36
36
  */
37
37
  deleteVariable(variableId) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
@@ -48,7 +48,7 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
48
48
  /**
49
49
  *
50
50
  * @summary Get a variable by ID
51
- * @param {number} variableId The unique id of the variable
51
+ * @param {number} variableId The ID of the variable.
52
52
  */
53
53
  getVariable(variableId) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -64,8 +64,8 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
64
64
  /**
65
65
  *
66
66
  * @summary Update an existing variable
67
- * @param {number} variableId The unique id of the variable to be updated
68
- * @param {VariableUpdate} variableUpdate A JSON object containing variable data
67
+ * @param {number} variableId The ID of the variable.
68
+ * @param {VariableUpdate} variableUpdate A JSON object containing the resource data
69
69
  */
70
70
  updateVariable(variableId, variableUpdate) {
71
71
  return __awaiter(this, void 0, void 0, function* () {
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { EnvironmentLinkItem } from './environment-link-item';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -53,9 +52,9 @@ export interface CronJobUpdate {
53
52
  */
54
53
  application_id?: number;
55
54
  /**
56
- *
57
- * @type {Array<EnvironmentLinkItem>}
55
+ * List of valid resource IDs
56
+ * @type {Array<number>}
58
57
  * @memberof CronJobUpdate
59
58
  */
60
- environments?: Array<EnvironmentLinkItem>;
59
+ servers?: Array<number>;
61
60
  }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { EnvironmentLinkItem } from './environment-link-item';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -17,45 +16,39 @@ import { EnvironmentLinkItem } from './environment-link-item';
17
16
  */
18
17
  export interface DaemonCreate {
19
18
  /**
20
- * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon
19
+ * The command line to be executed to start the daemon. Must not be greater than 255 characters.
21
20
  * @type {string}
22
21
  * @memberof DaemonCreate
23
22
  */
24
- name: string;
23
+ command: string;
25
24
  /**
26
- * The command line to be executed to start the daemon
27
- * @type {string}
25
+ * The number of daemon process instances of the program to run simultaneously. Must be at least 1. Must not be greater than 99.
26
+ * @type {number}
28
27
  * @memberof DaemonCreate
29
28
  */
30
- command: string;
29
+ process_count: number;
31
30
  /**
32
- * The working directory where the daemon will be relative to when performing disk i/o
31
+ * The working directory where the daemon will be relative to when performing disk i/o. Must start with one of <code>/</code>.
33
32
  * @type {string}
34
33
  * @memberof DaemonCreate
35
34
  */
36
35
  working_directory: string;
37
36
  /**
38
- * The number of daemon process instances of the program to run simultaneously
39
- * @type {number}
40
- * @memberof DaemonCreate
41
- */
42
- process_count: number;
43
- /**
44
- * The name of the Unix user on behalf of which the daemon will run
37
+ * The name of the Unix user on behalf of which the daemon will run. Must not be greater than 60 characters.
45
38
  * @type {string}
46
39
  * @memberof DaemonCreate
47
40
  */
48
41
  run_as_user: string;
49
42
  /**
50
- * Indicates if the command was auto_generated by `devopness` itself
51
- * @type {boolean}
43
+ * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon. Must contain only letters, numbers, dashes and underscores. Must not be greater than 60 characters.
44
+ * @type {string}
52
45
  * @memberof DaemonCreate
53
46
  */
54
- auto_generated?: boolean;
47
+ name: string;
55
48
  /**
56
- *
57
- * @type {Array<EnvironmentLinkItem>}
49
+ * List of valid resource IDs
50
+ * @type {Array<number>}
58
51
  * @memberof DaemonCreate
59
52
  */
60
- environments?: Array<EnvironmentLinkItem>;
53
+ servers?: Array<number>;
61
54
  }
@@ -0,0 +1,61 @@
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 { EnvironmentLinkItem } from './environment-link-item';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DaemonProjectCreate
17
+ */
18
+ export interface DaemonProjectCreate {
19
+ /**
20
+ * The command line to be executed to start the daemon. Must not be greater than 255 characters.
21
+ * @type {string}
22
+ * @memberof DaemonProjectCreate
23
+ */
24
+ command: string;
25
+ /**
26
+ * The number of daemon process instances of the program to run simultaneously. Must be at least 1. Must not be greater than 99.
27
+ * @type {number}
28
+ * @memberof DaemonProjectCreate
29
+ */
30
+ process_count: number;
31
+ /**
32
+ * The working directory where the daemon will be relative to when performing disk i/o. Must start with one of <code>/</code>.
33
+ * @type {string}
34
+ * @memberof DaemonProjectCreate
35
+ */
36
+ working_directory: string;
37
+ /**
38
+ * The name of the Unix user on behalf of which the daemon will run. Must not be greater than 60 characters.
39
+ * @type {string}
40
+ * @memberof DaemonProjectCreate
41
+ */
42
+ run_as_user: string;
43
+ /**
44
+ * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon. Must contain only letters, numbers, dashes and underscores. Must not be greater than 60 characters.
45
+ * @type {string}
46
+ * @memberof DaemonProjectCreate
47
+ */
48
+ name: string;
49
+ /**
50
+ * Numeric ID of the project to which the cron job belongs to.
51
+ * @type {number}
52
+ * @memberof DaemonProjectCreate
53
+ */
54
+ project_id: number;
55
+ /**
56
+ *
57
+ * @type {Array<EnvironmentLinkItem>}
58
+ * @memberof DaemonProjectCreate
59
+ */
60
+ environments?: Array<EnvironmentLinkItem>;
61
+ }
@@ -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 });
@@ -18,7 +18,7 @@ import { ApplicationRelation } from './application-relation';
18
18
  */
19
19
  export interface DaemonRelation {
20
20
  /**
21
- * The Id of the given daemon
21
+ * The ID of the given daemon
22
22
  * @type {number}
23
23
  * @memberof DaemonRelation
24
24
  */
@@ -35,6 +35,12 @@ export interface DaemonRelation {
35
35
  * @memberof DaemonRelation
36
36
  */
37
37
  command: string;
38
+ /**
39
+ * The name of the Unix user on behalf of which the daemon will be executed
40
+ * @type {string}
41
+ * @memberof DaemonRelation
42
+ */
43
+ run_as_user: string;
38
44
  /**
39
45
  * The working directory where the daemon will be relative to when performing disk i/o
40
46
  * @type {string}
@@ -48,39 +54,33 @@ export interface DaemonRelation {
48
54
  */
49
55
  process_count: number;
50
56
  /**
51
- * The name of the Unix user on behalf of which the daemon will run
52
- * @type {string}
53
- * @memberof DaemonRelation
54
- */
55
- run_as_user: string;
56
- /**
57
- * Indicates if the command was auto_generated by `devopness` itself
57
+ * Indicates if the daemon was auto_generated by `devopness` itself
58
58
  * @type {boolean}
59
59
  * @memberof DaemonRelation
60
60
  */
61
- auto_generated?: boolean;
61
+ auto_generated: boolean;
62
62
  /**
63
63
  *
64
64
  * @type {ActionRelation}
65
65
  * @memberof DaemonRelation
66
66
  */
67
- last_action?: ActionRelation | null;
67
+ last_action: ActionRelation | null;
68
68
  /**
69
69
  *
70
70
  * @type {ApplicationRelation}
71
71
  * @memberof DaemonRelation
72
72
  */
73
- application?: ApplicationRelation | null;
73
+ application: ApplicationRelation | null;
74
74
  /**
75
75
  * The date and time when the record was created
76
76
  * @type {string}
77
77
  * @memberof DaemonRelation
78
78
  */
79
- created_at?: string;
79
+ created_at: string;
80
80
  /**
81
81
  * The date and time when the record was last updated
82
82
  * @type {string}
83
83
  * @memberof DaemonRelation
84
84
  */
85
- updated_at?: string;
85
+ updated_at: string;
86
86
  }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface DaemonRestart {
18
18
  /**
19
- * The unique environment id
19
+ * The unique environment ID.
20
20
  * @type {number}
21
21
  * @memberof DaemonRestart
22
22
  */
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { EnvironmentLinkItem } from './environment-link-item';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -17,51 +16,45 @@ import { EnvironmentLinkItem } from './environment-link-item';
17
16
  */
18
17
  export interface DaemonUpdate {
19
18
  /**
20
- * The unique id of the given record
21
- * @type {number}
19
+ * The command line to be executed to start the daemon. Must not be greater than 255 characters.
20
+ * @type {string}
22
21
  * @memberof DaemonUpdate
23
22
  */
24
- id: number;
23
+ command: string;
25
24
  /**
26
- * Numeric ID of the application to which the daemon belongs to
25
+ * The number of daemon process instances of the program to run simultaneously. Must be at least 1. Must not be greater than 99.
27
26
  * @type {number}
28
27
  * @memberof DaemonUpdate
29
28
  */
30
- application_id?: number;
29
+ process_count: number;
31
30
  /**
32
- * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon
31
+ * The working directory where the daemon will be relative to when performing disk i/o. Must start with one of <code>/</code>.
33
32
  * @type {string}
34
33
  * @memberof DaemonUpdate
35
34
  */
36
- name: string;
35
+ working_directory: string;
37
36
  /**
38
- * The command line to be executed to start the daemon
37
+ * The name of the Unix user on behalf of which the daemon will run. Must not be greater than 60 characters.
39
38
  * @type {string}
40
39
  * @memberof DaemonUpdate
41
40
  */
42
- command: string;
41
+ run_as_user: string;
43
42
  /**
44
- * The working directory where the daemon will be relative to when performing disk i/o
43
+ * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon. Must contain only letters, numbers, dashes and underscores. Must not be greater than 60 characters.
45
44
  * @type {string}
46
45
  * @memberof DaemonUpdate
47
46
  */
48
- working_directory: string;
47
+ name: string;
49
48
  /**
50
- * The number of daemon process instances of the program to run simultaneously
49
+ * Numeric ID of the project to which the daemon belongs to.
51
50
  * @type {number}
52
51
  * @memberof DaemonUpdate
53
52
  */
54
- process_count: number;
55
- /**
56
- * The name of the Unix user on behalf of which the daemon will run
57
- * @type {string}
58
- * @memberof DaemonUpdate
59
- */
60
- run_as_user: string;
53
+ application_id?: number;
61
54
  /**
62
- *
63
- * @type {Array<EnvironmentLinkItem>}
55
+ * List of valid resource IDs
56
+ * @type {Array<number>}
64
57
  * @memberof DaemonUpdate
65
58
  */
66
- environments?: Array<EnvironmentLinkItem>;
59
+ servers?: Array<number>;
67
60
  }
@@ -21,7 +21,7 @@ import { ServerRelation } from './server-relation';
21
21
  */
22
22
  export interface Daemon {
23
23
  /**
24
- * The Id of the given daemon
24
+ * The ID of the given daemon
25
25
  * @type {number}
26
26
  * @memberof Daemon
27
27
  */
@@ -38,6 +38,12 @@ export interface Daemon {
38
38
  * @memberof Daemon
39
39
  */
40
40
  command: string;
41
+ /**
42
+ * The name of the Unix user on behalf of which the daemon will be executed
43
+ * @type {string}
44
+ * @memberof Daemon
45
+ */
46
+ run_as_user: string;
41
47
  /**
42
48
  * The working directory where the daemon will be relative to when performing disk i/o
43
49
  * @type {string}
@@ -51,23 +57,23 @@ export interface Daemon {
51
57
  */
52
58
  process_count: number;
53
59
  /**
54
- * The name of the Unix user on behalf of which the daemon will run
55
- * @type {string}
56
- * @memberof Daemon
57
- */
58
- run_as_user: string;
59
- /**
60
- * Indicates if the command was auto_generated by `devopness` itself
60
+ * Indicates if the daemon was auto_generated by `devopness` itself
61
61
  * @type {boolean}
62
62
  * @memberof Daemon
63
63
  */
64
- auto_generated?: boolean;
64
+ auto_generated: boolean;
65
65
  /**
66
66
  *
67
67
  * @type {ProjectRelation}
68
68
  * @memberof Daemon
69
69
  */
70
70
  project: ProjectRelation;
71
+ /**
72
+ *
73
+ * @type {ActionRelation}
74
+ * @memberof Daemon
75
+ */
76
+ last_action: ActionRelation | null;
71
77
  /**
72
78
  *
73
79
  * @type {ApplicationRelation}
@@ -76,32 +82,32 @@ export interface Daemon {
76
82
  application: ApplicationRelation | null;
77
83
  /**
78
84
  *
79
- * @type {Array<EnvironmentRelation>}
85
+ * @type {EnvironmentRelation}
80
86
  * @memberof Daemon
81
87
  */
82
- environments: Array<EnvironmentRelation>;
88
+ environment: EnvironmentRelation;
83
89
  /**
84
90
  *
85
- * @type {Array<ServerRelation>}
91
+ * @type {Array<EnvironmentRelation>}
86
92
  * @memberof Daemon
87
93
  */
88
- servers: Array<ServerRelation>;
94
+ environments: Array<EnvironmentRelation>;
89
95
  /**
90
96
  *
91
- * @type {ActionRelation}
97
+ * @type {Array<ServerRelation>}
92
98
  * @memberof Daemon
93
99
  */
94
- last_action: ActionRelation | null;
100
+ servers: Array<ServerRelation>;
95
101
  /**
96
102
  * The date and time when the record was created
97
103
  * @type {string}
98
104
  * @memberof Daemon
99
105
  */
100
- created_at?: string;
106
+ created_at: string;
101
107
  /**
102
108
  * The date and time when the record was last updated
103
109
  * @type {string}
104
110
  * @memberof Daemon
105
111
  */
106
- updated_at?: string;
112
+ updated_at: string;
107
113
  }