From df305652e8a138c27edd96a47c7a5ab4d66115fa Mon Sep 17 00:00:00 2001 From: Alice1319 Date: Tue, 10 Sep 2024 15:40:26 +0800 Subject: [PATCH] show billingmode and region for myservices. (#1136) --- .../common/DeployedBillingMode.tsx | 44 + .../common/DeployedRegion.tsx | 42 + .../myServices/MyServices.tsx | 66 +- src/styles/my-services.module.css | 12 + src/xpanse-api/api.json | 2650 +++++------------ src/xpanse-api/generated/services.gen.ts | 310 -- src/xpanse-api/generated/types.gen.ts | 137 +- 7 files changed, 970 insertions(+), 2291 deletions(-) create mode 100644 src/components/content/deployedServices/common/DeployedBillingMode.tsx create mode 100644 src/components/content/deployedServices/common/DeployedRegion.tsx diff --git a/src/components/content/deployedServices/common/DeployedBillingMode.tsx b/src/components/content/deployedServices/common/DeployedBillingMode.tsx new file mode 100644 index 000000000..a1e292c69 --- /dev/null +++ b/src/components/content/deployedServices/common/DeployedBillingMode.tsx @@ -0,0 +1,44 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Huawei Inc. + */ + +import { Tag } from 'antd'; +import React from 'react'; +import myServicesStyle from '../../../../styles/my-services.module.css'; +import { billingMode } from '../../../../xpanse-api/generated'; + +export function DeployedBillingMode({ + currentBillingMode, + className, +}: { + currentBillingMode: billingMode; + className?: string | undefined; +}): React.JSX.Element { + switch (currentBillingMode) { + case billingMode.PAY_PER_USE: + return ( +
+ + {currentBillingMode.valueOf()} + +
+ ); + case billingMode.FIXED: + return ( +
+ + {currentBillingMode.valueOf()} + +
+ ); + default: + return ( +
+ + {currentBillingMode} + +
+ ); + } +} diff --git a/src/components/content/deployedServices/common/DeployedRegion.tsx b/src/components/content/deployedServices/common/DeployedRegion.tsx new file mode 100644 index 000000000..e6a9d7c08 --- /dev/null +++ b/src/components/content/deployedServices/common/DeployedRegion.tsx @@ -0,0 +1,42 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Huawei Inc. + */ + +import { GlobalOutlined } from '@ant-design/icons'; +import { Popover, Tag } from 'antd'; +import React from 'react'; +import myServicesStyle from '../../../../styles/my-services.module.css'; +import { Region } from '../../../../xpanse-api/generated'; + +export function DeployedRegion({ + currentRegion, + className, +}: { + currentRegion: Region; + className?: string | undefined; +}): React.JSX.Element { + const content = ( +
+
+
site:
+    {currentRegion.site} +
+
+
area:
+    {currentRegion.area} +
+
+ ); + return ( +
+ + {currentRegion.name} + {' '} + + + + +
+ ); +} diff --git a/src/components/content/deployedServices/myServices/MyServices.tsx b/src/components/content/deployedServices/myServices/MyServices.tsx index 7884deb45..1e388eda7 100644 --- a/src/components/content/deployedServices/myServices/MyServices.tsx +++ b/src/components/content/deployedServices/myServices/MyServices.tsx @@ -28,17 +28,19 @@ import appStyles from '../../../../styles/app.module.css'; import myServicesStyles from '../../../../styles/my-services.module.css'; import tableStyles from '../../../../styles/table.module.css'; import { - DeployedService, - DeployedServiceDetails, - ServiceProviderContactDetails, - VendorHostedDeployedServiceDetails, + billingMode, category, csp, + DeployedService, + DeployedServiceDetails, name, + Region, serviceDeploymentState, serviceHostingType, + ServiceProviderContactDetails, serviceState, taskStatus, + VendorHostedDeployedServiceDetails, } from '../../../../xpanse-api/generated'; import { sortVersionNum } from '../../../utils/Sort'; import { serviceIdQuery, serviceStateQuery } from '../../../utils/constants'; @@ -70,6 +72,8 @@ import StopServiceStatusAlert from '../../order/serviceState/stop/StopServiceSta import { useServiceStateStopQuery } from '../../order/serviceState/stop/useServiceStateStopQuery'; import { useServiceDetailsByServiceStatePollingQuery } from '../../order/serviceState/useServiceDetailsByServiceStatePollingQuery'; import { useOrderFormStore } from '../../order/store/OrderFormStore'; +import { DeployedBillingMode } from '../common/DeployedBillingMode.tsx'; +import { DeployedRegion } from '../common/DeployedRegion.tsx'; import DeployedServicesError from '../common/DeployedServicesError'; import { DeployedServicesHostingType } from '../common/DeployedServicesHostingType'; import { DeployedServicesRunningStatus } from '../common/DeployedServicesRunningStatus'; @@ -87,6 +91,8 @@ function MyServices(): React.JSX.Element { let serviceVoList: DeployedService[] = []; let versionFilters: ColumnFilterItem[] = []; let serviceHostingTypeFilters: ColumnFilterItem[] = []; + let serviceBillingModeFilters: ColumnFilterItem[] = []; + let serviceRegionNameFilters: ColumnFilterItem[] = []; let nameFilters: ColumnFilterItem[] = []; let customerServiceNameFilters: ColumnFilterItem[] = []; let categoryFilters: ColumnFilterItem[] = []; @@ -206,6 +212,8 @@ function MyServices(): React.JSX.Element { updateServiceStateFilters(); updateCustomerServiceNameFilters(listDeployedServicesQuery.data); updateServiceHostingFilters(); + updateBillingModeFilters(); + updateRegionFilters(listDeployedServicesQuery.data); } const getTooltipWhenDetailsDisabled = ( @@ -853,6 +861,26 @@ function MyServices(): React.JSX.Element { ), }, + { + title: 'BillingMode', + dataIndex: 'billingMode', + filters: serviceBillingModeFilters, + filterMode: 'tree', + filterSearch: true, + onFilter: (value: React.Key | boolean, record) => record.billingMode.startsWith(value.toString()), + align: 'center', + render: (billingMode: billingMode) => , + }, + { + title: 'Region', + dataIndex: 'region', + filters: serviceRegionNameFilters, + filterMode: 'tree', + filterSearch: true, + onFilter: (value: React.Key | boolean, record) => record.region.name.startsWith(value.toString()), + align: 'center', + render: (region: Region) => , + }, { title: 'Csp', dataIndex: 'csp', @@ -1221,6 +1249,36 @@ function MyServices(): React.JSX.Element { serviceHostingTypeFilters = filters; } + function updateBillingModeFilters(): void { + const filters: ColumnFilterItem[] = []; + Object.values(billingMode).forEach((billingMode) => { + const filter = { + text: billingMode, + value: billingMode, + }; + filters.push(filter); + }); + serviceBillingModeFilters = filters; + } + + function updateRegionFilters(resp: DeployedService[]): void { + const filters: ColumnFilterItem[] = []; + const regionNameSet = new Set(''); + resp.forEach((v) => { + if (v.region.name) { + regionNameSet.add(v.region.name); + } + }); + regionNameSet.forEach((name) => { + const filter = { + text: name, + value: name, + }; + filters.push(filter); + }); + serviceRegionNameFilters = filters; + } + function refreshData(): void { clearFormVariables(); setIsPurgeRequestSubmitted(false); diff --git a/src/styles/my-services.module.css b/src/styles/my-services.module.css index 128cd9c4f..661b83455 100644 --- a/src/styles/my-services.module.css +++ b/src/styles/my-services.module.css @@ -102,3 +102,15 @@ .resource-properties-key { padding-top: 7px; } + +.region-display-inline { + margin: 0; + padding: 0; + overflow: hidden; +} + +.region-area, +.region-site { + display: flex; + align-items: center; +} diff --git a/src/xpanse-api/api.json b/src/xpanse-api/api.json index 6a773197b..33933c57b 100644 --- a/src/xpanse-api/api.json +++ b/src/xpanse-api/api.json @@ -21,10 +21,6 @@ "name": "CloudServiceProvider", "description": "APIs for cloud service provider to manage service templates." }, - { - "name": "Webhook", - "description": "Webhook APIs" - }, { "name": "AuthManagement", "description": "APIs for user authentication and authorization." @@ -125,8 +121,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -135,8 +131,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -145,8 +141,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -155,8 +151,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -165,8 +161,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -231,8 +227,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -241,8 +237,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -251,8 +247,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -261,8 +257,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -271,8 +267,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -345,8 +341,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -355,8 +351,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -365,8 +361,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -375,8 +371,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -385,8 +381,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -445,8 +441,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -455,8 +451,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -465,8 +461,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -475,8 +471,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -485,8 +481,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -535,8 +531,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -545,8 +541,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -555,8 +551,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -565,8 +561,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -575,8 +571,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -665,8 +661,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -675,8 +671,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -685,8 +681,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -695,8 +691,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -705,8 +701,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -757,8 +753,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -767,8 +763,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -777,8 +773,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -787,8 +783,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -797,8 +793,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -857,8 +853,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -867,8 +863,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -877,8 +873,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -887,8 +883,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -897,8 +893,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -957,8 +953,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -967,8 +963,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -977,8 +973,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -987,8 +983,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -997,8 +993,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1068,7 +1064,7 @@ "required": true }, "responses": { - "422": { + "500": { "description": "", "content": { "application/json": { @@ -1078,7 +1074,7 @@ } } }, - "400": { + "401": { "description": "", "content": { "application/json": { @@ -1088,7 +1084,7 @@ } } }, - "500": { + "502": { "description": "", "content": { "application/json": { @@ -1098,7 +1094,7 @@ } } }, - "401": { + "422": { "description": "", "content": { "application/json": { @@ -1108,7 +1104,7 @@ } } }, - "502": { + "400": { "description": "", "content": { "application/json": { @@ -1167,7 +1163,7 @@ } ], "responses": { - "422": { + "500": { "description": "", "content": { "application/json": { @@ -1177,7 +1173,7 @@ } } }, - "400": { + "401": { "description": "", "content": { "application/json": { @@ -1187,7 +1183,7 @@ } } }, - "500": { + "502": { "description": "", "content": { "application/json": { @@ -1197,7 +1193,7 @@ } } }, - "401": { + "422": { "description": "", "content": { "application/json": { @@ -1207,7 +1203,7 @@ } } }, - "502": { + "400": { "description": "", "content": { "application/json": { @@ -1277,8 +1273,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -1287,8 +1283,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1297,8 +1293,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1307,8 +1303,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1317,8 +1313,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1387,8 +1383,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -1397,8 +1393,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1407,8 +1403,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1417,8 +1413,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1427,8 +1423,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1480,8 +1476,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -1490,8 +1486,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1500,8 +1496,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1510,8 +1506,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1520,8 +1516,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1588,8 +1584,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -1598,8 +1594,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1608,8 +1604,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1618,8 +1614,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1628,8 +1624,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1686,8 +1682,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -1696,8 +1692,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1706,8 +1702,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1716,8 +1712,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1726,8 +1722,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1779,8 +1775,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -1789,8 +1785,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1799,8 +1795,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1809,8 +1805,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1819,8 +1815,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1889,8 +1885,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -1899,8 +1895,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1909,8 +1905,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1919,8 +1915,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1929,8 +1925,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1982,8 +1978,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -1992,8 +1988,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2002,8 +1998,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2012,8 +2008,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2022,8 +2018,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2091,8 +2087,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2101,8 +2097,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2111,8 +2107,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2121,8 +2117,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2131,8 +2127,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2190,8 +2186,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2200,8 +2196,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2210,8 +2206,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2220,8 +2216,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2230,8 +2226,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2298,8 +2294,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2308,8 +2304,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2318,8 +2314,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2328,8 +2324,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2338,8 +2334,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2395,8 +2391,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2405,8 +2401,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2415,8 +2411,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2425,8 +2421,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2435,8 +2431,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2487,8 +2483,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2497,8 +2493,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2507,8 +2503,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2517,8 +2513,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2527,8 +2523,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2595,8 +2591,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2605,8 +2601,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2615,8 +2611,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2625,8 +2621,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2635,8 +2631,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2692,8 +2688,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2702,8 +2698,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2712,8 +2708,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2722,8 +2718,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2732,8 +2728,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2806,8 +2802,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2816,8 +2812,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2826,8 +2822,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2836,8 +2832,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2846,8 +2842,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2906,8 +2902,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -2916,8 +2912,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2926,8 +2922,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2936,8 +2932,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2946,8 +2942,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2996,8 +2992,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -3006,8 +3002,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3016,8 +3012,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3026,8 +3022,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3036,8 +3032,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3126,8 +3122,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -3136,8 +3132,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3146,8 +3142,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3156,8 +3152,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3166,8 +3162,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3291,8 +3287,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -3301,8 +3297,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3311,8 +3307,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3321,8 +3317,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3331,8 +3327,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3391,7 +3387,7 @@ "required": true }, "responses": { - "422": { + "500": { "description": "", "content": { "application/json": { @@ -3401,7 +3397,7 @@ } } }, - "400": { + "401": { "description": "", "content": { "application/json": { @@ -3411,7 +3407,7 @@ } } }, - "500": { + "502": { "description": "", "content": { "application/json": { @@ -3421,7 +3417,7 @@ } } }, - "401": { + "422": { "description": "", "content": { "application/json": { @@ -3431,7 +3427,7 @@ } } }, - "502": { + "400": { "description": "", "content": { "application/json": { @@ -3490,8 +3486,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -3500,8 +3496,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3510,8 +3506,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3520,8 +3516,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3530,8 +3526,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3662,8 +3658,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -3672,8 +3668,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3682,8 +3678,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3692,8 +3688,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3702,8 +3698,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3762,8 +3758,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -3772,8 +3768,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3782,8 +3778,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3792,8 +3788,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3802,8 +3798,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3862,8 +3858,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -3872,8 +3868,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3882,8 +3878,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3892,8 +3888,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3902,8 +3898,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3962,8 +3958,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -3972,8 +3968,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3982,8 +3978,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3992,8 +3988,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4002,8 +3998,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4062,8 +4058,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -4072,8 +4068,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4082,8 +4078,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4092,8 +4088,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4102,8 +4098,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4182,8 +4178,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -4192,8 +4188,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4202,8 +4198,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4212,8 +4208,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4222,8 +4218,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4282,8 +4278,8 @@ "required": true }, "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -4292,8 +4288,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4302,8 +4298,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4312,912 +4308,8 @@ } } }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserPolicy" - } - } - } - } - } - } - }, - "/webhook/tofu-maker/rollback/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after openTofu executes the command line to rollback service deployment.", - "operationId": "rollbackCallback", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OpenTofuResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK" - } - } - } - }, - "/webhook/tofu-maker/purge/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after openTofu executes the command line to purge service.", - "operationId": "purgeCallback", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OpenTofuResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK" - } - } - } - }, - "/webhook/tofu-maker/modify/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after openTofu executes the command line.", - "operationId": "modifyCallback", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OpenTofuResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK" - } - } - } - }, - "/webhook/tofu-maker/destroy/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after openTofu executes the command line.", - "operationId": "destroyCallback", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OpenTofuResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK" - } - } - } - }, - "/webhook/tofu-maker/deploy/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after openTofu executes the command line.", - "operationId": "deployCallback", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OpenTofuResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK" - } - } - } - }, - "/webhook/terraform-boot/rollback/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after terraform executes the command line to rollback service deployment.", - "operationId": "rollbackCallback_1", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TerraformResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK" - } - } - } - }, - "/webhook/terraform-boot/purge/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after terraform executes the command line to purge service.", - "operationId": "purgeCallback_1", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TerraformResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK" - } - } - } - }, - "/webhook/terraform-boot/modify/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after terraform executes the command line.", - "operationId": "modifyCallback_1", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TerraformResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "200": { - "description": "OK" - } - } - } - }, - "/webhook/terraform-boot/destroy/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after terraform executes the command line to destroy service.", - "operationId": "destroyCallback_1", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TerraformResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5236,36 +4328,6 @@ } } }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, "403": { "description": "Forbidden", "content": { @@ -5287,110 +4349,14 @@ } }, "200": { - "description": "OK" - } - } - } - }, - "/webhook/terraform-boot/deploy/{serviceId}": { - "post": { - "tags": ["Webhook"], - "description": "Process the execution result after terraform executes the command line.", - "operationId": "deployCallback_1", - "parameters": [ - { - "name": "serviceId", - "in": "path", - "description": "id of the service instance", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TerraformResult" - } - } - }, - "required": true - }, - "responses": { - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "500": { - "description": "Internal Server Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "502": { - "description": "Bad Gateway", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, - "408": { - "description": "Request Timeout", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response" + "$ref": "#/components/schemas/UserPolicy" } } } - }, - "200": { - "description": "OK" } } } @@ -5413,8 +4379,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -5423,8 +4389,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5433,8 +4399,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5443,8 +4409,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5453,8 +4419,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5536,8 +4502,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -5546,8 +4512,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5556,8 +4522,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5566,8 +4532,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5576,8 +4542,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5637,8 +4603,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -5647,8 +4613,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5657,8 +4623,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5667,8 +4633,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5677,8 +4643,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5730,8 +4696,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -5740,8 +4706,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5750,8 +4716,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5760,8 +4726,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5770,8 +4736,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5853,8 +4819,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -5863,8 +4829,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5873,8 +4839,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5883,8 +4849,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5893,8 +4859,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5954,8 +4920,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -5964,8 +4930,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5974,8 +4940,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5984,8 +4950,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5994,8 +4960,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6069,8 +5035,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6079,8 +5045,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6089,8 +5055,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6099,8 +5065,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6109,8 +5075,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6169,8 +5135,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6179,8 +5145,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6189,8 +5155,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6199,8 +5165,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6209,8 +5175,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6267,8 +5233,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6277,8 +5243,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6287,8 +5253,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6297,8 +5263,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6307,8 +5273,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6360,8 +5326,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6370,8 +5336,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6380,8 +5346,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6390,8 +5356,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6400,8 +5366,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6458,8 +5424,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6468,8 +5434,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6478,8 +5444,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6488,8 +5454,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6498,8 +5464,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6561,8 +5527,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6571,8 +5537,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6581,8 +5547,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6591,8 +5557,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6601,8 +5567,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6708,8 +5674,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6718,8 +5684,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6728,8 +5694,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6738,8 +5704,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6748,8 +5714,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6811,8 +5777,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6821,8 +5787,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6831,8 +5797,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6841,8 +5807,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6851,8 +5817,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6983,8 +5949,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -6993,8 +5959,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7003,8 +5969,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7013,8 +5979,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7023,8 +5989,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7086,8 +6052,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -7096,8 +6062,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7106,8 +6072,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7116,8 +6082,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7126,8 +6092,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7258,8 +6224,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -7268,8 +6234,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7278,8 +6244,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7288,8 +6254,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7298,8 +6264,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7361,8 +6327,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -7371,8 +6337,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7381,8 +6347,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7391,8 +6357,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7401,8 +6367,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7461,8 +6427,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -7471,8 +6437,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7481,8 +6447,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7491,8 +6457,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7501,8 +6467,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7598,8 +6564,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -7608,8 +6574,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7618,8 +6584,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7628,8 +6594,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7638,8 +6604,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7726,8 +6692,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -7736,8 +6702,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7746,8 +6712,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7756,8 +6722,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7766,8 +6732,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7890,8 +6856,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -7900,8 +6866,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7910,8 +6876,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7920,8 +6886,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7930,8 +6896,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7982,8 +6948,8 @@ "description": "Check health of API service and backend systems.
Required role: admin or csp or isv or user
", "operationId": "healthCheck", "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -7992,8 +6958,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8002,8 +6968,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8012,8 +6978,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8022,8 +6988,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8093,8 +7059,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -8103,8 +7069,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8113,8 +7079,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8123,8 +7089,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8133,8 +7099,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8185,8 +7151,8 @@ "description": "List cloud service providers with active plugin.
Required role: admin or csp or isv or user
", "operationId": "getActiveCsps", "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -8195,8 +7161,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8205,8 +7171,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8215,8 +7181,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8225,8 +7191,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8350,8 +7316,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -8360,8 +7326,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8370,8 +7336,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8380,8 +7346,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8390,8 +7356,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8453,8 +7419,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -8463,8 +7429,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8473,8 +7439,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8483,8 +7449,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8493,8 +7459,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8612,8 +7578,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -8622,8 +7588,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8632,8 +7598,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8642,8 +7608,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8652,8 +7618,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8753,8 +7719,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -8763,8 +7729,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8773,8 +7739,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8783,8 +7749,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8793,8 +7759,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8877,8 +7843,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -8887,8 +7853,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8897,8 +7863,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8907,8 +7873,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8917,8 +7883,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9007,8 +7973,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -9017,8 +7983,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9027,8 +7993,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9037,8 +8003,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9047,8 +8013,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9121,8 +8087,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -9131,8 +8097,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9141,8 +8107,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9151,8 +8117,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9161,8 +8127,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9286,8 +8252,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -9296,8 +8262,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9306,8 +8272,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9316,8 +8282,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9326,8 +8292,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9397,8 +8363,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -9407,8 +8373,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9417,8 +8383,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9427,8 +8393,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9437,8 +8403,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9496,8 +8462,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -9506,8 +8472,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9516,8 +8482,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9526,8 +8492,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9536,8 +8502,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9605,8 +8571,8 @@ } ], "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -9615,8 +8581,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9625,8 +8591,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9635,8 +8601,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9645,8 +8611,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9694,8 +8660,8 @@ "description": "Get and redirect authorization url for user to authenticate.", "operationId": "authorize", "responses": { - "422": { - "description": "Unprocessable Entity", + "500": { + "description": "Internal Server Error", "content": { "application/json": { "schema": { @@ -9704,8 +8670,8 @@ } } }, - "400": { - "description": "Bad Request", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9714,8 +8680,8 @@ } } }, - "500": { - "description": "Internal Server Error", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9724,8 +8690,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9734,8 +8700,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9787,7 +8753,7 @@ } ], "responses": { - "422": { + "500": { "description": "", "content": { "application/json": { @@ -9797,7 +8763,7 @@ } } }, - "400": { + "401": { "description": "", "content": { "application/json": { @@ -9807,7 +8773,7 @@ } } }, - "500": { + "502": { "description": "", "content": { "application/json": { @@ -9817,7 +8783,7 @@ } } }, - "401": { + "422": { "description": "", "content": { "application/json": { @@ -9827,7 +8793,7 @@ } } }, - "502": { + "400": { "description": "", "content": { "application/json": { @@ -9887,7 +8853,7 @@ } ], "responses": { - "422": { + "500": { "description": "", "content": { "application/json": { @@ -9897,7 +8863,7 @@ } } }, - "400": { + "401": { "description": "", "content": { "application/json": { @@ -9907,7 +8873,7 @@ } } }, - "500": { + "502": { "description": "", "content": { "application/json": { @@ -9917,7 +8883,7 @@ } } }, - "401": { + "422": { "description": "", "content": { "application/json": { @@ -9927,7 +8893,7 @@ } } }, - "502": { + "400": { "description": "", "content": { "application/json": { @@ -11548,8 +10514,6 @@ "format": "uuid" }, "flavorNameList": { - "maxItems": 2147483647, - "minItems": 1, "type": "array", "description": "The flavor name list which the policy belongs to. If the list is empty, then the policy will be executed for during service deployment of all flavors.", "items": { @@ -11596,60 +10560,6 @@ } } }, - "OpenTofuResult": { - "type": "object", - "properties": { - "requestId": { - "type": "string", - "format": "uuid" - }, - "commandStdOutput": { - "type": "string" - }, - "commandStdError": { - "type": "string" - }, - "terraformState": { - "type": "string" - }, - "importantFileContentMap": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "commandSuccessful": { - "type": "boolean" - } - } - }, - "TerraformResult": { - "type": "object", - "properties": { - "requestId": { - "type": "string", - "format": "uuid" - }, - "commandStdOutput": { - "type": "string" - }, - "commandStdError": { - "type": "string" - }, - "terraformState": { - "type": "string" - }, - "importantFileContentMap": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "commandSuccessful": { - "type": "boolean" - } - } - }, "WorkFlowTask": { "required": [ "businessKey", @@ -11858,11 +10768,13 @@ }, "DeployedService": { "required": [ + "billingMode", "category", "createTime", "csp", "lastModifiedTime", "name", + "region", "serviceDeploymentState", "serviceHostingType", "serviceId", @@ -11892,6 +10804,14 @@ "others" ] }, + "region": { + "$ref": "#/components/schemas/Region" + }, + "billingMode": { + "type": "string", + "description": "The billing mode of the managed service.", + "enum": ["Fixed", "Pay per Use"] + }, "name": { "type": "string", "description": "The name of the service" @@ -12212,12 +11132,14 @@ }, "DeployedServiceDetails": { "required": [ + "billingMode", "category", "createTime", "csp", "deployRequest", "lastModifiedTime", "name", + "region", "serviceDeploymentState", "serviceHostingType", "serviceId", @@ -12247,6 +11169,14 @@ "others" ] }, + "region": { + "$ref": "#/components/schemas/Region" + }, + "billingMode": { + "type": "string", + "description": "The billing mode of the managed service.", + "enum": ["Fixed", "Pay per Use"] + }, "name": { "type": "string", "description": "The name of the service" @@ -12369,12 +11299,14 @@ }, "VendorHostedDeployedServiceDetails": { "required": [ + "billingMode", "category", "createTime", "csp", "deployRequest", "lastModifiedTime", "name", + "region", "serviceDeploymentState", "serviceHostingType", "serviceId", @@ -12404,6 +11336,14 @@ "others" ] }, + "region": { + "$ref": "#/components/schemas/Region" + }, + "billingMode": { + "type": "string", + "description": "The billing mode of the managed service.", + "enum": ["Fixed", "Pay per Use"] + }, "name": { "type": "string", "description": "The name of the service" diff --git a/src/xpanse-api/generated/services.gen.ts b/src/xpanse-api/generated/services.gen.ts index cfcdb6616..d0190c3cf 100644 --- a/src/xpanse-api/generated/services.gen.ts +++ b/src/xpanse-api/generated/services.gen.ts @@ -42,16 +42,8 @@ import type { DeleteUserCloudCredentialResponse, DeleteUserPolicyData, DeleteUserPolicyResponse, - DeployCallback1Data, - DeployCallback1Response, - DeployCallbackData, - DeployCallbackResponse, DeployData, DeployResponse, - DestroyCallback1Data, - DestroyCallback1Response, - DestroyCallbackData, - DestroyCallbackResponse, DestroyData, DestroyResponse, DetailsData, @@ -138,18 +130,10 @@ import type { ManageFailedOrderResponse, MigrateData, MigrateResponse, - ModifyCallback1Data, - ModifyCallback1Response, - ModifyCallbackData, - ModifyCallbackResponse, ModifyData, ModifyResponse, OpenApiData, OpenApiResponse, - PurgeCallback1Data, - PurgeCallback1Response, - PurgeCallbackData, - PurgeCallbackResponse, PurgeData, PurgeResponse, QueryTasksData, @@ -164,10 +148,6 @@ import type { RestartServiceResponse, ReviewRegistrationData, ReviewRegistrationResponse, - RollbackCallback1Data, - RollbackCallback1Response, - RollbackCallbackData, - RollbackCallbackResponse, StartServiceData, StartServiceResponse, StopServiceData, @@ -1317,296 +1297,6 @@ export const addUserPolicy = (data: AddUserPolicyData): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/tofu-maker/rollback/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after openTofu executes the command line to purge service. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const purgeCallback = (data: PurgeCallbackData): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/tofu-maker/purge/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after openTofu executes the command line. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const modifyCallback = (data: ModifyCallbackData): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/tofu-maker/modify/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after openTofu executes the command line. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const destroyCallback = (data: DestroyCallbackData): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/tofu-maker/destroy/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after openTofu executes the command line. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const deployCallback = (data: DeployCallbackData): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/tofu-maker/deploy/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after terraform executes the command line to rollback service deployment. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const rollbackCallback1 = (data: RollbackCallback1Data): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/terraform-boot/rollback/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after terraform executes the command line to purge service. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const purgeCallback1 = (data: PurgeCallback1Data): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/terraform-boot/purge/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after terraform executes the command line. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const modifyCallback1 = (data: ModifyCallback1Data): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/terraform-boot/modify/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after terraform executes the command line to destroy service. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const destroyCallback1 = (data: DestroyCallback1Data): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/terraform-boot/destroy/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - -/** - * Process the execution result after terraform executes the command line. - * @param data The data for the request. - * @param data.serviceId id of the service instance - * @param data.requestBody - * @returns unknown OK - * @throws ApiError - */ -export const deployCallback1 = (data: DeployCallback1Data): CancelablePromise => { - return __request(OpenAPI, { - method: 'POST', - url: '/webhook/terraform-boot/deploy/{serviceId}', - path: { - serviceId: data.serviceId, - }, - body: data.requestBody, - mediaType: 'application/json', - errors: { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 408: 'Request Timeout', - 422: 'Unprocessable Entity', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - }, - }); -}; - /** * Query all tasks of the given user
Required role: admin or user
* @param data The data for the request. diff --git a/src/xpanse-api/generated/types.gen.ts b/src/xpanse-api/generated/types.gen.ts index b6247b4e2..5c5e64f20 100644 --- a/src/xpanse-api/generated/types.gen.ts +++ b/src/xpanse-api/generated/types.gen.ts @@ -1496,28 +1496,6 @@ export type UserPolicyCreateRequest = { enabled: boolean; }; -export type OpenTofuResult = { - requestId?: string; - commandStdOutput?: string; - commandStdError?: string; - terraformState?: string; - importantFileContentMap?: { - [key: string]: string; - }; - commandSuccessful?: boolean; -}; - -export type TerraformResult = { - requestId?: string; - commandStdOutput?: string; - commandStdError?: string; - terraformState?: string; - importantFileContentMap?: { - [key: string]: string; - }; - commandSuccessful?: boolean; -}; - export type WorkFlowTask = { /** * The id of the ProcessInstance @@ -1752,6 +1730,11 @@ export type DeployedService = { | 'security' | 'middleware' | 'others'; + region: Region; + /** + * The billing mode of the managed service. + */ + billingMode: 'Fixed' | 'Pay per Use'; /** * The name of the service */ @@ -2101,6 +2084,11 @@ export type DeployedServiceDetails = { | 'security' | 'middleware' | 'others'; + region: Region; + /** + * The billing mode of the managed service. + */ + billingMode: 'Fixed' | 'Pay per Use'; /** * The name of the service */ @@ -2216,6 +2204,11 @@ export type VendorHostedDeployedServiceDetails = { | 'security' | 'middleware' | 'others'; + region: Region; + /** + * The billing mode of the managed service. + */ + billingMode: 'Fixed' | 'Pay per Use'; /** * The name of the service */ @@ -3103,106 +3096,6 @@ export type AddUserPolicyData = { export type AddUserPolicyResponse = UserPolicy; -export type RollbackCallbackData = { - requestBody: OpenTofuResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type RollbackCallbackResponse = unknown; - -export type PurgeCallbackData = { - requestBody: OpenTofuResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type PurgeCallbackResponse = unknown; - -export type ModifyCallbackData = { - requestBody: OpenTofuResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type ModifyCallbackResponse = unknown; - -export type DestroyCallbackData = { - requestBody: OpenTofuResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type DestroyCallbackResponse = unknown; - -export type DeployCallbackData = { - requestBody: OpenTofuResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type DeployCallbackResponse = unknown; - -export type RollbackCallback1Data = { - requestBody: TerraformResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type RollbackCallback1Response = unknown; - -export type PurgeCallback1Data = { - requestBody: TerraformResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type PurgeCallback1Response = unknown; - -export type ModifyCallback1Data = { - requestBody: TerraformResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type ModifyCallback1Response = unknown; - -export type DestroyCallback1Data = { - requestBody: TerraformResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type DestroyCallback1Response = unknown; - -export type DeployCallback1Data = { - requestBody: TerraformResult; - /** - * id of the service instance - */ - serviceId: string; -}; - -export type DeployCallback1Response = unknown; - export type QueryTasksData = { /** * the status of task