@devopness/sdk-js 2.14.1 → 2.16.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 (61) hide show
  1. package/dist/api/generated/apis/cron-jobs-api.d.ts +7 -7
  2. package/dist/api/generated/apis/cron-jobs-api.js +7 -7
  3. package/dist/api/generated/apis/environments-applications-api.d.ts +9 -0
  4. package/dist/api/generated/apis/environments-applications-api.js +20 -0
  5. package/dist/api/generated/apis/environments-cron-jobs-api.d.ts +11 -2
  6. package/dist/api/generated/apis/environments-cron-jobs-api.js +22 -2
  7. package/dist/api/generated/apis/environments-servers-api.d.ts +9 -9
  8. package/dist/api/generated/apis/environments-servers-api.js +20 -25
  9. package/dist/api/generated/apis/environments-services-api.d.ts +2 -2
  10. package/dist/api/generated/apis/environments-services-api.js +2 -2
  11. package/dist/api/generated/apis/environments-sshkeys-api.d.ts +11 -2
  12. package/dist/api/generated/apis/environments-sshkeys-api.js +22 -2
  13. package/dist/api/generated/apis/projects-cron-jobs-api.d.ts +4 -4
  14. package/dist/api/generated/apis/projects-cron-jobs-api.js +6 -6
  15. package/dist/api/generated/apis/projects-servers-api.d.ts +4 -4
  16. package/dist/api/generated/apis/projects-servers-api.js +6 -6
  17. package/dist/api/generated/apis/projects-services-api.d.ts +5 -5
  18. package/dist/api/generated/apis/projects-services-api.js +7 -7
  19. package/dist/api/generated/apis/projects-sshkeys-api.d.ts +1 -1
  20. package/dist/api/generated/apis/projects-sshkeys-api.js +1 -1
  21. package/dist/api/generated/apis/servers-api.d.ts +3 -4
  22. package/dist/api/generated/apis/servers-api.js +7 -7
  23. package/dist/api/generated/apis/services-api.d.ts +17 -17
  24. package/dist/api/generated/apis/services-api.js +20 -20
  25. package/dist/api/generated/models/application-environment-create.d.ts +138 -0
  26. package/dist/api/generated/models/{service-status-update.js → application-environment-create.js} +0 -0
  27. package/dist/api/generated/models/cron-job-create.d.ts +16 -16
  28. package/dist/api/generated/models/cron-job-environment-create.d.ts +54 -0
  29. package/dist/api/generated/models/cron-job-environment-create.js +14 -0
  30. package/dist/api/generated/models/cron-job-relation.d.ts +19 -12
  31. package/dist/api/generated/models/cron-job-update.d.ts +11 -11
  32. package/dist/api/generated/models/cron-job.d.ts +19 -19
  33. package/dist/api/generated/models/index.d.ts +4 -2
  34. package/dist/api/generated/models/index.js +4 -2
  35. package/dist/api/generated/models/server-relation.d.ts +22 -22
  36. package/dist/api/generated/models/server.d.ts +34 -28
  37. package/dist/api/generated/models/service-create.d.ts +11 -11
  38. package/dist/api/generated/models/service-relation.d.ts +14 -8
  39. package/dist/api/generated/models/service-reload.d.ts +1 -1
  40. package/dist/api/generated/models/service-restart.d.ts +1 -1
  41. package/dist/api/generated/models/service-start.d.ts +1 -1
  42. package/dist/api/generated/models/service-stop.d.ts +1 -1
  43. package/dist/api/generated/models/{service-status-update.d.ts → service-update-status.d.ts} +4 -4
  44. package/dist/api/generated/models/service-update-status.js +14 -0
  45. package/dist/api/generated/models/service-update.d.ts +2 -2
  46. package/dist/api/generated/models/service.d.ts +4 -4
  47. package/dist/api/generated/models/ssh-key-create.d.ts +5 -12
  48. package/dist/api/generated/models/ssh-key-project-create.d.ts +37 -0
  49. package/dist/api/generated/models/ssh-key-project-create.js +14 -0
  50. package/dist/api/generated/models/ssh-key-relation.d.ts +13 -7
  51. package/dist/api/generated/models/ssh-key-update.d.ts +2 -2
  52. package/dist/api/generated/models/ssh-key.d.ts +13 -7
  53. package/dist/api/generated/models/trigger-event.d.ts +2 -1
  54. package/dist/api/generated/models/trigger-event.js +2 -1
  55. package/dist/index.d.ts +1 -0
  56. package/dist/index.js +2 -1
  57. package/dist/services/index.d.ts +27 -0
  58. package/dist/services/index.js +43 -0
  59. package/package.json +14 -7
  60. package/dist/api/generated/models/service-action.d.ts +0 -27
  61. package/dist/api/generated/models/service-action.js +0 -32
@@ -15,9 +15,9 @@ import { Service } from '../../generated/models';
15
15
  import { ServiceReload } from '../../generated/models';
16
16
  import { ServiceRestart } from '../../generated/models';
17
17
  import { ServiceStart } from '../../generated/models';
18
- import { ServiceStatusUpdate } from '../../generated/models';
19
18
  import { ServiceStop } from '../../generated/models';
20
19
  import { ServiceUpdate } from '../../generated/models';
20
+ import { ServiceUpdateStatus } from '../../generated/models';
21
21
  /**
22
22
  * ServicesApiService - Auto-generated
23
23
  */
@@ -25,55 +25,55 @@ export declare class ServicesApiService extends ApiBaseService {
25
25
  /**
26
26
  *
27
27
  * @summary Delete a given service
28
- * @param {number} serviceId The Id of the service to be deleted
28
+ * @param {number} serviceId The ID of the service.
29
29
  */
30
30
  deleteService(serviceId: number): Promise<ApiResponse<void>>;
31
31
  /**
32
32
  *
33
33
  * @summary Get details of a single service
34
- * @param {number} serviceId Unique ID of the service to get
34
+ * @param {number} serviceId The ID of the service.
35
35
  */
36
36
  getService(serviceId: number): Promise<ApiResponse<Service>>;
37
37
  /**
38
38
  *
39
39
  * @summary Reload a service
40
- * @param {number} serviceId The unique id of the service
41
- * @param {ServiceReload} serviceReload A JSON object containing the environment id
40
+ * @param {number} serviceId The ID of the service.
41
+ * @param {ServiceReload} serviceReload A JSON object containing the resource data
42
42
  */
43
43
  reloadService(serviceId: number, serviceReload: ServiceReload): Promise<ApiResponse<void>>;
44
44
  /**
45
45
  *
46
46
  * @summary Restart a service
47
- * @param {number} serviceId The unique id of the service
48
- * @param {ServiceRestart} serviceRestart A JSON object containing the environment id
47
+ * @param {number} serviceId The ID of the service.
48
+ * @param {ServiceRestart} serviceRestart A JSON object containing the resource data
49
49
  */
50
50
  restartService(serviceId: number, serviceRestart: ServiceRestart): Promise<ApiResponse<void>>;
51
51
  /**
52
52
  *
53
53
  * @summary Start a service
54
- * @param {number} serviceId The unique id of the service
55
- * @param {ServiceStart} serviceStart A JSON object containing the environment id
54
+ * @param {number} serviceId The ID of the service.
55
+ * @param {ServiceStart} serviceStart A JSON object containing the resource data
56
56
  */
57
57
  startService(serviceId: number, serviceStart: ServiceStart): Promise<ApiResponse<void>>;
58
58
  /**
59
59
  *
60
60
  * @summary Stop a service
61
- * @param {number} serviceId The unique id of the service
62
- * @param {ServiceStop} serviceStop A JSON object containing the environment id
61
+ * @param {number} serviceId The ID of the service.
62
+ * @param {ServiceStop} serviceStop A JSON object containing the resource data
63
63
  */
64
64
  stopService(serviceId: number, serviceStop: ServiceStop): Promise<ApiResponse<void>>;
65
65
  /**
66
66
  *
67
67
  * @summary Update an existing service
68
- * @param {number} serviceId The unique id of the service
69
- * @param {ServiceUpdate} serviceUpdate A JSON object containing service data
68
+ * @param {number} serviceId The ID of the service.
69
+ * @param {ServiceUpdate} serviceUpdate A JSON object containing the resource data
70
70
  */
71
71
  updateService(serviceId: number, serviceUpdate: ServiceUpdate): Promise<ApiResponse<void>>;
72
72
  /**
73
- * Trigger a status update action for a service in all project servers asynchronously. To get the output of service status update action the endpoint [getServiceStatusLog](/#operation/getServiceStatusLog) should be invoked.
73
+ *
74
74
  * @summary Update status of a service
75
- * @param {number} serviceId The unique id of the service
76
- * @param {ServiceStatusUpdate} serviceStatusUpdate A JSON object containing the environment id
75
+ * @param {number} serviceId The ID of the service.
76
+ * @param {ServiceUpdateStatus} serviceUpdateStatus A JSON object containing the resource data
77
77
  */
78
- updateServiceStatus(serviceId: number, serviceStatusUpdate: ServiceStatusUpdate): Promise<ApiResponse<void>>;
78
+ updateStatusService(serviceId: number, serviceUpdateStatus: ServiceUpdateStatus): Promise<ApiResponse<void>>;
79
79
  }
@@ -32,7 +32,7 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
34
  * @summary Delete a given service
35
- * @param {number} serviceId The Id of the service to be deleted
35
+ * @param {number} serviceId The ID of the service.
36
36
  */
37
37
  deleteService(serviceId) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
@@ -48,7 +48,7 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
48
48
  /**
49
49
  *
50
50
  * @summary Get details of a single service
51
- * @param {number} serviceId Unique ID of the service to get
51
+ * @param {number} serviceId The ID of the service.
52
52
  */
53
53
  getService(serviceId) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -64,8 +64,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
64
64
  /**
65
65
  *
66
66
  * @summary Reload a service
67
- * @param {number} serviceId The unique id of the service
68
- * @param {ServiceReload} serviceReload A JSON object containing the environment id
67
+ * @param {number} serviceId The ID of the service.
68
+ * @param {ServiceReload} serviceReload A JSON object containing the resource data
69
69
  */
70
70
  reloadService(serviceId, serviceReload) {
71
71
  return __awaiter(this, void 0, void 0, function* () {
@@ -84,8 +84,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
84
84
  /**
85
85
  *
86
86
  * @summary Restart a service
87
- * @param {number} serviceId The unique id of the service
88
- * @param {ServiceRestart} serviceRestart A JSON object containing the environment id
87
+ * @param {number} serviceId The ID of the service.
88
+ * @param {ServiceRestart} serviceRestart A JSON object containing the resource data
89
89
  */
90
90
  restartService(serviceId, serviceRestart) {
91
91
  return __awaiter(this, void 0, void 0, function* () {
@@ -104,8 +104,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
104
104
  /**
105
105
  *
106
106
  * @summary Start a service
107
- * @param {number} serviceId The unique id of the service
108
- * @param {ServiceStart} serviceStart A JSON object containing the environment id
107
+ * @param {number} serviceId The ID of the service.
108
+ * @param {ServiceStart} serviceStart A JSON object containing the resource data
109
109
  */
110
110
  startService(serviceId, serviceStart) {
111
111
  return __awaiter(this, void 0, void 0, function* () {
@@ -124,8 +124,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
124
124
  /**
125
125
  *
126
126
  * @summary Stop a service
127
- * @param {number} serviceId The unique id of the service
128
- * @param {ServiceStop} serviceStop A JSON object containing the environment id
127
+ * @param {number} serviceId The ID of the service.
128
+ * @param {ServiceStop} serviceStop A JSON object containing the resource data
129
129
  */
130
130
  stopService(serviceId, serviceStop) {
131
131
  return __awaiter(this, void 0, void 0, function* () {
@@ -144,8 +144,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
144
144
  /**
145
145
  *
146
146
  * @summary Update an existing service
147
- * @param {number} serviceId The unique id of the service
148
- * @param {ServiceUpdate} serviceUpdate A JSON object containing service data
147
+ * @param {number} serviceId The ID of the service.
148
+ * @param {ServiceUpdate} serviceUpdate A JSON object containing the resource data
149
149
  */
150
150
  updateService(serviceId, serviceUpdate) {
151
151
  return __awaiter(this, void 0, void 0, function* () {
@@ -162,22 +162,22 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
162
162
  });
163
163
  }
164
164
  /**
165
- * Trigger a status update action for a service in all project servers asynchronously. To get the output of service status update action the endpoint [getServiceStatusLog](/#operation/getServiceStatusLog) should be invoked.
165
+ *
166
166
  * @summary Update status of a service
167
- * @param {number} serviceId The unique id of the service
168
- * @param {ServiceStatusUpdate} serviceStatusUpdate A JSON object containing the environment id
167
+ * @param {number} serviceId The ID of the service.
168
+ * @param {ServiceUpdateStatus} serviceUpdateStatus A JSON object containing the resource data
169
169
  */
170
- updateServiceStatus(serviceId, serviceStatusUpdate) {
170
+ updateStatusService(serviceId, serviceUpdateStatus) {
171
171
  return __awaiter(this, void 0, void 0, function* () {
172
172
  if (serviceId === null || serviceId === undefined) {
173
- throw new Exceptions_1.ArgumentNullException('serviceId', 'updateServiceStatus');
173
+ throw new Exceptions_1.ArgumentNullException('serviceId', 'updateStatusService');
174
174
  }
175
- if (serviceStatusUpdate === null || serviceStatusUpdate === undefined) {
176
- throw new Exceptions_1.ArgumentNullException('serviceStatusUpdate', 'updateServiceStatus');
175
+ if (serviceUpdateStatus === null || serviceUpdateStatus === undefined) {
176
+ throw new Exceptions_1.ArgumentNullException('serviceUpdateStatus', 'updateStatusService');
177
177
  }
178
178
  let queryString = '';
179
179
  const requestUrl = '/services/{service_id}/update-status' + (queryString ? `?${queryString}` : '');
180
- const response = yield this.post(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))), serviceStatusUpdate);
180
+ const response = yield this.post(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))), serviceUpdateStatus);
181
181
  return new ApiResponse_1.ApiResponse(response);
182
182
  });
183
183
  }
@@ -0,0 +1,138 @@
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 ApplicationEnvironmentCreate
16
+ */
17
+ export interface ApplicationEnvironmentCreate {
18
+ /**
19
+ * The application\'s unique name. Must not be greater than 60 characters.
20
+ * @type {string}
21
+ * @memberof ApplicationEnvironmentCreate
22
+ */
23
+ name: string;
24
+ /**
25
+ * Must be one of <code>web</code> or <code>non-web</code>.
26
+ * @type {string}
27
+ * @memberof ApplicationEnvironmentCreate
28
+ */
29
+ type: string;
30
+ /**
31
+ * The domain or sub-domain through which the application deployed with these settings will be accessible. It can be a naked domain or any subdomain. If app has domain names `testing.my-app.com`, `staging.my-app.com` and `www.my-app.com` a possible good candidate for the application name would be the \"naked\" domain `my-app.com`. Must not be greater than 60 characters.
32
+ * @type {string}
33
+ * @memberof ApplicationEnvironmentCreate
34
+ */
35
+ domain_name?: string;
36
+ /**
37
+ * The optional command that should be executed once during deployment to build the source code and get the application in a ready state. Must be at least 10 characters. Must not be greater than 300 characters.
38
+ * @type {string}
39
+ * @memberof ApplicationEnvironmentCreate
40
+ */
41
+ build_command?: string;
42
+ /**
43
+ * The language runtime engine version to be used to execute this application on the deployed servers. This field is required unless <code>programming_language</code> is in <code>html</code>. Must be one of <code></code> Must be at least 1 characters. Must not be greater than 10 characters.
44
+ * @type {string}
45
+ * @memberof ApplicationEnvironmentCreate
46
+ */
47
+ engine_version?: string;
48
+ /**
49
+ * The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment. Must not be greater than 30 characters.
50
+ * @type {string}
51
+ * @memberof ApplicationEnvironmentCreate
52
+ */
53
+ framework: string;
54
+ /**
55
+ * The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js, but should be served statically (a SPA application, for instance) then this field value should be `html`. Must be one of <code>docker</code>, <code>dotnetcore</code>, <code>html</code>, <code>nodejs</code>, <code>php</code>, or <code>python</code> Must not be greater than 30 characters.
56
+ * @type {string}
57
+ * @memberof ApplicationEnvironmentCreate
58
+ */
59
+ programming_language: string;
60
+ /**
61
+ * Required for CGI|FastCGI|SCGI|WSGI based applications or `docker` containerized applications. It tells `devopness` the private address at which the application listens to external calls.The address has `http` or `https` protocol, an domain name or IP address, optional port and optional path. Or you can specify a UNIX-socket using `unix:` prefix after protocol.
62
+ * @type {string}
63
+ * @memberof ApplicationEnvironmentCreate
64
+ */
65
+ listening_address?: string;
66
+ /**
67
+ * The full name of a repository (`repository_owner/repository_name`) containing the application source code. Required when the `source_provider_id` field is informed. Must not be greater than 60 characters.
68
+ * @type {string}
69
+ * @memberof ApplicationEnvironmentCreate
70
+ */
71
+ repository: string;
72
+ /**
73
+ * Numeric ID of the source provider account where the repository is hosted. Required when the `repository` field is informed.
74
+ * @type {number}
75
+ * @memberof ApplicationEnvironmentCreate
76
+ */
77
+ source_provider_id: number;
78
+ /**
79
+ * The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository. Must start with one of <code>/</code>.
80
+ * @type {string}
81
+ * @memberof ApplicationEnvironmentCreate
82
+ */
83
+ root_directory?: string;
84
+ /**
85
+ * The relative web directory where publicly accessible assets are located and the web content should be served from. Must start with one of <code>/</code>.
86
+ * @type {string}
87
+ * @memberof ApplicationEnvironmentCreate
88
+ */
89
+ public_directory: string;
90
+ /**
91
+ * The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed. Must not be greater than 100 characters.
92
+ * @type {string}
93
+ * @memberof ApplicationEnvironmentCreate
94
+ */
95
+ default_branch: string;
96
+ /**
97
+ * The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previous versions. Must be at least 1. Must not be greater than 10.
98
+ * @type {number}
99
+ * @memberof ApplicationEnvironmentCreate
100
+ */
101
+ deployments_keep?: number;
102
+ /**
103
+ * The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initializes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - every time the application needs to be started. Must not be greater than 120 characters.
104
+ * @type {string}
105
+ * @memberof ApplicationEnvironmentCreate
106
+ */
107
+ entrypoint: string;
108
+ /**
109
+ * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode.
110
+ * @type {boolean}
111
+ * @memberof ApplicationEnvironmentCreate
112
+ */
113
+ install_dependencies_dev: boolean;
114
+ /**
115
+ * Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode.
116
+ * @type {boolean}
117
+ * @memberof ApplicationEnvironmentCreate
118
+ */
119
+ install_dependencies_prod: boolean;
120
+ /**
121
+ * Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are committed to the `default_branch`.
122
+ * @type {boolean}
123
+ * @memberof ApplicationEnvironmentCreate
124
+ */
125
+ push_to_deploy?: boolean;
126
+ /**
127
+ * Indicates if the application requires a daemon to keep it alive.
128
+ * @type {boolean}
129
+ * @memberof ApplicationEnvironmentCreate
130
+ */
131
+ requires_daemon: boolean;
132
+ /**
133
+ * List of valid resource IDs
134
+ * @type {Array<number>}
135
+ * @memberof ApplicationEnvironmentCreate
136
+ */
137
+ servers?: Array<number>;
138
+ }
@@ -17,41 +17,41 @@ import { EnvironmentLinkItem } from './environment-link-item';
17
17
  */
18
18
  export interface CronJobCreate {
19
19
  /**
20
- * Numeric ID of the project to which the cron job belongs to
21
- * @type {number}
22
- * @memberof CronJobCreate
23
- */
24
- project_id: number;
25
- /**
26
- * Numeric ID of the application to which the cron job belongs to
27
- * @type {number}
20
+ * A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions.
21
+ * @type {string}
28
22
  * @memberof CronJobCreate
29
23
  */
30
- application_id?: number;
24
+ pattern: string;
31
25
  /**
32
- * The name of the cron job
26
+ * The name of the cron job. Must not be greater than 60 characters.
33
27
  * @type {string}
34
28
  * @memberof CronJobCreate
35
29
  */
36
30
  name: string;
37
31
  /**
38
- * The command line to be executed when running the cron job
32
+ * The command line to be executed when running the cron job. Must be at least 5 characters. Must not be greater than 255 characters.
39
33
  * @type {string}
40
34
  * @memberof CronJobCreate
41
35
  */
42
36
  command: string;
43
37
  /**
44
- * A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions
38
+ * The name of the system user on behalf of which the cron job will be executed. Must not be greater than 60 characters.
45
39
  * @type {string}
46
40
  * @memberof CronJobCreate
47
41
  */
48
- pattern: string;
42
+ run_as_user: string;
49
43
  /**
50
- * The name of the system user on behalf of which the cron job will be executed
51
- * @type {string}
44
+ * Numeric ID of the application to which the cron job belongs to.
45
+ * @type {number}
52
46
  * @memberof CronJobCreate
53
47
  */
54
- run_as_user: string;
48
+ application_id?: number;
49
+ /**
50
+ * Numeric ID of the project to which the cron job belongs to.
51
+ * @type {number}
52
+ * @memberof CronJobCreate
53
+ */
54
+ project_id: number;
55
55
  /**
56
56
  *
57
57
  * @type {Array<EnvironmentLinkItem>}
@@ -0,0 +1,54 @@
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 CronJobEnvironmentCreate
16
+ */
17
+ export interface CronJobEnvironmentCreate {
18
+ /**
19
+ * The name of the cron job. Must not be greater than 60 characters.
20
+ * @type {string}
21
+ * @memberof CronJobEnvironmentCreate
22
+ */
23
+ name: string;
24
+ /**
25
+ * The command line to be executed when running the cron job. Must be at least 5 characters. Must not be greater than 255 characters.
26
+ * @type {string}
27
+ * @memberof CronJobEnvironmentCreate
28
+ */
29
+ command: string;
30
+ /**
31
+ * A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions.
32
+ * @type {string}
33
+ * @memberof CronJobEnvironmentCreate
34
+ */
35
+ pattern: string;
36
+ /**
37
+ * The name of the system user on behalf of which the cron job will be executed. Must not be greater than 60 characters.
38
+ * @type {string}
39
+ * @memberof CronJobEnvironmentCreate
40
+ */
41
+ run_as_user: string;
42
+ /**
43
+ * Numeric ID of the application to which the cron job belongs to.
44
+ * @type {number}
45
+ * @memberof CronJobEnvironmentCreate
46
+ */
47
+ application_id?: number;
48
+ /**
49
+ * List of valid resource IDs
50
+ * @type {Array<number>}
51
+ * @memberof CronJobEnvironmentCreate
52
+ */
53
+ servers?: Array<number>;
54
+ }
@@ -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 { ActionRelation } from './action-relation';
13
13
  import { ApplicationRelation } from './application-relation';
14
14
  import { CronJobPattern } from './cron-job-pattern';
15
+ import { UserRelation } from './user-relation';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -19,7 +20,7 @@ import { CronJobPattern } from './cron-job-pattern';
19
20
  */
20
21
  export interface CronJobRelation {
21
22
  /**
22
- * The Id of the given cron job
23
+ * The ID of the given cron job
23
24
  * @type {number}
24
25
  * @memberof CronJobRelation
25
26
  */
@@ -36,6 +37,12 @@ export interface CronJobRelation {
36
37
  * @memberof CronJobRelation
37
38
  */
38
39
  command: string;
40
+ /**
41
+ * The name of the Unix user on behalf of which the cron job will be executed
42
+ * @type {string}
43
+ * @memberof CronJobRelation
44
+ */
45
+ run_as_user: string;
39
46
  /**
40
47
  * A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions
41
48
  * @type {string}
@@ -48,40 +55,40 @@ export interface CronJobRelation {
48
55
  * @memberof CronJobRelation
49
56
  */
50
57
  pattern_human_readable: CronJobPattern;
51
- /**
52
- * The name of the Unix user on behalf of which the cron job will be executed
53
- * @type {string}
54
- * @memberof CronJobRelation
55
- */
56
- run_as_user: string;
57
58
  /**
58
59
  * Indicates if the cron job was auto_generated by `devopness` itself
59
60
  * @type {boolean}
60
61
  * @memberof CronJobRelation
61
62
  */
62
- auto_generated?: boolean;
63
+ auto_generated: boolean;
63
64
  /**
64
65
  *
65
66
  * @type {ActionRelation}
66
67
  * @memberof CronJobRelation
67
68
  */
68
- last_action?: ActionRelation | null;
69
+ last_action: ActionRelation | null;
70
+ /**
71
+ *
72
+ * @type {UserRelation}
73
+ * @memberof CronJobRelation
74
+ */
75
+ created_by_user: UserRelation;
69
76
  /**
70
77
  *
71
78
  * @type {ApplicationRelation}
72
79
  * @memberof CronJobRelation
73
80
  */
74
- application?: ApplicationRelation | null;
81
+ application: ApplicationRelation | null;
75
82
  /**
76
83
  * The date and time when the record was created
77
84
  * @type {string}
78
85
  * @memberof CronJobRelation
79
86
  */
80
- created_at?: string;
87
+ created_at: string;
81
88
  /**
82
89
  * The date and time when the record was last updated
83
90
  * @type {string}
84
91
  * @memberof CronJobRelation
85
92
  */
86
- updated_at?: string;
93
+ updated_at: string;
87
94
  }
@@ -17,41 +17,41 @@ import { EnvironmentLinkItem } from './environment-link-item';
17
17
  */
18
18
  export interface CronJobUpdate {
19
19
  /**
20
- * The unique id of the given record
20
+ * The unique ID of the given cron job.
21
21
  * @type {number}
22
22
  * @memberof CronJobUpdate
23
23
  */
24
24
  id: number;
25
25
  /**
26
- * Numeric ID of the application to which the cron job belongs to
27
- * @type {number}
26
+ * A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions.
27
+ * @type {string}
28
28
  * @memberof CronJobUpdate
29
29
  */
30
- application_id?: number;
30
+ pattern: string;
31
31
  /**
32
- * The name of the cron job
32
+ * The name of the cron job. Must not be greater than 60 characters.
33
33
  * @type {string}
34
34
  * @memberof CronJobUpdate
35
35
  */
36
36
  name: string;
37
37
  /**
38
- * The command line to be executed when running the cron job
38
+ * The command line to be executed when running the cron job. Must be at least 5 characters. Must not be greater than 255 characters.
39
39
  * @type {string}
40
40
  * @memberof CronJobUpdate
41
41
  */
42
42
  command: string;
43
43
  /**
44
- * A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions
44
+ * The name of the system user on behalf of which the cron job will be executed. Must not be greater than 60 characters.
45
45
  * @type {string}
46
46
  * @memberof CronJobUpdate
47
47
  */
48
- pattern: string;
48
+ run_as_user: string;
49
49
  /**
50
- * The name of the system user on behalf of which the cron job will be executed
51
- * @type {string}
50
+ * Numeric ID of the application to which the cron job belongs to.
51
+ * @type {number}
52
52
  * @memberof CronJobUpdate
53
53
  */
54
- run_as_user: string;
54
+ application_id?: number;
55
55
  /**
56
56
  *
57
57
  * @type {Array<EnvironmentLinkItem>}