diff --git a/src/components/content/credentials/AddCredential.tsx b/src/components/content/credentials/AddCredential.tsx index fdfa34ec0..71845ce8d 100644 --- a/src/components/content/credentials/AddCredential.tsx +++ b/src/components/content/credentials/AddCredential.tsx @@ -18,6 +18,7 @@ import { CreateCredential, CredentialVariable, CredentialVariables, + GetSitesOfCspData, Response, addIsvCloudCredential, addUserCloudCredential, @@ -26,6 +27,7 @@ import { getActiveCsps, getCredentialCapabilities, getCredentialTypes, + getSitesOfCsp, name, type, type GetCredentialCapabilitiesData, @@ -39,11 +41,14 @@ import useCredentialsListQuery from './query/queryCredentialsList'; function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: () => void }): React.JSX.Element { const [form] = Form.useForm(); const [currentCsp, setCurrentCsp] = useState(undefined); + const [siteDisabled, setSiteDisabled] = useState(true); const [typeDisabled, setTypeDisabled] = useState(true); const [nameDisable, setNameDisable] = useState(true); + const [currentSite, setCurrentSite] = useState(undefined); const [currentType, setCurrentType] = useState(undefined); const [currentName, setCurrentName] = useState(undefined); const activeCspList = useRef([]); + const siteList = useRef([]); const credentialTypeList = useRef([]); const nameList = useRef([]); const [credentialVariableList, setCredentialVariableList] = useState([]); @@ -64,6 +69,18 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: setTipMessage(tipMessage); }; + const sitesQuery = useQuery({ + queryKey: ['sitesQuery', currentCsp], + queryFn: () => { + const data: GetSitesOfCspData = { + cspName: currentCsp ?? csp.OPENSTACK_TESTLAB, + }; + return getSitesOfCsp(data); + }, + staleTime: 60000, + enabled: currentCsp !== undefined, + }); + const credentialTypesQuery = useQuery({ queryKey: ['credentialTypesQuery', currentCsp], queryFn: () => { @@ -76,6 +93,10 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: enabled: currentCsp !== undefined, }); + if (sitesQuery.isSuccess) { + siteList.current = sitesQuery.data as string[]; + } + if (credentialTypesQuery.isSuccess) { credentialTypeList.current = credentialTypesQuery.data as type[]; } @@ -161,7 +182,7 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: // useEffect to update Form DOM after the rendering for first 3 drop downs are completed. useEffect(() => { - if (currentType && currentName) { + if (currentSite && currentType && currentName) { const credentials = credentialCapabilitiesQuery.data; if (credentials !== undefined && credentials.length > 0) { credentials.forEach((credential: CredentialVariables) => { @@ -182,12 +203,16 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: }); } } - }, [currentCsp, currentName, currentType, form, credentialCapabilitiesQuery.data]); + }, [currentCsp, currentSite, currentName, currentType, form, credentialCapabilitiesQuery.data]); const handleCspSelect = useCallback( (cspName: csp) => { setCurrentCsp(cspName); + setSiteDisabled(false); + setCurrentSite(undefined); + form.setFieldsValue({ site: undefined }); + setTypeDisabled(false); setCurrentType(undefined); form.setFieldsValue({ type: undefined }); @@ -205,6 +230,14 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: [form] ); + const handleSiteSelect = useCallback( + (site: string) => { + setCurrentSite(site); + form.setFieldsValue({ site: site }); + }, + [form] + ); + const handleCredentialTypeSelect = useCallback( (type: credentialType) => { setCurrentType(type); @@ -331,6 +364,7 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: // It must be only in the variables map. const createCredentialRequest: CreateCredential = { csp: createCredential.csp, + site: createCredential.site, description: createCredential.description, name: createCredential.name, type: createCredential.type, @@ -345,6 +379,7 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: setCurrentCsp(undefined); setCurrentType(undefined); setCurrentName(undefined); + siteList.current = []; nameList.current = []; credentialTypeList.current = []; setCredentialVariableList([]); @@ -356,6 +391,7 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: clear(); form.resetFields(); getTipInfo(undefined, ''); + setSiteDisabled(true); setTypeDisabled(true); setNameDisable(true); }; @@ -402,6 +438,27 @@ function AddCredential({ role, onCancel }: { role: string | undefined; onCancel: })} + + + `${record.csp}-${record.site}-${record.type}-${record.name}`} /> diff --git a/src/components/content/credentials/UpdateCredential.tsx b/src/components/content/credentials/UpdateCredential.tsx index 4138c1ba3..2dbe08954 100644 --- a/src/components/content/credentials/UpdateCredential.tsx +++ b/src/components/content/credentials/UpdateCredential.tsx @@ -55,6 +55,7 @@ function UpdateCredential({ // Also, necessary to avoid changing state during render useEffect(() => { form.setFieldsValue({ name: credentialVariablesCopy.name }); + form.setFieldsValue({ site: credentialVariablesCopy.site }); form.setFieldsValue({ csp: credentialVariablesCopy.csp }); form.setFieldsValue({ description: credentialVariablesCopy.description }); form.setFieldsValue({ type: credentialVariablesCopy.type }); @@ -103,6 +104,7 @@ function UpdateCredential({ // It must be only in the variables map. const createCredentialRequest: CreateCredential = { csp: createCredential.csp, + site: createCredential.site, description: createCredential.description, name: createCredential.name, type: createCredential.type, @@ -253,6 +255,9 @@ function UpdateCredential({ src={cspMap.get(credentialVariables.csp.valueOf() as name)?.logo} /> + + + diff --git a/src/components/content/order/common/availabilityzone/AvailabilityZoneFormItem.tsx b/src/components/content/order/common/availabilityzone/AvailabilityZoneFormItem.tsx index e9929081b..ee22f83b3 100644 --- a/src/components/content/order/common/availabilityzone/AvailabilityZoneFormItem.tsx +++ b/src/components/content/order/common/availabilityzone/AvailabilityZoneFormItem.tsx @@ -25,7 +25,7 @@ export function AvailabilityZoneFormItem({ selectAvailabilityZones: Record; selectCsp: csp; }): React.JSX.Element { - const availabilityZonesVariableRequest = useGetAvailabilityZonesForRegionQuery(selectCsp, selectRegion.name); + const availabilityZonesVariableRequest = useGetAvailabilityZonesForRegionQuery(selectCsp, selectRegion); const retryRequest = () => { if (availabilityZonesVariableRequest.isError) { void availabilityZonesVariableRequest.refetch(); diff --git a/src/components/content/order/common/utils/OrderItem.tsx b/src/components/content/order/common/utils/OrderItem.tsx index cf4b2dcc8..5877a3d70 100644 --- a/src/components/content/order/common/utils/OrderItem.tsx +++ b/src/components/content/order/common/utils/OrderItem.tsx @@ -4,13 +4,13 @@ */ import React from 'react'; -import { csp } from '../../../../../xpanse-api/generated'; +import { csp, Region } from '../../../../../xpanse-api/generated'; import { BooleanInput } from '../../formElements/BooleanInput'; import { NumberInput } from '../../formElements/NumberInput'; import { TextInput } from '../../formElements/TextInput'; import { DeployParam } from '../../types/DeployParam'; -export function OrderItem({ item, csp, region }: { item: DeployParam; csp: csp; region: string }): React.JSX.Element { +export function OrderItem({ item, csp, region }: { item: DeployParam; csp: csp; region: Region }): React.JSX.Element { if (item.type === 'string') { return ; } diff --git a/src/components/content/order/common/utils/useGetAvailabilityZonesForRegionQuery.tsx b/src/components/content/order/common/utils/useGetAvailabilityZonesForRegionQuery.tsx index f35b7ac21..4beb78720 100644 --- a/src/components/content/order/common/utils/useGetAvailabilityZonesForRegionQuery.tsx +++ b/src/components/content/order/common/utils/useGetAvailabilityZonesForRegionQuery.tsx @@ -4,15 +4,16 @@ */ import { useQuery } from '@tanstack/react-query'; -import { csp, getAvailabilityZones, type GetAvailabilityZonesData } from '../../../../../xpanse-api/generated'; +import { csp, getAvailabilityZones, type GetAvailabilityZonesData, Region } from '../../../../../xpanse-api/generated'; -export default function useGetAvailabilityZonesForRegionQuery(csp: csp, region: string) { +export default function useGetAvailabilityZonesForRegionQuery(csp: csp, region: Region) { return useQuery({ - queryKey: ['getExistingResourceNamesWithKind', csp, region], + queryKey: ['availabilityZonesForRegionQuery', csp, region], queryFn: () => { const data: GetAvailabilityZonesData = { cspName: csp, - regionName: region, + siteName: region.site, + regionName: region.name, }; return getAvailabilityZones(data); }, diff --git a/src/components/content/order/create/OrderSubmit.tsx b/src/components/content/order/create/OrderSubmit.tsx index f4b165413..78f692090 100644 --- a/src/components/content/order/create/OrderSubmit.tsx +++ b/src/components/content/order/create/OrderSubmit.tsx @@ -265,12 +265,7 @@ function OrderSubmit(state: OrderSubmitProps): React.JSX.Element { > {state.params.map((item) => item.kind === 'variable' || item.kind === 'env' ? ( - + ) : undefined )} diff --git a/src/components/content/order/create/SelectServiceForm.tsx b/src/components/content/order/create/SelectServiceForm.tsx index c17924b56..ab7cfc3e4 100644 --- a/src/components/content/order/create/SelectServiceForm.tsx +++ b/src/components/content/order/create/SelectServiceForm.tsx @@ -135,7 +135,7 @@ export function SelectServiceForm({ services }: { services: UserOrderableService getContactServiceDetailsOfServiceByCsp(selectCsp, versionToServicesMap.get(selectVersion)); const currentEula: string | undefined = getEulaByCsp(selectCsp, versionToServicesMap.get(selectVersion)); - const getAvailabilityZonesForRegionQuery = useGetAvailabilityZonesForRegionQuery(selectCsp, selectRegion.name); + const getAvailabilityZonesForRegionQuery = useGetAvailabilityZonesForRegionQuery(selectCsp, selectRegion); const availabilityZoneConfigs: AvailabilityZoneConfig[] = getAvailabilityZoneRequirementsForAService( selectCsp, services @@ -220,7 +220,7 @@ export function SelectServiceForm({ services }: { services: UserOrderableService ); setSelectArea(areaList[0].key); setSelectFlavor(flavorList[0].name); - setSelectRegion(regionList[0]?.region); + setSelectRegion(regionList[0].region); setSelectVersion(currentVersion); setSelectCsp(cspList[0]); setSelectServiceHostType(serviceHostTypes[0]); diff --git a/src/components/content/order/create/useAutoFillDeployVariableQuery.ts b/src/components/content/order/create/useAutoFillDeployVariableQuery.ts index 7b79d05ef..08ef822fe 100644 --- a/src/components/content/order/create/useAutoFillDeployVariableQuery.ts +++ b/src/components/content/order/create/useAutoFillDeployVariableQuery.ts @@ -11,13 +11,19 @@ import { GetExistingResourceNamesWithKindData, } from '../../../../xpanse-api/generated'; -export default function useAutoFillDeployVariableQuery(csp: csp, region: string, kind: deployResourceKind) { +export default function useAutoFillDeployVariableQuery( + csp: csp, + site: string, + region: string, + kind: deployResourceKind +) { return useQuery({ - queryKey: ['getExistingResourceNamesWithKind', csp, kind, region], + queryKey: ['getExistingResourceNamesWithKind', csp, site, kind, region], queryFn: () => { const data: GetExistingResourceNamesWithKindData = { csp: csp, - region: region, + siteName: site, + regionName: region, deployResourceKind: kind, }; return getExistingResourceNamesWithKind(data); diff --git a/src/components/content/order/formElements/TextInput.tsx b/src/components/content/order/formElements/TextInput.tsx index e67a346ed..6946b8296 100644 --- a/src/components/content/order/formElements/TextInput.tsx +++ b/src/components/content/order/formElements/TextInput.tsx @@ -8,13 +8,13 @@ import { Button, Col, Form, Input, Row, Select, Tooltip } from 'antd'; import { Rule } from 'rc-field-form/lib/interface'; import React, { ChangeEvent, useState } from 'react'; import serviceOrderStyles from '../../../../styles/service-order.module.css'; -import { csp, deployResourceKind, sensitiveScope } from '../../../../xpanse-api/generated'; +import { csp, deployResourceKind, Region, sensitiveScope } from '../../../../xpanse-api/generated'; import useAutoFillDeployVariableQuery from '../create/useAutoFillDeployVariableQuery'; import { useOrderFormStore } from '../store/OrderFormStore'; import { DeployParam } from '../types/DeployParam'; import { DeployVariableSchema } from '../types/DeployVariableSchema'; -export function TextInput({ item, csp, region }: { item: DeployParam; csp: csp; region: string }): React.JSX.Element { +export function TextInput({ item, csp, region }: { item: DeployParam; csp: csp; region: Region }): React.JSX.Element { const [isExistingResourceDropDownDisabled, setIsExistingResourceDropDownDisabled] = useState(false); const ruleItems: Rule[] = [{ required: item.mandatory }, { type: 'string' }]; let regExp: RegExp; @@ -25,7 +25,8 @@ export function TextInput({ item, csp, region }: { item: DeployParam; csp: csp; const autoFillDeployVariableRequest = useAutoFillDeployVariableQuery( csp, - region, + region.site, + region.name, item.autoFill ? (item.autoFill.deployResourceKind as deployResourceKind) : deployResourceKind.VM ); diff --git a/src/components/content/order/formElements/VersionSelect.tsx b/src/components/content/order/formElements/VersionSelect.tsx index 9a69d250a..34fd7476e 100644 --- a/src/components/content/order/formElements/VersionSelect.tsx +++ b/src/components/content/order/formElements/VersionSelect.tsx @@ -20,7 +20,6 @@ export default function VersionSelect({ {deployParams.params.map((item) => item.kind === 'variable' || item.kind === 'env' ? ( - + ) : undefined )} diff --git a/src/components/content/order/migrate/SelectDestination.tsx b/src/components/content/order/migrate/SelectDestination.tsx index a5c2e0b4f..53147dcc5 100644 --- a/src/components/content/order/migrate/SelectDestination.tsx +++ b/src/components/content/order/migrate/SelectDestination.tsx @@ -19,11 +19,11 @@ import { serviceHostingType, UserOrderableServiceVo, } from '../../../../xpanse-api/generated'; +import { AvailabilityZoneFormItem } from '../common/availabilityzone/AvailabilityZoneFormItem.tsx'; import { BillingModeSelection } from '../common/BillingModeSelection'; import { FlavorSelection } from '../common/FlavorSelection.tsx'; import { RegionSelection } from '../common/RegionSelection.tsx'; import { ServiceHostingSelection } from '../common/ServiceHostingSelection'; -import { AvailabilityZoneFormItem } from '../common/availabilityzone/AvailabilityZoneFormItem'; import useGetAvailabilityZonesForRegionQuery from '../common/utils/useGetAvailabilityZonesForRegionQuery'; import { convertAreasToTabs } from '../formDataHelpers/areaHelper'; import { getBillingModes, getDefaultBillingMode } from '../formDataHelpers/billingHelper'; @@ -95,7 +95,7 @@ export const SelectDestination = ({ getServicePriceQuery: UseQueryResult; }): React.JSX.Element => { const [form] = Form.useForm(); - const getAvailabilityZonesForRegionQuery = useGetAvailabilityZonesForRegionQuery(selectCsp, selectRegion.name); + const getAvailabilityZonesForRegionQuery = useGetAvailabilityZonesForRegionQuery(selectCsp, selectRegion); const availabilityZoneConfigs: AvailabilityZoneConfig[] = getAvailabilityZoneRequirementsForAService( selectCsp, userOrderableServiceVoList diff --git a/src/components/content/order/modify/Modify.tsx b/src/components/content/order/modify/Modify.tsx index e1fe83500..5f06053fb 100644 --- a/src/components/content/order/modify/Modify.tsx +++ b/src/components/content/order/modify/Modify.tsx @@ -235,7 +235,7 @@ export const Modify = ({ key={item.name} item={item} csp={currentSelectedService.deployRequest.csp as csp} - region={currentSelectedService.deployRequest.region.name} + region={currentSelectedService.deployRequest.region} /> ) : undefined )} diff --git a/src/components/content/order/scale/Scale.tsx b/src/components/content/order/scale/Scale.tsx index d4932082d..4c660d6ef 100644 --- a/src/components/content/order/scale/Scale.tsx +++ b/src/components/content/order/scale/Scale.tsx @@ -298,7 +298,7 @@ export const Scale = ({ key={item.name} item={item} csp={currentSelectedService.deployRequest.csp as csp} - region={currentSelectedService.deployRequest.region.name} + region={currentSelectedService.deployRequest.region} /> ) : undefined )} diff --git a/src/xpanse-api/api.json b/src/xpanse-api/api.json index 33d5f93ca..90414c596 100644 --- a/src/xpanse-api/api.json +++ b/src/xpanse-api/api.json @@ -135,8 +135,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -145,8 +145,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -155,8 +155,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -165,8 +165,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -175,8 +175,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -241,8 +241,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -251,8 +251,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -261,8 +261,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -271,8 +271,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -281,8 +281,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -355,8 +355,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -365,8 +365,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -375,8 +375,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -385,8 +385,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -395,8 +395,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -455,8 +455,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -465,8 +465,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -475,8 +475,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -485,8 +485,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -495,8 +495,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -545,8 +545,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -555,8 +555,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -565,8 +565,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -575,8 +575,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -585,8 +585,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -635,6 +635,15 @@ ] } }, + { + "name": "siteName", + "in": "query", + "description": "The site of the provider.", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "type", "in": "query", @@ -666,8 +675,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -676,8 +685,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -686,8 +695,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -696,8 +705,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -706,8 +715,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -758,8 +767,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -768,8 +777,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -778,8 +787,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -788,8 +797,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -798,8 +807,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -858,8 +867,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -868,8 +877,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -878,8 +887,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -888,8 +897,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -898,8 +907,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -958,8 +967,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -968,8 +977,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -978,8 +987,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -988,8 +997,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -998,8 +1007,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1069,7 +1078,7 @@ } } }, - "422": { + "400": { "description": "", "content": { "application/json": { @@ -1079,7 +1088,7 @@ } } }, - "400": { + "422": { "description": "", "content": { "application/json": { @@ -1089,7 +1098,7 @@ } } }, - "401": { + "403": { "description": "", "content": { "application/json": { @@ -1099,7 +1108,7 @@ } } }, - "403": { + "502": { "description": "", "content": { "application/json": { @@ -1109,7 +1118,7 @@ } } }, - "502": { + "401": { "description": "", "content": { "application/json": { @@ -1168,7 +1177,7 @@ } } }, - "422": { + "400": { "description": "", "content": { "application/json": { @@ -1178,7 +1187,7 @@ } } }, - "400": { + "422": { "description": "", "content": { "application/json": { @@ -1188,7 +1197,7 @@ } } }, - "401": { + "403": { "description": "", "content": { "application/json": { @@ -1198,7 +1207,7 @@ } } }, - "403": { + "502": { "description": "", "content": { "application/json": { @@ -1208,7 +1217,7 @@ } } }, - "502": { + "401": { "description": "", "content": { "application/json": { @@ -1278,8 +1287,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1288,8 +1297,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1298,8 +1307,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1308,8 +1317,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1318,8 +1327,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1388,8 +1397,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1398,8 +1407,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1408,8 +1417,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1418,8 +1427,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1428,8 +1437,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1481,8 +1490,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1491,8 +1500,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1501,8 +1510,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1511,8 +1520,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1521,8 +1530,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1589,8 +1598,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1599,8 +1608,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1609,8 +1618,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1619,8 +1628,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1629,8 +1638,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1687,8 +1696,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1697,8 +1706,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1707,8 +1716,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1717,8 +1726,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1727,8 +1736,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1780,8 +1789,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1790,8 +1799,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1800,8 +1809,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1810,8 +1819,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1820,8 +1829,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1890,8 +1899,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1900,8 +1909,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -1910,8 +1919,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1920,8 +1929,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -1930,8 +1939,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -1983,8 +1992,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1993,8 +2002,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2003,8 +2012,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2013,8 +2022,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2023,8 +2032,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2092,8 +2101,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2102,8 +2111,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2112,8 +2121,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2122,8 +2131,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2132,8 +2141,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2191,8 +2200,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2201,8 +2210,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2211,8 +2220,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2221,8 +2230,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2231,8 +2240,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2299,8 +2308,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2309,8 +2318,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2319,8 +2328,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2329,8 +2338,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2339,8 +2348,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2396,8 +2405,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2406,8 +2415,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2416,8 +2425,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2426,8 +2435,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2436,8 +2445,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2488,8 +2497,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2498,8 +2507,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2508,8 +2517,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2518,8 +2527,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2528,8 +2537,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2596,8 +2605,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2606,8 +2615,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2616,8 +2625,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2626,8 +2635,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2636,8 +2645,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2693,8 +2702,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2703,8 +2712,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2713,8 +2722,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2723,8 +2732,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2733,8 +2742,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2807,8 +2816,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2817,8 +2826,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2827,8 +2836,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2837,8 +2846,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2847,8 +2856,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2907,8 +2916,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2917,8 +2926,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -2927,8 +2936,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2937,8 +2946,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -2947,8 +2956,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -2997,8 +3006,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3007,8 +3016,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3017,8 +3026,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3027,8 +3036,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3037,8 +3046,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3087,6 +3096,15 @@ ] } }, + { + "name": "siteName", + "in": "query", + "description": "The site of the provider.", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "type", "in": "query", @@ -3118,8 +3136,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3128,8 +3146,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3138,8 +3156,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3148,8 +3166,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3158,8 +3176,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3283,8 +3301,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3293,8 +3311,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3303,8 +3321,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3313,8 +3331,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3323,8 +3341,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3383,7 +3401,7 @@ } } }, - "422": { + "400": { "description": "", "content": { "application/json": { @@ -3393,7 +3411,7 @@ } } }, - "400": { + "422": { "description": "", "content": { "application/json": { @@ -3403,7 +3421,7 @@ } } }, - "401": { + "403": { "description": "", "content": { "application/json": { @@ -3413,7 +3431,7 @@ } } }, - "403": { + "502": { "description": "", "content": { "application/json": { @@ -3423,7 +3441,7 @@ } } }, - "502": { + "401": { "description": "", "content": { "application/json": { @@ -3482,8 +3500,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3492,8 +3510,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3502,8 +3520,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3512,8 +3530,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3522,8 +3540,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3654,8 +3672,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3664,8 +3682,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3674,8 +3692,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3684,8 +3702,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3694,8 +3712,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3754,8 +3772,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3764,8 +3782,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3774,8 +3792,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3784,8 +3802,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3794,8 +3812,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3854,8 +3872,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3864,8 +3882,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3874,8 +3892,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3884,8 +3902,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3894,8 +3912,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -3954,8 +3972,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3964,8 +3982,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -3974,8 +3992,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3984,8 +4002,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -3994,8 +4012,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4054,8 +4072,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4064,8 +4082,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4074,8 +4092,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4084,8 +4102,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4094,8 +4112,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4174,8 +4192,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4184,8 +4202,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4194,8 +4212,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4204,8 +4222,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4214,8 +4232,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4274,8 +4292,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4284,8 +4302,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4294,8 +4312,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4304,8 +4322,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4314,8 +4332,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4384,8 +4402,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4394,8 +4412,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4404,8 +4422,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4414,8 +4432,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4424,8 +4442,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4487,8 +4505,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4497,8 +4515,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4507,8 +4525,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4517,8 +4535,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4527,8 +4545,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4590,8 +4608,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4600,8 +4618,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4610,8 +4628,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4620,8 +4638,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4630,8 +4648,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4693,8 +4711,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4703,8 +4721,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4713,8 +4731,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4723,8 +4741,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4733,8 +4751,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4796,8 +4814,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4806,8 +4824,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4816,8 +4834,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4826,8 +4844,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4836,8 +4854,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -4899,8 +4917,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4909,8 +4927,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -4919,8 +4937,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4929,8 +4947,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -4939,8 +4957,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5002,8 +5020,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5012,8 +5030,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5022,8 +5040,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5032,8 +5050,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5042,8 +5060,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5105,8 +5123,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5115,8 +5133,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5125,8 +5143,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5135,8 +5153,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5145,8 +5163,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5208,8 +5226,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5218,8 +5236,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5228,8 +5246,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5238,8 +5256,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5248,8 +5266,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5311,8 +5329,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5321,8 +5339,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5331,8 +5349,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5341,8 +5359,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5351,8 +5369,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5405,8 +5423,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5415,8 +5433,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5425,8 +5443,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5435,8 +5453,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5445,8 +5463,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5528,16 +5546,6 @@ } } }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, "400": { "description": "Bad Request", "content": { @@ -5548,8 +5556,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5578,8 +5586,18 @@ } } }, - "408": { - "description": "Request Timeout", + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, + "408": { + "description": "Request Timeout", "content": { "application/json": { "schema": { @@ -5629,8 +5647,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5639,8 +5657,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5649,8 +5667,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5659,8 +5677,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5669,8 +5687,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5722,8 +5740,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5732,8 +5750,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5742,8 +5760,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5752,8 +5770,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5762,8 +5780,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5845,8 +5863,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5855,8 +5873,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5865,8 +5883,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5875,8 +5893,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5885,8 +5903,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -5946,8 +5964,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5956,8 +5974,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -5966,8 +5984,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5976,8 +5994,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -5986,8 +6004,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6061,8 +6079,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6071,8 +6089,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6081,8 +6099,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6091,8 +6109,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6101,8 +6119,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6161,8 +6179,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6171,8 +6189,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6181,8 +6199,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6191,8 +6209,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6201,8 +6219,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6259,8 +6277,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6269,8 +6287,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6279,8 +6297,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6289,8 +6307,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6299,8 +6317,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6352,8 +6370,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6362,8 +6380,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6372,8 +6390,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6382,8 +6400,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6392,8 +6410,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6450,8 +6468,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6460,8 +6478,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6470,8 +6488,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6480,8 +6498,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6490,8 +6508,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6553,8 +6571,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6563,8 +6581,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6573,8 +6591,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6583,8 +6601,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6593,8 +6611,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6700,8 +6718,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6710,8 +6728,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6720,8 +6738,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6730,8 +6748,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6740,8 +6758,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6803,8 +6821,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6813,8 +6831,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6823,8 +6841,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6833,8 +6851,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -6843,8 +6861,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -6975,8 +6993,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6985,8 +7003,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -6995,8 +7013,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7005,8 +7023,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7015,8 +7033,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7078,8 +7096,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7088,8 +7106,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7098,8 +7116,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7108,8 +7126,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7118,8 +7136,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7250,8 +7268,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7260,8 +7278,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7270,8 +7288,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7280,8 +7298,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7290,8 +7308,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7353,8 +7371,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7363,8 +7381,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7373,8 +7391,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7383,8 +7401,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7393,8 +7411,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7453,8 +7471,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7463,8 +7481,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7473,8 +7491,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7483,8 +7501,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7493,8 +7511,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7590,8 +7608,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7600,8 +7618,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7610,8 +7628,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7620,8 +7638,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7630,8 +7648,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7718,8 +7736,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7728,8 +7746,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7738,8 +7756,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7748,8 +7766,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7758,8 +7776,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7882,8 +7900,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -7892,8 +7910,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -7902,8 +7920,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -7912,8 +7930,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -7922,8 +7940,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -7974,6 +7992,16 @@ } } }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, "422": { "description": "Unprocessable Entity", "content": { @@ -7984,8 +8012,18 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8004,6 +8042,87 @@ } } }, + "408": { + "description": "Request Timeout", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SystemStatus" + } + } + } + } + } + } + }, + "/xpanse/csps/{cspName}/sites": { + "get": { + "tags": ["Admin"], + "description": "List sites of cloud service provider.
Required role: admin or csp or isv or user
", + "operationId": "getSitesOfCsp", + "parameters": [ + { + "name": "cspName", + "in": "path", + "description": "name of the cloud service provider", + "required": true, + "schema": { + "type": "string", + "enum": [ + "HuaweiCloud", + "FlexibleEngine", + "OpenstackTestlab", + "PlusServer", + "RegioCloud", + "AlibabaCloud", + "aws", + "azure", + "GoogleCloudPlatform" + ] + } + } + ], + "responses": { + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, "403": { "description": "Forbidden", "content": { @@ -8024,6 +8143,16 @@ } } }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, "408": { "description": "Request Timeout", "content": { @@ -8039,7 +8168,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SystemStatus" + "type": "array", + "items": { + "type": "string" + } } } } @@ -8063,8 +8195,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8073,8 +8205,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8083,8 +8215,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8093,8 +8225,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8103,8 +8235,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8228,8 +8360,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8238,8 +8370,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8248,8 +8380,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8258,8 +8390,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8268,8 +8400,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8331,16 +8463,6 @@ } } }, - "422": { - "description": "Unprocessable Entity", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response" - } - } - } - }, "400": { "description": "Bad Request", "content": { @@ -8351,8 +8473,8 @@ } } }, - "401": { - "description": "Unauthorized", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8381,6 +8503,16 @@ } } }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response" + } + } + } + }, "408": { "description": "Request Timeout", "content": { @@ -8431,9 +8563,18 @@ } }, { - "name": "region", + "name": "siteName", + "in": "query", + "description": "the site of the service belongs to", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "regionName", "in": "query", - "description": "name of he region", + "description": "name of the region", "required": true, "schema": { "type": "string" @@ -8481,8 +8622,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8491,8 +8632,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8501,8 +8642,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8511,8 +8652,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8521,8 +8662,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8583,6 +8724,15 @@ ] } }, + { + "name": "siteName", + "in": "query", + "description": "site of the region belongs to", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "regionName", "in": "query", @@ -8613,8 +8763,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8623,8 +8773,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8633,8 +8783,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8643,8 +8793,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8653,8 +8803,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8737,8 +8887,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8747,8 +8897,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8757,8 +8907,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8767,8 +8917,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8777,8 +8927,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8867,8 +9017,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8877,8 +9027,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -8887,8 +9037,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -8897,8 +9047,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -8907,8 +9057,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -8981,8 +9131,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -8991,8 +9141,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9001,8 +9151,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -9011,8 +9161,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9021,8 +9171,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9146,8 +9296,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9156,8 +9306,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9166,8 +9316,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -9176,8 +9326,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9186,8 +9336,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9257,8 +9407,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9267,8 +9417,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9277,8 +9427,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -9287,8 +9437,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9297,8 +9447,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9356,8 +9506,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9366,8 +9516,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9376,8 +9526,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -9386,8 +9536,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9396,8 +9546,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9465,8 +9615,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9475,8 +9625,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9485,8 +9635,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -9495,8 +9645,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9505,8 +9655,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9554,8 +9704,8 @@ } } }, - "422": { - "description": "Unprocessable Entity", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -9564,8 +9714,8 @@ } } }, - "400": { - "description": "Bad Request", + "422": { + "description": "Unprocessable Entity", "content": { "application/json": { "schema": { @@ -9574,8 +9724,8 @@ } } }, - "401": { - "description": "Unauthorized", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -9584,8 +9734,8 @@ } } }, - "403": { - "description": "Forbidden", + "502": { + "description": "Bad Gateway", "content": { "application/json": { "schema": { @@ -9594,8 +9744,8 @@ } } }, - "502": { - "description": "Bad Gateway", + "401": { + "description": "Unauthorized", "content": { "application/json": { "schema": { @@ -9647,7 +9797,7 @@ } } }, - "422": { + "400": { "description": "", "content": { "application/json": { @@ -9657,7 +9807,7 @@ } } }, - "400": { + "422": { "description": "", "content": { "application/json": { @@ -9667,7 +9817,7 @@ } } }, - "401": { + "403": { "description": "", "content": { "application/json": { @@ -9677,7 +9827,7 @@ } } }, - "403": { + "502": { "description": "", "content": { "application/json": { @@ -9687,7 +9837,7 @@ } } }, - "502": { + "401": { "description": "", "content": { "application/json": { @@ -9747,7 +9897,7 @@ } } }, - "422": { + "400": { "description": "", "content": { "application/json": { @@ -9757,7 +9907,7 @@ } } }, - "400": { + "422": { "description": "", "content": { "application/json": { @@ -9767,7 +9917,7 @@ } } }, - "401": { + "403": { "description": "", "content": { "application/json": { @@ -9777,7 +9927,7 @@ } } }, - "403": { + "502": { "description": "", "content": { "application/json": { @@ -9787,7 +9937,7 @@ } } }, - "502": { + "401": { "description": "", "content": { "application/json": { @@ -9908,7 +10058,7 @@ } }, "CreateCredential": { - "required": ["csp", "name", "timeToLive", "type", "variables"], + "required": ["csp", "name", "site", "timeToLive", "type", "variables"], "type": "object", "properties": { "name": { @@ -9930,6 +10080,10 @@ "GoogleCloudPlatform" ] }, + "site": { + "type": "string", + "description": "The site to which the credentials belong to." + }, "description": { "type": "string", "description": "The description of the credential" @@ -11555,7 +11709,7 @@ } }, "AbstractCredentialInfo": { - "required": ["csp", "description", "name", "type"], + "required": ["csp", "description", "name", "site", "type"], "type": "object", "allOf": [ { @@ -11579,6 +11733,10 @@ "GoogleCloudPlatform" ] }, + "site": { + "type": "string", + "description": "The site to which the the credentials belong to." + }, "type": { "type": "string", "description": "The type of the credential, this field is provided by the plugin of cloud service provider.", @@ -11601,7 +11759,7 @@ ] }, "CredentialVariables": { - "required": ["csp", "description", "name", "type", "variables"], + "required": ["csp", "description", "name", "site", "type", "variables"], "type": "object", "properties": { "csp": { @@ -11619,6 +11777,10 @@ "GoogleCloudPlatform" ] }, + "site": { + "type": "string", + "description": "The site to which the the credentials belong to." + }, "type": { "type": "string", "description": "The type of the credential, this field is provided by the plugin of cloud service provider.", diff --git a/src/xpanse-api/generated/services.gen.ts b/src/xpanse-api/generated/services.gen.ts index 1fec69a23..6d7914c97 100644 --- a/src/xpanse-api/generated/services.gen.ts +++ b/src/xpanse-api/generated/services.gen.ts @@ -105,6 +105,8 @@ import type { GetServicePolicyDetailsResponse, GetServicePriceByFlavorData, GetServicePriceByFlavorResponse, + GetSitesOfCspData, + GetSitesOfCspResponse, GetUserCloudCredentialsData, GetUserCloudCredentialsResponse, GetVendorHostedServiceDetailsByIdData, @@ -331,8 +333,9 @@ export const addUserCloudCredential = ( * Delete user's credential for connecting to the cloud service provider.
Required role: admin or user
* @param data The data for the request. * @param data.cspName The cloud service provider. + * @param data.siteName The site of the provider. * @param data.type The type of credential. - * @param data.name The name of of credential. + * @param data.name The name of credential. * @returns void No Content * @throws ApiError */ @@ -344,6 +347,7 @@ export const deleteUserCloudCredential = ( url: '/xpanse/user/credentials', query: { cspName: data.cspName, + siteName: data.siteName, type: data.type, name: data.name, }, @@ -1004,6 +1008,7 @@ export const addIsvCloudCredential = ( * Delete the credentials of the user in the USER role to connect to the cloud service provider.
Required role: isv
* @param data The data for the request. * @param data.cspName The cloud service provider. + * @param data.siteName The site of the provider. * @param data.type The type of credential. * @param data.name The name of of credential. * @returns void No Content @@ -1017,6 +1022,7 @@ export const deleteIsvCloudCredential = ( url: '/xpanse/isv/credentials', query: { cspName: data.cspName, + siteName: data.siteName, type: data.type, name: data.name, }, @@ -2298,6 +2304,32 @@ export const healthCheck = (): CancelablePromise => { }); }; +/** + * List sites of cloud service provider.
Required role: admin or csp or isv or user
+ * @param data The data for the request. + * @param data.cspName name of the cloud service provider + * @returns string OK + * @throws ApiError + */ +export const getSitesOfCsp = (data: GetSitesOfCspData): CancelablePromise => { + return __request(OpenAPI, { + method: 'GET', + url: '/xpanse/csps/{cspName}/sites', + path: { + cspName: data.cspName, + }, + errors: { + 400: 'Bad Request', + 401: 'Unauthorized', + 403: 'Forbidden', + 408: 'Request Timeout', + 422: 'Unprocessable Entity', + 500: 'Internal Server Error', + 502: 'Bad Gateway', + }, + }); +}; + /** * List cloud service providers with active plugin.
Required role: admin or csp or isv or user
* @returns string OK @@ -2387,7 +2419,8 @@ export const getRegistrationDetails = ( * List existing cloud resource names with kind
Required role: admin or user
* @param data The data for the request. * @param data.csp name of the cloud service provider - * @param data.region name of he region + * @param data.siteName the site of the service belongs to + * @param data.regionName name of the region * @param data.deployResourceKind kind of the CloudResource * @param data.serviceId id of the deployed service * @returns string OK @@ -2404,7 +2437,8 @@ export const getExistingResourceNamesWithKind = ( }, query: { csp: data.csp, - region: data.region, + siteName: data.siteName, + regionName: data.regionName, serviceId: data.serviceId, }, errors: { @@ -2423,6 +2457,7 @@ export const getExistingResourceNamesWithKind = ( * Get availability zones with csp and region.
Required role: admin or csp or isv or user
* @param data The data for the request. * @param data.cspName name of the cloud service provider + * @param data.siteName site of the region belongs to * @param data.regionName name of the region * @param data.serviceId Id of the deployed service * @returns string OK @@ -2436,6 +2471,7 @@ export const getAvailabilityZones = ( url: '/xpanse/csp/region/azs', query: { cspName: data.cspName, + siteName: data.siteName, regionName: data.regionName, serviceId: data.serviceId, }, diff --git a/src/xpanse-api/generated/types.gen.ts b/src/xpanse-api/generated/types.gen.ts index fc11e7ff6..5d3b40e5b 100644 --- a/src/xpanse-api/generated/types.gen.ts +++ b/src/xpanse-api/generated/types.gen.ts @@ -164,6 +164,10 @@ export type CreateCredential = { | 'aws' | 'azure' | 'GoogleCloudPlatform'; + /** + * The site to which the credentials belong to. + */ + site: string; /** * The description of the credential */ @@ -1579,6 +1583,10 @@ export type AbstractCredentialInfo = CredentialVariables & { | 'aws' | 'azure' | 'GoogleCloudPlatform'; + /** + * The site to which the credentials belong to. + */ + site?: string; /** * The type of the credential, this field is provided by the plugin of cloud service provider. */ @@ -1609,6 +1617,10 @@ export type AbstractCredentialInfo = CredentialVariables & { | 'aws' | 'azure' | 'GoogleCloudPlatform'; + /** + * The site to which the credentials belong to. + */ + site: string; /** * The type of the credential, this field is provided by the plugin of cloud service provider. */ @@ -1637,6 +1649,10 @@ export type CredentialVariables = { | 'aws' | 'azure' | 'GoogleCloudPlatform'; + /** + * The site to which the the credentials belong to. + */ + site: string; /** * The type of the credential, this field is provided by the plugin of cloud service provider. */ @@ -2668,9 +2684,13 @@ export type DeleteUserCloudCredentialData = { | 'azure' | 'GoogleCloudPlatform'; /** - * The name of of credential. + * The name of credential. */ name: string; + /** + * The site of the provider. + */ + siteName: string; /** * The type of credential. */ @@ -2895,9 +2915,13 @@ export type DeleteIsvCloudCredentialData = { | 'azure' | 'GoogleCloudPlatform'; /** - * The name of of credential. + * The name of credential. */ name: string; + /** + * The site of the provider. + */ + siteName: string; /** * The type of credential. */ @@ -3585,6 +3609,24 @@ export type GetMetricsResponse = Array; export type HealthCheckResponse = SystemStatus; +export type GetSitesOfCspData = { + /** + * name of the cloud service provider + */ + cspName: + | 'HuaweiCloud' + | 'FlexibleEngine' + | 'OpenstackTestlab' + | 'PlusServer' + | 'RegioCloud' + | 'AlibabaCloud' + | 'aws' + | 'azure' + | 'GoogleCloudPlatform'; +}; + +export type GetSitesOfCspResponse = Array; + export type GetActiveCspsResponse = Array< | 'HuaweiCloud' | 'FlexibleEngine' @@ -3670,13 +3712,17 @@ export type GetExistingResourceNamesWithKindData = { | 'keypair' | 'subnet'; /** - * name of he region + * name of the region */ - region: string; + regionName: string; /** * id of the deployed service */ serviceId?: string; + /** + * the site of the service belongs to + */ + siteName: string; }; export type GetExistingResourceNamesWithKindResponse = Array; @@ -3703,6 +3749,10 @@ export type GetAvailabilityZonesData = { * Id of the deployed service */ serviceId?: string; + /** + * site of the region belongs to + */ + siteName: string; }; export type GetAvailabilityZonesResponse = Array;