@devopness/sdk-js 2.100.0 → 2.102.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.
@@ -0,0 +1,24 @@
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 { NetworkRuleOptions } from '../../generated/models';
15
+ /**
16
+ * StaticDataNetworkRuleOptionsApiService - Auto-generated
17
+ */
18
+ export declare class StaticDataNetworkRuleOptionsApiService extends ApiBaseService {
19
+ /**
20
+ *
21
+ * @summary List `Network Rule` options
22
+ */
23
+ getStaticNetworkRuleOptions(): Promise<ApiResponse<NetworkRuleOptions>>;
24
+ }
@@ -0,0 +1,44 @@
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.StaticDataNetworkRuleOptionsApiService = void 0;
25
+ const ApiBaseService_1 = require("../../../services/ApiBaseService");
26
+ const ApiResponse_1 = require("../../../common/ApiResponse");
27
+ /**
28
+ * StaticDataNetworkRuleOptionsApiService - Auto-generated
29
+ */
30
+ class StaticDataNetworkRuleOptionsApiService extends ApiBaseService_1.ApiBaseService {
31
+ /**
32
+ *
33
+ * @summary List `Network Rule` options
34
+ */
35
+ getStaticNetworkRuleOptions() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ let queryString = '';
38
+ const requestUrl = '/static/network-rule-options' + (queryString ? `?${queryString}` : '');
39
+ const response = yield this.get(requestUrl);
40
+ return new ApiResponse_1.ApiResponse(response);
41
+ });
42
+ }
43
+ }
44
+ exports.StaticDataNetworkRuleOptionsApiService = StaticDataNetworkRuleOptionsApiService;
@@ -123,6 +123,7 @@ export * from './network-relation';
123
123
  export * from './network-rule';
124
124
  export * from './network-rule-direction';
125
125
  export * from './network-rule-environment-create';
126
+ export * from './network-rule-options';
126
127
  export * from './network-rule-protocol';
127
128
  export * from './network-rule-relation';
128
129
  export * from './network-rule-update';
@@ -208,6 +209,8 @@ export * from './static-billing-info';
208
209
  export * from './static-cloud-provider-code';
209
210
  export * from './static-cron-job-frequency';
210
211
  export * from './static-environment-type';
212
+ export * from './static-network-rule-protocol';
213
+ export * from './static-network-rule-protocol-defaults';
211
214
  export * from './static-permission';
212
215
  export * from './static-service-type';
213
216
  export * from './static-service-type-supported-versions';
@@ -139,6 +139,7 @@ __exportStar(require("./network-relation"), exports);
139
139
  __exportStar(require("./network-rule"), exports);
140
140
  __exportStar(require("./network-rule-direction"), exports);
141
141
  __exportStar(require("./network-rule-environment-create"), exports);
142
+ __exportStar(require("./network-rule-options"), exports);
142
143
  __exportStar(require("./network-rule-protocol"), exports);
143
144
  __exportStar(require("./network-rule-relation"), exports);
144
145
  __exportStar(require("./network-rule-update"), exports);
@@ -224,6 +225,8 @@ __exportStar(require("./static-billing-info"), exports);
224
225
  __exportStar(require("./static-cloud-provider-code"), exports);
225
226
  __exportStar(require("./static-cron-job-frequency"), exports);
226
227
  __exportStar(require("./static-environment-type"), exports);
228
+ __exportStar(require("./static-network-rule-protocol"), exports);
229
+ __exportStar(require("./static-network-rule-protocol-defaults"), exports);
227
230
  __exportStar(require("./static-permission"), exports);
228
231
  __exportStar(require("./static-service-type"), exports);
229
232
  __exportStar(require("./static-service-type-supported-versions"), exports);
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { NetworkProvisionInputSettings } from './network-provision-input-settings';
13
+ import { ServerCloudServiceCode } from './server-cloud-service-code';
13
14
  /**
14
15
  * Network provision input parameters
15
16
  * @export
@@ -17,11 +18,11 @@ import { NetworkProvisionInputSettings } from './network-provision-input-setting
17
18
  */
18
19
  export interface NetworkProvisionInput {
19
20
  /**
20
- * The cloud service of the cloud provider
21
- * @type {string}
21
+ *
22
+ * @type {ServerCloudServiceCode}
22
23
  * @memberof NetworkProvisionInput
23
24
  */
24
- cloud_service_code: string;
25
+ cloud_service_code: ServerCloudServiceCode;
25
26
  /**
26
27
  * The ID of the cloud credential
27
28
  * @type {number}
@@ -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 { StaticNetworkRuleProtocol } from './static-network-rule-protocol';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface NetworkRuleOptions
17
+ */
18
+ export interface NetworkRuleOptions {
19
+ /**
20
+ * The supported network rules protocols
21
+ * @type {Array<StaticNetworkRuleProtocol>}
22
+ * @memberof NetworkRuleOptions
23
+ */
24
+ protocols: Array<StaticNetworkRuleProtocol>;
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 });
@@ -16,6 +16,7 @@
16
16
  */
17
17
  export declare enum NetworkRuleProtocol {
18
18
  Any = "any",
19
+ Icmp = "icmp",
19
20
  Tcp = "tcp",
20
21
  Udp = "udp"
21
22
  }
@@ -21,6 +21,7 @@ exports.NetworkRuleProtocol = void 0;
21
21
  var NetworkRuleProtocol;
22
22
  (function (NetworkRuleProtocol) {
23
23
  NetworkRuleProtocol["Any"] = "any";
24
+ NetworkRuleProtocol["Icmp"] = "icmp";
24
25
  NetworkRuleProtocol["Tcp"] = "tcp";
25
26
  NetworkRuleProtocol["Udp"] = "udp";
26
27
  })(NetworkRuleProtocol = exports.NetworkRuleProtocol || (exports.NetworkRuleProtocol = {}));
@@ -15,6 +15,7 @@ import { CloudOsVersionCode } from './cloud-os-version-code';
15
15
  import { EnvironmentRelation } from './environment-relation';
16
16
  import { ProjectRelation } from './project-relation';
17
17
  import { ServerBlueprint } from './server-blueprint';
18
+ import { ServerCloudServiceCode } from './server-cloud-service-code';
18
19
  import { ServerProvisionInput } from './server-provision-input';
19
20
  import { UserRelation } from './user-relation';
20
21
  /**
@@ -60,11 +61,11 @@ export interface Server {
60
61
  */
61
62
  provider_name_human_readable: string;
62
63
  /**
63
- * The cloud service code
64
- * @type {string}
64
+ *
65
+ * @type {ServerCloudServiceCode}
65
66
  * @memberof Server
66
67
  */
67
- cloud_service_code: string;
68
+ cloud_service_code: ServerCloudServiceCode;
68
69
  /**
69
70
  * Public ipv4 address for server access
70
71
  * @type {string}
@@ -0,0 +1,24 @@
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
+ * List of default values for this protocol
14
+ * @export
15
+ * @interface StaticNetworkRuleProtocolDefaults
16
+ */
17
+ export interface StaticNetworkRuleProtocolDefaults {
18
+ /**
19
+ * The default port for the protocol
20
+ * @type {number}
21
+ * @memberof StaticNetworkRuleProtocolDefaults
22
+ */
23
+ port: number | null;
24
+ }
@@ -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 });
@@ -0,0 +1,38 @@
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 { NetworkRuleProtocol } from './network-rule-protocol';
13
+ import { StaticNetworkRuleProtocolDefaults } from './static-network-rule-protocol-defaults';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface StaticNetworkRuleProtocol
18
+ */
19
+ export interface StaticNetworkRuleProtocol {
20
+ /**
21
+ *
22
+ * @type {NetworkRuleProtocol}
23
+ * @memberof StaticNetworkRuleProtocol
24
+ */
25
+ value: NetworkRuleProtocol;
26
+ /**
27
+ * The formatted name to be displayed in user interfaces
28
+ * @type {string}
29
+ * @memberof StaticNetworkRuleProtocol
30
+ */
31
+ human_readable: string;
32
+ /**
33
+ *
34
+ * @type {StaticNetworkRuleProtocolDefaults}
35
+ * @memberof StaticNetworkRuleProtocol
36
+ */
37
+ defaults: StaticNetworkRuleProtocolDefaults;
38
+ }
@@ -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 });
@@ -4,6 +4,7 @@ import { StaticDataCloudProviderServiceInstancesApiService } from "../api/genera
4
4
  import { StaticDataCloudProviderServicesApiService } from "../api/generated/apis/static-data-cloud-provider-services-api";
5
5
  import { StaticDataCronJobOptionsApiService } from "../api/generated/apis/static-data-cron-job-options-api";
6
6
  import { StaticDataEnvironmentOptionsApiService } from "../api/generated/apis/static-data-environment-options-api";
7
+ import { StaticDataNetworkRuleOptionsApiService } from "../api/generated/apis/static-data-network-rule-options-api";
7
8
  import { StaticDataPermissionsApiService } from "../api/generated/apis/static-data-permissions-api";
8
9
  import { StaticDataResourceTypesApiService } from "../api/generated/apis/static-data-resource-types-api";
9
10
  import { StaticDataServiceOptionsApiService } from "../api/generated/apis/static-data-service-options-api";
@@ -15,6 +16,7 @@ export declare class StaticService {
15
16
  cloudProviderServices: StaticDataCloudProviderServicesApiService;
16
17
  cronJobOptions: StaticDataCronJobOptionsApiService;
17
18
  environmentOptions: StaticDataEnvironmentOptionsApiService;
19
+ networkRuleOptions: StaticDataNetworkRuleOptionsApiService;
18
20
  permissions: StaticDataPermissionsApiService;
19
21
  resourceTypes: StaticDataResourceTypesApiService;
20
22
  serviceOptions: StaticDataServiceOptionsApiService;
@@ -7,6 +7,7 @@ const static_data_cloud_provider_service_instances_api_1 = require("../api/gener
7
7
  const static_data_cloud_provider_services_api_1 = require("../api/generated/apis/static-data-cloud-provider-services-api");
8
8
  const static_data_cron_job_options_api_1 = require("../api/generated/apis/static-data-cron-job-options-api");
9
9
  const static_data_environment_options_api_1 = require("../api/generated/apis/static-data-environment-options-api");
10
+ const static_data_network_rule_options_api_1 = require("../api/generated/apis/static-data-network-rule-options-api");
10
11
  const static_data_permissions_api_1 = require("../api/generated/apis/static-data-permissions-api");
11
12
  const static_data_resource_types_api_1 = require("../api/generated/apis/static-data-resource-types-api");
12
13
  const static_data_service_options_api_1 = require("../api/generated/apis/static-data-service-options-api");
@@ -19,6 +20,7 @@ class StaticService {
19
20
  this.cloudProviderServices = new static_data_cloud_provider_services_api_1.StaticDataCloudProviderServicesApiService();
20
21
  this.cronJobOptions = new static_data_cron_job_options_api_1.StaticDataCronJobOptionsApiService();
21
22
  this.environmentOptions = new static_data_environment_options_api_1.StaticDataEnvironmentOptionsApiService();
23
+ this.networkRuleOptions = new static_data_network_rule_options_api_1.StaticDataNetworkRuleOptionsApiService();
22
24
  this.permissions = new static_data_permissions_api_1.StaticDataPermissionsApiService();
23
25
  this.resourceTypes = new static_data_resource_types_api_1.StaticDataResourceTypesApiService();
24
26
  this.serviceOptions = new static_data_service_options_api_1.StaticDataServiceOptionsApiService();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.100.0",
3
+ "version": "2.102.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },