@devopness/sdk-js 2.70.0 → 2.72.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 (24) hide show
  1. package/dist/api/generated/apis/pipelines-actions-api.d.ts +9 -0
  2. package/dist/api/generated/apis/pipelines-actions-api.js +25 -0
  3. package/dist/api/generated/models/action-relation.d.ts +1 -1
  4. package/dist/api/generated/models/action-retry-response.d.ts +1 -1
  5. package/dist/api/generated/models/action-type.d.ts +6 -5
  6. package/dist/api/generated/models/action-type.js +5 -4
  7. package/dist/api/generated/models/action.d.ts +1 -1
  8. package/dist/api/generated/models/cloud-provider-service-code.d.ts +2 -1
  9. package/dist/api/generated/models/cloud-provider-service-code.js +1 -0
  10. package/dist/api/generated/models/{cloud-aws-ec2-settings.d.ts → cloud-service-settings-aws-ec2.d.ts} +6 -6
  11. package/dist/api/generated/models/{cloud-digital-ocean-droplet-settings.d.ts → cloud-service-settings-digital-ocean-droplet.d.ts} +5 -5
  12. package/dist/api/generated/models/{cloud-gcp-settings.d.ts → cloud-service-settings-gcp-gce.d.ts} +5 -5
  13. package/dist/api/generated/models/cloud-service-settings-self-hosted-custom.d.ts +25 -0
  14. package/dist/api/generated/models/cloud-service-settings-self-hosted-custom.js +14 -0
  15. package/dist/api/generated/models/index.d.ts +4 -3
  16. package/dist/api/generated/models/index.js +4 -3
  17. package/dist/api/generated/models/server-cloud-service.d.ts +7 -6
  18. package/dist/api/generated/models/server-provision-settings.d.ts +1 -1
  19. package/dist/api/generated/models/server-update.d.ts +2 -2
  20. package/dist/api/generated/models/subscription.d.ts +6 -0
  21. package/package.json +1 -1
  22. /package/dist/api/generated/models/{cloud-aws-ec2-settings.js → cloud-service-settings-aws-ec2.js} +0 -0
  23. /package/dist/api/generated/models/{cloud-digital-ocean-droplet-settings.js → cloud-service-settings-digital-ocean-droplet.js} +0 -0
  24. /package/dist/api/generated/models/{cloud-gcp-settings.js → cloud-service-settings-gcp-gce.js} +0 -0
@@ -13,6 +13,7 @@ import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
14
  import { Action } from '../../generated/models';
15
15
  import { ActionPipelineCreate } from '../../generated/models';
16
+ import { ActionRelation } from '../../generated/models';
16
17
  /**
17
18
  * PipelinesActionsApiService - Auto-generated
18
19
  */
@@ -24,4 +25,12 @@ export declare class PipelinesActionsApiService extends ApiBaseService {
24
25
  * @param {ActionPipelineCreate} actionPipelineCreate A JSON object containing the resource data
25
26
  */
26
27
  addPipelineAction(pipelineId: number, actionPipelineCreate: ActionPipelineCreate): Promise<ApiResponse<Action>>;
28
+ /**
29
+ *
30
+ * @summary Return a list of pipeline\'s actions
31
+ * @param {number} pipelineId The ID of the pipeline.
32
+ * @param {number} [page] Number of the page to be retrieved
33
+ * @param {number} [perPage] Number of items returned per page
34
+ */
35
+ listPipelineActions(pipelineId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
27
36
  }
@@ -49,5 +49,30 @@ class PipelinesActionsApiService extends ApiBaseService_1.ApiBaseService {
49
49
  return new ApiResponse_1.ApiResponse(response);
50
50
  });
51
51
  }
52
+ /**
53
+ *
54
+ * @summary Return a list of pipeline\'s actions
55
+ * @param {number} pipelineId The ID of the pipeline.
56
+ * @param {number} [page] Number of the page to be retrieved
57
+ * @param {number} [perPage] Number of items returned per page
58
+ */
59
+ listPipelineActions(pipelineId, page, perPage) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ if (pipelineId === null || pipelineId === undefined) {
62
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'listPipelineActions');
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 = '/pipelines/{pipeline_id}/actions' + (queryString ? `?${queryString}` : '');
73
+ const response = yield this.get(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))));
74
+ return new ApiResponse_1.ApiResponse(response);
75
+ });
76
+ }
52
77
  }
53
78
  exports.PipelinesActionsApiService = PipelinesActionsApiService;
@@ -63,7 +63,7 @@ export interface ActionRelation {
63
63
  * @type {ActionData}
64
64
  * @memberof ActionRelation
65
65
  */
66
- action_data: ActionData | null;
66
+ action_data: ActionData;
67
67
  /**
68
68
  *
69
69
  * @type {ActionTriggeredFrom}
@@ -80,7 +80,7 @@ export interface ActionRetryResponse {
80
80
  * @type {ActionData}
81
81
  * @memberof ActionRetryResponse
82
82
  */
83
- action_data: ActionData | null;
83
+ action_data: ActionData;
84
84
  /**
85
85
  *
86
86
  * @type {ActionTriggeredFrom}
@@ -16,15 +16,16 @@
16
16
  */
17
17
  export declare enum ActionType {
18
18
  Add = "add",
19
- Remove = "remove",
20
19
  Deploy = "deploy",
20
+ Disable = "disable",
21
+ Enable = "enable",
22
+ GetStatus = "get-status",
21
23
  Redeploy = "redeploy",
22
- Rollback = "rollback",
23
24
  Reload = "reload",
25
+ Remove = "remove",
24
26
  Restart = "restart",
27
+ Rollback = "rollback",
25
28
  Start = "start",
26
29
  Status = "status",
27
- Stop = "stop",
28
- Enable = "enable",
29
- Disable = "disable"
30
+ Stop = "stop"
30
31
  }
@@ -21,15 +21,16 @@ exports.ActionType = void 0;
21
21
  var ActionType;
22
22
  (function (ActionType) {
23
23
  ActionType["Add"] = "add";
24
- ActionType["Remove"] = "remove";
25
24
  ActionType["Deploy"] = "deploy";
25
+ ActionType["Disable"] = "disable";
26
+ ActionType["Enable"] = "enable";
27
+ ActionType["GetStatus"] = "get-status";
26
28
  ActionType["Redeploy"] = "redeploy";
27
- ActionType["Rollback"] = "rollback";
28
29
  ActionType["Reload"] = "reload";
30
+ ActionType["Remove"] = "remove";
29
31
  ActionType["Restart"] = "restart";
32
+ ActionType["Rollback"] = "rollback";
30
33
  ActionType["Start"] = "start";
31
34
  ActionType["Status"] = "status";
32
35
  ActionType["Stop"] = "stop";
33
- ActionType["Enable"] = "enable";
34
- ActionType["Disable"] = "disable";
35
36
  })(ActionType = exports.ActionType || (exports.ActionType = {}));
@@ -80,7 +80,7 @@ export interface Action {
80
80
  * @type {ActionData}
81
81
  * @memberof Action
82
82
  */
83
- action_data: ActionData | null;
83
+ action_data: ActionData;
84
84
  /**
85
85
  *
86
86
  * @type {ActionTriggeredFrom}
@@ -17,5 +17,6 @@
17
17
  export declare enum CloudProviderServiceCode {
18
18
  AwsEc2 = "aws-ec2",
19
19
  DigitaloceanDroplet = "digitalocean-droplet",
20
- GcpGce = "gcp-gce"
20
+ GcpGce = "gcp-gce",
21
+ SelfHostedCustom = "self-hosted-custom"
21
22
  }
@@ -23,4 +23,5 @@ var CloudProviderServiceCode;
23
23
  CloudProviderServiceCode["AwsEc2"] = "aws-ec2";
24
24
  CloudProviderServiceCode["DigitaloceanDroplet"] = "digitalocean-droplet";
25
25
  CloudProviderServiceCode["GcpGce"] = "gcp-gce";
26
+ CloudProviderServiceCode["SelfHostedCustom"] = "self-hosted-custom";
26
27
  })(CloudProviderServiceCode = exports.CloudProviderServiceCode || (exports.CloudProviderServiceCode = {}));
@@ -13,31 +13,31 @@ import { CloudOsVersionCode } from './cloud-os-version-code';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface CloudAwsEc2Settings
16
+ * @interface CloudServiceSettingsAwsEc2
17
17
  */
18
- export interface CloudAwsEc2Settings {
18
+ export interface CloudServiceSettingsAwsEc2 {
19
19
  /**
20
20
  * The instance type to be launched on the cloud provider
21
21
  * @type {string}
22
- * @memberof CloudAwsEc2Settings
22
+ * @memberof CloudServiceSettingsAwsEc2
23
23
  */
24
24
  instance_type: string;
25
25
  /**
26
26
  * Datacenter region where the cloud instance will be launched
27
27
  * @type {string}
28
- * @memberof CloudAwsEc2Settings
28
+ * @memberof CloudServiceSettingsAwsEc2
29
29
  */
30
30
  region: string;
31
31
  /**
32
32
  * The storage\'s size of the cloud instance
33
33
  * @type {number}
34
- * @memberof CloudAwsEc2Settings
34
+ * @memberof CloudServiceSettingsAwsEc2
35
35
  */
36
36
  storage_size: number;
37
37
  /**
38
38
  *
39
39
  * @type {CloudOsVersionCode}
40
- * @memberof CloudAwsEc2Settings
40
+ * @memberof CloudServiceSettingsAwsEc2
41
41
  */
42
42
  os_version_code: CloudOsVersionCode | null;
43
43
  }
@@ -13,25 +13,25 @@ import { CloudOsVersionCode } from './cloud-os-version-code';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface CloudDigitalOceanDropletSettings
16
+ * @interface CloudServiceSettingsDigitalOceanDroplet
17
17
  */
18
- export interface CloudDigitalOceanDropletSettings {
18
+ export interface CloudServiceSettingsDigitalOceanDroplet {
19
19
  /**
20
20
  * The instance type to be launched on the cloud provider
21
21
  * @type {string}
22
- * @memberof CloudDigitalOceanDropletSettings
22
+ * @memberof CloudServiceSettingsDigitalOceanDroplet
23
23
  */
24
24
  instance_type: string;
25
25
  /**
26
26
  * Datacenter region where the cloud instance will be launched
27
27
  * @type {string}
28
- * @memberof CloudDigitalOceanDropletSettings
28
+ * @memberof CloudServiceSettingsDigitalOceanDroplet
29
29
  */
30
30
  region: string;
31
31
  /**
32
32
  *
33
33
  * @type {CloudOsVersionCode}
34
- * @memberof CloudDigitalOceanDropletSettings
34
+ * @memberof CloudServiceSettingsDigitalOceanDroplet
35
35
  */
36
36
  os_version_code: CloudOsVersionCode | null;
37
37
  }
@@ -13,25 +13,25 @@ import { CloudOsVersionCode } from './cloud-os-version-code';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface CloudGcpSettings
16
+ * @interface CloudServiceSettingsGcpGce
17
17
  */
18
- export interface CloudGcpSettings {
18
+ export interface CloudServiceSettingsGcpGce {
19
19
  /**
20
20
  * The instance type to be launched on the cloud provider
21
21
  * @type {string}
22
- * @memberof CloudGcpSettings
22
+ * @memberof CloudServiceSettingsGcpGce
23
23
  */
24
24
  instance_type: string;
25
25
  /**
26
26
  * Datacenter region where the cloud instance will be launched
27
27
  * @type {string}
28
- * @memberof CloudGcpSettings
28
+ * @memberof CloudServiceSettingsGcpGce
29
29
  */
30
30
  region: string;
31
31
  /**
32
32
  *
33
33
  * @type {CloudOsVersionCode}
34
- * @memberof CloudGcpSettings
34
+ * @memberof CloudServiceSettingsGcpGce
35
35
  */
36
36
  os_version_code: CloudOsVersionCode | null;
37
37
  }
@@ -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 { CloudOsVersionCode } from './cloud-os-version-code';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CloudServiceSettingsSelfHostedCustom
17
+ */
18
+ export interface CloudServiceSettingsSelfHostedCustom {
19
+ /**
20
+ *
21
+ * @type {CloudOsVersionCode}
22
+ * @memberof CloudServiceSettingsSelfHostedCustom
23
+ */
24
+ os_version_code: CloudOsVersionCode | null;
25
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /**
4
+ * devopness API
5
+ * Devopness API - Painless essential DevOps to everyone
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,9 +28,6 @@ export * from './application-type';
28
28
  export * from './application-update';
29
29
  export * from './archived-environment-relation';
30
30
  export * from './blueprint-service';
31
- export * from './cloud-aws-ec2-settings';
32
- export * from './cloud-digital-ocean-droplet-settings';
33
- export * from './cloud-gcp-settings';
34
31
  export * from './cloud-instance-relation';
35
32
  export * from './cloud-os-version-code';
36
33
  export * from './cloud-provider';
@@ -43,6 +40,10 @@ export * from './cloud-provider-service';
43
40
  export * from './cloud-provider-service-code';
44
41
  export * from './cloud-provider-service-region';
45
42
  export * from './cloud-provider-settings-list';
43
+ export * from './cloud-service-settings-aws-ec2';
44
+ export * from './cloud-service-settings-digital-ocean-droplet';
45
+ export * from './cloud-service-settings-gcp-gce';
46
+ export * from './cloud-service-settings-self-hosted-custom';
46
47
  export * from './commit';
47
48
  export * from './credential';
48
49
  export * from './credential-aws';
@@ -44,9 +44,6 @@ __exportStar(require("./application-type"), exports);
44
44
  __exportStar(require("./application-update"), exports);
45
45
  __exportStar(require("./archived-environment-relation"), exports);
46
46
  __exportStar(require("./blueprint-service"), exports);
47
- __exportStar(require("./cloud-aws-ec2-settings"), exports);
48
- __exportStar(require("./cloud-digital-ocean-droplet-settings"), exports);
49
- __exportStar(require("./cloud-gcp-settings"), exports);
50
47
  __exportStar(require("./cloud-instance-relation"), exports);
51
48
  __exportStar(require("./cloud-os-version-code"), exports);
52
49
  __exportStar(require("./cloud-provider"), exports);
@@ -59,6 +56,10 @@ __exportStar(require("./cloud-provider-service"), exports);
59
56
  __exportStar(require("./cloud-provider-service-code"), exports);
60
57
  __exportStar(require("./cloud-provider-service-region"), exports);
61
58
  __exportStar(require("./cloud-provider-settings-list"), exports);
59
+ __exportStar(require("./cloud-service-settings-aws-ec2"), exports);
60
+ __exportStar(require("./cloud-service-settings-digital-ocean-droplet"), exports);
61
+ __exportStar(require("./cloud-service-settings-gcp-gce"), exports);
62
+ __exportStar(require("./cloud-service-settings-self-hosted-custom"), exports);
62
63
  __exportStar(require("./commit"), exports);
63
64
  __exportStar(require("./credential"), exports);
64
65
  __exportStar(require("./credential-aws"), exports);
@@ -9,9 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CloudAwsEc2Settings } from './cloud-aws-ec2-settings';
13
- import { CloudDigitalOceanDropletSettings } from './cloud-digital-ocean-droplet-settings';
14
- import { CloudGcpSettings } from './cloud-gcp-settings';
12
+ import { CloudServiceSettingsAwsEc2 } from './cloud-service-settings-aws-ec2';
13
+ import { CloudServiceSettingsDigitalOceanDroplet } from './cloud-service-settings-digital-ocean-droplet';
14
+ import { CloudServiceSettingsGcpGce } from './cloud-service-settings-gcp-gce';
15
+ import { CloudServiceSettingsSelfHostedCustom } from './cloud-service-settings-self-hosted-custom';
15
16
  import { ServerCloudServiceName } from './server-cloud-service-name';
16
17
  /**
17
18
  *
@@ -24,11 +25,11 @@ export interface ServerCloudService {
24
25
  * @type {ServerCloudServiceName}
25
26
  * @memberof ServerCloudService
26
27
  */
27
- name?: ServerCloudServiceName;
28
+ name: ServerCloudServiceName;
28
29
  /**
29
30
  * The configurations used to cloud service
30
- * @type {CloudAwsEc2Settings | CloudDigitalOceanDropletSettings | CloudGcpSettings}
31
+ * @type {CloudServiceSettingsAwsEc2 | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsSelfHostedCustom}
31
32
  * @memberof ServerCloudService
32
33
  */
33
- settings?: CloudAwsEc2Settings | CloudDigitalOceanDropletSettings | CloudGcpSettings;
34
+ settings: CloudServiceSettingsAwsEc2 | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsSelfHostedCustom;
34
35
  }
@@ -33,5 +33,5 @@ export interface ServerProvisionSettings {
33
33
  * @type {ServerCloudService}
34
34
  * @memberof ServerProvisionSettings
35
35
  */
36
- cloud_service?: ServerCloudService;
36
+ cloud_service: ServerCloudService;
37
37
  }
@@ -22,13 +22,13 @@ export interface ServerUpdate {
22
22
  */
23
23
  id: number;
24
24
  /**
25
- * Public ipv4 address for server access. This field is required when <code>provision_settings.self_hosted</code> is <code>true</code>.
25
+ * Public ipv4 address for server access.
26
26
  * @type {string}
27
27
  * @memberof ServerUpdate
28
28
  */
29
29
  ip_address?: string;
30
30
  /**
31
- * The network port to which the SSH daemon is listening to SSH connections on the server. This field is required when <code>provision_settings.self_hosted</code> is <code>true</code>. Must be between 22 and 65535.
31
+ * The network port to which the SSH daemon is listening to SSH connections on the server. Must be between 0 and 65535.
32
32
  * @type {number}
33
33
  * @memberof ServerUpdate
34
34
  */
@@ -88,6 +88,12 @@ export interface Subscription {
88
88
  * @memberof Subscription
89
89
  */
90
90
  updated_at?: string;
91
+ /**
92
+ *
93
+ * @type {SubscriptionBalance}
94
+ * @memberof Subscription
95
+ */
96
+ current_balance?: SubscriptionBalance | null;
91
97
  /**
92
98
  * The list of subscription balances
93
99
  * @type {Array<SubscriptionBalance>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.70.0",
3
+ "version": "2.72.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },