@devopness/sdk-js 2.161.1 → 2.162.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.
- package/dist/api/generated/apis/static-data-api.d.ts +105 -0
- package/dist/api/generated/apis/static-data-api.js +228 -0
- package/dist/api/generated/models/organization-relation.d.ts +7 -0
- package/dist/api/generated/models/organization.d.ts +7 -0
- package/dist/services/StaticService.d.ts +2 -27
- package/dist/services/StaticService.js +2 -29
- package/package.json +1 -1
- package/dist/api/generated/apis/static-data-application-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-application-options-api.js +0 -44
- package/dist/api/generated/apis/static-data-cloud-provider-service-instances-api.d.ts +0 -28
- package/dist/api/generated/apis/static-data-cloud-provider-service-instances-api.js +0 -62
- package/dist/api/generated/apis/static-data-cloud-provider-services-api.d.ts +0 -25
- package/dist/api/generated/apis/static-data-cloud-provider-services-api.js +0 -49
- package/dist/api/generated/apis/static-data-credential-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-credential-options-api.js +0 -44
- package/dist/api/generated/apis/static-data-cron-job-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-cron-job-options-api.js +0 -44
- package/dist/api/generated/apis/static-data-environment-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-environment-options-api.js +0 -44
- package/dist/api/generated/apis/static-data-network-rule-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-network-rule-options-api.js +0 -44
- package/dist/api/generated/apis/static-data-permissions-api.d.ts +0 -26
- package/dist/api/generated/apis/static-data-permissions-api.js +0 -53
- package/dist/api/generated/apis/static-data-resource-types-api.d.ts +0 -26
- package/dist/api/generated/apis/static-data-resource-types-api.js +0 -53
- package/dist/api/generated/apis/static-data-server-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-server-options-api.js +0 -44
- package/dist/api/generated/apis/static-data-service-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-service-options-api.js +0 -44
- package/dist/api/generated/apis/static-data-user-profile-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-user-profile-options-api.js +0 -44
- package/dist/api/generated/apis/static-data-virtual-host-options-api.d.ts +0 -24
- package/dist/api/generated/apis/static-data-virtual-host-options-api.js +0 -44
|
@@ -0,0 +1,105 @@
|
|
|
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 { ApplicationOptions } from '../../generated/models';
|
|
15
|
+
import { CloudInstanceRelation } from '../../generated/models';
|
|
16
|
+
import { CloudProviderService } from '../../generated/models';
|
|
17
|
+
import { CredentialOptions } from '../../generated/models';
|
|
18
|
+
import { CronJobOptions } from '../../generated/models';
|
|
19
|
+
import { EnvironmentOptions } from '../../generated/models';
|
|
20
|
+
import { NetworkRuleOptions } from '../../generated/models';
|
|
21
|
+
import { PermissionRelation } from '../../generated/models';
|
|
22
|
+
import { ResourceTypeRelation } from '../../generated/models';
|
|
23
|
+
import { ServerOptions } from '../../generated/models';
|
|
24
|
+
import { ServiceOptions } from '../../generated/models';
|
|
25
|
+
import { UserProfileOptions } from '../../generated/models';
|
|
26
|
+
import { VirtualHostOptions } from '../../generated/models';
|
|
27
|
+
/**
|
|
28
|
+
* StaticDataApiService - Auto-generated
|
|
29
|
+
*/
|
|
30
|
+
export declare class StaticDataApiService extends ApiBaseService {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary List `Application` resource options
|
|
34
|
+
*/
|
|
35
|
+
getStaticApplicationOptions(): Promise<ApiResponse<ApplicationOptions>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Get details of a single `Cloud Provider Service`
|
|
39
|
+
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
40
|
+
*/
|
|
41
|
+
getStaticCloudProviderService(cloudProviderServiceCode: string): Promise<ApiResponse<CloudProviderService>>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @summary List `Credential` resource options
|
|
45
|
+
*/
|
|
46
|
+
getStaticCredentialOptions(): Promise<ApiResponse<CredentialOptions>>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @summary List `CronJob` resource options
|
|
50
|
+
*/
|
|
51
|
+
getStaticCronJobOptions(): Promise<ApiResponse<CronJobOptions>>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary List `Environment` options
|
|
55
|
+
*/
|
|
56
|
+
getStaticEnvironmentOptions(): Promise<ApiResponse<EnvironmentOptions>>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @summary List `Network Rule` options
|
|
60
|
+
*/
|
|
61
|
+
getStaticNetworkRuleOptions(): Promise<ApiResponse<NetworkRuleOptions>>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @summary List `Server` options
|
|
65
|
+
*/
|
|
66
|
+
getStaticServerOptions(): Promise<ApiResponse<ServerOptions>>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary List `Service` resource options
|
|
70
|
+
*/
|
|
71
|
+
getStaticServiceOptions(): Promise<ApiResponse<ServiceOptions>>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @summary List `User profile` options
|
|
75
|
+
*/
|
|
76
|
+
getStaticUserProfileOptions(): Promise<ApiResponse<UserProfileOptions>>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @summary List `Virtual Host` options
|
|
80
|
+
*/
|
|
81
|
+
getStaticVirtualHostOptions(): Promise<ApiResponse<VirtualHostOptions>>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary List `Cloud Provider Service` instance types by region
|
|
85
|
+
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
86
|
+
* @param {string} regionCode The region of the cloud provider to get related instances.
|
|
87
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
88
|
+
* @param {number} [perPage] Number of items returned per page
|
|
89
|
+
*/
|
|
90
|
+
listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode(cloudProviderServiceCode: string, regionCode: string, page?: number, perPage?: number): Promise<ApiResponse<Array<CloudInstanceRelation>>>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary List available `Role` permissions
|
|
94
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
95
|
+
* @param {number} [perPage] Number of items returned per page
|
|
96
|
+
*/
|
|
97
|
+
listStaticPermissions(page?: number, perPage?: number): Promise<ApiResponse<Array<PermissionRelation>>>;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary List available resource types
|
|
101
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
102
|
+
* @param {number} [perPage] Number of items returned per page
|
|
103
|
+
*/
|
|
104
|
+
listStaticResourceTypes(page?: number, perPage?: number): Promise<ApiResponse<Array<ResourceTypeRelation>>>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
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.StaticDataApiService = 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
|
+
* StaticDataApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class StaticDataApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary List `Application` resource options
|
|
35
|
+
*/
|
|
36
|
+
getStaticApplicationOptions() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
let queryString = '';
|
|
39
|
+
const requestUrl = '/static/application-options' + (queryString ? `?${queryString}` : '');
|
|
40
|
+
const response = yield this.get(requestUrl);
|
|
41
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary Get details of a single `Cloud Provider Service`
|
|
47
|
+
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
48
|
+
*/
|
|
49
|
+
getStaticCloudProviderService(cloudProviderServiceCode) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
if (cloudProviderServiceCode === null || cloudProviderServiceCode === undefined) {
|
|
52
|
+
throw new Exceptions_1.ArgumentNullException('cloudProviderServiceCode', 'getStaticCloudProviderService');
|
|
53
|
+
}
|
|
54
|
+
let queryString = '';
|
|
55
|
+
const requestUrl = '/static/cloud-provider-service-options/{cloud_provider_service_code}' + (queryString ? `?${queryString}` : '');
|
|
56
|
+
const response = yield this.get(requestUrl.replace(`{${"cloud_provider_service_code"}}`, encodeURIComponent(String(cloudProviderServiceCode))));
|
|
57
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @summary List `Credential` resource options
|
|
63
|
+
*/
|
|
64
|
+
getStaticCredentialOptions() {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
let queryString = '';
|
|
67
|
+
const requestUrl = '/static/credential-options' + (queryString ? `?${queryString}` : '');
|
|
68
|
+
const response = yield this.get(requestUrl);
|
|
69
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @summary List `CronJob` resource options
|
|
75
|
+
*/
|
|
76
|
+
getStaticCronJobOptions() {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
let queryString = '';
|
|
79
|
+
const requestUrl = '/static/cronjob-options' + (queryString ? `?${queryString}` : '');
|
|
80
|
+
const response = yield this.get(requestUrl);
|
|
81
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @summary List `Environment` options
|
|
87
|
+
*/
|
|
88
|
+
getStaticEnvironmentOptions() {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
let queryString = '';
|
|
91
|
+
const requestUrl = '/static/environment-options' + (queryString ? `?${queryString}` : '');
|
|
92
|
+
const response = yield this.get(requestUrl);
|
|
93
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary List `Network Rule` options
|
|
99
|
+
*/
|
|
100
|
+
getStaticNetworkRuleOptions() {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
let queryString = '';
|
|
103
|
+
const requestUrl = '/static/network-rule-options' + (queryString ? `?${queryString}` : '');
|
|
104
|
+
const response = yield this.get(requestUrl);
|
|
105
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @summary List `Server` options
|
|
111
|
+
*/
|
|
112
|
+
getStaticServerOptions() {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
let queryString = '';
|
|
115
|
+
const requestUrl = '/static/server-options' + (queryString ? `?${queryString}` : '');
|
|
116
|
+
const response = yield this.get(requestUrl);
|
|
117
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @summary List `Service` resource options
|
|
123
|
+
*/
|
|
124
|
+
getStaticServiceOptions() {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
let queryString = '';
|
|
127
|
+
const requestUrl = '/static/service-options' + (queryString ? `?${queryString}` : '');
|
|
128
|
+
const response = yield this.get(requestUrl);
|
|
129
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @summary List `User profile` options
|
|
135
|
+
*/
|
|
136
|
+
getStaticUserProfileOptions() {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
let queryString = '';
|
|
139
|
+
const requestUrl = '/static/user-profile-options' + (queryString ? `?${queryString}` : '');
|
|
140
|
+
const response = yield this.get(requestUrl);
|
|
141
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @summary List `Virtual Host` options
|
|
147
|
+
*/
|
|
148
|
+
getStaticVirtualHostOptions() {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
let queryString = '';
|
|
151
|
+
const requestUrl = '/static/virtual-host-options' + (queryString ? `?${queryString}` : '');
|
|
152
|
+
const response = yield this.get(requestUrl);
|
|
153
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @summary List `Cloud Provider Service` instance types by region
|
|
159
|
+
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
160
|
+
* @param {string} regionCode The region of the cloud provider to get related instances.
|
|
161
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
162
|
+
* @param {number} [perPage] Number of items returned per page
|
|
163
|
+
*/
|
|
164
|
+
listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode(cloudProviderServiceCode, regionCode, page, perPage) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
if (cloudProviderServiceCode === null || cloudProviderServiceCode === undefined) {
|
|
167
|
+
throw new Exceptions_1.ArgumentNullException('cloudProviderServiceCode', 'listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode');
|
|
168
|
+
}
|
|
169
|
+
if (regionCode === null || regionCode === undefined) {
|
|
170
|
+
throw new Exceptions_1.ArgumentNullException('regionCode', 'listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode');
|
|
171
|
+
}
|
|
172
|
+
let queryString = '';
|
|
173
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
174
|
+
for (const key in queryParams) {
|
|
175
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
179
|
+
}
|
|
180
|
+
const requestUrl = '/static/cloud-provider-service-options/{cloud_provider_service_code}/regions/{region_code}/instances' + (queryString ? `?${queryString}` : '');
|
|
181
|
+
const response = yield this.get(requestUrl.replace(`{${"cloud_provider_service_code"}}`, encodeURIComponent(String(cloudProviderServiceCode))).replace(`{${"region_code"}}`, encodeURIComponent(String(regionCode))));
|
|
182
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @summary List available `Role` permissions
|
|
188
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
189
|
+
* @param {number} [perPage] Number of items returned per page
|
|
190
|
+
*/
|
|
191
|
+
listStaticPermissions(page, perPage) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
let queryString = '';
|
|
194
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
195
|
+
for (const key in queryParams) {
|
|
196
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
200
|
+
}
|
|
201
|
+
const requestUrl = '/static/permissions' + (queryString ? `?${queryString}` : '');
|
|
202
|
+
const response = yield this.get(requestUrl);
|
|
203
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary List available resource types
|
|
209
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
210
|
+
* @param {number} [perPage] Number of items returned per page
|
|
211
|
+
*/
|
|
212
|
+
listStaticResourceTypes(page, perPage) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
let queryString = '';
|
|
215
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
216
|
+
for (const key in queryParams) {
|
|
217
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
221
|
+
}
|
|
222
|
+
const requestUrl = '/static/resource-types' + (queryString ? `?${queryString}` : '');
|
|
223
|
+
const response = yield this.get(requestUrl);
|
|
224
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
exports.StaticDataApiService = StaticDataApiService;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ResourceSummaryItem } from './resource-summary-item';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -33,6 +34,12 @@ export interface OrganizationRelation {
|
|
|
33
34
|
* @memberof OrganizationRelation
|
|
34
35
|
*/
|
|
35
36
|
url_slug: string;
|
|
37
|
+
/**
|
|
38
|
+
* Summary of the resource
|
|
39
|
+
* @type {Array<ResourceSummaryItem>}
|
|
40
|
+
* @memberof OrganizationRelation
|
|
41
|
+
*/
|
|
42
|
+
resource_summary?: Array<ResourceSummaryItem>;
|
|
36
43
|
/**
|
|
37
44
|
* The date and time when the organization was created
|
|
38
45
|
* @type {string}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ResourceSummaryItem } from './resource-summary-item';
|
|
12
13
|
import { UserRelation } from './user-relation';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -34,6 +35,12 @@ export interface Organization {
|
|
|
34
35
|
* @memberof Organization
|
|
35
36
|
*/
|
|
36
37
|
url_slug: string;
|
|
38
|
+
/**
|
|
39
|
+
* Summary of the resource
|
|
40
|
+
* @type {Array<ResourceSummaryItem>}
|
|
41
|
+
* @memberof Organization
|
|
42
|
+
*/
|
|
43
|
+
resource_summary?: Array<ResourceSummaryItem>;
|
|
37
44
|
/**
|
|
38
45
|
*
|
|
39
46
|
* @type {UserRelation}
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { StaticDataCloudProviderServicesApiService } from "../api/generated/apis/static-data-cloud-provider-services-api";
|
|
4
|
-
import { StaticDataCredentialOptionsApiService } from "../api/generated/apis/static-data-credential-options-api";
|
|
5
|
-
import { StaticDataCronJobOptionsApiService } from "../api/generated/apis/static-data-cron-job-options-api";
|
|
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";
|
|
8
|
-
import { StaticDataPermissionsApiService } from "../api/generated/apis/static-data-permissions-api";
|
|
9
|
-
import { StaticDataResourceTypesApiService } from "../api/generated/apis/static-data-resource-types-api";
|
|
10
|
-
import { StaticDataServerOptionsApiService } from "../api/generated/apis/static-data-server-options-api";
|
|
11
|
-
import { StaticDataServiceOptionsApiService } from "../api/generated/apis/static-data-service-options-api";
|
|
12
|
-
import { StaticDataUserProfileOptionsApiService } from "../api/generated/apis/static-data-user-profile-options-api";
|
|
13
|
-
import { StaticDataVirtualHostOptionsApiService } from "../api/generated/apis/static-data-virtual-host-options-api";
|
|
14
|
-
export declare class StaticService {
|
|
15
|
-
applicationOptions: StaticDataApplicationOptionsApiService;
|
|
16
|
-
cloudProviderServiceInstances: StaticDataCloudProviderServiceInstancesApiService;
|
|
17
|
-
cloudProviderServices: StaticDataCloudProviderServicesApiService;
|
|
18
|
-
credentialOptions: StaticDataCredentialOptionsApiService;
|
|
19
|
-
cronJobOptions: StaticDataCronJobOptionsApiService;
|
|
20
|
-
environmentOptions: StaticDataEnvironmentOptionsApiService;
|
|
21
|
-
networkRuleOptions: StaticDataNetworkRuleOptionsApiService;
|
|
22
|
-
permissions: StaticDataPermissionsApiService;
|
|
23
|
-
resourceTypes: StaticDataResourceTypesApiService;
|
|
24
|
-
serverOptions: StaticDataServerOptionsApiService;
|
|
25
|
-
serviceOptions: StaticDataServiceOptionsApiService;
|
|
26
|
-
userProfileOptions: StaticDataUserProfileOptionsApiService;
|
|
27
|
-
virtualHostOptions: StaticDataVirtualHostOptionsApiService;
|
|
1
|
+
import { StaticDataApiService } from "../api/generated/apis/static-data-api";
|
|
2
|
+
export declare class StaticService extends StaticDataApiService {
|
|
28
3
|
}
|
|
@@ -1,34 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StaticService = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const static_data_cloud_provider_services_api_1 = require("../api/generated/apis/static-data-cloud-provider-services-api");
|
|
7
|
-
const static_data_credential_options_api_1 = require("../api/generated/apis/static-data-credential-options-api");
|
|
8
|
-
const static_data_cron_job_options_api_1 = require("../api/generated/apis/static-data-cron-job-options-api");
|
|
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");
|
|
11
|
-
const static_data_permissions_api_1 = require("../api/generated/apis/static-data-permissions-api");
|
|
12
|
-
const static_data_resource_types_api_1 = require("../api/generated/apis/static-data-resource-types-api");
|
|
13
|
-
const static_data_server_options_api_1 = require("../api/generated/apis/static-data-server-options-api");
|
|
14
|
-
const static_data_service_options_api_1 = require("../api/generated/apis/static-data-service-options-api");
|
|
15
|
-
const static_data_user_profile_options_api_1 = require("../api/generated/apis/static-data-user-profile-options-api");
|
|
16
|
-
const static_data_virtual_host_options_api_1 = require("../api/generated/apis/static-data-virtual-host-options-api");
|
|
17
|
-
class StaticService {
|
|
18
|
-
constructor() {
|
|
19
|
-
this.applicationOptions = new static_data_application_options_api_1.StaticDataApplicationOptionsApiService();
|
|
20
|
-
this.cloudProviderServiceInstances = new static_data_cloud_provider_service_instances_api_1.StaticDataCloudProviderServiceInstancesApiService();
|
|
21
|
-
this.cloudProviderServices = new static_data_cloud_provider_services_api_1.StaticDataCloudProviderServicesApiService();
|
|
22
|
-
this.credentialOptions = new static_data_credential_options_api_1.StaticDataCredentialOptionsApiService();
|
|
23
|
-
this.cronJobOptions = new static_data_cron_job_options_api_1.StaticDataCronJobOptionsApiService();
|
|
24
|
-
this.environmentOptions = new static_data_environment_options_api_1.StaticDataEnvironmentOptionsApiService();
|
|
25
|
-
this.networkRuleOptions = new static_data_network_rule_options_api_1.StaticDataNetworkRuleOptionsApiService();
|
|
26
|
-
this.permissions = new static_data_permissions_api_1.StaticDataPermissionsApiService();
|
|
27
|
-
this.resourceTypes = new static_data_resource_types_api_1.StaticDataResourceTypesApiService();
|
|
28
|
-
this.serverOptions = new static_data_server_options_api_1.StaticDataServerOptionsApiService();
|
|
29
|
-
this.serviceOptions = new static_data_service_options_api_1.StaticDataServiceOptionsApiService();
|
|
30
|
-
this.userProfileOptions = new static_data_user_profile_options_api_1.StaticDataUserProfileOptionsApiService();
|
|
31
|
-
this.virtualHostOptions = new static_data_virtual_host_options_api_1.StaticDataVirtualHostOptionsApiService();
|
|
32
|
-
}
|
|
4
|
+
const static_data_api_1 = require("../api/generated/apis/static-data-api");
|
|
5
|
+
class StaticService extends static_data_api_1.StaticDataApiService {
|
|
33
6
|
}
|
|
34
7
|
exports.StaticService = StaticService;
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
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 { ApplicationOptions } from '../../generated/models';
|
|
15
|
-
/**
|
|
16
|
-
* StaticDataApplicationOptionsApiService - Auto-generated
|
|
17
|
-
*/
|
|
18
|
-
export declare class StaticDataApplicationOptionsApiService extends ApiBaseService {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @summary List `Application` resource options
|
|
22
|
-
*/
|
|
23
|
-
getStaticApplicationOptions(): Promise<ApiResponse<ApplicationOptions>>;
|
|
24
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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.StaticDataApplicationOptionsApiService = void 0;
|
|
25
|
-
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
-
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
-
/**
|
|
28
|
-
* StaticDataApplicationOptionsApiService - Auto-generated
|
|
29
|
-
*/
|
|
30
|
-
class StaticDataApplicationOptionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @summary List `Application` resource options
|
|
34
|
-
*/
|
|
35
|
-
getStaticApplicationOptions() {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
let queryString = '';
|
|
38
|
-
const requestUrl = '/static/application-options' + (queryString ? `?${queryString}` : '');
|
|
39
|
-
const response = yield this.get(requestUrl);
|
|
40
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.StaticDataApplicationOptionsApiService = StaticDataApplicationOptionsApiService;
|
|
@@ -1,28 +0,0 @@
|
|
|
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 { CloudInstanceRelation } from '../../generated/models';
|
|
15
|
-
/**
|
|
16
|
-
* StaticDataCloudProviderServiceInstancesApiService - Auto-generated
|
|
17
|
-
*/
|
|
18
|
-
export declare class StaticDataCloudProviderServiceInstancesApiService extends ApiBaseService {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @summary List `Cloud Provider Service` instance types by region
|
|
22
|
-
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
23
|
-
* @param {string} regionCode The region of the cloud provider to get related instances.
|
|
24
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
25
|
-
* @param {number} [perPage] Number of items returned per page
|
|
26
|
-
*/
|
|
27
|
-
listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode(cloudProviderServiceCode: string, regionCode: string, page?: number, perPage?: number): Promise<ApiResponse<Array<CloudInstanceRelation>>>;
|
|
28
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
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.StaticDataCloudProviderServiceInstancesApiService = 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
|
-
* StaticDataCloudProviderServiceInstancesApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class StaticDataCloudProviderServiceInstancesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary List `Cloud Provider Service` instance types by region
|
|
35
|
-
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
36
|
-
* @param {string} regionCode The region of the cloud provider to get related instances.
|
|
37
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
38
|
-
* @param {number} [perPage] Number of items returned per page
|
|
39
|
-
*/
|
|
40
|
-
listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode(cloudProviderServiceCode, regionCode, page, perPage) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
if (cloudProviderServiceCode === null || cloudProviderServiceCode === undefined) {
|
|
43
|
-
throw new Exceptions_1.ArgumentNullException('cloudProviderServiceCode', 'listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode');
|
|
44
|
-
}
|
|
45
|
-
if (regionCode === null || regionCode === undefined) {
|
|
46
|
-
throw new Exceptions_1.ArgumentNullException('regionCode', 'listStaticCloudInstancesByCloudProviderServiceCodeAndRegionCode');
|
|
47
|
-
}
|
|
48
|
-
let queryString = '';
|
|
49
|
-
const queryParams = { page: page, per_page: perPage, };
|
|
50
|
-
for (const key in queryParams) {
|
|
51
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
55
|
-
}
|
|
56
|
-
const requestUrl = '/static/cloud-provider-service-options/{cloud_provider_service_code}/regions/{region_code}/instances' + (queryString ? `?${queryString}` : '');
|
|
57
|
-
const response = yield this.get(requestUrl.replace(`{${"cloud_provider_service_code"}}`, encodeURIComponent(String(cloudProviderServiceCode))).replace(`{${"region_code"}}`, encodeURIComponent(String(regionCode))));
|
|
58
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.StaticDataCloudProviderServiceInstancesApiService = StaticDataCloudProviderServiceInstancesApiService;
|
|
@@ -1,25 +0,0 @@
|
|
|
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 { CloudProviderService } from '../../generated/models';
|
|
15
|
-
/**
|
|
16
|
-
* StaticDataCloudProviderServicesApiService - Auto-generated
|
|
17
|
-
*/
|
|
18
|
-
export declare class StaticDataCloudProviderServicesApiService extends ApiBaseService {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @summary Get details of a single `Cloud Provider Service`
|
|
22
|
-
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
23
|
-
*/
|
|
24
|
-
getStaticCloudProviderService(cloudProviderServiceCode: string): Promise<ApiResponse<CloudProviderService>>;
|
|
25
|
-
}
|