@devopness/sdk-js 2.17.0 → 2.18.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 (42) 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/projects-daemons-api.d.ts +7 -7
  14. package/dist/api/generated/apis/projects-daemons-api.js +10 -10
  15. package/dist/api/generated/apis/projects-network-rules-api.d.ts +6 -6
  16. package/dist/api/generated/apis/projects-network-rules-api.js +8 -8
  17. package/dist/api/generated/apis/sslcertificates-api.d.ts +3 -3
  18. package/dist/api/generated/apis/sslcertificates-api.js +3 -3
  19. package/dist/api/generated/apis/variables-api.d.ts +4 -4
  20. package/dist/api/generated/apis/variables-api.js +4 -4
  21. package/dist/api/generated/models/daemon-create.d.ts +13 -20
  22. package/dist/api/generated/models/daemon-project-create.d.ts +61 -0
  23. package/dist/api/generated/models/daemon-project-create.js +14 -0
  24. package/dist/api/generated/models/daemon-relation.d.ts +13 -13
  25. package/dist/api/generated/models/daemon-restart.d.ts +1 -1
  26. package/dist/api/generated/models/daemon-update.d.ts +13 -19
  27. package/dist/api/generated/models/daemon.d.ts +23 -17
  28. package/dist/api/generated/models/index.d.ts +2 -0
  29. package/dist/api/generated/models/index.js +2 -0
  30. package/dist/api/generated/models/network-rule-create.d.ts +8 -8
  31. package/dist/api/generated/models/network-rule-relation.d.ts +21 -15
  32. package/dist/api/generated/models/network-rule-update.d.ts +7 -7
  33. package/dist/api/generated/models/network-rule.d.ts +23 -17
  34. package/dist/api/generated/models/ssl-certificate-create.d.ts +9 -9
  35. package/dist/api/generated/models/ssl-certificate-relation.d.ts +24 -30
  36. package/dist/api/generated/models/ssl-certificate.d.ts +41 -40
  37. package/dist/api/generated/models/variable-create.d.ts +16 -4
  38. package/dist/api/generated/models/variable-relation.d.ts +92 -0
  39. package/dist/api/generated/models/variable-relation.js +14 -0
  40. package/dist/api/generated/models/variable-update.d.ts +4 -10
  41. package/dist/api/generated/models/variable.d.ts +30 -12
  42. package/package.json +1 -1
@@ -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
  */
@@ -17,47 +17,41 @@ import { EnvironmentLinkItem } from './environment-link-item';
17
17
  */
18
18
  export interface DaemonUpdate {
19
19
  /**
20
- * The unique id of the given record
21
- * @type {number}
20
+ * The command line to be executed to start the daemon. Must not be greater than 255 characters.
21
+ * @type {string}
22
22
  * @memberof DaemonUpdate
23
23
  */
24
- id: number;
24
+ command: string;
25
25
  /**
26
- * Numeric ID of the application to which the daemon belongs to
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
27
  * @type {number}
28
28
  * @memberof DaemonUpdate
29
29
  */
30
- application_id?: number;
30
+ process_count: number;
31
31
  /**
32
- * The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon
32
+ * The working directory where the daemon will be relative to when performing disk i/o. Must start with one of <code>/</code>.
33
33
  * @type {string}
34
34
  * @memberof DaemonUpdate
35
35
  */
36
- name: string;
36
+ working_directory: string;
37
37
  /**
38
- * The command line to be executed to start the daemon
38
+ * The name of the Unix user on behalf of which the daemon will run. Must not be greater than 60 characters.
39
39
  * @type {string}
40
40
  * @memberof DaemonUpdate
41
41
  */
42
- command: string;
42
+ run_as_user: string;
43
43
  /**
44
- * The working directory where the daemon will be relative to when performing disk i/o
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
45
  * @type {string}
46
46
  * @memberof DaemonUpdate
47
47
  */
48
- working_directory: string;
48
+ name: string;
49
49
  /**
50
- * The number of daemon process instances of the program to run simultaneously
50
+ * Numeric ID of the project to which the daemon belongs to.
51
51
  * @type {number}
52
52
  * @memberof DaemonUpdate
53
53
  */
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;
54
+ application_id?: number;
61
55
  /**
62
56
  *
63
57
  * @type {Array<EnvironmentLinkItem>}
@@ -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
  }
@@ -59,6 +59,7 @@ export * from './cron-job-relation';
59
59
  export * from './cron-job-update';
60
60
  export * from './daemon';
61
61
  export * from './daemon-create';
62
+ export * from './daemon-project-create';
62
63
  export * from './daemon-relation';
63
64
  export * from './daemon-restart';
64
65
  export * from './daemon-update';
@@ -214,6 +215,7 @@ export * from './user-tokens';
214
215
  export * from './user-update';
215
216
  export * from './variable';
216
217
  export * from './variable-create';
218
+ export * from './variable-relation';
217
219
  export * from './variable-target';
218
220
  export * from './variable-type';
219
221
  export * from './variable-update';
@@ -75,6 +75,7 @@ __exportStar(require("./cron-job-relation"), exports);
75
75
  __exportStar(require("./cron-job-update"), exports);
76
76
  __exportStar(require("./daemon"), exports);
77
77
  __exportStar(require("./daemon-create"), exports);
78
+ __exportStar(require("./daemon-project-create"), exports);
78
79
  __exportStar(require("./daemon-relation"), exports);
79
80
  __exportStar(require("./daemon-restart"), exports);
80
81
  __exportStar(require("./daemon-update"), exports);
@@ -230,6 +231,7 @@ __exportStar(require("./user-tokens"), exports);
230
231
  __exportStar(require("./user-update"), exports);
231
232
  __exportStar(require("./variable"), exports);
232
233
  __exportStar(require("./variable-create"), exports);
234
+ __exportStar(require("./variable-relation"), exports);
233
235
  __exportStar(require("./variable-target"), exports);
234
236
  __exportStar(require("./variable-type"), exports);
235
237
  __exportStar(require("./variable-update"), exports);
@@ -19,7 +19,7 @@ import { NetworkRuleType } from './network-rule-type';
19
19
  */
20
20
  export interface NetworkRuleCreate {
21
21
  /**
22
- * The rule\'s name/description/reminder
22
+ * The rule\'s name/description/reminder. Must be at least 3 characters. Must not be greater than 60 characters.
23
23
  * @type {string}
24
24
  * @memberof NetworkRuleCreate
25
25
  */
@@ -35,27 +35,27 @@ export interface NetworkRuleCreate {
35
35
  * @type {NetworkRuleProtocol}
36
36
  * @memberof NetworkRuleCreate
37
37
  */
38
- protocol: NetworkRuleProtocol;
38
+ protocol?: NetworkRuleProtocol;
39
39
  /**
40
- * Starting range of the public ipv4 or ipv6 addresses that can access this rule
40
+ * Starting range of the public ipv4 or ipv6 addresses that can access this rule. Must be a valid IP address.
41
41
  * @type {string}
42
42
  * @memberof NetworkRuleCreate
43
43
  */
44
- ip_address_from: string | null;
44
+ ip_address_from?: string;
45
45
  /**
46
- * Ending range of the public ipv4 or ipv6 addresses that can access this rule
46
+ * Ending range of the public ipv4 or ipv6 addresses that can access this rule. Must be a valid IP address.
47
47
  * @type {string}
48
48
  * @memberof NetworkRuleCreate
49
49
  */
50
- ip_address_to: string | null;
50
+ ip_address_to?: string;
51
51
  /**
52
- * Starting range of network ports to be considered by this rule
52
+ * Starting range of network ports to be considered by this rule. Must be at least 1. Must not be greater than 65535.
53
53
  * @type {number}
54
54
  * @memberof NetworkRuleCreate
55
55
  */
56
56
  port_from: number;
57
57
  /**
58
- * Ending range of network ports to be considered by this rule
58
+ * Ending range of network ports to be considered by this rule. Must be at least 1. Must not be greater than 65535.
59
59
  * @type {number}
60
60
  * @memberof NetworkRuleCreate
61
61
  */
@@ -19,7 +19,7 @@ import { NetworkRuleType } from './network-rule-type';
19
19
  */
20
20
  export interface NetworkRuleRelation {
21
21
  /**
22
- * The unique id of the given record
22
+ * The ID of the given network rule
23
23
  * @type {number}
24
24
  * @memberof NetworkRuleRelation
25
25
  */
@@ -43,45 +43,51 @@ export interface NetworkRuleRelation {
43
43
  */
44
44
  protocol: NetworkRuleProtocol;
45
45
  /**
46
- * Starting range of the public ipv4 or ipv6 addresses that can access this rule
47
- * @type {string}
46
+ * Starting range of network ports to be considered by this rule
47
+ * @type {number}
48
48
  * @memberof NetworkRuleRelation
49
49
  */
50
- ip_address_from?: string | null;
50
+ port_from: number;
51
51
  /**
52
- * Ending range of the public ipv4 or ipv6 addresses that can access this rule
52
+ * Ending range of network ports to be considered by this rule
53
+ * @type {number}
54
+ * @memberof NetworkRuleRelation
55
+ */
56
+ port_to: number;
57
+ /**
58
+ * Starting range of the public ipv4 or ipv6 addresses that can access this rule
53
59
  * @type {string}
54
60
  * @memberof NetworkRuleRelation
55
61
  */
56
- ip_address_to?: string | null;
62
+ ip_address_from: string | null;
57
63
  /**
58
- * Starting range of network ports to be considered by this rule
59
- * @type {number}
64
+ * Ending range of the public ipv4 or ipv6 addresses that can access this rule
65
+ * @type {string}
60
66
  * @memberof NetworkRuleRelation
61
67
  */
62
- port_from: number;
68
+ ip_address_to: string | null;
63
69
  /**
64
- * Ending range of network ports to be considered by this rule
65
- * @type {number}
70
+ * Indicates if the network rule was auto_generated by `devopness` itself
71
+ * @type {boolean}
66
72
  * @memberof NetworkRuleRelation
67
73
  */
68
- port_to: number;
74
+ auto_generated: boolean;
69
75
  /**
70
76
  *
71
77
  * @type {ActionRelation}
72
78
  * @memberof NetworkRuleRelation
73
79
  */
74
- last_action?: ActionRelation | null;
80
+ last_action: ActionRelation | null;
75
81
  /**
76
82
  * The date and time when the record was created
77
83
  * @type {string}
78
84
  * @memberof NetworkRuleRelation
79
85
  */
80
- created_at?: string;
86
+ created_at: string;
81
87
  /**
82
88
  * The date and time when the record was last updated
83
89
  * @type {string}
84
90
  * @memberof NetworkRuleRelation
85
91
  */
86
- updated_at?: string;
92
+ updated_at: string;
87
93
  }
@@ -19,13 +19,13 @@ import { NetworkRuleType } from './network-rule-type';
19
19
  */
20
20
  export interface NetworkRuleUpdate {
21
21
  /**
22
- * The unique id of the given record
22
+ * The unique ID of the given network rule.
23
23
  * @type {number}
24
24
  * @memberof NetworkRuleUpdate
25
25
  */
26
26
  id: number;
27
27
  /**
28
- * The rule\'s name/description/reminder
28
+ * The rule\'s name/description/reminder. Must be at least 3 characters. Must not be greater than 60 characters.
29
29
  * @type {string}
30
30
  * @memberof NetworkRuleUpdate
31
31
  */
@@ -41,19 +41,19 @@ export interface NetworkRuleUpdate {
41
41
  * @type {NetworkRuleProtocol}
42
42
  * @memberof NetworkRuleUpdate
43
43
  */
44
- protocol: NetworkRuleProtocol;
44
+ protocol?: NetworkRuleProtocol;
45
45
  /**
46
- * Starting range of the public ipv4 or ipv6 addresses that can access this rule
46
+ * Starting range of the public ipv4 or ipv6 addresses that can access this rule. Must be a valid IP address.
47
47
  * @type {string}
48
48
  * @memberof NetworkRuleUpdate
49
49
  */
50
- ip_address_from: string;
50
+ ip_address_from?: string;
51
51
  /**
52
- * Ending range of the public ipv4 or ipv6 addresses that can access this rule
52
+ * Ending range of the public ipv4 or ipv6 addresses that can access this rule. Must be a valid IP address.
53
53
  * @type {string}
54
54
  * @memberof NetworkRuleUpdate
55
55
  */
56
- ip_address_to: string;
56
+ ip_address_to?: string;
57
57
  /**
58
58
  *
59
59
  * @type {Array<EnvironmentLinkItem>}
@@ -22,7 +22,7 @@ import { UserRelation } from './user-relation';
22
22
  */
23
23
  export interface NetworkRule {
24
24
  /**
25
- * The unique id of the given record
25
+ * The ID of the given network rule
26
26
  * @type {number}
27
27
  * @memberof NetworkRule
28
28
  */
@@ -45,30 +45,42 @@ export interface NetworkRule {
45
45
  * @memberof NetworkRule
46
46
  */
47
47
  protocol: NetworkRuleProtocol;
48
+ /**
49
+ * Starting range of network ports to be considered by this rule
50
+ * @type {number}
51
+ * @memberof NetworkRule
52
+ */
53
+ port_from: number;
54
+ /**
55
+ * Ending range of network ports to be considered by this rule
56
+ * @type {number}
57
+ * @memberof NetworkRule
58
+ */
59
+ port_to: number;
48
60
  /**
49
61
  * Starting range of the public ipv4 or ipv6 addresses that can access this rule
50
62
  * @type {string}
51
63
  * @memberof NetworkRule
52
64
  */
53
- ip_address_from?: string | null;
65
+ ip_address_from: string | null;
54
66
  /**
55
67
  * Ending range of the public ipv4 or ipv6 addresses that can access this rule
56
68
  * @type {string}
57
69
  * @memberof NetworkRule
58
70
  */
59
- ip_address_to?: string | null;
71
+ ip_address_to: string | null;
60
72
  /**
61
- * Starting range of network ports to be considered by this rule
62
- * @type {number}
73
+ * Indicates if the network rule was auto_generated by `devopness` itself
74
+ * @type {boolean}
63
75
  * @memberof NetworkRule
64
76
  */
65
- port_from: number;
77
+ auto_generated: boolean;
66
78
  /**
67
- * Ending range of network ports to be considered by this rule
68
- * @type {number}
79
+ *
80
+ * @type {ActionRelation}
69
81
  * @memberof NetworkRule
70
82
  */
71
- port_to: number;
83
+ last_action: ActionRelation | null;
72
84
  /**
73
85
  *
74
86
  * @type {UserRelation}
@@ -87,22 +99,16 @@ export interface NetworkRule {
87
99
  * @memberof NetworkRule
88
100
  */
89
101
  servers: Array<ServerRelation>;
90
- /**
91
- *
92
- * @type {ActionRelation}
93
- * @memberof NetworkRule
94
- */
95
- last_action: ActionRelation | null;
96
102
  /**
97
103
  * The date and time when the record was created
98
104
  * @type {string}
99
105
  * @memberof NetworkRule
100
106
  */
101
- created_at?: string;
107
+ created_at: string;
102
108
  /**
103
109
  * The date and time when the record was last updated
104
110
  * @type {string}
105
111
  * @memberof NetworkRule
106
112
  */
107
- updated_at?: string;
113
+ updated_at: string;
108
114
  }