@devopness/sdk-js 1.104.2 → 1.105.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.
@@ -18,7 +18,7 @@ import { HookRelation } from '../../generated/models';
18
18
  export declare class ApplicationsHooksApiService extends ApiBaseService {
19
19
  /**
20
20
  *
21
- * @summary Returns a list of all incoming hooks belonging to an application
21
+ * @summary Returns a list of all hooks belonging to an application
22
22
  * @param {number} applicationId Unique id of the application
23
23
  */
24
24
  listApplicationHooks(applicationId: number): Promise<ApiResponse<Array<HookRelation>>>;
@@ -31,7 +31,7 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class ApplicationsHooksApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Returns a list of all incoming hooks belonging to an application
34
+ * @summary Returns a list of all hooks belonging to an application
35
35
  * @param {number} applicationId Unique id of the application
36
36
  */
37
37
  listApplicationHooks(applicationId) {
@@ -12,6 +12,7 @@
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
14
  import { ApplicationOptions } from '../../generated/models';
15
+ import { CloudProvider } from '../../generated/models';
15
16
  import { CronJobOptions } from '../../generated/models';
16
17
  import { EnvironmentOptions } from '../../generated/models';
17
18
  import { ServerOptions } from '../../generated/models';
@@ -25,6 +26,11 @@ export declare class StaticDataApiService extends ApiBaseService {
25
26
  * @summary Lists options of the applications
26
27
  */
27
28
  listApplicationOptions(): Promise<ApiResponse<ApplicationOptions>>;
29
+ /**
30
+ *
31
+ * @summary Lists cloud providers
32
+ */
33
+ listCloudProviders(): Promise<ApiResponse<Array<CloudProvider>>>;
28
34
  /**
29
35
  *
30
36
  * @summary Lists options of the cronjobs
@@ -40,6 +40,18 @@ class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
40
40
  return new ApiResponse_1.ApiResponse(response);
41
41
  });
42
42
  }
43
+ /**
44
+ *
45
+ * @summary Lists cloud providers
46
+ */
47
+ listCloudProviders() {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ let queryString = '';
50
+ const requestUrl = '/static/cloud-providers' + (queryString ? `?${queryString}` : '');
51
+ const response = yield this.get(requestUrl);
52
+ return new ApiResponse_1.ApiResponse(response);
53
+ });
54
+ }
43
55
  /**
44
56
  *
45
57
  * @summary Lists options of the cronjobs
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CloudProviderSettings } from './cloud-provider-settings';
13
+ import { CloudService } from './cloud-service';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -16,21 +18,39 @@
16
18
  */
17
19
  export interface CloudProvider {
18
20
  /**
19
- * The code that uniquely identify a cloud provider
21
+ * Cloud provider code
20
22
  * @type {string}
21
23
  * @memberof CloudProvider
22
24
  */
23
25
  code: string;
24
26
  /**
25
- * A URL path to the provider\'s logo image
27
+ * Cloud provider name
26
28
  * @type {string}
27
29
  * @memberof CloudProvider
28
30
  */
29
- logo_url: string;
31
+ name: string;
30
32
  /**
31
- * The name of the cloud provider
33
+ * Text describing what is the provider
32
34
  * @type {string}
33
35
  * @memberof CloudProvider
34
36
  */
35
- name: string;
37
+ hint?: string;
38
+ /**
39
+ * The provider\'s logo URL.
40
+ * @type {string}
41
+ * @memberof CloudProvider
42
+ */
43
+ logo_url: string;
44
+ /**
45
+ *
46
+ * @type {Array<CloudService>}
47
+ * @memberof CloudProvider
48
+ */
49
+ cloud_services?: Array<CloudService>;
50
+ /**
51
+ *
52
+ * @type {CloudProviderSettings}
53
+ * @memberof CloudProvider
54
+ */
55
+ settings?: CloudProviderSettings;
36
56
  }
@@ -34,13 +34,13 @@ export interface CloudService {
34
34
  * @type {Array<ProviderRegion>}
35
35
  * @memberof CloudService
36
36
  */
37
- regions: Array<ProviderRegion>;
37
+ regions?: Array<ProviderRegion>;
38
38
  /**
39
39
  *
40
40
  * @type {Array<OperatingSystem>}
41
41
  * @memberof CloudService
42
42
  */
43
- os: Array<OperatingSystem>;
43
+ os?: Array<OperatingSystem>;
44
44
  }
45
45
  /**
46
46
  * @export
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ActionListItem } from './action-list-item';
13
12
  import { ActionRelation } from './action-relation';
14
13
  import { ActionStatus } from './action-status';
15
14
  import { EnvironmentRelation } from './environment-relation';
@@ -76,12 +75,6 @@ export interface Server {
76
75
  * @memberof Server
77
76
  */
78
77
  status?: ActionStatus;
79
- /**
80
- * The list of related actions
81
- * @type {Array<ActionListItem>}
82
- * @memberof Server
83
- */
84
- actions: Array<ActionListItem>;
85
78
  /**
86
79
  * The list of environments to which the server is linked to
87
80
  * @type {Array<EnvironmentRelation>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "1.104.2",
3
+ "version": "1.105.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },