@devopness/sdk-js 2.77.1 → 2.79.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 (55) hide show
  1. package/dist/DevopnessApiClient.d.ts +2 -0
  2. package/dist/DevopnessApiClient.js +2 -0
  3. package/dist/api/generated/apis/actions-logs-api.d.ts +3 -3
  4. package/dist/api/generated/apis/actions-logs-api.js +7 -7
  5. package/dist/api/generated/apis/environments-networks-api.d.ts +36 -0
  6. package/dist/api/generated/apis/environments-networks-api.js +78 -0
  7. package/dist/api/generated/apis/environments-servers-api.d.ts +1 -1
  8. package/dist/api/generated/apis/environments-servers-api.js +1 -1
  9. package/dist/api/generated/apis/networks-api.d.ts +25 -0
  10. package/dist/api/generated/apis/networks-api.js +49 -0
  11. package/dist/api/generated/models/action-relation.d.ts +4 -4
  12. package/dist/api/generated/models/action-resource.d.ts +3 -2
  13. package/dist/api/generated/models/action-retry-response.d.ts +4 -4
  14. package/dist/api/generated/models/action-step.d.ts +2 -8
  15. package/dist/api/generated/models/{action-summary-server.d.ts → action-summary-target.d.ts} +12 -12
  16. package/dist/api/generated/models/action-summary.d.ts +3 -3
  17. package/dist/api/generated/models/action-target-data.d.ts +18 -0
  18. package/dist/api/generated/models/{server-action-log-step.d.ts → action-target-log-step.d.ts} +6 -6
  19. package/dist/api/generated/models/action-target-network-data.d.ts +54 -0
  20. package/dist/api/generated/models/{server-action-data.d.ts → action-target-server-data.d.ts} +10 -10
  21. package/dist/api/generated/models/action-target-server-data.js +14 -0
  22. package/dist/api/generated/models/{server-action.d.ts → action-target.d.ts} +25 -19
  23. package/dist/api/generated/models/action-target.js +14 -0
  24. package/dist/api/generated/models/action.d.ts +4 -4
  25. package/dist/api/generated/models/environment.d.ts +7 -0
  26. package/dist/api/generated/models/index.d.ts +14 -4
  27. package/dist/api/generated/models/index.js +14 -4
  28. package/dist/api/generated/models/log.d.ts +6 -6
  29. package/dist/api/generated/models/network-environment-create.d.ts +31 -0
  30. package/dist/api/generated/models/network-environment-create.js +14 -0
  31. package/dist/api/generated/models/network-provision-input-settings-aws.d.ts +30 -0
  32. package/dist/api/generated/models/network-provision-input-settings-aws.js +14 -0
  33. package/dist/api/generated/models/network-provision-input-settings-digital-ocean.d.ts +30 -0
  34. package/dist/api/generated/models/network-provision-input-settings-digital-ocean.js +14 -0
  35. package/dist/api/generated/models/network-provision-input-settings-gcp.d.ts +24 -0
  36. package/dist/api/generated/models/network-provision-input-settings-gcp.js +14 -0
  37. package/dist/api/generated/models/network-provision-input-settings.d.ts +19 -0
  38. package/dist/api/generated/models/network-provision-input-settings.js +14 -0
  39. package/dist/api/generated/models/network-provision-input.d.ts +37 -0
  40. package/dist/api/generated/models/network-provision-input.js +14 -0
  41. package/dist/api/generated/models/network-relation.d.ts +84 -0
  42. package/dist/api/generated/models/network-relation.js +14 -0
  43. package/dist/api/generated/models/network.d.ts +94 -0
  44. package/dist/api/generated/models/network.js +14 -0
  45. package/dist/api/generated/models/resource-type.d.ts +1 -0
  46. package/dist/api/generated/models/resource-type.js +1 -0
  47. package/dist/services/EnvironmentService.d.ts +2 -0
  48. package/dist/services/EnvironmentService.js +2 -0
  49. package/dist/services/NetworkService.d.ts +3 -0
  50. package/dist/services/NetworkService.js +7 -0
  51. package/package.json +1 -1
  52. /package/dist/api/generated/models/{action-summary-server.js → action-summary-target.js} +0 -0
  53. /package/dist/api/generated/models/{server-action-data.js → action-target-data.js} +0 -0
  54. /package/dist/api/generated/models/{server-action-log-step.js → action-target-log-step.js} +0 -0
  55. /package/dist/api/generated/models/{server-action.js → action-target-network-data.js} +0 -0
@@ -10,6 +10,7 @@ import { HookRequestService } from './services/HookRequestService';
10
10
  import { HookService } from './services/HookService';
11
11
  import { LogService } from './services/LogService';
12
12
  import { NetworkRuleService } from './services/NetworkRuleService';
13
+ import { NetworkService } from './services/NetworkService';
13
14
  import { PipelineService } from './services/PipelineService';
14
15
  import { ProjectService } from './services/ProjectService';
15
16
  import { ResourceEventService } from './services/ResourceEventService';
@@ -37,6 +38,7 @@ export declare class DevopnessApiClient {
37
38
  hookRequests: HookRequestService;
38
39
  hooks: HookService;
39
40
  logs: LogService;
41
+ networks: NetworkService;
40
42
  networkRules: NetworkRuleService;
41
43
  pipelines: PipelineService;
42
44
  projects: ProjectService;
@@ -13,6 +13,7 @@ const HookRequestService_1 = require("./services/HookRequestService");
13
13
  const HookService_1 = require("./services/HookService");
14
14
  const LogService_1 = require("./services/LogService");
15
15
  const NetworkRuleService_1 = require("./services/NetworkRuleService");
16
+ const NetworkService_1 = require("./services/NetworkService");
16
17
  const PipelineService_1 = require("./services/PipelineService");
17
18
  const ProjectService_1 = require("./services/ProjectService");
18
19
  const ResourceEventService_1 = require("./services/ResourceEventService");
@@ -45,6 +46,7 @@ class DevopnessApiClient {
45
46
  this.hookRequests = new HookRequestService_1.HookRequestService();
46
47
  this.hooks = new HookService_1.HookService();
47
48
  this.logs = new LogService_1.LogService();
49
+ this.networks = new NetworkService_1.NetworkService();
48
50
  this.networkRules = new NetworkRuleService_1.NetworkRuleService();
49
51
  this.pipelines = new PipelineService_1.PipelineService();
50
52
  this.projects = new ProjectService_1.ProjectService();
@@ -18,10 +18,10 @@ import { Log } from '../../generated/models';
18
18
  export declare class ActionsLogsApiService extends ApiBaseService {
19
19
  /**
20
20
  *
21
- * @summary Get action server step log
21
+ * @summary Get action target step log
22
22
  * @param {number} actionId The ID of the action.
23
23
  * @param {number} actionStepOrder The action step order.
24
- * @param {number} serverId The ID of the server.
24
+ * @param {number} actionTargetId The ID of the action target.
25
25
  */
26
- getActionLog(actionId: number, actionStepOrder: number, serverId: number): Promise<ApiResponse<Log>>;
26
+ getActionLog(actionId: number, actionStepOrder: number, actionTargetId: number): Promise<ApiResponse<Log>>;
27
27
  }
@@ -31,12 +31,12 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class ActionsLogsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Get action server step log
34
+ * @summary Get action target step log
35
35
  * @param {number} actionId The ID of the action.
36
36
  * @param {number} actionStepOrder The action step order.
37
- * @param {number} serverId The ID of the server.
37
+ * @param {number} actionTargetId The ID of the action target.
38
38
  */
39
- getActionLog(actionId, actionStepOrder, serverId) {
39
+ getActionLog(actionId, actionStepOrder, actionTargetId) {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
41
  if (actionId === null || actionId === undefined) {
42
42
  throw new Exceptions_1.ArgumentNullException('actionId', 'getActionLog');
@@ -44,12 +44,12 @@ class ActionsLogsApiService extends ApiBaseService_1.ApiBaseService {
44
44
  if (actionStepOrder === null || actionStepOrder === undefined) {
45
45
  throw new Exceptions_1.ArgumentNullException('actionStepOrder', 'getActionLog');
46
46
  }
47
- if (serverId === null || serverId === undefined) {
48
- throw new Exceptions_1.ArgumentNullException('serverId', 'getActionLog');
47
+ if (actionTargetId === null || actionTargetId === undefined) {
48
+ throw new Exceptions_1.ArgumentNullException('actionTargetId', 'getActionLog');
49
49
  }
50
50
  let queryString = '';
51
- const requestUrl = '/actions/{action_id}/servers/{server_id}/steps/{action_step_order}/logs' + (queryString ? `?${queryString}` : '');
52
- const response = yield this.get(requestUrl.replace(`{${"action_id"}}`, encodeURIComponent(String(actionId))).replace(`{${"action_step_order"}}`, encodeURIComponent(String(actionStepOrder))).replace(`{${"server_id"}}`, encodeURIComponent(String(serverId))));
51
+ const requestUrl = '/actions/{action_id}/targets/{action_target_id}/steps/{action_step_order}/logs' + (queryString ? `?${queryString}` : '');
52
+ const response = yield this.get(requestUrl.replace(`{${"action_id"}}`, encodeURIComponent(String(actionId))).replace(`{${"action_step_order"}}`, encodeURIComponent(String(actionStepOrder))).replace(`{${"action_target_id"}}`, encodeURIComponent(String(actionTargetId))));
53
53
  return new ApiResponse_1.ApiResponse(response);
54
54
  });
55
55
  }
@@ -0,0 +1,36 @@
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 { ApiBaseService } from "../../../services/ApiBaseService";
13
+ import { ApiResponse } from "../../../common/ApiResponse";
14
+ import { Network } from '../../generated/models';
15
+ import { NetworkEnvironmentCreate } from '../../generated/models';
16
+ import { NetworkRelation } from '../../generated/models';
17
+ /**
18
+ * EnvironmentsNetworksApiService - Auto-generated
19
+ */
20
+ export declare class EnvironmentsNetworksApiService extends ApiBaseService {
21
+ /**
22
+ *
23
+ * @summary Create a new network for the given environment
24
+ * @param {number} environmentId The ID of the environment.
25
+ * @param {NetworkEnvironmentCreate} networkEnvironmentCreate A JSON object containing the resource data
26
+ */
27
+ addEnvironmentNetwork(environmentId: number, networkEnvironmentCreate: NetworkEnvironmentCreate): Promise<ApiResponse<Network>>;
28
+ /**
29
+ *
30
+ * @summary Return a list of all networks belonging to an environment
31
+ * @param {number} environmentId The ID of the environment.
32
+ * @param {number} [page] Number of the page to be retrieved
33
+ * @param {number} [perPage] Number of items returned per page
34
+ */
35
+ listEnvironmentNetworks(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<NetworkRelation>>>;
36
+ }
@@ -0,0 +1,78 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.EnvironmentsNetworksApiService = void 0;
25
+ const ApiBaseService_1 = require("../../../services/ApiBaseService");
26
+ const ApiResponse_1 = require("../../../common/ApiResponse");
27
+ const Exceptions_1 = require("../../../common/Exceptions");
28
+ /**
29
+ * EnvironmentsNetworksApiService - Auto-generated
30
+ */
31
+ class EnvironmentsNetworksApiService extends ApiBaseService_1.ApiBaseService {
32
+ /**
33
+ *
34
+ * @summary Create a new network for the given environment
35
+ * @param {number} environmentId The ID of the environment.
36
+ * @param {NetworkEnvironmentCreate} networkEnvironmentCreate A JSON object containing the resource data
37
+ */
38
+ addEnvironmentNetwork(environmentId, networkEnvironmentCreate) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ if (environmentId === null || environmentId === undefined) {
41
+ throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentNetwork');
42
+ }
43
+ if (networkEnvironmentCreate === null || networkEnvironmentCreate === undefined) {
44
+ throw new Exceptions_1.ArgumentNullException('networkEnvironmentCreate', 'addEnvironmentNetwork');
45
+ }
46
+ let queryString = '';
47
+ const requestUrl = '/environments/{environment_id}/networks' + (queryString ? `?${queryString}` : '');
48
+ const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), networkEnvironmentCreate);
49
+ return new ApiResponse_1.ApiResponse(response);
50
+ });
51
+ }
52
+ /**
53
+ *
54
+ * @summary Return a list of all networks belonging to an environment
55
+ * @param {number} environmentId The ID of the environment.
56
+ * @param {number} [page] Number of the page to be retrieved
57
+ * @param {number} [perPage] Number of items returned per page
58
+ */
59
+ listEnvironmentNetworks(environmentId, page, perPage) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ if (environmentId === null || environmentId === undefined) {
62
+ throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentNetworks');
63
+ }
64
+ let queryString = '';
65
+ const queryParams = { page: page, per_page: perPage, };
66
+ for (const key in queryParams) {
67
+ if (queryParams[key] === undefined || queryParams[key] === null) {
68
+ continue;
69
+ }
70
+ queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
71
+ }
72
+ const requestUrl = '/environments/{environment_id}/networks' + (queryString ? `?${queryString}` : '');
73
+ const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
74
+ return new ApiResponse_1.ApiResponse(response);
75
+ });
76
+ }
77
+ }
78
+ exports.EnvironmentsNetworksApiService = EnvironmentsNetworksApiService;
@@ -27,7 +27,7 @@ export declare class EnvironmentsServersApiService extends ApiBaseService {
27
27
  addEnvironmentServer(environmentId: number, serverEnvironmentCreate: ServerEnvironmentCreate): Promise<ApiResponse<Server>>;
28
28
  /**
29
29
  *
30
- * @summary Return a list of all servers belonging to a environment
30
+ * @summary Return a list of all servers belonging to an environment
31
31
  * @param {number} environmentId The ID of the environment.
32
32
  * @param {number} [page] Number of the page to be retrieved
33
33
  * @param {number} [perPage] Number of items returned per page
@@ -51,7 +51,7 @@ class EnvironmentsServersApiService extends ApiBaseService_1.ApiBaseService {
51
51
  }
52
52
  /**
53
53
  *
54
- * @summary Return a list of all servers belonging to a environment
54
+ * @summary Return a list of all servers belonging to an environment
55
55
  * @param {number} environmentId The ID of the environment.
56
56
  * @param {number} [page] Number of the page to be retrieved
57
57
  * @param {number} [perPage] Number of items returned per page
@@ -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 { ApiBaseService } from "../../../services/ApiBaseService";
13
+ import { ApiResponse } from "../../../common/ApiResponse";
14
+ import { Network } from '../../generated/models';
15
+ /**
16
+ * NetworksApiService - Auto-generated
17
+ */
18
+ export declare class NetworksApiService extends ApiBaseService {
19
+ /**
20
+ *
21
+ * @summary Get a network by ID
22
+ * @param {number} networkId The ID of the network.
23
+ */
24
+ getNetwork(networkId: number): Promise<ApiResponse<Network>>;
25
+ }
@@ -0,0 +1,49 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.NetworksApiService = void 0;
25
+ const ApiBaseService_1 = require("../../../services/ApiBaseService");
26
+ const ApiResponse_1 = require("../../../common/ApiResponse");
27
+ const Exceptions_1 = require("../../../common/Exceptions");
28
+ /**
29
+ * NetworksApiService - Auto-generated
30
+ */
31
+ class NetworksApiService extends ApiBaseService_1.ApiBaseService {
32
+ /**
33
+ *
34
+ * @summary Get a network by ID
35
+ * @param {number} networkId The ID of the network.
36
+ */
37
+ getNetwork(networkId) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ if (networkId === null || networkId === undefined) {
40
+ throw new Exceptions_1.ArgumentNullException('networkId', 'getNetwork');
41
+ }
42
+ let queryString = '';
43
+ const requestUrl = '/networks/{network_id}' + (queryString ? `?${queryString}` : '');
44
+ const response = yield this.get(requestUrl.replace(`{${"network_id"}}`, encodeURIComponent(String(networkId))));
45
+ return new ApiResponse_1.ApiResponse(response);
46
+ });
47
+ }
48
+ }
49
+ exports.NetworksApiService = NetworksApiService;
@@ -13,9 +13,9 @@ import { ActionData } from './action-data';
13
13
  import { ActionResource } from './action-resource';
14
14
  import { ActionStatus } from './action-status';
15
15
  import { ActionSummary } from './action-summary';
16
+ import { ActionTarget } from './action-target';
16
17
  import { ActionTriggeredFrom } from './action-triggered-from';
17
18
  import { ActionType } from './action-type';
18
- import { ServerAction } from './server-action';
19
19
  /**
20
20
  *
21
21
  * @export
@@ -83,11 +83,11 @@ export interface ActionRelation {
83
83
  */
84
84
  summary?: ActionSummary;
85
85
  /**
86
- * List of actions dispatched to servers
87
- * @type {Array<ServerAction>}
86
+ * List of actions dispatched to cloud resource targets
87
+ * @type {Array<ActionTarget>}
88
88
  * @memberof ActionRelation
89
89
  */
90
- servers?: Array<ServerAction>;
90
+ targets?: Array<ActionTarget>;
91
91
  /**
92
92
  * The date and time when the action started execution (i.e., left the `pending/queued` status)
93
93
  * @type {string}
@@ -12,6 +12,7 @@
12
12
  import { ApplicationRelation } from './application-relation';
13
13
  import { CronJobRelation } from './cron-job-relation';
14
14
  import { DaemonRelation } from './daemon-relation';
15
+ import { NetworkRelation } from './network-relation';
15
16
  import { NetworkRuleRelation } from './network-rule-relation';
16
17
  import { ResourceType } from './resource-type';
17
18
  import { ServerRelation } from './server-relation';
@@ -44,8 +45,8 @@ export interface ActionResource {
44
45
  type_human_readable: string;
45
46
  /**
46
47
  * The resource data of type specified on `resource.type`
47
- * @type {ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation}
48
+ * @type {ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation}
48
49
  * @memberof ActionResource
49
50
  */
50
- data?: ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | null;
51
+ data?: ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | null;
51
52
  }
@@ -14,12 +14,12 @@ import { ActionHookRequest } from './action-hook-request';
14
14
  import { ActionResource } from './action-resource';
15
15
  import { ActionStatus } from './action-status';
16
16
  import { ActionSummary } from './action-summary';
17
+ import { ActionTarget } from './action-target';
17
18
  import { ActionTriggeredFrom } from './action-triggered-from';
18
19
  import { ActionType } from './action-type';
19
20
  import { EnvironmentRelation } from './environment-relation';
20
21
  import { ProjectRelation } from './project-relation';
21
22
  import { RelatedAction } from './related-action';
22
- import { ServerAction } from './server-action';
23
23
  import { UserRelation } from './user-relation';
24
24
  /**
25
25
  *
@@ -130,11 +130,11 @@ export interface ActionRetryResponse {
130
130
  */
131
131
  project?: ProjectRelation | null;
132
132
  /**
133
- * List of actions dispatched to servers
134
- * @type {Array<ServerAction>}
133
+ * List of actions dispatched to cloud resource targets
134
+ * @type {Array<ActionTarget>}
135
135
  * @memberof ActionRetryResponse
136
136
  */
137
- servers?: Array<ServerAction>;
137
+ targets?: Array<ActionTarget>;
138
138
  /**
139
139
  *
140
140
  * @type {ActionHookRequest}
@@ -29,17 +29,11 @@ export interface ActionStep {
29
29
  */
30
30
  action_id: number;
31
31
  /**
32
- * The unique id of the action server linked to this step
32
+ * The unique id of the action target linked to this step
33
33
  * @type {number}
34
34
  * @memberof ActionStep
35
35
  */
36
- action_server_id: number;
37
- /**
38
- * The Id of the server on which the action must be performed
39
- * @type {number}
40
- * @memberof ActionStep
41
- */
42
- server_id: number;
36
+ action_target_id: number;
43
37
  /**
44
38
  * Name of the action describing your purpose
45
39
  * @type {string}
@@ -12,37 +12,37 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface ActionSummaryServer
15
+ * @interface ActionSummaryTarget
16
16
  */
17
- export interface ActionSummaryServer {
17
+ export interface ActionSummaryTarget {
18
18
  /**
19
- * The total number of server actions
19
+ * The total number of action targets
20
20
  * @type {number}
21
- * @memberof ActionSummaryServer
21
+ * @memberof ActionSummaryTarget
22
22
  */
23
23
  count: number;
24
24
  /**
25
- * The number of server actions pending
25
+ * The number of action targets pending
26
26
  * @type {number}
27
- * @memberof ActionSummaryServer
27
+ * @memberof ActionSummaryTarget
28
28
  */
29
29
  pending: number;
30
30
  /**
31
- * The number of server actions in progress
31
+ * The number of action targets in progress
32
32
  * @type {number}
33
- * @memberof ActionSummaryServer
33
+ * @memberof ActionSummaryTarget
34
34
  */
35
35
  in_progress: number;
36
36
  /**
37
- * The number of server actions completed
37
+ * The number of action targets completed
38
38
  * @type {number}
39
- * @memberof ActionSummaryServer
39
+ * @memberof ActionSummaryTarget
40
40
  */
41
41
  completed: number;
42
42
  /**
43
- * The number of server actions failed
43
+ * The number of action targets failed
44
44
  * @type {number}
45
- * @memberof ActionSummaryServer
45
+ * @memberof ActionSummaryTarget
46
46
  */
47
47
  failed: number;
48
48
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ActionSummaryServer } from './action-summary-server';
12
+ import { ActionSummaryTarget } from './action-summary-target';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,8 +18,8 @@ import { ActionSummaryServer } from './action-summary-server';
18
18
  export interface ActionSummary {
19
19
  /**
20
20
  *
21
- * @type {ActionSummaryServer}
21
+ * @type {ActionSummaryTarget}
22
22
  * @memberof ActionSummary
23
23
  */
24
- servers: ActionSummaryServer;
24
+ targets: ActionSummaryTarget;
25
25
  }
@@ -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 { ActionTargetNetworkData } from './action-target-network-data';
13
+ import { ActionTargetServerData } from './action-target-server-data';
14
+ /**
15
+ * @type ActionTargetData
16
+ * @export
17
+ */
18
+ export declare type ActionTargetData = ActionTargetNetworkData | ActionTargetServerData;
@@ -12,31 +12,31 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface ServerActionLogStep
15
+ * @interface ActionTargetLogStep
16
16
  */
17
- export interface ServerActionLogStep {
17
+ export interface ActionTargetLogStep {
18
18
  /**
19
19
  * The execution order of the given step
20
20
  * @type {number}
21
- * @memberof ServerActionLogStep
21
+ * @memberof ActionTargetLogStep
22
22
  */
23
23
  order: number;
24
24
  /**
25
25
  * The date and time when the step started execution (i.e., left the `pending/queued` status)
26
26
  * @type {string}
27
- * @memberof ServerActionLogStep
27
+ * @memberof ActionTargetLogStep
28
28
  */
29
29
  started_at: string | null;
30
30
  /**
31
31
  * The date and time when the step has finished execution
32
32
  * @type {string}
33
- * @memberof ServerActionLogStep
33
+ * @memberof ActionTargetLogStep
34
34
  */
35
35
  completed_at: string | null;
36
36
  /**
37
37
  * The full text output log
38
38
  * @type {string}
39
- * @memberof ServerActionLogStep
39
+ * @memberof ActionTargetLogStep
40
40
  */
41
41
  output: string | null;
42
42
  }
@@ -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 ActionTargetNetworkData
16
+ */
17
+ export interface ActionTargetNetworkData {
18
+ /**
19
+ * The unique id of the network
20
+ * @type {number}
21
+ * @memberof ActionTargetNetworkData
22
+ */
23
+ id: number;
24
+ /**
25
+ * The networks\'s name
26
+ * @type {string}
27
+ * @memberof ActionTargetNetworkData
28
+ */
29
+ name: string;
30
+ /**
31
+ * The name of the network\'s provider.
32
+ * @type {string}
33
+ * @memberof ActionTargetNetworkData
34
+ */
35
+ provider_name: string;
36
+ /**
37
+ * The human readable version of the provider\'s name
38
+ * @type {string}
39
+ * @memberof ActionTargetNetworkData
40
+ */
41
+ provider_name_human_readable: string;
42
+ /**
43
+ * The cloud provider region where the network are created
44
+ * @type {string}
45
+ * @memberof ActionTargetNetworkData
46
+ */
47
+ region: string;
48
+ /**
49
+ * The IP CIDR range of the network
50
+ * @type {string}
51
+ * @memberof ActionTargetNetworkData
52
+ */
53
+ cidr_block: string | null;
54
+ }
@@ -14,55 +14,55 @@ import { ServerProvisionSettingsInput } from './server-provision-settings-input'
14
14
  /**
15
15
  *
16
16
  * @export
17
- * @interface ServerActionData
17
+ * @interface ActionTargetServerData
18
18
  */
19
- export interface ServerActionData {
19
+ export interface ActionTargetServerData {
20
20
  /**
21
21
  * The unique id of the server
22
22
  * @type {number}
23
- * @memberof ServerActionData
23
+ * @memberof ActionTargetServerData
24
24
  */
25
25
  id: number;
26
26
  /**
27
27
  * The server\'s hostname
28
28
  * @type {string}
29
- * @memberof ServerActionData
29
+ * @memberof ActionTargetServerData
30
30
  */
31
31
  hostname: string;
32
32
  /**
33
33
  * The name of the server\'s provider.
34
34
  * @type {string}
35
- * @memberof ServerActionData
35
+ * @memberof ActionTargetServerData
36
36
  */
37
37
  provider_name: string;
38
38
  /**
39
39
  * The human readable version of the provider\'s name
40
40
  * @type {string}
41
- * @memberof ServerActionData
41
+ * @memberof ActionTargetServerData
42
42
  */
43
43
  provider_name_human_readable: string;
44
44
  /**
45
45
  * Public ipv4 address for server access
46
46
  * @type {string}
47
- * @memberof ServerActionData
47
+ * @memberof ActionTargetServerData
48
48
  */
49
49
  ip_address: string;
50
50
  /**
51
51
  * The network port to which the SSH daemon is listening to SSH connections on the server
52
52
  * @type {number}
53
- * @memberof ServerActionData
53
+ * @memberof ActionTargetServerData
54
54
  */
55
55
  ssh_port: number;
56
56
  /**
57
57
  *
58
58
  * @type {CloudOsVersionCode}
59
- * @memberof ServerActionData
59
+ * @memberof ActionTargetServerData
60
60
  */
61
61
  os_version_code: CloudOsVersionCode | null;
62
62
  /**
63
63
  *
64
64
  * @type {ServerProvisionSettingsInput}
65
- * @memberof ServerActionData
65
+ * @memberof ActionTargetServerData
66
66
  */
67
67
  provision_settings: ServerProvisionSettingsInput;
68
68
  }
@@ -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 });