|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | /** |
18 | | - * IBM OpenAPI SDK Code Generator Version: 3.64.0-959a5845-20230112-195144 |
| 18 | + * IBM OpenAPI SDK Code Generator Version: 3.66.0-d6c2d7e0-20230215-221247 |
19 | 19 | */ |
20 | 20 |
|
21 | 21 | /* eslint-disable max-classes-per-file */ |
@@ -297,6 +297,58 @@ class CodeEngineV2 extends BaseService { |
297 | 297 |
|
298 | 298 | return this.createRequest(parameters); |
299 | 299 | } |
| 300 | + |
| 301 | + /** |
| 302 | + * List egress IP addresses. |
| 303 | + * |
| 304 | + * Lists all egress IP addresses (public and private) that are used by components running in this project. |
| 305 | + * |
| 306 | + * @param {Object} params - The parameters to send to the service. |
| 307 | + * @param {string} params.projectId - The ID of the project. |
| 308 | + * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers |
| 309 | + * @returns {Promise<CodeEngineV2.Response<CodeEngineV2.ProjectEgressIPAddresses>>} |
| 310 | + */ |
| 311 | + public getProjectEgressIps( |
| 312 | + params: CodeEngineV2.GetProjectEgressIpsParams |
| 313 | + ): Promise<CodeEngineV2.Response<CodeEngineV2.ProjectEgressIPAddresses>> { |
| 314 | + const _params = { ...params }; |
| 315 | + const _requiredParams = ['projectId']; |
| 316 | + const _validParams = ['projectId', 'headers']; |
| 317 | + const _validationErrors = validateParams(_params, _requiredParams, _validParams); |
| 318 | + if (_validationErrors) { |
| 319 | + return Promise.reject(_validationErrors); |
| 320 | + } |
| 321 | + |
| 322 | + const path = { |
| 323 | + 'project_id': _params.projectId, |
| 324 | + }; |
| 325 | + |
| 326 | + const sdkHeaders = getSdkHeaders( |
| 327 | + CodeEngineV2.DEFAULT_SERVICE_NAME, |
| 328 | + 'v2', |
| 329 | + 'getProjectEgressIps' |
| 330 | + ); |
| 331 | + |
| 332 | + const parameters = { |
| 333 | + options: { |
| 334 | + url: '/projects/{project_id}/egress_ips', |
| 335 | + method: 'GET', |
| 336 | + path, |
| 337 | + }, |
| 338 | + defaultOptions: extend(true, {}, this.baseOptions, { |
| 339 | + headers: extend( |
| 340 | + true, |
| 341 | + sdkHeaders, |
| 342 | + { |
| 343 | + 'Accept': 'application/json', |
| 344 | + }, |
| 345 | + _params.headers |
| 346 | + ), |
| 347 | + }), |
| 348 | + }; |
| 349 | + |
| 350 | + return this.createRequest(parameters); |
| 351 | + } |
300 | 352 | /************************* |
301 | 353 | * applications |
302 | 354 | ************************/ |
@@ -2921,6 +2973,13 @@ namespace CodeEngineV2 { |
2921 | 2973 | headers?: OutgoingHttpHeaders; |
2922 | 2974 | } |
2923 | 2975 |
|
| 2976 | + /** Parameters for the `getProjectEgressIps` operation. */ |
| 2977 | + export interface GetProjectEgressIpsParams { |
| 2978 | + /** The ID of the project. */ |
| 2979 | + projectId: string; |
| 2980 | + headers?: OutgoingHttpHeaders; |
| 2981 | + } |
| 2982 | + |
2924 | 2983 | /** Parameters for the `listApps` operation. */ |
2925 | 2984 | export interface ListAppsParams { |
2926 | 2985 | /** The ID of the project. */ |
@@ -4740,6 +4799,14 @@ namespace CodeEngineV2 { |
4740 | 4799 | status?: string; |
4741 | 4800 | } |
4742 | 4801 |
|
| 4802 | + /** Describes the model of egress IP addresses. */ |
| 4803 | + export interface ProjectEgressIPAddresses { |
| 4804 | + /** List of IBM private network IP addresses. */ |
| 4805 | + private?: string[]; |
| 4806 | + /** List of public IP addresses. */ |
| 4807 | + public?: string[]; |
| 4808 | + } |
| 4809 | + |
4743 | 4810 | /** Contains a list of projects and pagination information. */ |
4744 | 4811 | export interface ProjectList { |
4745 | 4812 | /** Describes properties needed to retrieve the first page of a result list. */ |
|
0 commit comments